@sap/ux-specification 1.96.83 → 1.96.84

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/dist/index-min.js CHANGED
@@ -161,27 +161,27 @@ This could lead to an infinite loop.`;return n},"buildEmptyRepetitionError"),bui
161
161
  `)+(`without consuming any Tokens. The grammar path that causes this is:
162
162
  `+i+`
163
163
  `)+` To fix this refactor your grammar to remove the left recursion.
164
- see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof hr?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function wD(e,t){var n=new Y7(e,t);return n.resolveRefs(),n.errors}var z7,Y7,MD=Qe(()=>{vr();Tt();Kl();z7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(wD,"resolveGrammar");Y7=function(e){z7(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ye(Vn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Gn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Wr)});function Zh(e,t,n){n===void 0&&(n=[]),n=An(n);var i=[],r=0;function a(p){return p.concat(wn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=Zh(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Jt)return s(l.definition);if(l instanceof rn)return s(l.definition);if(l instanceof on)i=s(l.definition);else if(l instanceof Rn){var u=l.definition.concat([new Nt({definition:l.definition})]);return s(u)}else if(l instanceof Fn){var u=[new Jt({definition:l.definition}),new Nt({definition:[new mt({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof Sn){var u=l.definition.concat([new Nt({definition:[new mt({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Nt){var u=l.definition.concat([new Nt({definition:l.definition})]);i=s(u)}else{if(l instanceof Pn)return ye(l.definition,function(p){ot(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof mt)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:wn(e,r)}),i}function ey(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!ot(m);){var y=m.pop();if(y===s){l&&Rh(m).idx<=p&&m.pop();continue}var A=y.def,b=y.idx,O=y.ruleStack,D=y.occurrenceStack;if(!ot(A)){var j=A[0];if(j===r){var G={idx:b,def:wn(A),ruleStack:ds(O),occurrenceStack:ds(D)};m.push(G)}else if(j instanceof mt)if(b<u-1){var B=b+1,ae=t[B];if(n(ae,j.terminalType)){var G={idx:B,def:wn(A),ruleStack:O,occurrenceStack:D};m.push(G)}}else if(b===u-1)g.push({nextTokenType:j.terminalType,nextTokenOccurrence:j.idx,ruleStack:O,occurrenceStack:D}),l=!0;else throw Error("non exhaustive match");else if(j instanceof rn){var Z=An(O);Z.push(j.nonTerminalName);var re=An(D);re.push(j.idx);var G={idx:b,def:j.definition.concat(a,wn(A)),ruleStack:Z,occurrenceStack:re};m.push(G)}else if(j instanceof on){var Se={idx:b,def:wn(A),ruleStack:O,occurrenceStack:D};m.push(Se),m.push(s);var _={idx:b,def:j.definition.concat(wn(A)),ruleStack:O,occurrenceStack:D};m.push(_)}else if(j instanceof Rn){var ft=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([ft],wn(A)),G={idx:b,def:yt,ruleStack:O,occurrenceStack:D};m.push(G)}else if(j instanceof Fn){var Ue=new mt({terminalType:j.separator}),ft=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([ft],wn(A)),G={idx:b,def:yt,ruleStack:O,occurrenceStack:D};m.push(G)}else if(j instanceof Sn){var Se={idx:b,def:wn(A),ruleStack:O,occurrenceStack:D};m.push(Se),m.push(s);var Ue=new mt({terminalType:j.separator}),an=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([an],wn(A)),_={idx:b,def:yt,ruleStack:O,occurrenceStack:D};m.push(_)}else if(j instanceof Nt){var Se={idx:b,def:wn(A),ruleStack:O,occurrenceStack:D};m.push(Se),m.push(s);var an=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([an],wn(A)),_={idx:b,def:yt,ruleStack:O,occurrenceStack:D};m.push(_)}else if(j instanceof Pn)for(var Wn=j.definition.length-1;Wn>=0;Wn--){var en=j.definition[Wn],Lt={idx:b,def:en.definition.concat(wn(A)),ruleStack:O,occurrenceStack:D};m.push(Lt),m.push(s)}else if(j instanceof Jt)m.push({idx:b,def:j.definition.concat(wn(A)),ruleStack:O,occurrenceStack:D});else if(j instanceof hr)m.push(Z7(j,b,O,D));else throw Error("non exhaustive match")}}return g}function Z7(e,t,n,i){var r=An(n);r.push(e.name);var a=An(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var Dc,J7,kD,Jh,jD,YA,UD,JA,ap=Qe(()=>{Qh();Tt();qA();wi();Dc=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),J7=function(e){Dc(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=An(this.path.ruleStack).reverse(),this.occurrenceStack=An(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){ot(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Rc),kD=function(e){Dc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new Jt({definition:a});this.possibleTokTypes=Fc(s),this.found=!0}},t}(J7),Jh=function(e){Dc(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Rc),jD=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(Jh),YA=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(Jh),UD=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(Jh),JA=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(Jh);o(Zh,"possiblePathsFrom");o(ey,"nextPossibleTokensAfter");o(Z7,"expandTopLevelRule")});function HD(e){if(e instanceof on)return wt.OPTION;if(e instanceof Nt)return wt.REPETITION;if(e instanceof Rn)return wt.REPETITION_MANDATORY;if(e instanceof Fn)return wt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Sn)return wt.REPETITION_WITH_SEPARATOR;if(e instanceof Pn)return wt.ALTERNATION;throw Error("non exhaustive match")}function GD(e,t,n,i,r,a){var s=sp(e,t,n),l=YD(s)?Hl:Lc;return a(s,i,l,r)}function WD(e,t,n,i,r,a){var s=cp(e,t,r,n),l=YD(s)?Hl:Lc;return a(s[0],l,i)}function KD(e,t,n,i){var r=e.length,a=si(e,function(u){return si(u,function(p){return p.length===1})});if(t)return function(u){for(var p=ue(u,function(B){return B.GATE}),g=0;g<r;g++){var m=e[g],y=m.length,A=p[g];if(!(A!==void 0&&A.call(this)===!1))e:for(var b=0;b<y;b++){for(var O=m[b],D=O.length,j=0;j<D;j++){var G=this.LA(j+1);if(n(G,O[j])===!1)continue e}return g}}};if(a&&!i){var s=ue(e,function(u){return Ln(u)}),l=un(s,function(u,p,g){return ye(p,function(m){xe(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ye(m.categoryMatches,function(y){xe(u,y)||(u[y]=g)})}),u},[]);return function(){var u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(var u=0;u<r;u++){var p=e[u],g=p.length;e:for(var m=0;m<g;m++){for(var y=p[m],A=y.length,b=0;b<A;b++){var O=this.LA(b+1);if(n(O,y[b])===!1)continue e}return u}}}}function XD(e,t,n){var i=si(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Ln(e);if(a.length===1&&ot(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=un(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,ye(g.categoryMatches,function(y){p[y]=!0}),p},[]);return function(){var p=this.LA(1);return u[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var g=e[p],m=g.length,y=0;y<m;y++){var A=this.LA(y+1);if(t(A,g[y])===!1)continue e}return!0}return!1}}function $D(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function ZA(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var u="_"+i.categoryMatches[l];r.push(s+u)}}t=r}return t}function t6(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function qD(e,t){for(var n=ue(e,function(g){return Zh([g],1)}),i=$D(n.length),r=ue(n,function(g){var m={};return ye(g,function(y){var A=ZA(y.partialPath);ye(A,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=$D(l.length);for(var u=o(function(g){for(var m=l[g],y=0;y<m.length;y++){var A=m[y].partialPath,b=m[y].suffixDef,O=ZA(A),D=t6(r,O,g);if(D||ot(b)||A.length===t){var j=i[g];if(ty(j,A)===!1){j.push(A);for(var G=0;G<O.length;G++){var B=O[G];r[g][B]=!0}}}else{var ae=Zh(b,s+1,A);a[g]=a[g].concat(ae),ye(ae,function(Z){var re=ZA(Z.partialPath);ye(re,function(Se){r[g][Se]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function sp(e,t,n,i){var r=new QD(e,wt.ALTERNATION,i);return t.accept(r),qD(r.result,n)}function cp(e,t,n,i){var r=new QD(e,n);t.accept(r);var a=r.result,s=new e6(t,e,n),l=s.startWalking(),u=new Jt({definition:a}),p=new Jt({definition:l});return qD([u,p],i)}function ty(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function zD(e,t){return e.length<t.length&&si(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function YD(e){return si(e,function(t){return si(t,function(n){return si(n,function(i){return ot(i.categoryMatches)})})})}var BD,wt,e6,QD,lp=Qe(()=>{Tt();ap();Qh();Gl();wi();Kl();BD=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(wt||(wt={}));o(HD,"getProdType");o(GD,"buildLookaheadFuncForOr");o(WD,"buildLookaheadFuncForOptionalProd");o(KD,"buildAlternativesLookAheadFunc");o(XD,"buildSingleAlternativeLookaheadFunction");e6=function(e){BD(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,wt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,wt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Rc),QD=function(e){BD(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,wt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,wt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,wt.ALTERNATION)},t}(Wr);o($D,"initializeArrayOfArrays");o(ZA,"pathToHashKeys");o(t6,"isUniquePrefixHash");o(qD,"lookAheadSequenceFromAlternatives");o(sp,"getLookaheadPathsForOr");o(cp,"getLookaheadPathsForOptionalProd");o(ty,"containsPath");o(zD,"isStrictPrefixOfPath");o(YD,"areTokenCategoriesNotUsed")});function JD(e,t,n,i,r){var a=ue(e,function(A){return n6(A,i)}),s=ue(e,function(A){return t_(A,A,i)}),l=[],u=[],p=[];si(s,ot)&&(l=ue(e,function(A){return a6(A,i)}),u=ue(e,function(A){return s6(A,t,i)}),p=f6(e,t,i));var g=d6(e,n,i),m=ue(e,function(A){return l6(A,i)}),y=ue(e,function(A){return o6(A,e,r,i)});return Ln(a.concat(p,s,l,u,g,m,y))}function n6(e,t){var n=new r6;e.accept(n);var i=n.allProductions,r=K1(i,i6),a=gr(r,function(l){return l.length>1}),s=ue(Vn(a),function(l){var u=Ai(l),p=t.buildDuplicateFoundError(e,l),g=yr(u),m={message:p,type:Gn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},y=ZD(u);return y&&(m.parameter=y),m});return s}function i6(e){return yr(e)+"_#_"+e.idx+"_#_"+ZD(e)}function ZD(e){return e instanceof mt?e.terminalType.name:e instanceof rn?e.nonTerminalName:""}function o6(e,t,n,i){var r=[],a=un(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Gn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function e_(e,t,n){var i=[],r;return Vt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Gn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function t_(e,t,n,i){i===void 0&&(i=[]);var r=[],a=ny(t.definition);if(ot(a))return[];var s=e.name,l=Vt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Gn.LEFT_RECURSION,ruleName:s});var u=Nc(a,i.concat([e])),p=ue(u,function(g){var m=An(i);return m.push(g),t_(e,g,n,m)});return r.concat(Ln(p))}function ny(e){var t=[];if(ot(e))return t;var n=Ai(e);if(n instanceof rn)t.push(n.referencedRule);else if(n instanceof Jt||n instanceof on||n instanceof Rn||n instanceof Fn||n instanceof Sn||n instanceof Nt)t=t.concat(ny(n.definition));else if(n instanceof Pn)t=Ln(ue(n.definition,function(s){return ny(s.definition)}));else if(!(n instanceof mt))throw Error("non exhaustive match");var i=Xl(n),r=e.length>1;if(i&&r){var a=wn(e);return t.concat(ny(a))}else return t}function a6(e,t){var n=new tS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){var l=ds(s.definition),u=ue(l,function(p,g){var m=ey([p],[],null,1);return ot(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Gn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(Aa(u))},[]);return r}function s6(e,t,n){var i=new tS;e.accept(i);var r=i.alternations;r=ba(r,function(s){return s.ignoreAmbiguities===!0});var a=un(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=sp(u,e,p,l),m=u6(g,l,e,n),y=p6(g,l,e,n);return s.concat(m,y)},[]);return a}function l6(e,t){var n=new tS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Gn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function f6(e,t,n){var i=[];return ye(e,function(r){var a=new c6;r.accept(a);var s=a.allProductions;ye(s,function(l){var u=HD(l),p=l.maxLookahead||t,g=l.idx,m=cp(g,r,u,p),y=m[0];if(ot(Ln(y))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Gn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function u6(e,t,n,i){var r=[],a=un(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ye(u,function(g){var m=[p];ye(e,function(y,A){p!==A&&ty(y,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!ty(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=ue(a,function(l){var u=ue(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Gn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function p6(e,t,n,i){var r=[],a=un(e,function(s,l,u){var p=ue(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ye(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=G1(a,function(y){return t.definition[y.idx].ignoreAmbiguities!==!0&&y.idx<u&&zD(y.path,p)}),m=ue(g,function(y){var A=[y.idx+1,u+1],b=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:y.path});return{message:O,type:Gn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:A}});r=r.concat(m)}}),r}function d6(e,t,n){var i=[],r=ue(t,function(a){return a.name});return ye(e,function(a){var s=a.name;if(Vt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Gn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var eS,r6,tS,c6,nS=Qe(()=>{Tt();Tt();vr();Ql();lp();ap();wi();Kl();eS=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(JD,"validateGrammar");o(n6,"validateDuplicateProductions");o(i6,"identifyProductionForDuplicates");o(ZD,"getExtraProductionArgument");r6=function(e){eS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t}(Wr);o(o6,"validateRuleDoesNotAlreadyExist");o(e_,"validateRuleIsOverridden");o(t_,"validateNoLeftRecursion");o(ny,"getFirstNoneTerminal");tS=function(e){eS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}(Wr);o(a6,"validateEmptyOrAlternative");o(s6,"validateAmbiguousAlternationAlternatives");c6=function(e){eS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t}(Wr);o(l6,"validateTooManyAlts");o(f6,"validateSomeNonEmptyLookaheadPath");o(u6,"checkAlternativesAmbiguities");o(p6,"checkPrefixAlternativesAmbiguities");o(d6,"checkTerminalAndNoneTerminalsNameSpace")});function iy(e){e=Yu(e,{errMsgProvider:Yh});var t={};return ye(e.rules,function(n){t[n.name]=n}),wD(t,e.errMsgProvider)}function ry(e){return e=Yu(e,{errMsgProvider:vs}),JD(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function n_(e){ye(e.rules,function(t){var n=new QA;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,a){r.idx=a+1})})})}var iS=Qe(()=>{Tt();MD();nS();op();Ql();o(iy,"resolveGrammar");o(ry,"validateGrammar");o(n_,"assignOccurrenceIndices")});function Ca(e){return Vt(s_,e.name)}var fp,i_,r_,o_,a_,s_,oy,ql,ay,sy,cy,zl=Qe(()=>{Tt();fp=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),i_="MismatchedTokenException",r_="NoViableAltException",o_="EarlyExitException",a_="NotAllInputParsedException",s_=[i_,r_,o_,a_];Object.freeze(s_);o(Ca,"isRecognitionException");oy=function(e){fp(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t}(Error),ql=function(e){fp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=i_,a}return o(t,"MismatchedTokenException"),t}(oy),ay=function(e){fp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=r_,a}return o(t,"NoViableAltException"),t}(oy),sy=function(e){fp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=a_,r}return o(t,"NotAllInputParsedException"),t}(oy),cy=function(e){fp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=o_,a}return o(t,"EarlyExitException"),t}(oy)});function c_(e){this.name=oS,this.message=e}function g6(e,t,n,i,r,a,s){var l=this.getKeyForAutomaticLookahead(i,r),u=this.firstAfterRepMap[l];if(u===void 0){var p=this.getCurrRuleFullName(),g=this.getGAstProductions()[p],m=new a(g,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var y=u.token,A=u.occurrence,b=u.isEndOfRule;this.RULE_STACK.length===1&&b&&y===void 0&&(y=Gr,A=1),this.shouldInRepetitionRecoveryBeTried(y,A,s)&&this.tryInRepetitionRecovery(e,t,n,y)}var rS,oS,l_,aS=Qe(()=>{ys();Tt();zl();zA();vr();rS={},oS="InRuleRecoveryException";o(c_,"InRuleRecoveryException");c_.prototype=Error.prototype;l_=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=xe(t,"recoveryEnabled")?t.recoveryEnabled:Yi.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=g6)},e.prototype.getTokenToInsert=function(t){var n=hs(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,g=this.LA(1),m=this.LA(1),y=o(function(){var A=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:A,ruleName:a.getCurrRuleFullName()}),O=new ql(b,g,a.LA(0));O.resyncedTokens=ds(u),a.SAVE_ERROR(O)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){y();return}else if(i.call(this)){y(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,u));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new c_("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||ot(n))return!1;var r=this.LA(1),a=Ea(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return Vt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Vt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return rS;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return ue(n,function(r,a){return a===0?rS:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=ue(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Ln(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===rS)return[Gr];var n=t.ruleName+t.idxInCallingRule+zh+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Gr)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return ds(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=An(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return ue(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(g6,"attemptInRepetitionRecovery")});function uy(e,t,n){return n|t|e}var f_,Go,m6,ly,fy,up,pp,dp,Yl,Iae,py=Qe(()=>{f_=4,Go=8,m6=8,ly=1<<Go,fy=2<<Go,up=3<<Go,pp=4<<Go,dp=5<<Go,Yl=6<<Go;o(uy,"getKeyForAutomaticLookahead");Iae=32-m6});var u_,p_=Qe(()=>{lp();Tt();vr();py();Ql();u_=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=xe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:Yi.dynamicTokensEnabled,this.maxLookahead=xe(t,"maxLookahead")?t.maxLookahead:Yi.maxLookahead,this.lookAheadFuncsCache=kA()?new Map:[],kA()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;ye(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=DD(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;ye(a,function(m){var y=m.idx===0?"":m.idx;n.TRACE_INIT(""+yr(m)+y,function(){var A=GD(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=uy(n.fullRuleNameToShort[i.name],ly,m.idx);n.setLaFuncCache(b,A)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,up,wt.REPETITION,m.maxLookahead,yr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,fy,wt.OPTION,m.maxLookahead,yr(m))}),ye(u,function(m){n.computeLookaheadFunc(i,m.idx,pp,wt.REPETITION_MANDATORY,m.maxLookahead,yr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,Yl,wt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,yr(m))}),ye(g,function(m){n.computeLookaheadFunc(i,m.idx,dp,wt.REPETITION_WITH_SEPARATOR,m.maxLookahead,yr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=WD(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=uy(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return XD(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return KD(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return uy(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e}()});function sS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function cS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function d_(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function g_(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var m_=Qe(()=>{o(sS,"setNodeLocationOnlyOffset");o(cS,"setNodeLocationFull");o(d_,"addTerminalToCst");o(g_,"addNoneTerminalToCst")});function y_(e){return gp(e.constructor)}function gp(e){var t=e.name;return t||"anonymous"}function lS(e,t){var n=Object.getOwnPropertyDescriptor(e,h_);return Si(n)||n.configurable?(Object.defineProperty(e,h_,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var h_,fS=Qe(()=>{Tt();o(y_,"classNameFromInstance");h_="name";o(gp,"functionName");o(lS,"defineNameProp")});function h6(e,t){for(var n=_i(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function v_(e,t){var n=o(function(){},"derivedConstructor");lS(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(ai(r)&&(r=r[0]),!Si(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=y6(this,t);if(!ot(r)){var a=ue(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+gp(this.constructor)+`>:
164
+ see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof hr?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function wD(e,t){var n=new Y7(e,t);return n.resolveRefs(),n.errors}var z7,Y7,MD=Qe(()=>{vr();Tt();Kl();z7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(wD,"resolveGrammar");Y7=function(e){z7(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ye(Vn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Gn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Wr)});function Zh(e,t,n){n===void 0&&(n=[]),n=An(n);var i=[],r=0;function a(p){return p.concat(wn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=Zh(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Jt)return s(l.definition);if(l instanceof rn)return s(l.definition);if(l instanceof on)i=s(l.definition);else if(l instanceof Rn){var u=l.definition.concat([new Nt({definition:l.definition})]);return s(u)}else if(l instanceof Fn){var u=[new Jt({definition:l.definition}),new Nt({definition:[new mt({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof Sn){var u=l.definition.concat([new Nt({definition:[new mt({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Nt){var u=l.definition.concat([new Nt({definition:l.definition})]);i=s(u)}else{if(l instanceof Pn)return ye(l.definition,function(p){ot(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof mt)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:wn(e,r)}),i}function ey(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!ot(m);){var y=m.pop();if(y===s){l&&Rh(m).idx<=p&&m.pop();continue}var A=y.def,b=y.idx,O=y.ruleStack,D=y.occurrenceStack;if(!ot(A)){var j=A[0];if(j===r){var G={idx:b,def:wn(A),ruleStack:ds(O),occurrenceStack:ds(D)};m.push(G)}else if(j instanceof mt)if(b<u-1){var B=b+1,ae=t[B];if(n(ae,j.terminalType)){var G={idx:B,def:wn(A),ruleStack:O,occurrenceStack:D};m.push(G)}}else if(b===u-1)g.push({nextTokenType:j.terminalType,nextTokenOccurrence:j.idx,ruleStack:O,occurrenceStack:D}),l=!0;else throw Error("non exhaustive match");else if(j instanceof rn){var Z=An(O);Z.push(j.nonTerminalName);var re=An(D);re.push(j.idx);var G={idx:b,def:j.definition.concat(a,wn(A)),ruleStack:Z,occurrenceStack:re};m.push(G)}else if(j instanceof on){var Se={idx:b,def:wn(A),ruleStack:O,occurrenceStack:D};m.push(Se),m.push(s);var _={idx:b,def:j.definition.concat(wn(A)),ruleStack:O,occurrenceStack:D};m.push(_)}else if(j instanceof Rn){var ft=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([ft],wn(A)),G={idx:b,def:yt,ruleStack:O,occurrenceStack:D};m.push(G)}else if(j instanceof Fn){var Ue=new mt({terminalType:j.separator}),ft=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([ft],wn(A)),G={idx:b,def:yt,ruleStack:O,occurrenceStack:D};m.push(G)}else if(j instanceof Sn){var Se={idx:b,def:wn(A),ruleStack:O,occurrenceStack:D};m.push(Se),m.push(s);var Ue=new mt({terminalType:j.separator}),an=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([an],wn(A)),_={idx:b,def:yt,ruleStack:O,occurrenceStack:D};m.push(_)}else if(j instanceof Nt){var Se={idx:b,def:wn(A),ruleStack:O,occurrenceStack:D};m.push(Se),m.push(s);var an=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([an],wn(A)),_={idx:b,def:yt,ruleStack:O,occurrenceStack:D};m.push(_)}else if(j instanceof Pn)for(var Wn=j.definition.length-1;Wn>=0;Wn--){var en=j.definition[Wn],Lt={idx:b,def:en.definition.concat(wn(A)),ruleStack:O,occurrenceStack:D};m.push(Lt),m.push(s)}else if(j instanceof Jt)m.push({idx:b,def:j.definition.concat(wn(A)),ruleStack:O,occurrenceStack:D});else if(j instanceof hr)m.push(Z7(j,b,O,D));else throw Error("non exhaustive match")}}return g}function Z7(e,t,n,i){var r=An(n);r.push(e.name);var a=An(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var Dc,J7,kD,Jh,jD,YA,UD,JA,ap=Qe(()=>{Qh();Tt();qA();wi();Dc=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),J7=function(e){Dc(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=An(this.path.ruleStack).reverse(),this.occurrenceStack=An(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){ot(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Rc),kD=function(e){Dc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new Jt({definition:a});this.possibleTokTypes=Fc(s),this.found=!0}},t}(J7),Jh=function(e){Dc(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Rc),jD=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(Jh),YA=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(Jh),UD=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(Jh),JA=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(Jh);o(Zh,"possiblePathsFrom");o(ey,"nextPossibleTokensAfter");o(Z7,"expandTopLevelRule")});function HD(e){if(e instanceof on)return wt.OPTION;if(e instanceof Nt)return wt.REPETITION;if(e instanceof Rn)return wt.REPETITION_MANDATORY;if(e instanceof Fn)return wt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Sn)return wt.REPETITION_WITH_SEPARATOR;if(e instanceof Pn)return wt.ALTERNATION;throw Error("non exhaustive match")}function GD(e,t,n,i,r,a){var s=sp(e,t,n),l=YD(s)?Hl:Lc;return a(s,i,l,r)}function WD(e,t,n,i,r,a){var s=cp(e,t,r,n),l=YD(s)?Hl:Lc;return a(s[0],l,i)}function KD(e,t,n,i){var r=e.length,a=si(e,function(u){return si(u,function(p){return p.length===1})});if(t)return function(u){for(var p=ue(u,function(B){return B.GATE}),g=0;g<r;g++){var m=e[g],y=m.length,A=p[g];if(!(A!==void 0&&A.call(this)===!1))e:for(var b=0;b<y;b++){for(var O=m[b],D=O.length,j=0;j<D;j++){var G=this.LA(j+1);if(n(G,O[j])===!1)continue e}return g}}};if(a&&!i){var s=ue(e,function(u){return Ln(u)}),l=un(s,function(u,p,g){return ye(p,function(m){xe(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ye(m.categoryMatches,function(y){xe(u,y)||(u[y]=g)})}),u},[]);return function(){var u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(var u=0;u<r;u++){var p=e[u],g=p.length;e:for(var m=0;m<g;m++){for(var y=p[m],A=y.length,b=0;b<A;b++){var O=this.LA(b+1);if(n(O,y[b])===!1)continue e}return u}}}}function XD(e,t,n){var i=si(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Ln(e);if(a.length===1&&ot(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=un(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,ye(g.categoryMatches,function(y){p[y]=!0}),p},[]);return function(){var p=this.LA(1);return u[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var g=e[p],m=g.length,y=0;y<m;y++){var A=this.LA(y+1);if(t(A,g[y])===!1)continue e}return!0}return!1}}function $D(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function ZA(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var u="_"+i.categoryMatches[l];r.push(s+u)}}t=r}return t}function tQ(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function qD(e,t){for(var n=ue(e,function(g){return Zh([g],1)}),i=$D(n.length),r=ue(n,function(g){var m={};return ye(g,function(y){var A=ZA(y.partialPath);ye(A,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=$D(l.length);for(var u=o(function(g){for(var m=l[g],y=0;y<m.length;y++){var A=m[y].partialPath,b=m[y].suffixDef,O=ZA(A),D=tQ(r,O,g);if(D||ot(b)||A.length===t){var j=i[g];if(ty(j,A)===!1){j.push(A);for(var G=0;G<O.length;G++){var B=O[G];r[g][B]=!0}}}else{var ae=Zh(b,s+1,A);a[g]=a[g].concat(ae),ye(ae,function(Z){var re=ZA(Z.partialPath);ye(re,function(Se){r[g][Se]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function sp(e,t,n,i){var r=new QD(e,wt.ALTERNATION,i);return t.accept(r),qD(r.result,n)}function cp(e,t,n,i){var r=new QD(e,n);t.accept(r);var a=r.result,s=new eQ(t,e,n),l=s.startWalking(),u=new Jt({definition:a}),p=new Jt({definition:l});return qD([u,p],i)}function ty(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function zD(e,t){return e.length<t.length&&si(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function YD(e){return si(e,function(t){return si(t,function(n){return si(n,function(i){return ot(i.categoryMatches)})})})}var BD,wt,eQ,QD,lp=Qe(()=>{Tt();ap();Qh();Gl();wi();Kl();BD=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(wt||(wt={}));o(HD,"getProdType");o(GD,"buildLookaheadFuncForOr");o(WD,"buildLookaheadFuncForOptionalProd");o(KD,"buildAlternativesLookAheadFunc");o(XD,"buildSingleAlternativeLookaheadFunction");eQ=function(e){BD(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,wt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,wt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Rc),QD=function(e){BD(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,wt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,wt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,wt.ALTERNATION)},t}(Wr);o($D,"initializeArrayOfArrays");o(ZA,"pathToHashKeys");o(tQ,"isUniquePrefixHash");o(qD,"lookAheadSequenceFromAlternatives");o(sp,"getLookaheadPathsForOr");o(cp,"getLookaheadPathsForOptionalProd");o(ty,"containsPath");o(zD,"isStrictPrefixOfPath");o(YD,"areTokenCategoriesNotUsed")});function JD(e,t,n,i,r){var a=ue(e,function(A){return nQ(A,i)}),s=ue(e,function(A){return t_(A,A,i)}),l=[],u=[],p=[];si(s,ot)&&(l=ue(e,function(A){return aQ(A,i)}),u=ue(e,function(A){return sQ(A,t,i)}),p=fQ(e,t,i));var g=dQ(e,n,i),m=ue(e,function(A){return lQ(A,i)}),y=ue(e,function(A){return oQ(A,e,r,i)});return Ln(a.concat(p,s,l,u,g,m,y))}function nQ(e,t){var n=new rQ;e.accept(n);var i=n.allProductions,r=K1(i,iQ),a=gr(r,function(l){return l.length>1}),s=ue(Vn(a),function(l){var u=Ai(l),p=t.buildDuplicateFoundError(e,l),g=yr(u),m={message:p,type:Gn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},y=ZD(u);return y&&(m.parameter=y),m});return s}function iQ(e){return yr(e)+"_#_"+e.idx+"_#_"+ZD(e)}function ZD(e){return e instanceof mt?e.terminalType.name:e instanceof rn?e.nonTerminalName:""}function oQ(e,t,n,i){var r=[],a=un(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Gn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function e_(e,t,n){var i=[],r;return Vt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Gn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function t_(e,t,n,i){i===void 0&&(i=[]);var r=[],a=ny(t.definition);if(ot(a))return[];var s=e.name,l=Vt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Gn.LEFT_RECURSION,ruleName:s});var u=Nc(a,i.concat([e])),p=ue(u,function(g){var m=An(i);return m.push(g),t_(e,g,n,m)});return r.concat(Ln(p))}function ny(e){var t=[];if(ot(e))return t;var n=Ai(e);if(n instanceof rn)t.push(n.referencedRule);else if(n instanceof Jt||n instanceof on||n instanceof Rn||n instanceof Fn||n instanceof Sn||n instanceof Nt)t=t.concat(ny(n.definition));else if(n instanceof Pn)t=Ln(ue(n.definition,function(s){return ny(s.definition)}));else if(!(n instanceof mt))throw Error("non exhaustive match");var i=Xl(n),r=e.length>1;if(i&&r){var a=wn(e);return t.concat(ny(a))}else return t}function aQ(e,t){var n=new tS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){var l=ds(s.definition),u=ue(l,function(p,g){var m=ey([p],[],null,1);return ot(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Gn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(Aa(u))},[]);return r}function sQ(e,t,n){var i=new tS;e.accept(i);var r=i.alternations;r=ba(r,function(s){return s.ignoreAmbiguities===!0});var a=un(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=sp(u,e,p,l),m=uQ(g,l,e,n),y=pQ(g,l,e,n);return s.concat(m,y)},[]);return a}function lQ(e,t){var n=new tS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Gn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function fQ(e,t,n){var i=[];return ye(e,function(r){var a=new cQ;r.accept(a);var s=a.allProductions;ye(s,function(l){var u=HD(l),p=l.maxLookahead||t,g=l.idx,m=cp(g,r,u,p),y=m[0];if(ot(Ln(y))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Gn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function uQ(e,t,n,i){var r=[],a=un(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ye(u,function(g){var m=[p];ye(e,function(y,A){p!==A&&ty(y,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!ty(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=ue(a,function(l){var u=ue(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Gn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function pQ(e,t,n,i){var r=[],a=un(e,function(s,l,u){var p=ue(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ye(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=G1(a,function(y){return t.definition[y.idx].ignoreAmbiguities!==!0&&y.idx<u&&zD(y.path,p)}),m=ue(g,function(y){var A=[y.idx+1,u+1],b=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:y.path});return{message:O,type:Gn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:A}});r=r.concat(m)}}),r}function dQ(e,t,n){var i=[],r=ue(t,function(a){return a.name});return ye(e,function(a){var s=a.name;if(Vt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Gn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var eS,rQ,tS,cQ,nS=Qe(()=>{Tt();Tt();vr();Ql();lp();ap();wi();Kl();eS=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(JD,"validateGrammar");o(nQ,"validateDuplicateProductions");o(iQ,"identifyProductionForDuplicates");o(ZD,"getExtraProductionArgument");rQ=function(e){eS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t}(Wr);o(oQ,"validateRuleDoesNotAlreadyExist");o(e_,"validateRuleIsOverridden");o(t_,"validateNoLeftRecursion");o(ny,"getFirstNoneTerminal");tS=function(e){eS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}(Wr);o(aQ,"validateEmptyOrAlternative");o(sQ,"validateAmbiguousAlternationAlternatives");cQ=function(e){eS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t}(Wr);o(lQ,"validateTooManyAlts");o(fQ,"validateSomeNonEmptyLookaheadPath");o(uQ,"checkAlternativesAmbiguities");o(pQ,"checkPrefixAlternativesAmbiguities");o(dQ,"checkTerminalAndNoneTerminalsNameSpace")});function iy(e){e=Yu(e,{errMsgProvider:Yh});var t={};return ye(e.rules,function(n){t[n.name]=n}),wD(t,e.errMsgProvider)}function ry(e){return e=Yu(e,{errMsgProvider:vs}),JD(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function n_(e){ye(e.rules,function(t){var n=new QA;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,a){r.idx=a+1})})})}var iS=Qe(()=>{Tt();MD();nS();op();Ql();o(iy,"resolveGrammar");o(ry,"validateGrammar");o(n_,"assignOccurrenceIndices")});function Ca(e){return Vt(s_,e.name)}var fp,i_,r_,o_,a_,s_,oy,ql,ay,sy,cy,zl=Qe(()=>{Tt();fp=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),i_="MismatchedTokenException",r_="NoViableAltException",o_="EarlyExitException",a_="NotAllInputParsedException",s_=[i_,r_,o_,a_];Object.freeze(s_);o(Ca,"isRecognitionException");oy=function(e){fp(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t}(Error),ql=function(e){fp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=i_,a}return o(t,"MismatchedTokenException"),t}(oy),ay=function(e){fp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=r_,a}return o(t,"NoViableAltException"),t}(oy),sy=function(e){fp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=a_,r}return o(t,"NotAllInputParsedException"),t}(oy),cy=function(e){fp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=o_,a}return o(t,"EarlyExitException"),t}(oy)});function c_(e){this.name=oS,this.message=e}function gQ(e,t,n,i,r,a,s){var l=this.getKeyForAutomaticLookahead(i,r),u=this.firstAfterRepMap[l];if(u===void 0){var p=this.getCurrRuleFullName(),g=this.getGAstProductions()[p],m=new a(g,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var y=u.token,A=u.occurrence,b=u.isEndOfRule;this.RULE_STACK.length===1&&b&&y===void 0&&(y=Gr,A=1),this.shouldInRepetitionRecoveryBeTried(y,A,s)&&this.tryInRepetitionRecovery(e,t,n,y)}var rS,oS,l_,aS=Qe(()=>{ys();Tt();zl();zA();vr();rS={},oS="InRuleRecoveryException";o(c_,"InRuleRecoveryException");c_.prototype=Error.prototype;l_=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=xe(t,"recoveryEnabled")?t.recoveryEnabled:Yi.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=gQ)},e.prototype.getTokenToInsert=function(t){var n=hs(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,g=this.LA(1),m=this.LA(1),y=o(function(){var A=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:A,ruleName:a.getCurrRuleFullName()}),O=new ql(b,g,a.LA(0));O.resyncedTokens=ds(u),a.SAVE_ERROR(O)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){y();return}else if(i.call(this)){y(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,u));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new c_("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||ot(n))return!1;var r=this.LA(1),a=Ea(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return Vt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Vt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return rS;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return ue(n,function(r,a){return a===0?rS:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=ue(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Ln(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===rS)return[Gr];var n=t.ruleName+t.idxInCallingRule+zh+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Gr)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return ds(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=An(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return ue(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(gQ,"attemptInRepetitionRecovery")});function uy(e,t,n){return n|t|e}var f_,Go,mQ,ly,fy,up,pp,dp,Yl,Iae,py=Qe(()=>{f_=4,Go=8,mQ=8,ly=1<<Go,fy=2<<Go,up=3<<Go,pp=4<<Go,dp=5<<Go,Yl=6<<Go;o(uy,"getKeyForAutomaticLookahead");Iae=32-mQ});var u_,p_=Qe(()=>{lp();Tt();vr();py();Ql();u_=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=xe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:Yi.dynamicTokensEnabled,this.maxLookahead=xe(t,"maxLookahead")?t.maxLookahead:Yi.maxLookahead,this.lookAheadFuncsCache=kA()?new Map:[],kA()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;ye(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=DD(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;ye(a,function(m){var y=m.idx===0?"":m.idx;n.TRACE_INIT(""+yr(m)+y,function(){var A=GD(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=uy(n.fullRuleNameToShort[i.name],ly,m.idx);n.setLaFuncCache(b,A)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,up,wt.REPETITION,m.maxLookahead,yr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,fy,wt.OPTION,m.maxLookahead,yr(m))}),ye(u,function(m){n.computeLookaheadFunc(i,m.idx,pp,wt.REPETITION_MANDATORY,m.maxLookahead,yr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,Yl,wt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,yr(m))}),ye(g,function(m){n.computeLookaheadFunc(i,m.idx,dp,wt.REPETITION_WITH_SEPARATOR,m.maxLookahead,yr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=WD(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=uy(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return XD(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return KD(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return uy(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e}()});function sS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function cS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function d_(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function g_(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var m_=Qe(()=>{o(sS,"setNodeLocationOnlyOffset");o(cS,"setNodeLocationFull");o(d_,"addTerminalToCst");o(g_,"addNoneTerminalToCst")});function y_(e){return gp(e.constructor)}function gp(e){var t=e.name;return t||"anonymous"}function lS(e,t){var n=Object.getOwnPropertyDescriptor(e,h_);return Si(n)||n.configurable?(Object.defineProperty(e,h_,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var h_,fS=Qe(()=>{Tt();o(y_,"classNameFromInstance");h_="name";o(gp,"functionName");o(lS,"defineNameProp")});function hQ(e,t){for(var n=_i(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function v_(e,t){var n=o(function(){},"derivedConstructor");lS(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(ai(r)&&(r=r[0]),!Si(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=yQ(this,t);if(!ot(r)){var a=ue(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+gp(this.constructor)+`>:
165
165
  `+(""+a.join(`
166
166
 
167
167
  `).replace(/\n/g,`
168
- `)))}},"validateVisitor")};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function T_(e,t,n){var i=o(function(){},"derivedConstructor");lS(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return ye(t,function(a){r[a]=h6}),i.prototype=r,i.prototype.constructor=i,i}function y6(e,t){var n=v6(e,t),i=b6(e,t);return n.concat(i)}function v6(e,t){var n=ue(t,function(i){if(!uo(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+gp(e.constructor)+" CST Visitor.",type:dy.MISSING_METHOD,methodName:i}});return Aa(n)}function b6(e,t){var n=[];for(var i in e)uo(e[i])&&!Vt(T6,i)&&!Vt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+gp(e.constructor)+` CST Visitor
168
+ `)))}},"validateVisitor")};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function T_(e,t,n){var i=o(function(){},"derivedConstructor");lS(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return ye(t,function(a){r[a]=hQ}),i.prototype=r,i.prototype.constructor=i,i}function yQ(e,t){var n=vQ(e,t),i=bQ(e,t);return n.concat(i)}function vQ(e,t){var n=ue(t,function(i){if(!uo(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+gp(e.constructor)+" CST Visitor.",type:dy.MISSING_METHOD,methodName:i}});return Aa(n)}function bQ(e,t){var n=[];for(var i in e)uo(e[i])&&!Vt(TQ,i)&&!Vt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+gp(e.constructor)+` CST Visitor
169
169
  There is no Grammar Rule corresponding to this method's name.
170
- `,type:dy.REDUNDANT_METHOD,methodName:i});return n}var dy,T6,b_=Qe(()=>{Tt();fS();o(h6,"defaultVisit");o(v_,"createBaseSemanticVisitorConstructor");o(T_,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(dy||(dy={}));o(y6,"validateVisitor");o(v6,"validateMissingCstMethods");T6=["constructor","visit","validateVisitor"];o(b6,"validateRedundantMethods")});var E_,A_=Qe(()=>{m_();Tt();b_();vr();E_=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=xe(t,"nodeLocationTracking")?t.nodeLocationTracking:Yi.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Mn,this.cstFinallyStateUpdate=Mn,this.cstPostTerminal=Mn,this.cstPostNonTerminal=Mn,this.cstPostRule=Mn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=cS,this.setNodeLocationFromNode=cS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=sS,this.setNodeLocationFromNode=sS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=Mn,this.setInitialNodeLocation=Mn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];d_(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];g_(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Si(this.baseCstVisitorConstructor)){var t=v_(this.className,_i(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Si(this.baseCstVisitorWithDefaultsConstructor)){var t=T_(this.className,_i(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e}()});var S_,P_=Qe(()=>{vr();S_=function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Jl},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?Jl:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()});var C_,x_=Qe(()=>{Tt();zl();vr();op();nS();wi();C_=function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=Zl),Vt(this.definedRulesNames,t)){var r=vs.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Gn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=Zl);var r=[];r=r.concat(e_(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var a=this.defineRule(t,n,i);return this[t]=a,a},e.prototype.BACKTRACK=function(t,n){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return t.apply(this,n),!0}catch(r){if(Ca(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Xh(Vn(this.gastProductionsCache))},e}()});var I_,O_=Qe(()=>{Tt();py();zl();lp();ap();vr();aS();ys();Gl();fS();I_=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=y_(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Hl,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},xe(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
170
+ `,type:dy.REDUNDANT_METHOD,methodName:i});return n}var dy,TQ,b_=Qe(()=>{Tt();fS();o(hQ,"defaultVisit");o(v_,"createBaseSemanticVisitorConstructor");o(T_,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(dy||(dy={}));o(yQ,"validateVisitor");o(vQ,"validateMissingCstMethods");TQ=["constructor","visit","validateVisitor"];o(bQ,"validateRedundantMethods")});var E_,A_=Qe(()=>{m_();Tt();b_();vr();E_=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=xe(t,"nodeLocationTracking")?t.nodeLocationTracking:Yi.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Mn,this.cstFinallyStateUpdate=Mn,this.cstPostTerminal=Mn,this.cstPostNonTerminal=Mn,this.cstPostRule=Mn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=cS,this.setNodeLocationFromNode=cS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=sS,this.setNodeLocationFromNode=sS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=Mn,this.setInitialNodeLocation=Mn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];d_(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];g_(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Si(this.baseCstVisitorConstructor)){var t=v_(this.className,_i(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Si(this.baseCstVisitorWithDefaultsConstructor)){var t=T_(this.className,_i(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e}()});var S_,P_=Qe(()=>{vr();S_=function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Jl},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?Jl:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()});var C_,x_=Qe(()=>{Tt();zl();vr();op();nS();wi();C_=function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=Zl),Vt(this.definedRulesNames,t)){var r=vs.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Gn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=Zl);var r=[];r=r.concat(e_(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var a=this.defineRule(t,n,i);return this[t]=a,a},e.prototype.BACKTRACK=function(t,n){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return t.apply(this,n),!0}catch(r){if(Ca(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Xh(Vn(this.gastProductionsCache))},e}()});var I_,O_=Qe(()=>{Tt();py();zl();lp();ap();vr();aS();ys();Gl();fS();I_=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=y_(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Hl,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},xe(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
171
171
  See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0
172
172
  For Further details.`);if(ai(t)){if(ot(t))throw Error(`A Token Vocabulary cannot be empty.
173
173
  Note that the first argument for the parser constructor
174
174
  is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
175
175
  See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0
176
176
  For Further details.`)}if(ai(t))this.tokensMap=un(t,function(s,l){return s[l.name]=l,s},{});else if(xe(t,"modes")&&si(Ln(Vn(t.modes)),TD)){var i=Ln(Vn(t.modes)),r=zu(i);this.tokensMap=un(r,function(s,l){return s[l.name]=l,s},{})}else if(Fh(t))this.tokensMap=gs(t);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Gr;var a=si(Vn(t),function(s){return ot(s.categoryMatches)});this.tokenMatcher=a?Hl:Lc,Sa(Vn(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
177
- Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=xe(i,"resyncEnabled")?i.resyncEnabled:Zl.resyncEnabled,a=xe(i,"recoveryValueFunc")?i.recoveryValueFunc:Zl.recoveryValueFunc,s=this.ruleShortNameIdx<<f_+Go;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(g){try{if(this.outputCst===!0){n.apply(this,g);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,g)}catch(y){return this.invokeRuleCatch(y,r,a)}finally{this.ruleFinallyStateUpdate()}}o(l,"invokeRuleWithTry");var u;u=o(function(g,m){return g===void 0&&(g=0),this.ruleInvocationStateUpdate(s,t,g),l.call(this,m)},"wrappedGrammarRule");var p="ruleName";return u[p]=t,u.originalGrammarAction=n,u},e.prototype.invokeRuleCatch=function(t,n,i){var r=this.RULE_STACK.length===1,a=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Ca(t)){var s=t;if(a){var l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return i();else{if(this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(r)return this.moveToTerminatedState(),i();throw s}}else throw t},e.prototype.optionInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(fy,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(a.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(pp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,pp,t,UD)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Yl,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,JA],u,Yl,t,JA)}else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(up,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],a,up,t,jD,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(dp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,YA],u,dp,t,YA)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,Yl,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(ly,n),r=ai(t)?t:t.DEF,a=this.getLaFuncFromCache(i),s=a.call(this,r);if(s!==void 0){var l=r[s];return l.ALT.call(this)}this.raiseNoAltException(n,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new sy(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var a=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,a),this.cstPostNonTerminal(r,i!==void 0&&i.LABEL!==void 0?i.LABEL:t.ruleName),r}catch(s){this.subruleInternalError(s,i,t.ruleName)}},e.prototype.subruleInternalError=function(t,n,i){throw Ca(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new ql(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===oS?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=An(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),Gr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var N_,L_=Qe(()=>{zl();Tt();lp();vr();N_=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=xe(t,"errorMessageProvider")?t.errorMessageProvider:Yi.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Ca(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:An(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:o(function(){return An(this._errors)},"get"),set:o(function(t){this._errors=t},"set"),enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),a=this.getGAstProductions()[r],s=cp(t,a,n,this.maxLookahead),l=s[0],u=[],p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));var g=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new cy(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=sp(t,r,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var u=this.LA(0),p=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new ay(p,this.LA(1),u))},e}()});var R_,F_=Qe(()=>{ap();Tt();R_=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Si(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return ey([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ai(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new kD(r,t).startWalking();return a},e}()});function mp(e,t,n,i){i===void 0&&(i=!1),gy(n);var r=Zu(this.recordingProdStack),a=uo(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),xe(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),my}function A6(e,t){var n=this;gy(t);var i=Zu(this.recordingProdStack),r=ai(e)===!1,a=r===!1?e:e.DEF,s=new Pn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});xe(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Dh(a,function(u){return uo(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ye(a,function(u){var p=new Jt({definition:[]});s.definition.push(p),xe(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:xe(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),my}function V_(e){return e===0?"":""+e}function gy(e){if(e<0||e>__){var t=new Error("Invalid DSL Method idx value: <"+e+`>
178
- `+("Idx value must be a none negative value smaller than "+(__+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var my,D_,__,w_,M_,E6,k_,j_=Qe(()=>{Tt();wi();tp();Gl();ys();vr();py();my={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(my);D_=!0,__=Math.pow(2,Go)-1,w_=ip({name:"RECORDING_PHASE_TOKEN",pattern:Vi.NA});Sa([w_]);M_=hs(w_,`This IToken indicates the Parser is in Recording Phase
179
- See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(M_);E6={name:`This CSTNode indicates the Parser is in Recording Phase
177
+ Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=xe(i,"resyncEnabled")?i.resyncEnabled:Zl.resyncEnabled,a=xe(i,"recoveryValueFunc")?i.recoveryValueFunc:Zl.recoveryValueFunc,s=this.ruleShortNameIdx<<f_+Go;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(g){try{if(this.outputCst===!0){n.apply(this,g);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,g)}catch(y){return this.invokeRuleCatch(y,r,a)}finally{this.ruleFinallyStateUpdate()}}o(l,"invokeRuleWithTry");var u;u=o(function(g,m){return g===void 0&&(g=0),this.ruleInvocationStateUpdate(s,t,g),l.call(this,m)},"wrappedGrammarRule");var p="ruleName";return u[p]=t,u.originalGrammarAction=n,u},e.prototype.invokeRuleCatch=function(t,n,i){var r=this.RULE_STACK.length===1,a=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Ca(t)){var s=t;if(a){var l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return i();else{if(this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(r)return this.moveToTerminatedState(),i();throw s}}else throw t},e.prototype.optionInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(fy,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(a.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(pp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,pp,t,UD)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Yl,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,JA],u,Yl,t,JA)}else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(up,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],a,up,t,jD,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(dp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,YA],u,dp,t,YA)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,Yl,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(ly,n),r=ai(t)?t:t.DEF,a=this.getLaFuncFromCache(i),s=a.call(this,r);if(s!==void 0){var l=r[s];return l.ALT.call(this)}this.raiseNoAltException(n,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new sy(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var a=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,a),this.cstPostNonTerminal(r,i!==void 0&&i.LABEL!==void 0?i.LABEL:t.ruleName),r}catch(s){this.subruleInternalError(s,i,t.ruleName)}},e.prototype.subruleInternalError=function(t,n,i){throw Ca(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new ql(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===oS?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=An(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),Gr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var N_,L_=Qe(()=>{zl();Tt();lp();vr();N_=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=xe(t,"errorMessageProvider")?t.errorMessageProvider:Yi.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Ca(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:An(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:o(function(){return An(this._errors)},"get"),set:o(function(t){this._errors=t},"set"),enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),a=this.getGAstProductions()[r],s=cp(t,a,n,this.maxLookahead),l=s[0],u=[],p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));var g=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new cy(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=sp(t,r,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var u=this.LA(0),p=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new ay(p,this.LA(1),u))},e}()});var R_,F_=Qe(()=>{ap();Tt();R_=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Si(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return ey([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ai(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new kD(r,t).startWalking();return a},e}()});function mp(e,t,n,i){i===void 0&&(i=!1),gy(n);var r=Zu(this.recordingProdStack),a=uo(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),xe(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),my}function AQ(e,t){var n=this;gy(t);var i=Zu(this.recordingProdStack),r=ai(e)===!1,a=r===!1?e:e.DEF,s=new Pn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});xe(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Dh(a,function(u){return uo(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ye(a,function(u){var p=new Jt({definition:[]});s.definition.push(p),xe(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:xe(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),my}function V_(e){return e===0?"":""+e}function gy(e){if(e<0||e>__){var t=new Error("Invalid DSL Method idx value: <"+e+`>
178
+ `+("Idx value must be a none negative value smaller than "+(__+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var my,D_,__,w_,M_,EQ,k_,j_=Qe(()=>{Tt();wi();tp();Gl();ys();vr();py();my={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(my);D_=!0,__=Math.pow(2,Go)-1,w_=ip({name:"RECORDING_PHASE_TOKEN",pattern:Vi.NA});Sa([w_]);M_=hs(w_,`This IToken indicates the Parser is in Recording Phase
179
+ See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(M_);EQ={name:`This CSTNode indicates the Parser is in Recording Phase
180
180
  See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,children:{}},k_=function(){function e(){}return o(e,"GastRecorder"),e.prototype.initGastRecorder=function(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var t=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var n=o(function(r){var a=r>0?r:"";t["CONSUME"+a]=function(s,l){return this.consumeInternalRecord(s,r,l)},t["SUBRULE"+a]=function(s,l){return this.subruleInternalRecord(s,r,l)},t["OPTION"+a]=function(s){return this.optionInternalRecord(s,r)},t["OR"+a]=function(s){return this.orInternalRecord(s,r)},t["MANY"+a]=function(s){this.manyInternalRecord(r,s)},t["MANY_SEP"+a]=function(s){this.manySepFirstInternalRecord(r,s)},t["AT_LEAST_ONE"+a]=function(s){this.atLeastOneInternalRecord(r,s)},t["AT_LEAST_ONE_SEP"+a]=function(s){this.atLeastOneSepFirstInternalRecord(r,s)}},"_loop_1"),i=0;i<10;i++)n(i);t.consume=function(r,a,s){return this.consumeInternalRecord(a,r,s)},t.subrule=function(r,a,s){return this.subruleInternalRecord(a,r,s)},t.option=function(r,a){return this.optionInternalRecord(a,r)},t.or=function(r,a){return this.orInternalRecord(a,r)},t.many=function(r,a){this.manyInternalRecord(r,a)},t.atLeastOne=function(r,a){this.atLeastOneInternalRecord(r,a)},t.ACTION=t.ACTION_RECORD,t.BACKTRACK=t.BACKTRACK_RECORD,t.LA=t.LA_RECORD})},e.prototype.disableRecording=function(){var t=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var n=0;n<10;n++){var i=n>0?n:"";delete t["CONSUME"+i],delete t["SUBRULE"+i],delete t["OPTION"+i],delete t["OR"+i],delete t["MANY"+i],delete t["MANY_SEP"+i],delete t["AT_LEAST_ONE"+i],delete t["AT_LEAST_ONE_SEP"+i]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})},e.prototype.ACTION_RECORD=function(t){},e.prototype.BACKTRACK_RECORD=function(t,n){return function(){return!0}},e.prototype.LA_RECORD=function(t){return Jl},e.prototype.topLevelRuleRecord=function(t,n){try{var i=new hr({definition:[],name:t});return i.name=t,this.recordingProdStack.push(i),n.call(this),this.recordingProdStack.pop(),i}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
181
181
  This error was thrown during the "grammar recording phase" For more info see:
182
- https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return mp.call(this,on,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){mp.call(this,Rn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){mp.call(this,Fn,n,t,D_)},e.prototype.manyInternalRecord=function(t,n){mp.call(this,Nt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){mp.call(this,Sn,n,t,D_)},e.prototype.orInternalRecord=function(t,n){return A6.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(gy(n),!t||xe(t,"ruleName")===!1){var r=new Error("<SUBRULE"+V_(n)+"> argument is invalid"+(" expecting a Parser method reference but got: <"+JSON.stringify(t)+">")+(`
183
- inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Zu(this.recordingProdStack),s=t.ruleName,l=new rn({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?E6:my},e.prototype.consumeInternalRecord=function(t,n,i){if(gy(n),!WA(t)){var r=new Error("<CONSUME"+V_(n)+"> argument is invalid"+(" expecting a TokenType reference but got: <"+JSON.stringify(t)+">")+(`
184
- inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Zu(this.recordingProdStack),s=new mt({idx:n,terminalType:t});return a.definition.push(s),M_},e}();o(mp,"recordProd");o(A6,"recordOrProd");o(V_,"getIdxSuffix");o(gy,"assertMethodIdxIsValid")});var U_,$_=Qe(()=>{Tt();vr();U_=function(){function e(){}return o(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(xe(t,"traceInitPerf")){var n=t.traceInitPerf,i=typeof n=="number";this.traceInitMaxIdent=i?n:1/0,this.traceInitPerf=i?n>0:n}else this.traceInitMaxIdent=0,this.traceInitPerf=Yi.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=wh(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e}()});function H_(e){return e===void 0&&(e=void 0),function(){return e}}var B_,Jl,Yi,Zl,Gn,uS,G_,W_,vr=Qe(()=>{Tt();VD();ys();op();iS();aS();p_();A_();P_();x_();O_();L_();F_();j_();$_();B_=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Jl=hs(Gr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Jl);Yi=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:rp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Zl=Object.freeze({recoveryValueFunc:o(function(){},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Gn||(Gn={}));o(H_,"EMPTY_ALT");uS=function(){function e(t,n){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(n),i.initLexerAdapter(),i.initLooksAhead(n),i.initRecognizerEngine(t,n),i.initRecoverable(n),i.initTreeBuilder(n),i.initContentAssist(),i.initGastRecorder(n),i.initPerformanceTracer(n),xe(n,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
182
+ https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return mp.call(this,on,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){mp.call(this,Rn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){mp.call(this,Fn,n,t,D_)},e.prototype.manyInternalRecord=function(t,n){mp.call(this,Nt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){mp.call(this,Sn,n,t,D_)},e.prototype.orInternalRecord=function(t,n){return AQ.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(gy(n),!t||xe(t,"ruleName")===!1){var r=new Error("<SUBRULE"+V_(n)+"> argument is invalid"+(" expecting a Parser method reference but got: <"+JSON.stringify(t)+">")+(`
183
+ inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Zu(this.recordingProdStack),s=t.ruleName,l=new rn({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?EQ:my},e.prototype.consumeInternalRecord=function(t,n,i){if(gy(n),!WA(t)){var r=new Error("<CONSUME"+V_(n)+"> argument is invalid"+(" expecting a TokenType reference but got: <"+JSON.stringify(t)+">")+(`
184
+ inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Zu(this.recordingProdStack),s=new mt({idx:n,terminalType:t});return a.definition.push(s),M_},e}();o(mp,"recordProd");o(AQ,"recordOrProd");o(V_,"getIdxSuffix");o(gy,"assertMethodIdxIsValid")});var U_,$_=Qe(()=>{Tt();vr();U_=function(){function e(){}return o(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(xe(t,"traceInitPerf")){var n=t.traceInitPerf,i=typeof n=="number";this.traceInitMaxIdent=i?n:1/0,this.traceInitPerf=i?n>0:n}else this.traceInitMaxIdent=0,this.traceInitPerf=Yi.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=wh(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e}()});function H_(e){return e===void 0&&(e=void 0),function(){return e}}var B_,Jl,Yi,Zl,Gn,uS,G_,W_,vr=Qe(()=>{Tt();VD();ys();op();iS();aS();p_();A_();P_();x_();O_();L_();F_();j_();$_();B_=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Jl=hs(Gr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Jl);Yi=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:rp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Zl=Object.freeze({recoveryValueFunc:o(function(){},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Gn||(Gn={}));o(H_,"EMPTY_ALT");uS=function(){function e(t,n){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(n),i.initLexerAdapter(),i.initLooksAhead(n),i.initRecognizerEngine(t,n),i.initRecoverable(n),i.initTreeBuilder(n),i.initContentAssist(),i.initGastRecorder(n),i.initPerformanceTracer(n),xe(n,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
185
185
  Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
186
186
  See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
187
187
  For further details.`);this.skipValidations=xe(n,"skipValidations")?n.skipValidations:Yi.skipValidations}return o(e,"Parser"),e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var n;t.selfAnalysisDone=!0;var i=t.className;t.TRACE_INIT("toFastProps",function(){Vh(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),ye(t.definedRulesNames,function(a){var s=t[a],l=s.originalGrammarAction,u=void 0;t.TRACE_INIT(a+" Rule",function(){u=t.topLevelRuleRecord(a,l)}),t.gastProductionsCache[a]=u})}finally{t.disableRecording()}});var r=[];if(t.TRACE_INIT("Grammar Resolving",function(){r=iy({rules:Vn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(ot(r)&&t.skipValidations===!1){var a=ry({rules:Vn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Vn(t.tokensMap),errMsgProvider:vs,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),ot(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=_D(Vn(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Vn(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!ot(t.definitionErrors))throw n=ue(t.definitionErrors,function(a){return a.message}),new Error(`Parser Definition Errors detected:
@@ -249,7 +249,7 @@ function `+e.name+`(tokenVocabulary, config) {
249
249
 
250
250
  const $ = this
251
251
 
252
- `+S6(e.rules)+`
252
+ `+SQ(e.rules)+`
253
253
 
254
254
  // very important to call this after all the rules have been defined.
255
255
  // otherwise the parser may not work correctly as it will lack information
@@ -260,13 +260,13 @@ function `+e.name+`(tokenVocabulary, config) {
260
260
  // inheritance as implemented in javascript in the previous decade... :(
261
261
  `+e.name+`.prototype = Object.create(chevrotain.CstParser.prototype)
262
262
  `+e.name+".prototype.constructor = "+e.name+`
263
- `;return t}function S6(e){var t=ue(e,function(n){return P6(n,1)});return t.join(`
264
- `)}function P6(e,t){var n=Mi(t,'$.RULE("'+e.name+'", function() {')+ei;return n+=hy(e.definition,t+1),n+=Mi(t+1,"})")+ei,n}function C6(e,t){var n=e.terminalType.name;return Mi(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ei)}function x6(e,t){return Mi(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ei)}function I6(e,t){var n=Mi(t,"$.OR"+e.idx+"([")+ei,i=ue(e.definition,function(r){return O6(r,t+1)});return n+=i.join(","+ei),n+=ei+Mi(t,"])"+ei),n}function O6(e,t){var n=Mi(t,"{")+ei;return n+=Mi(t+1,"ALT: function() {")+ei,n+=hy(e.definition,t+1),n+=Mi(t+1,"}")+ei,n+=Mi(t,"}"),n}function N6(e,t){if(e instanceof rn)return x6(e,t);if(e instanceof on)return hp("OPTION",e,t);if(e instanceof Rn)return hp("AT_LEAST_ONE",e,t);if(e instanceof Fn)return hp("AT_LEAST_ONE_SEP",e,t);if(e instanceof Sn)return hp("MANY_SEP",e,t);if(e instanceof Nt)return hp("MANY",e,t);if(e instanceof Pn)return I6(e,t);if(e instanceof mt)return C6(e,t);if(e instanceof Jt)return hy(e.definition,t);throw Error("non exhaustive match")}function hp(e,t,n){var i=Mi(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ei,i+=Mi(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ei,i+="DEF: "+Q_(t.definition,n+2)+ei,i+=Mi(n,"}")+ei):i+=Q_(t.definition,n+1),i+=Mi(n,")")+ei,i}function Q_(e,t){var n="function() {"+ei;return n+=hy(e,t),n+=Mi(t,"}")+ei,n}function hy(e,t){var n="";return ye(e,function(i){n+=N6(i,t+1)}),n}function Mi(e,t){var n=Array(e*4+1).join(" ");return n+t}var ei,J_=Qe(()=>{Tt();wi();ei=`
265
- `;o(q_,"genUmdModule");o(z_,"genWrapperFunction");o(Y_,"genClass");o(S6,"genAllRules");o(P6,"genRule");o(C6,"genTerminal");o(x6,"genNonTerminal");o(I6,"genAlternation");o(O6,"genSingleAlt");o(N6,"genProd");o(hp,"genDSLRule");o(Q_,"genDefFunction");o(hy,"genDefinition");o(Mi,"indent")});function Z_(e){var t=z_({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(vy(),og(yy)))}}function eV(e){return q_({name:e.name,rules:e.rules})}var tV=Qe(()=>{J_();o(Z_,"generateParserFactory");o(eV,"generateParserModule")});var yy={};Ws(yy,{Alternation:()=>Pn,Alternative:()=>Jt,CstParser:()=>G_,EMPTY_ALT:()=>H_,EOF:()=>Gr,EarlyExitException:()=>cy,EmbeddedActionsParser:()=>W_,GAstVisitor:()=>Wr,Lexer:()=>Vi,LexerDefinitionErrorType:()=>pn,MismatchedTokenException:()=>ql,NoViableAltException:()=>ay,NonTerminal:()=>rn,NotAllInputParsedException:()=>sy,Option:()=>on,Parser:()=>R6,ParserDefinitionErrorType:()=>Gn,Repetition:()=>Nt,RepetitionMandatory:()=>Rn,RepetitionMandatoryWithSeparator:()=>Fn,RepetitionWithSeparator:()=>Sn,Rule:()=>hr,Terminal:()=>mt,VERSION:()=>qu,assignOccurrenceIndices:()=>n_,clearCache:()=>L6,createSyntaxDiagramsCode:()=>K_,createToken:()=>ip,createTokenInstance:()=>hs,defaultGrammarResolverErrorProvider:()=>Yh,defaultGrammarValidatorErrorProvider:()=>vs,defaultLexerErrorProvider:()=>Kh,defaultParserErrorProvider:()=>rp,generateParserFactory:()=>Z_,generateParserModule:()=>eV,isRecognitionException:()=>Ca,resolveGrammar:()=>iy,serializeGrammar:()=>Xh,serializeProduction:()=>Wl,tokenLabel:()=>Ho,tokenMatcher:()=>ND,tokenName:()=>OD,validateGrammar:()=>ry});function L6(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
263
+ `;return t}function SQ(e){var t=ue(e,function(n){return PQ(n,1)});return t.join(`
264
+ `)}function PQ(e,t){var n=Mi(t,'$.RULE("'+e.name+'", function() {')+ei;return n+=hy(e.definition,t+1),n+=Mi(t+1,"})")+ei,n}function CQ(e,t){var n=e.terminalType.name;return Mi(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ei)}function xQ(e,t){return Mi(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ei)}function IQ(e,t){var n=Mi(t,"$.OR"+e.idx+"([")+ei,i=ue(e.definition,function(r){return OQ(r,t+1)});return n+=i.join(","+ei),n+=ei+Mi(t,"])"+ei),n}function OQ(e,t){var n=Mi(t,"{")+ei;return n+=Mi(t+1,"ALT: function() {")+ei,n+=hy(e.definition,t+1),n+=Mi(t+1,"}")+ei,n+=Mi(t,"}"),n}function NQ(e,t){if(e instanceof rn)return xQ(e,t);if(e instanceof on)return hp("OPTION",e,t);if(e instanceof Rn)return hp("AT_LEAST_ONE",e,t);if(e instanceof Fn)return hp("AT_LEAST_ONE_SEP",e,t);if(e instanceof Sn)return hp("MANY_SEP",e,t);if(e instanceof Nt)return hp("MANY",e,t);if(e instanceof Pn)return IQ(e,t);if(e instanceof mt)return CQ(e,t);if(e instanceof Jt)return hy(e.definition,t);throw Error("non exhaustive match")}function hp(e,t,n){var i=Mi(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ei,i+=Mi(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ei,i+="DEF: "+Q_(t.definition,n+2)+ei,i+=Mi(n,"}")+ei):i+=Q_(t.definition,n+1),i+=Mi(n,")")+ei,i}function Q_(e,t){var n="function() {"+ei;return n+=hy(e,t),n+=Mi(t,"}")+ei,n}function hy(e,t){var n="";return ye(e,function(i){n+=NQ(i,t+1)}),n}function Mi(e,t){var n=Array(e*4+1).join(" ");return n+t}var ei,J_=Qe(()=>{Tt();wi();ei=`
265
+ `;o(q_,"genUmdModule");o(z_,"genWrapperFunction");o(Y_,"genClass");o(SQ,"genAllRules");o(PQ,"genRule");o(CQ,"genTerminal");o(xQ,"genNonTerminal");o(IQ,"genAlternation");o(OQ,"genSingleAlt");o(NQ,"genProd");o(hp,"genDSLRule");o(Q_,"genDefFunction");o(hy,"genDefinition");o(Mi,"indent")});function Z_(e){var t=z_({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(vy(),og(yy)))}}function eV(e){return q_({name:e.name,rules:e.rules})}var tV=Qe(()=>{J_();o(Z_,"generateParserFactory");o(eV,"generateParserModule")});var yy={};Ws(yy,{Alternation:()=>Pn,Alternative:()=>Jt,CstParser:()=>G_,EMPTY_ALT:()=>H_,EOF:()=>Gr,EarlyExitException:()=>cy,EmbeddedActionsParser:()=>W_,GAstVisitor:()=>Wr,Lexer:()=>Vi,LexerDefinitionErrorType:()=>pn,MismatchedTokenException:()=>ql,NoViableAltException:()=>ay,NonTerminal:()=>rn,NotAllInputParsedException:()=>sy,Option:()=>on,Parser:()=>RQ,ParserDefinitionErrorType:()=>Gn,Repetition:()=>Nt,RepetitionMandatory:()=>Rn,RepetitionMandatoryWithSeparator:()=>Fn,RepetitionWithSeparator:()=>Sn,Rule:()=>hr,Terminal:()=>mt,VERSION:()=>qu,assignOccurrenceIndices:()=>n_,clearCache:()=>LQ,createSyntaxDiagramsCode:()=>K_,createToken:()=>ip,createTokenInstance:()=>hs,defaultGrammarResolverErrorProvider:()=>Yh,defaultGrammarValidatorErrorProvider:()=>vs,defaultLexerErrorProvider:()=>Kh,defaultParserErrorProvider:()=>rp,generateParserFactory:()=>Z_,generateParserModule:()=>eV,isRecognitionException:()=>Ca,resolveGrammar:()=>iy,serializeGrammar:()=>Xh,serializeProduction:()=>Wl,tokenLabel:()=>Ho,tokenMatcher:()=>ND,tokenName:()=>OD,validateGrammar:()=>ry});function LQ(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
266
266
  It performs no action other than printing this message.
267
- Please avoid using it as it will be completely removed in the future`)}var R6,vy=Qe(()=>{VA();vr();tp();ys();op();zl();KA();wi();wi();Kl();iS();X_();tV();o(L6,"clearCache");R6=function(){function e(){throw new Error(`The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.
268
- See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return o(e,"Parser"),e}()});var gS=qe((Rce,sV)=>{var{createToken:F6,Lexer:pS}=(vy(),og(yy)),iV={},ef=iV;function dS(e,t){iV[e]=typeof t=="string"?t:t.source}o(dS,"FRAGMENT");function yp(e,...t){let n="";for(let i=0;i<e.length;i++)if(n+=e[i],i<t.length){let r=t[i];n+=`(?:${r})`}return new RegExp(n)}o(yp,"makePattern");var D6=[],rV={};function Cn(e){let t=F6(e);return D6.push(t),rV[e.name]=t,t}o(Cn,"createToken");dS("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");dS("NameChar",yp`${ef.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);dS("Name",yp`${ef.NameStartChar}(${ef.NameChar})*`);var nV=Cn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),_6=Cn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),V6=Cn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),w6=Cn({name:"DTD",pattern:/<!.*?>/,group:pS.SKIPPED}),M6=Cn({name:"EntityRef",pattern:yp`&${ef.Name};`}),k6=Cn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),j6=Cn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),U6=Cn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),oV=Cn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),$6=Cn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[oV]}),B6=Cn({name:"PROCESSING_INSTRUCTION",pattern:yp`<\\?${ef.Name}.*\\?>`}),aV=Cn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),H6=Cn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[aV]}),G6=Cn({name:"TEXT",pattern:/[^<&]+/}),W6=Cn({name:"CLOSE",pattern:/>/,pop_mode:!0}),K6=Cn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),X6=Cn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),Q6=Cn({name:"SLASH",pattern:/\//}),q6=Cn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),z6=Cn({name:"EQUALS",pattern:/=/}),Y6=Cn({name:"Name",pattern:yp`${ef.Name}`}),J6=Cn({name:"S",pattern:/[ \t\r\n]/,group:pS.SKIPPED}),Z6={defaultMode:"OUTSIDE",modes:{OUTSIDE:[nV,_6,V6,w6,M6,k6,j6,U6,oV,B6,aV,G6],INSIDE:[nV,$6,H6,W6,K6,X6,Q6,z6,q6,Y6,J6]}},eQ=new pS(Z6,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
269
- `],lineTerminatorsPattern:/\n|\r\n/g});sV.exports={xmlLexer:eQ,tokensDictionary:rV}});var lV=qe((Dce,cV)=>{var{CstParser:tQ,tokenMatcher:nQ}=(vy(),og(yy)),{tokensDictionary:xt}=gS(),hS=class hS extends tQ{constructor(){super(xt,{maxLookahead:1,recoveryEnabled:!0,nodeLocationTracking:"full"}),this.deletionRecoveryEnabled=!0;let t=this;t.RULE("document",()=>{t.OPTION(()=>{t.SUBRULE(t.prolog)}),t.MANY(()=>{t.SUBRULE(t.misc)}),t.OPTION2(()=>{t.SUBRULE(t.docTypeDecl)}),t.MANY2(()=>{t.SUBRULE2(t.misc)}),t.SUBRULE(t.element),t.MANY3(()=>{t.SUBRULE3(t.misc)})}),t.RULE("prolog",()=>{t.CONSUME(xt.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(xt.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(xt.DocType),t.CONSUME(xt.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(xt.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:o(()=>t.SUBRULE(t.element),"ALT")},{ALT:o(()=>t.SUBRULE(t.chardata),"ALT")},{ALT:o(()=>t.SUBRULE(t.reference),"ALT")},{ALT:o(()=>t.CONSUME(xt.CData),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(xt.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(xt.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(xt.SLASH_OPEN),t.CONSUME2(xt.Name,{LABEL:"END_NAME"}),t.CONSUME2(xt.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(xt.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(xt.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(xt.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.EQUALS),t.CONSUME(xt.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),this.performSelfAnalysis()}canRecoverWithSingleTokenDeletion(t){return this.deletionRecoveryEnabled===!1?!1:super.canRecoverWithSingleTokenDeletion(t)}findReSyncTokenType(){let t=this.flattenFollowSet(),n=this.LA(1),i=2;for(;;){let r=t.find(a=>nQ(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(hS,"Parser");var mS=hS,iQ=new mS;cV.exports={xmlParser:iQ}});var yS=qe((Vce,fV)=>{var{xmlLexer:rQ}=gS(),{xmlParser:Ty}=lV();fV.exports={parse:o(function(t){let n=rQ.tokenize(t);return Ty.input=n.tokens,{cst:Ty.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Ty.errors}},"parse"),BaseXmlCstVisitor:Ty.getBaseCstVisitorConstructor()}});var Tp=qe((tf,vp)=>{(function(){var e,t="4.17.21",n=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",a="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",p=1,g=2,m=4,y=1,A=2,b=1,O=2,D=4,j=8,G=16,B=32,ae=64,Z=128,re=256,Se=512,_=30,ft="...",yt=800,Ue=16,an=1,Wn=2,en=3,Lt=1/0,Re=9007199254740991,Ci=17976931348623157e292,It=NaN,Mt=4294967295,sn=Mt-1,ji=Mt>>>1,Fe=[["ary",Z],["bind",b],["bindKey",O],["curry",j],["curryRight",G],["flip",Se],["partial",B],["partialRight",ae],["rearg",re]],Kn="[object Arguments]",Pr="[object Array]",at="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",z="[object DOMException]",V="[object Error]",_e="[object Function]",Rt="[object GeneratorFunction]",Xe="[object Map]",kt="[object Number]",yn="[object Null]",cn="[object Object]",Ht="[object Promise]",ti="[object Proxy]",ir="[object RegExp]",dn="[object Set]",ui="[object String]",Gt="[object Symbol]",Qo="[object Undefined]",Ui="[object WeakMap]",Cf="[object WeakSet]",_s="[object ArrayBuffer]",Cr="[object DataView]",xf="[object Float32Array]",If="[object Float64Array]",Of="[object Int8Array]",Vs="[object Int16Array]",k="[object Int32Array]",$="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Ne="[object Uint32Array]",gn=/\b__p \+= '';/g,xn=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,Pe=RegExp(me.source),Ie=RegExp(Te.source),rt=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,ln=/<%=([\s\S]+?)%>/g,rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,md=/^\w*$/,ov=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nf=/[\\^$.*+?()[\]{}|]/g,mM=RegExp(Nf.source),av=/^\s+/,hM=/\s/,yM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,vM=/\{\n\/\* \[wrapped with (.+)\] \*/,TM=/,? & /,bM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,EM=/[()=,{}\[\]\/\s]/,AM=/\\(\\)?/g,SM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ox=/\w*$/,PM=/^[-+]0x[0-9a-f]+$/i,CM=/^0b[01]+$/i,xM=/^\[object .+?Constructor\]$/,IM=/^0o[0-7]+$/i,OM=/^(?:0|[1-9]\d*)$/,NM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hd=/($^)/,LM=/['\n\r\u2028\u2029\\]/g,yd="\\ud800-\\udfff",RM="\\u0300-\\u036f",FM="\\ufe20-\\ufe2f",DM="\\u20d0-\\u20ff",ax=RM+FM+DM,sx="\\u2700-\\u27bf",cx="a-z\\xdf-\\xf6\\xf8-\\xff",_M="\\xac\\xb1\\xd7\\xf7",VM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",wM="\\u2000-\\u206f",MM=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lx="A-Z\\xc0-\\xd6\\xd8-\\xde",fx="\\ufe0e\\ufe0f",ux=_M+VM+wM+MM,sv="['\u2019]",kM="["+yd+"]",px="["+ux+"]",vd="["+ax+"]",dx="\\d+",jM="["+sx+"]",gx="["+cx+"]",mx="[^"+yd+ux+dx+sx+cx+lx+"]",cv="\\ud83c[\\udffb-\\udfff]",UM="(?:"+vd+"|"+cv+")",hx="[^"+yd+"]",lv="(?:\\ud83c[\\udde6-\\uddff]){2}",fv="[\\ud800-\\udbff][\\udc00-\\udfff]",Gc="["+lx+"]",yx="\\u200d",vx="(?:"+gx+"|"+mx+")",$M="(?:"+Gc+"|"+mx+")",Tx="(?:"+sv+"(?:d|ll|m|re|s|t|ve))?",bx="(?:"+sv+"(?:D|LL|M|RE|S|T|VE))?",Ex=UM+"?",Ax="["+fx+"]?",BM="(?:"+yx+"(?:"+[hx,lv,fv].join("|")+")"+Ax+Ex+")*",HM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",GM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sx=Ax+Ex+BM,WM="(?:"+[jM,lv,fv].join("|")+")"+Sx,KM="(?:"+[hx+vd+"?",vd,lv,fv,kM].join("|")+")",XM=RegExp(sv,"g"),QM=RegExp(vd,"g"),uv=RegExp(cv+"(?="+cv+")|"+KM+Sx,"g"),qM=RegExp([Gc+"?"+gx+"+"+Tx+"(?="+[px,Gc,"$"].join("|")+")",$M+"+"+bx+"(?="+[px,Gc+vx,"$"].join("|")+")",Gc+"?"+vx+"+"+Tx,Gc+"+"+bx,GM,HM,dx,WM].join("|"),"g"),zM=RegExp("["+yx+yd+ax+fx+"]"),YM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,JM=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ZM=-1,tn={};tn[xf]=tn[If]=tn[Of]=tn[Vs]=tn[k]=tn[$]=tn[Q]=tn[ce]=tn[Ne]=!0,tn[Kn]=tn[Pr]=tn[_s]=tn[I]=tn[Cr]=tn[S]=tn[V]=tn[_e]=tn[Xe]=tn[kt]=tn[cn]=tn[ir]=tn[dn]=tn[ui]=tn[Ui]=!1;var qt={};qt[Kn]=qt[Pr]=qt[_s]=qt[Cr]=qt[I]=qt[S]=qt[xf]=qt[If]=qt[Of]=qt[Vs]=qt[k]=qt[Xe]=qt[kt]=qt[cn]=qt[ir]=qt[dn]=qt[ui]=qt[Gt]=qt[$]=qt[Q]=qt[ce]=qt[Ne]=!0,qt[V]=qt[_e]=qt[Ui]=!1;var e2={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},t2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},n2={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},i2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},r2=parseFloat,o2=parseInt,Px=typeof global=="object"&&global&&global.Object===Object&&global,a2=typeof self=="object"&&self&&self.Object===Object&&self,Xn=Px||a2||Function("return this")(),pv=typeof tf=="object"&&tf&&!tf.nodeType&&tf,ws=pv&&typeof vp=="object"&&vp&&!vp.nodeType&&vp,Cx=ws&&ws.exports===pv,dv=Cx&&Px.process,xr=function(){try{var w=ws&&ws.require&&ws.require("util").types;return w||dv&&dv.binding&&dv.binding("util")}catch{}}(),xx=xr&&xr.isArrayBuffer,Ix=xr&&xr.isDate,Ox=xr&&xr.isMap,Nx=xr&&xr.isRegExp,Lx=xr&&xr.isSet,Rx=xr&&xr.isTypedArray;function or(w,X,W){switch(W.length){case 0:return w.call(X);case 1:return w.call(X,W[0]);case 2:return w.call(X,W[0],W[1]);case 3:return w.call(X,W[0],W[1],W[2])}return w.apply(X,W)}o(or,"apply");function s2(w,X,W,Ee){for(var We=-1,St=w==null?0:w.length;++We<St;){var Un=w[We];X(Ee,Un,W(Un),w)}return Ee}o(s2,"arrayAggregator");function Ir(w,X){for(var W=-1,Ee=w==null?0:w.length;++W<Ee&&X(w[W],W,w)!==!1;);return w}o(Ir,"arrayEach");function c2(w,X){for(var W=w==null?0:w.length;W--&&X(w[W],W,w)!==!1;);return w}o(c2,"arrayEachRight");function Fx(w,X){for(var W=-1,Ee=w==null?0:w.length;++W<Ee;)if(!X(w[W],W,w))return!1;return!0}o(Fx,"arrayEvery");function Fa(w,X){for(var W=-1,Ee=w==null?0:w.length,We=0,St=[];++W<Ee;){var Un=w[W];X(Un,W,w)&&(St[We++]=Un)}return St}o(Fa,"arrayFilter");function Td(w,X){var W=w==null?0:w.length;return!!W&&Wc(w,X,0)>-1}o(Td,"arrayIncludes");function gv(w,X,W){for(var Ee=-1,We=w==null?0:w.length;++Ee<We;)if(W(X,w[Ee]))return!0;return!1}o(gv,"arrayIncludesWith");function fn(w,X){for(var W=-1,Ee=w==null?0:w.length,We=Array(Ee);++W<Ee;)We[W]=X(w[W],W,w);return We}o(fn,"arrayMap");function Da(w,X){for(var W=-1,Ee=X.length,We=w.length;++W<Ee;)w[We+W]=X[W];return w}o(Da,"arrayPush");function mv(w,X,W,Ee){var We=-1,St=w==null?0:w.length;for(Ee&&St&&(W=w[++We]);++We<St;)W=X(W,w[We],We,w);return W}o(mv,"arrayReduce");function l2(w,X,W,Ee){var We=w==null?0:w.length;for(Ee&&We&&(W=w[--We]);We--;)W=X(W,w[We],We,w);return W}o(l2,"arrayReduceRight");function hv(w,X){for(var W=-1,Ee=w==null?0:w.length;++W<Ee;)if(X(w[W],W,w))return!0;return!1}o(hv,"arraySome");var f2=yv("length");function u2(w){return w.split("")}o(u2,"asciiToArray");function p2(w){return w.match(bM)||[]}o(p2,"asciiWords");function Dx(w,X,W){var Ee;return W(w,function(We,St,Un){if(X(We,St,Un))return Ee=St,!1}),Ee}o(Dx,"baseFindKey");function bd(w,X,W,Ee){for(var We=w.length,St=W+(Ee?1:-1);Ee?St--:++St<We;)if(X(w[St],St,w))return St;return-1}o(bd,"baseFindIndex");function Wc(w,X,W){return X===X?C2(w,X,W):bd(w,_x,W)}o(Wc,"baseIndexOf");function d2(w,X,W,Ee){for(var We=W-1,St=w.length;++We<St;)if(Ee(w[We],X))return We;return-1}o(d2,"baseIndexOfWith");function _x(w){return w!==w}o(_x,"baseIsNaN");function Vx(w,X){var W=w==null?0:w.length;return W?Tv(w,X)/W:It}o(Vx,"baseMean");function yv(w){return function(X){return X==null?e:X[w]}}o(yv,"baseProperty");function vv(w){return function(X){return w==null?e:w[X]}}o(vv,"basePropertyOf");function wx(w,X,W,Ee,We){return We(w,function(St,Un,Kt){W=Ee?(Ee=!1,St):X(W,St,Un,Kt)}),W}o(wx,"baseReduce");function g2(w,X){var W=w.length;for(w.sort(X);W--;)w[W]=w[W].value;return w}o(g2,"baseSortBy");function Tv(w,X){for(var W,Ee=-1,We=w.length;++Ee<We;){var St=X(w[Ee]);St!==e&&(W=W===e?St:W+St)}return W}o(Tv,"baseSum");function bv(w,X){for(var W=-1,Ee=Array(w);++W<w;)Ee[W]=X(W);return Ee}o(bv,"baseTimes");function m2(w,X){return fn(X,function(W){return[W,w[W]]})}o(m2,"baseToPairs");function Mx(w){return w&&w.slice(0,$x(w)+1).replace(av,"")}o(Mx,"baseTrim");function ar(w){return function(X){return w(X)}}o(ar,"baseUnary");function Ev(w,X){return fn(X,function(W){return w[W]})}o(Ev,"baseValues");function Lf(w,X){return w.has(X)}o(Lf,"cacheHas");function kx(w,X){for(var W=-1,Ee=w.length;++W<Ee&&Wc(X,w[W],0)>-1;);return W}o(kx,"charsStartIndex");function jx(w,X){for(var W=w.length;W--&&Wc(X,w[W],0)>-1;);return W}o(jx,"charsEndIndex");function h2(w,X){for(var W=w.length,Ee=0;W--;)w[W]===X&&++Ee;return Ee}o(h2,"countHolders");var y2=vv(e2),T2=vv(t2);function b2(w){return"\\"+i2[w]}o(b2,"escapeStringChar");function E2(w,X){return w==null?e:w[X]}o(E2,"getValue");function Kc(w){return zM.test(w)}o(Kc,"hasUnicode");function A2(w){return YM.test(w)}o(A2,"hasUnicodeWord");function S2(w){for(var X,W=[];!(X=w.next()).done;)W.push(X.value);return W}o(S2,"iteratorToArray");function Av(w){var X=-1,W=Array(w.size);return w.forEach(function(Ee,We){W[++X]=[We,Ee]}),W}o(Av,"mapToArray");function Ux(w,X){return function(W){return w(X(W))}}o(Ux,"overArg");function _a(w,X){for(var W=-1,Ee=w.length,We=0,St=[];++W<Ee;){var Un=w[W];(Un===X||Un===u)&&(w[W]=u,St[We++]=W)}return St}o(_a,"replaceHolders");function Ed(w){var X=-1,W=Array(w.size);return w.forEach(function(Ee){W[++X]=Ee}),W}o(Ed,"setToArray");function P2(w){var X=-1,W=Array(w.size);return w.forEach(function(Ee){W[++X]=[Ee,Ee]}),W}o(P2,"setToPairs");function C2(w,X,W){for(var Ee=W-1,We=w.length;++Ee<We;)if(w[Ee]===X)return Ee;return-1}o(C2,"strictIndexOf");function x2(w,X,W){for(var Ee=W+1;Ee--;)if(w[Ee]===X)return Ee;return Ee}o(x2,"strictLastIndexOf");function Xc(w){return Kc(w)?O2(w):f2(w)}o(Xc,"stringSize");function Jr(w){return Kc(w)?N2(w):u2(w)}o(Jr,"stringToArray");function $x(w){for(var X=w.length;X--&&hM.test(w.charAt(X)););return X}o($x,"trimmedEndIndex");var I2=vv(n2);function O2(w){for(var X=uv.lastIndex=0;uv.test(w);)++X;return X}o(O2,"unicodeSize");function N2(w){return w.match(uv)||[]}o(N2,"unicodeToArray");function L2(w){return w.match(qM)||[]}o(L2,"unicodeWords");var R2=o(function w(X){X=X==null?Xn:Va.defaults(Xn.Object(),X,Va.pick(Xn,JM));var W=X.Array,Ee=X.Date,We=X.Error,St=X.Function,Un=X.Math,Kt=X.Object,Sv=X.RegExp,F2=X.String,Or=X.TypeError,Ad=W.prototype,D2=St.prototype,Qc=Kt.prototype,Sd=X["__core-js_shared__"],Pd=D2.toString,Ft=Qc.hasOwnProperty,_2=0,Bx=function(){var c=/[^.]+$/.exec(Sd&&Sd.keys&&Sd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Cd=Qc.toString,V2=Pd.call(Kt),w2=Xn._,M2=Sv("^"+Pd.call(Ft).replace(Nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xd=Cx?X.Buffer:e,wa=X.Symbol,Id=X.Uint8Array,Hx=xd?xd.allocUnsafe:e,Od=Ux(Kt.getPrototypeOf,Kt),Gx=Kt.create,Wx=Qc.propertyIsEnumerable,Nd=Ad.splice,Kx=wa?wa.isConcatSpreadable:e,Rf=wa?wa.iterator:e,Ms=wa?wa.toStringTag:e,Ld=function(){try{var c=Bs(Kt,"defineProperty");return c({},"",{}),c}catch{}}(),k2=X.clearTimeout!==Xn.clearTimeout&&X.clearTimeout,j2=Ee&&Ee.now!==Xn.Date.now&&Ee.now,U2=X.setTimeout!==Xn.setTimeout&&X.setTimeout,Rd=Un.ceil,Fd=Un.floor,Pv=Kt.getOwnPropertySymbols,$2=xd?xd.isBuffer:e,Xx=X.isFinite,B2=Ad.join,H2=Ux(Kt.keys,Kt),$n=Un.max,pi=Un.min,G2=Ee.now,W2=X.parseInt,Qx=Un.random,K2=Ad.reverse,Cv=Bs(X,"DataView"),Ff=Bs(X,"Map"),xv=Bs(X,"Promise"),qc=Bs(X,"Set"),Df=Bs(X,"WeakMap"),_f=Bs(Kt,"create"),Dd=Df&&new Df,zc={},X2=Hs(Cv),Q2=Hs(Ff),q2=Hs(xv),z2=Hs(qc),Y2=Hs(Df),_d=wa?wa.prototype:e,Vf=_d?_d.valueOf:e,qx=_d?_d.toString:e;function P(c){if(vn(c)&&!Ke(c)&&!(c instanceof ut)){if(c instanceof Nr)return c;if(Ft.call(c,"__wrapped__"))return zI(c)}return new Nr(c)}o(P,"lodash");var Yc=function(){function c(){}return o(c,"object"),function(f){if(!mn(f))return{};if(Gx)return Gx(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function Vd(){}o(Vd,"baseLodash");function Nr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Nr,"LodashWrapper"),P.templateSettings={escape:rt,evaluate:Wt,interpolate:ln,variable:"",imports:{_:P}},P.prototype=Vd.prototype,P.prototype.constructor=P,Nr.prototype=Yc(Vd.prototype),Nr.prototype.constructor=Nr;function ut(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mt,this.__views__=[]}o(ut,"LazyWrapper");function J2(){var c=new ut(this.__wrapped__);return c.__actions__=$i(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=$i(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=$i(this.__views__),c}o(J2,"lazyClone");function Z2(){if(this.__filtered__){var c=new ut(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(Z2,"lazyReverse");function ek(){var c=this.__wrapped__.value(),f=this.__dir__,d=Ke(c),v=f<0,E=d?c.length:0,x=pj(0,E,this.__views__),L=x.start,R=x.end,M=R-L,Y=v?R:L-1,J=this.__iteratees__,ee=J.length,ge=0,Oe=pi(M,this.__takeCount__);if(!d||!v&&E==M&&Oe==M)return TI(c,this.__actions__);var Me=[];e:for(;M--&&ge<Oe;){Y+=f;for(var Ze=-1,ke=c[Y];++Ze<ee;){var st=J[Ze],dt=st.iteratee,lr=st.type,Oi=dt(ke);if(lr==Wn)ke=Oi;else if(!Oi){if(lr==an)continue e;break e}}Me[ge++]=ke}return Me}o(ek,"lazyValue"),ut.prototype=Yc(Vd.prototype),ut.prototype.constructor=ut;function ks(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(ks,"Hash");function tk(){this.__data__=_f?_f(null):{},this.size=0}o(tk,"hashClear");function nk(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(nk,"hashDelete");function ik(c){var f=this.__data__;if(_f){var d=f[c];return d===s?e:d}return Ft.call(f,c)?f[c]:e}o(ik,"hashGet");function rk(c){var f=this.__data__;return _f?f[c]!==e:Ft.call(f,c)}o(rk,"hashHas");function ok(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=_f&&f===e?s:f,this}o(ok,"hashSet"),ks.prototype.clear=tk,ks.prototype.delete=nk,ks.prototype.get=ik,ks.prototype.has=rk,ks.prototype.set=ok;function qo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(qo,"ListCache");function ak(){this.__data__=[],this.size=0}o(ak,"listCacheClear");function sk(c){var f=this.__data__,d=wd(f,c);if(d<0)return!1;var v=f.length-1;return d==v?f.pop():Nd.call(f,d,1),--this.size,!0}o(sk,"listCacheDelete");function ck(c){var f=this.__data__,d=wd(f,c);return d<0?e:f[d][1]}o(ck,"listCacheGet");function lk(c){return wd(this.__data__,c)>-1}o(lk,"listCacheHas");function fk(c,f){var d=this.__data__,v=wd(d,c);return v<0?(++this.size,d.push([c,f])):d[v][1]=f,this}o(fk,"listCacheSet"),qo.prototype.clear=ak,qo.prototype.delete=sk,qo.prototype.get=ck,qo.prototype.has=lk,qo.prototype.set=fk;function zo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(zo,"MapCache");function uk(){this.size=0,this.__data__={hash:new ks,map:new(Ff||qo),string:new ks}}o(uk,"mapCacheClear");function pk(c){var f=Qd(this,c).delete(c);return this.size-=f?1:0,f}o(pk,"mapCacheDelete");function dk(c){return Qd(this,c).get(c)}o(dk,"mapCacheGet");function gk(c){return Qd(this,c).has(c)}o(gk,"mapCacheHas");function mk(c,f){var d=Qd(this,c),v=d.size;return d.set(c,f),this.size+=d.size==v?0:1,this}o(mk,"mapCacheSet"),zo.prototype.clear=uk,zo.prototype.delete=pk,zo.prototype.get=dk,zo.prototype.has=gk,zo.prototype.set=mk;function js(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new zo;++f<d;)this.add(c[f])}o(js,"SetCache");function hk(c){return this.__data__.set(c,s),this}o(hk,"setCacheAdd");function yk(c){return this.__data__.has(c)}o(yk,"setCacheHas"),js.prototype.add=js.prototype.push=hk,js.prototype.has=yk;function Zr(c){var f=this.__data__=new qo(c);this.size=f.size}o(Zr,"Stack");function vk(){this.__data__=new qo,this.size=0}o(vk,"stackClear");function Tk(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(Tk,"stackDelete");function bk(c){return this.__data__.get(c)}o(bk,"stackGet");function Ek(c){return this.__data__.has(c)}o(Ek,"stackHas");function Ak(c,f){var d=this.__data__;if(d instanceof qo){var v=d.__data__;if(!Ff||v.length<n-1)return v.push([c,f]),this.size=++d.size,this;d=this.__data__=new zo(v)}return d.set(c,f),this.size=d.size,this}o(Ak,"stackSet"),Zr.prototype.clear=vk,Zr.prototype.delete=Tk,Zr.prototype.get=bk,Zr.prototype.has=Ek,Zr.prototype.set=Ak;function zx(c,f){var d=Ke(c),v=!d&&Gs(c),E=!d&&!v&&$a(c),x=!d&&!v&&!E&&tl(c),L=d||v||E||x,R=L?bv(c.length,F2):[],M=R.length;for(var Y in c)(f||Ft.call(c,Y))&&!(L&&(Y=="length"||E&&(Y=="offset"||Y=="parent")||x&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||ea(Y,M)))&&R.push(Y);return R}o(zx,"arrayLikeKeys");function Yx(c){var f=c.length;return f?c[Mv(0,f-1)]:e}o(Yx,"arraySample");function Sk(c,f){return qd($i(c),Us(f,0,c.length))}o(Sk,"arraySampleSize");function Pk(c){return qd($i(c))}o(Pk,"arrayShuffle");function Iv(c,f,d){(d!==e&&!eo(c[f],d)||d===e&&!(f in c))&&Yo(c,f,d)}o(Iv,"assignMergeValue");function wf(c,f,d){var v=c[f];(!(Ft.call(c,f)&&eo(v,d))||d===e&&!(f in c))&&Yo(c,f,d)}o(wf,"assignValue");function wd(c,f){for(var d=c.length;d--;)if(eo(c[d][0],f))return d;return-1}o(wd,"assocIndexOf");function Ck(c,f,d,v){return Ma(c,function(E,x,L){f(v,E,d(E),L)}),v}o(Ck,"baseAggregator");function Jx(c,f){return c&&So(f,Qn(f),c)}o(Jx,"baseAssign");function xk(c,f){return c&&So(f,Hi(f),c)}o(xk,"baseAssignIn");function Yo(c,f,d){f=="__proto__"&&Ld?Ld(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(Yo,"baseAssignValue");function Ov(c,f){for(var d=-1,v=f.length,E=W(v),x=c==null;++d<v;)E[d]=x?e:cT(c,f[d]);return E}o(Ov,"baseAt");function Us(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(Us,"baseClamp");function Lr(c,f,d,v,E,x){var L,R=f&p,M=f&g,Y=f&m;if(d&&(L=E?d(c,v,E,x):d(c)),L!==e)return L;if(!mn(c))return c;var J=Ke(c);if(J){if(L=gj(c),!R)return $i(c,L)}else{var ee=di(c),ge=ee==_e||ee==Rt;if($a(c))return AI(c,R);if(ee==cn||ee==Kn||ge&&!E){if(L=M||ge?{}:$I(c),!R)return M?ij(c,xk(L,c)):nj(c,Jx(L,c))}else{if(!qt[ee])return E?c:{};L=mj(c,ee,R)}}x||(x=new Zr);var Oe=x.get(c);if(Oe)return Oe;x.set(c,L),hO(c)?c.forEach(function(ke){L.add(Lr(ke,f,d,ke,c,x))}):gO(c)&&c.forEach(function(ke,st){L.set(st,Lr(ke,f,d,st,c,x))});var Me=Y?M?Qv:Xv:M?Hi:Qn,Ze=J?e:Me(c);return Ir(Ze||c,function(ke,st){Ze&&(st=ke,ke=c[st]),wf(L,st,Lr(ke,f,d,st,c,x))}),L}o(Lr,"baseClone");function Ik(c){var f=Qn(c);return function(d){return Zx(d,c,f)}}o(Ik,"baseConforms");function Zx(c,f,d){var v=d.length;if(c==null)return!v;for(c=Kt(c);v--;){var E=d[v],x=f[E],L=c[E];if(L===e&&!(E in c)||!x(L))return!1}return!0}o(Zx,"baseConformsTo");function eI(c,f,d){if(typeof c!="function")throw new Or(r);return Hf(function(){c.apply(e,d)},f)}o(eI,"baseDelay");function Mf(c,f,d,v){var E=-1,x=Td,L=!0,R=c.length,M=[],Y=f.length;if(!R)return M;d&&(f=fn(f,ar(d))),v?(x=gv,L=!1):f.length>=n&&(x=Lf,L=!1,f=new js(f));e:for(;++E<R;){var J=c[E],ee=d==null?J:d(J);if(J=v||J!==0?J:0,L&&ee===ee){for(var ge=Y;ge--;)if(f[ge]===ee)continue e;M.push(J)}else x(f,ee,v)||M.push(J)}return M}o(Mf,"baseDifference");var Ma=II(Ao),tI=II(Lv,!0);function Ok(c,f){var d=!0;return Ma(c,function(v,E,x){return d=!!f(v,E,x),d}),d}o(Ok,"baseEvery");function Md(c,f,d){for(var v=-1,E=c.length;++v<E;){var x=c[v],L=f(x);if(L!=null&&(R===e?L===L&&!cr(L):d(L,R)))var R=L,M=x}return M}o(Md,"baseExtremum");function Nk(c,f,d,v){var E=c.length;for(d=Ye(d),d<0&&(d=-d>E?0:E+d),v=v===e||v>E?E:Ye(v),v<0&&(v+=E),v=d>v?0:vO(v);d<v;)c[d++]=f;return c}o(Nk,"baseFill");function nI(c,f){var d=[];return Ma(c,function(v,E,x){f(v,E,x)&&d.push(v)}),d}o(nI,"baseFilter");function ni(c,f,d,v,E){var x=-1,L=c.length;for(d||(d=yj),E||(E=[]);++x<L;){var R=c[x];f>0&&d(R)?f>1?ni(R,f-1,d,v,E):Da(E,R):v||(E[E.length]=R)}return E}o(ni,"baseFlatten");var Nv=OI(),iI=OI(!0);function Ao(c,f){return c&&Nv(c,f,Qn)}o(Ao,"baseForOwn");function Lv(c,f){return c&&iI(c,f,Qn)}o(Lv,"baseForOwnRight");function kd(c,f){return Fa(f,function(d){return ta(c[d])})}o(kd,"baseFunctions");function $s(c,f){f=ja(f,c);for(var d=0,v=f.length;c!=null&&d<v;)c=c[Po(f[d++])];return d&&d==v?c:e}o($s,"baseGet");function rI(c,f,d){var v=f(c);return Ke(c)?v:Da(v,d(c))}o(rI,"baseGetAllKeys");function xi(c){return c==null?c===e?Qo:yn:Ms&&Ms in Kt(c)?uj(c):Pj(c)}o(xi,"baseGetTag");function Rv(c,f){return c>f}o(Rv,"baseGt");function Lk(c,f){return c!=null&&Ft.call(c,f)}o(Lk,"baseHas");function Rk(c,f){return c!=null&&f in Kt(c)}o(Rk,"baseHasIn");function Fk(c,f,d){return c>=pi(f,d)&&c<$n(f,d)}o(Fk,"baseInRange");function Fv(c,f,d){for(var v=d?gv:Td,E=c[0].length,x=c.length,L=x,R=W(x),M=1/0,Y=[];L--;){var J=c[L];L&&f&&(J=fn(J,ar(f))),M=pi(J.length,M),R[L]=!d&&(f||E>=120&&J.length>=120)?new js(L&&J):e}J=c[0];var ee=-1,ge=R[0];e:for(;++ee<E&&Y.length<M;){var Oe=J[ee],Me=f?f(Oe):Oe;if(Oe=d||Oe!==0?Oe:0,!(ge?Lf(ge,Me):v(Y,Me,d))){for(L=x;--L;){var Ze=R[L];if(!(Ze?Lf(Ze,Me):v(c[L],Me,d)))continue e}ge&&ge.push(Me),Y.push(Oe)}}return Y}o(Fv,"baseIntersection");function Dk(c,f,d,v){return Ao(c,function(E,x,L){f(v,d(E),x,L)}),v}o(Dk,"baseInverter");function kf(c,f,d){f=ja(f,c),c=WI(c,f);var v=c==null?c:c[Po(Fr(f))];return v==null?e:or(v,c,d)}o(kf,"baseInvoke");function oI(c){return vn(c)&&xi(c)==Kn}o(oI,"baseIsArguments");function _k(c){return vn(c)&&xi(c)==_s}o(_k,"baseIsArrayBuffer");function Vk(c){return vn(c)&&xi(c)==S}o(Vk,"baseIsDate");function jf(c,f,d,v,E){return c===f?!0:c==null||f==null||!vn(c)&&!vn(f)?c!==c&&f!==f:wk(c,f,d,v,jf,E)}o(jf,"baseIsEqual");function wk(c,f,d,v,E,x){var L=Ke(c),R=Ke(f),M=L?Pr:di(c),Y=R?Pr:di(f);M=M==Kn?cn:M,Y=Y==Kn?cn:Y;var J=M==cn,ee=Y==cn,ge=M==Y;if(ge&&$a(c)){if(!$a(f))return!1;L=!0,J=!1}if(ge&&!J)return x||(x=new Zr),L||tl(c)?kI(c,f,d,v,E,x):lj(c,f,M,d,v,E,x);if(!(d&y)){var Oe=J&&Ft.call(c,"__wrapped__"),Me=ee&&Ft.call(f,"__wrapped__");if(Oe||Me){var Ze=Oe?c.value():c,ke=Me?f.value():f;return x||(x=new Zr),E(Ze,ke,d,v,x)}}return ge?(x||(x=new Zr),fj(c,f,d,v,E,x)):!1}o(wk,"baseIsEqualDeep");function Mk(c){return vn(c)&&di(c)==Xe}o(Mk,"baseIsMap");function Dv(c,f,d,v){var E=d.length,x=E,L=!v;if(c==null)return!x;for(c=Kt(c);E--;){var R=d[E];if(L&&R[2]?R[1]!==c[R[0]]:!(R[0]in c))return!1}for(;++E<x;){R=d[E];var M=R[0],Y=c[M],J=R[1];if(L&&R[2]){if(Y===e&&!(M in c))return!1}else{var ee=new Zr;if(v)var ge=v(Y,J,M,c,f,ee);if(!(ge===e?jf(J,Y,y|A,v,ee):ge))return!1}}return!0}o(Dv,"baseIsMatch");function aI(c){if(!mn(c)||Tj(c))return!1;var f=ta(c)?M2:xM;return f.test(Hs(c))}o(aI,"baseIsNative");function kk(c){return vn(c)&&xi(c)==ir}o(kk,"baseIsRegExp");function jk(c){return vn(c)&&di(c)==dn}o(jk,"baseIsSet");function Uk(c){return vn(c)&&tg(c.length)&&!!tn[xi(c)]}o(Uk,"baseIsTypedArray");function sI(c){return typeof c=="function"?c:c==null?Gi:typeof c=="object"?Ke(c)?fI(c[0],c[1]):lI(c):NO(c)}o(sI,"baseIteratee");function _v(c){if(!Bf(c))return H2(c);var f=[];for(var d in Kt(c))Ft.call(c,d)&&d!="constructor"&&f.push(d);return f}o(_v,"baseKeys");function $k(c){if(!mn(c))return Sj(c);var f=Bf(c),d=[];for(var v in c)v=="constructor"&&(f||!Ft.call(c,v))||d.push(v);return d}o($k,"baseKeysIn");function Vv(c,f){return c<f}o(Vv,"baseLt");function cI(c,f){var d=-1,v=Bi(c)?W(c.length):[];return Ma(c,function(E,x,L){v[++d]=f(E,x,L)}),v}o(cI,"baseMap");function lI(c){var f=zv(c);return f.length==1&&f[0][2]?HI(f[0][0],f[0][1]):function(d){return d===c||Dv(d,c,f)}}o(lI,"baseMatches");function fI(c,f){return Jv(c)&&BI(f)?HI(Po(c),f):function(d){var v=cT(d,c);return v===e&&v===f?lT(d,c):jf(f,v,y|A)}}o(fI,"baseMatchesProperty");function jd(c,f,d,v,E){c!==f&&Nv(f,function(x,L){if(E||(E=new Zr),mn(x))Bk(c,f,L,d,jd,v,E);else{var R=v?v(eT(c,L),x,L+"",c,f,E):e;R===e&&(R=x),Iv(c,L,R)}},Hi)}o(jd,"baseMerge");function Bk(c,f,d,v,E,x,L){var R=eT(c,d),M=eT(f,d),Y=L.get(M);if(Y){Iv(c,d,Y);return}var J=x?x(R,M,d+"",c,f,L):e,ee=J===e;if(ee){var ge=Ke(M),Oe=!ge&&$a(M),Me=!ge&&!Oe&&tl(M);J=M,ge||Oe||Me?Ke(R)?J=R:In(R)?J=$i(R):Oe?(ee=!1,J=AI(M,!0)):Me?(ee=!1,J=SI(M,!0)):J=[]:Gf(M)||Gs(M)?(J=R,Gs(R)?J=TO(R):(!mn(R)||ta(R))&&(J=$I(M))):ee=!1}ee&&(L.set(M,J),E(J,M,v,x,L),L.delete(M)),Iv(c,d,J)}o(Bk,"baseMergeDeep");function uI(c,f){var d=c.length;if(d)return f+=f<0?d:0,ea(f,d)?c[f]:e}o(uI,"baseNth");function pI(c,f,d){f.length?f=fn(f,function(x){return Ke(x)?function(L){return $s(L,x.length===1?x[0]:x)}:x}):f=[Gi];var v=-1;f=fn(f,ar(Ve()));var E=cI(c,function(x,L,R){var M=fn(f,function(Y){return Y(x)});return{criteria:M,index:++v,value:x}});return g2(E,function(x,L){return tj(x,L,d)})}o(pI,"baseOrderBy");function Hk(c,f){return dI(c,f,function(d,v){return lT(c,v)})}o(Hk,"basePick");function dI(c,f,d){for(var v=-1,E=f.length,x={};++v<E;){var L=f[v],R=$s(c,L);d(R,L)&&Uf(x,ja(L,c),R)}return x}o(dI,"basePickBy");function Gk(c){return function(f){return $s(f,c)}}o(Gk,"basePropertyDeep");function wv(c,f,d,v){var E=v?d2:Wc,x=-1,L=f.length,R=c;for(c===f&&(f=$i(f)),d&&(R=fn(c,ar(d)));++x<L;)for(var M=0,Y=f[x],J=d?d(Y):Y;(M=E(R,J,M,v))>-1;)R!==c&&Nd.call(R,M,1),Nd.call(c,M,1);return c}o(wv,"basePullAll");function gI(c,f){for(var d=c?f.length:0,v=d-1;d--;){var E=f[d];if(d==v||E!==x){var x=E;ea(E)?Nd.call(c,E,1):Uv(c,E)}}return c}o(gI,"basePullAt");function Mv(c,f){return c+Fd(Qx()*(f-c+1))}o(Mv,"baseRandom");function Wk(c,f,d,v){for(var E=-1,x=$n(Rd((f-c)/(d||1)),0),L=W(x);x--;)L[v?x:++E]=c,c+=d;return L}o(Wk,"baseRange");function kv(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=Fd(f/2),f&&(c+=c);while(f);return d}o(kv,"baseRepeat");function nt(c,f){return tT(GI(c,f,Gi),c+"")}o(nt,"baseRest");function Kk(c){return Yx(nl(c))}o(Kk,"baseSample");function Xk(c,f){var d=nl(c);return qd(d,Us(f,0,d.length))}o(Xk,"baseSampleSize");function Uf(c,f,d,v){if(!mn(c))return c;f=ja(f,c);for(var E=-1,x=f.length,L=x-1,R=c;R!=null&&++E<x;){var M=Po(f[E]),Y=d;if(M==="__proto__"||M==="constructor"||M==="prototype")return c;if(E!=L){var J=R[M];Y=v?v(J,M,R):e,Y===e&&(Y=mn(J)?J:ea(f[E+1])?[]:{})}wf(R,M,Y),R=R[M]}return c}o(Uf,"baseSet");var mI=Dd?function(c,f){return Dd.set(c,f),c}:Gi,Qk=Ld?function(c,f){return Ld(c,"toString",{configurable:!0,enumerable:!1,value:uT(f),writable:!0})}:Gi;function qk(c){return qd(nl(c))}o(qk,"baseShuffle");function Rr(c,f,d){var v=-1,E=c.length;f<0&&(f=-f>E?0:E+f),d=d>E?E:d,d<0&&(d+=E),E=f>d?0:d-f>>>0,f>>>=0;for(var x=W(E);++v<E;)x[v]=c[v+f];return x}o(Rr,"baseSlice");function zk(c,f){var d;return Ma(c,function(v,E,x){return d=f(v,E,x),!d}),!!d}o(zk,"baseSome");function Ud(c,f,d){var v=0,E=c==null?v:c.length;if(typeof f=="number"&&f===f&&E<=ji){for(;v<E;){var x=v+E>>>1,L=c[x];L!==null&&!cr(L)&&(d?L<=f:L<f)?v=x+1:E=x}return E}return jv(c,f,Gi,d)}o(Ud,"baseSortedIndex");function jv(c,f,d,v){var E=0,x=c==null?0:c.length;if(x===0)return 0;f=d(f);for(var L=f!==f,R=f===null,M=cr(f),Y=f===e;E<x;){var J=Fd((E+x)/2),ee=d(c[J]),ge=ee!==e,Oe=ee===null,Me=ee===ee,Ze=cr(ee);if(L)var ke=v||Me;else Y?ke=Me&&(v||ge):R?ke=Me&&ge&&(v||!Oe):M?ke=Me&&ge&&!Oe&&(v||!Ze):Oe||Ze?ke=!1:ke=v?ee<=f:ee<f;ke?E=J+1:x=J}return pi(x,sn)}o(jv,"baseSortedIndexBy");function hI(c,f){for(var d=-1,v=c.length,E=0,x=[];++d<v;){var L=c[d],R=f?f(L):L;if(!d||!eo(R,M)){var M=R;x[E++]=L===0?0:L}}return x}o(hI,"baseSortedUniq");function yI(c){return typeof c=="number"?c:cr(c)?It:+c}o(yI,"baseToNumber");function sr(c){if(typeof c=="string")return c;if(Ke(c))return fn(c,sr)+"";if(cr(c))return qx?qx.call(c):"";var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(sr,"baseToString");function ka(c,f,d){var v=-1,E=Td,x=c.length,L=!0,R=[],M=R;if(d)L=!1,E=gv;else if(x>=n){var Y=f?null:sj(c);if(Y)return Ed(Y);L=!1,E=Lf,M=new js}else M=f?[]:R;e:for(;++v<x;){var J=c[v],ee=f?f(J):J;if(J=d||J!==0?J:0,L&&ee===ee){for(var ge=M.length;ge--;)if(M[ge]===ee)continue e;f&&M.push(ee),R.push(J)}else E(M,ee,d)||(M!==R&&M.push(ee),R.push(J))}return R}o(ka,"baseUniq");function Uv(c,f){return f=ja(f,c),c=WI(c,f),c==null||delete c[Po(Fr(f))]}o(Uv,"baseUnset");function vI(c,f,d,v){return Uf(c,f,d($s(c,f)),v)}o(vI,"baseUpdate");function $d(c,f,d,v){for(var E=c.length,x=v?E:-1;(v?x--:++x<E)&&f(c[x],x,c););return d?Rr(c,v?0:x,v?x+1:E):Rr(c,v?x+1:0,v?E:x)}o($d,"baseWhile");function TI(c,f){var d=c;return d instanceof ut&&(d=d.value()),mv(f,function(v,E){return E.func.apply(E.thisArg,Da([v],E.args))},d)}o(TI,"baseWrapperValue");function $v(c,f,d){var v=c.length;if(v<2)return v?ka(c[0]):[];for(var E=-1,x=W(v);++E<v;)for(var L=c[E],R=-1;++R<v;)R!=E&&(x[E]=Mf(x[E]||L,c[R],f,d));return ka(ni(x,1),f,d)}o($v,"baseXor");function bI(c,f,d){for(var v=-1,E=c.length,x=f.length,L={};++v<E;){var R=v<x?f[v]:e;d(L,c[v],R)}return L}o(bI,"baseZipObject");function Bv(c){return In(c)?c:[]}o(Bv,"castArrayLikeObject");function Hv(c){return typeof c=="function"?c:Gi}o(Hv,"castFunction");function ja(c,f){return Ke(c)?c:Jv(c,f)?[c]:qI(Ot(c))}o(ja,"castPath");var Yk=nt;function Ua(c,f,d){var v=c.length;return d=d===e?v:d,!f&&d>=v?c:Rr(c,f,d)}o(Ua,"castSlice");var EI=k2||function(c){return Xn.clearTimeout(c)};function AI(c,f){if(f)return c.slice();var d=c.length,v=Hx?Hx(d):new c.constructor(d);return c.copy(v),v}o(AI,"cloneBuffer");function Gv(c){var f=new c.constructor(c.byteLength);return new Id(f).set(new Id(c)),f}o(Gv,"cloneArrayBuffer");function Jk(c,f){var d=f?Gv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(Jk,"cloneDataView");function Zk(c){var f=new c.constructor(c.source,ox.exec(c));return f.lastIndex=c.lastIndex,f}o(Zk,"cloneRegExp");function ej(c){return Vf?Kt(Vf.call(c)):{}}o(ej,"cloneSymbol");function SI(c,f){var d=f?Gv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(SI,"cloneTypedArray");function PI(c,f){if(c!==f){var d=c!==e,v=c===null,E=c===c,x=cr(c),L=f!==e,R=f===null,M=f===f,Y=cr(f);if(!R&&!Y&&!x&&c>f||x&&L&&M&&!R&&!Y||v&&L&&M||!d&&M||!E)return 1;if(!v&&!x&&!Y&&c<f||Y&&d&&E&&!v&&!x||R&&d&&E||!L&&E||!M)return-1}return 0}o(PI,"compareAscending");function tj(c,f,d){for(var v=-1,E=c.criteria,x=f.criteria,L=E.length,R=d.length;++v<L;){var M=PI(E[v],x[v]);if(M){if(v>=R)return M;var Y=d[v];return M*(Y=="desc"?-1:1)}}return c.index-f.index}o(tj,"compareMultiple");function CI(c,f,d,v){for(var E=-1,x=c.length,L=d.length,R=-1,M=f.length,Y=$n(x-L,0),J=W(M+Y),ee=!v;++R<M;)J[R]=f[R];for(;++E<L;)(ee||E<x)&&(J[d[E]]=c[E]);for(;Y--;)J[R++]=c[E++];return J}o(CI,"composeArgs");function xI(c,f,d,v){for(var E=-1,x=c.length,L=-1,R=d.length,M=-1,Y=f.length,J=$n(x-R,0),ee=W(J+Y),ge=!v;++E<J;)ee[E]=c[E];for(var Oe=E;++M<Y;)ee[Oe+M]=f[M];for(;++L<R;)(ge||E<x)&&(ee[Oe+d[L]]=c[E++]);return ee}o(xI,"composeArgsRight");function $i(c,f){var d=-1,v=c.length;for(f||(f=W(v));++d<v;)f[d]=c[d];return f}o($i,"copyArray");function So(c,f,d,v){var E=!d;d||(d={});for(var x=-1,L=f.length;++x<L;){var R=f[x],M=v?v(d[R],c[R],R,d,c):e;M===e&&(M=c[R]),E?Yo(d,R,M):wf(d,R,M)}return d}o(So,"copyObject");function nj(c,f){return So(c,Yv(c),f)}o(nj,"copySymbols");function ij(c,f){return So(c,jI(c),f)}o(ij,"copySymbolsIn");function Bd(c,f){return function(d,v){var E=Ke(d)?s2:Ck,x=f?f():{};return E(d,c,Ve(v,2),x)}}o(Bd,"createAggregator");function Jc(c){return nt(function(f,d){var v=-1,E=d.length,x=E>1?d[E-1]:e,L=E>2?d[2]:e;for(x=c.length>3&&typeof x=="function"?(E--,x):e,L&&Ii(d[0],d[1],L)&&(x=E<3?e:x,E=1),f=Kt(f);++v<E;){var R=d[v];R&&c(f,R,v,x)}return f})}o(Jc,"createAssigner");function II(c,f){return function(d,v){if(d==null)return d;if(!Bi(d))return c(d,v);for(var E=d.length,x=f?E:-1,L=Kt(d);(f?x--:++x<E)&&v(L[x],x,L)!==!1;);return d}}o(II,"createBaseEach");function OI(c){return function(f,d,v){for(var E=-1,x=Kt(f),L=v(f),R=L.length;R--;){var M=L[c?R:++E];if(d(x[M],M,x)===!1)break}return f}}o(OI,"createBaseFor");function rj(c,f,d){var v=f&b,E=$f(c);function x(){var L=this&&this!==Xn&&this instanceof x?E:c;return L.apply(v?d:this,arguments)}return o(x,"wrapper"),x}o(rj,"createBind");function NI(c){return function(f){f=Ot(f);var d=Kc(f)?Jr(f):e,v=d?d[0]:f.charAt(0),E=d?Ua(d,1).join(""):f.slice(1);return v[c]()+E}}o(NI,"createCaseFirst");function Zc(c){return function(f){return mv(IO(xO(f).replace(XM,"")),c,"")}}o(Zc,"createCompounder");function $f(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=Yc(c.prototype),v=c.apply(d,f);return mn(v)?v:d}}o($f,"createCtor");function oj(c,f,d){var v=$f(c);function E(){for(var x=arguments.length,L=W(x),R=x,M=el(E);R--;)L[R]=arguments[R];var Y=x<3&&L[0]!==M&&L[x-1]!==M?[]:_a(L,M);if(x-=Y.length,x<d)return _I(c,f,Hd,E.placeholder,e,L,Y,e,e,d-x);var J=this&&this!==Xn&&this instanceof E?v:c;return or(J,this,L)}return o(E,"wrapper"),E}o(oj,"createCurry");function LI(c){return function(f,d,v){var E=Kt(f);if(!Bi(f)){var x=Ve(d,3);f=Qn(f),d=o(function(R){return x(E[R],R,E)},"predicate")}var L=c(f,d,v);return L>-1?E[x?f[L]:L]:e}}o(LI,"createFind");function RI(c){return Zo(function(f){var d=f.length,v=d,E=Nr.prototype.thru;for(c&&f.reverse();v--;){var x=f[v];if(typeof x!="function")throw new Or(r);if(E&&!L&&Xd(x)=="wrapper")var L=new Nr([],!0)}for(v=L?v:d;++v<d;){x=f[v];var R=Xd(x),M=R=="wrapper"?qv(x):e;M&&Zv(M[0])&&M[1]==(Z|j|B|re)&&!M[4].length&&M[9]==1?L=L[Xd(M[0])].apply(L,M[3]):L=x.length==1&&Zv(x)?L[R]():L.thru(x)}return function(){var Y=arguments,J=Y[0];if(L&&Y.length==1&&Ke(J))return L.plant(J).value();for(var ee=0,ge=d?f[ee].apply(this,Y):J;++ee<d;)ge=f[ee].call(this,ge);return ge}})}o(RI,"createFlow");function Hd(c,f,d,v,E,x,L,R,M,Y){var J=f&Z,ee=f&b,ge=f&O,Oe=f&(j|G),Me=f&Se,Ze=ge?e:$f(c);function ke(){for(var st=arguments.length,dt=W(st),lr=st;lr--;)dt[lr]=arguments[lr];if(Oe)var Oi=el(ke),fr=h2(dt,Oi);if(v&&(dt=CI(dt,v,E,Oe)),x&&(dt=xI(dt,x,L,Oe)),st-=fr,Oe&&st<Y){var On=_a(dt,Oi);return _I(c,f,Hd,ke.placeholder,d,dt,On,R,M,Y-st)}var to=ee?d:this,ia=ge?to[c]:c;return st=dt.length,R?dt=Cj(dt,R):Me&&st>1&&dt.reverse(),J&&M<st&&(dt.length=M),this&&this!==Xn&&this instanceof ke&&(ia=Ze||$f(ia)),ia.apply(to,dt)}return o(ke,"wrapper"),ke}o(Hd,"createHybrid");function FI(c,f){return function(d,v){return Dk(d,c,f(v),{})}}o(FI,"createInverter");function Gd(c,f){return function(d,v){var E;if(d===e&&v===e)return f;if(d!==e&&(E=d),v!==e){if(E===e)return v;typeof d=="string"||typeof v=="string"?(d=sr(d),v=sr(v)):(d=yI(d),v=yI(v)),E=c(d,v)}return E}}o(Gd,"createMathOperation");function Wv(c){return Zo(function(f){return f=fn(f,ar(Ve())),nt(function(d){var v=this;return c(f,function(E){return or(E,v,d)})})})}o(Wv,"createOver");function Wd(c,f){f=f===e?" ":sr(f);var d=f.length;if(d<2)return d?kv(f,c):f;var v=kv(f,Rd(c/Xc(f)));return Kc(f)?Ua(Jr(v),0,c).join(""):v.slice(0,c)}o(Wd,"createPadding");function aj(c,f,d,v){var E=f&b,x=$f(c);function L(){for(var R=-1,M=arguments.length,Y=-1,J=v.length,ee=W(J+M),ge=this&&this!==Xn&&this instanceof L?x:c;++Y<J;)ee[Y]=v[Y];for(;M--;)ee[Y++]=arguments[++R];return or(ge,E?d:this,ee)}return o(L,"wrapper"),L}o(aj,"createPartial");function DI(c){return function(f,d,v){return v&&typeof v!="number"&&Ii(f,d,v)&&(d=v=e),f=na(f),d===e?(d=f,f=0):d=na(d),v=v===e?f<d?1:-1:na(v),Wk(f,d,v,c)}}o(DI,"createRange");function Kd(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Dr(f),d=Dr(d)),c(f,d)}}o(Kd,"createRelationalOperation");function _I(c,f,d,v,E,x,L,R,M,Y){var J=f&j,ee=J?L:e,ge=J?e:L,Oe=J?x:e,Me=J?e:x;f|=J?B:ae,f&=~(J?ae:B),f&D||(f&=~(b|O));var Ze=[c,f,E,Oe,ee,Me,ge,R,M,Y],ke=d.apply(e,Ze);return Zv(c)&&KI(ke,Ze),ke.placeholder=v,XI(ke,c,f)}o(_I,"createRecurry");function Kv(c){var f=Un[c];return function(d,v){if(d=Dr(d),v=v==null?0:pi(Ye(v),292),v&&Xx(d)){var E=(Ot(d)+"e").split("e"),x=f(E[0]+"e"+(+E[1]+v));return E=(Ot(x)+"e").split("e"),+(E[0]+"e"+(+E[1]-v))}return f(d)}}o(Kv,"createRound");var sj=qc&&1/Ed(new qc([,-0]))[1]==Lt?function(c){return new qc(c)}:gT;function VI(c){return function(f){var d=di(f);return d==Xe?Av(f):d==dn?P2(f):m2(f,c(f))}}o(VI,"createToPairs");function Jo(c,f,d,v,E,x,L,R){var M=f&O;if(!M&&typeof c!="function")throw new Or(r);var Y=v?v.length:0;if(Y||(f&=~(B|ae),v=E=e),L=L===e?L:$n(Ye(L),0),R=R===e?R:Ye(R),Y-=E?E.length:0,f&ae){var J=v,ee=E;v=E=e}var ge=M?e:qv(c),Oe=[c,f,d,v,E,J,ee,x,L,R];if(ge&&Aj(Oe,ge),c=Oe[0],f=Oe[1],d=Oe[2],v=Oe[3],E=Oe[4],R=Oe[9]=Oe[9]===e?M?0:c.length:$n(Oe[9]-Y,0),!R&&f&(j|G)&&(f&=~(j|G)),!f||f==b)var Me=rj(c,f,d);else f==j||f==G?Me=oj(c,f,R):(f==B||f==(b|B))&&!E.length?Me=aj(c,f,d,v):Me=Hd.apply(e,Oe);var Ze=ge?mI:KI;return XI(Ze(Me,Oe),c,f)}o(Jo,"createWrap");function wI(c,f,d,v){return c===e||eo(c,Qc[d])&&!Ft.call(v,d)?f:c}o(wI,"customDefaultsAssignIn");function MI(c,f,d,v,E,x){return mn(c)&&mn(f)&&(x.set(f,c),jd(c,f,e,MI,x),x.delete(f)),c}o(MI,"customDefaultsMerge");function cj(c){return Gf(c)?e:c}o(cj,"customOmitClone");function kI(c,f,d,v,E,x){var L=d&y,R=c.length,M=f.length;if(R!=M&&!(L&&M>R))return!1;var Y=x.get(c),J=x.get(f);if(Y&&J)return Y==f&&J==c;var ee=-1,ge=!0,Oe=d&A?new js:e;for(x.set(c,f),x.set(f,c);++ee<R;){var Me=c[ee],Ze=f[ee];if(v)var ke=L?v(Ze,Me,ee,f,c,x):v(Me,Ze,ee,c,f,x);if(ke!==e){if(ke)continue;ge=!1;break}if(Oe){if(!hv(f,function(st,dt){if(!Lf(Oe,dt)&&(Me===st||E(Me,st,d,v,x)))return Oe.push(dt)})){ge=!1;break}}else if(!(Me===Ze||E(Me,Ze,d,v,x))){ge=!1;break}}return x.delete(c),x.delete(f),ge}o(kI,"equalArrays");function lj(c,f,d,v,E,x,L){switch(d){case Cr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case _s:return!(c.byteLength!=f.byteLength||!x(new Id(c),new Id(f)));case I:case S:case kt:return eo(+c,+f);case V:return c.name==f.name&&c.message==f.message;case ir:case ui:return c==f+"";case Xe:var R=Av;case dn:var M=v&y;if(R||(R=Ed),c.size!=f.size&&!M)return!1;var Y=L.get(c);if(Y)return Y==f;v|=A,L.set(c,f);var J=kI(R(c),R(f),v,E,x,L);return L.delete(c),J;case Gt:if(Vf)return Vf.call(c)==Vf.call(f)}return!1}o(lj,"equalByTag");function fj(c,f,d,v,E,x){var L=d&y,R=Xv(c),M=R.length,Y=Xv(f),J=Y.length;if(M!=J&&!L)return!1;for(var ee=M;ee--;){var ge=R[ee];if(!(L?ge in f:Ft.call(f,ge)))return!1}var Oe=x.get(c),Me=x.get(f);if(Oe&&Me)return Oe==f&&Me==c;var Ze=!0;x.set(c,f),x.set(f,c);for(var ke=L;++ee<M;){ge=R[ee];var st=c[ge],dt=f[ge];if(v)var lr=L?v(dt,st,ge,f,c,x):v(st,dt,ge,c,f,x);if(!(lr===e?st===dt||E(st,dt,d,v,x):lr)){Ze=!1;break}ke||(ke=ge=="constructor")}if(Ze&&!ke){var Oi=c.constructor,fr=f.constructor;Oi!=fr&&"constructor"in c&&"constructor"in f&&!(typeof Oi=="function"&&Oi instanceof Oi&&typeof fr=="function"&&fr instanceof fr)&&(Ze=!1)}return x.delete(c),x.delete(f),Ze}o(fj,"equalObjects");function Zo(c){return tT(GI(c,e,ZI),c+"")}o(Zo,"flatRest");function Xv(c){return rI(c,Qn,Yv)}o(Xv,"getAllKeys");function Qv(c){return rI(c,Hi,jI)}o(Qv,"getAllKeysIn");var qv=Dd?function(c){return Dd.get(c)}:gT;function Xd(c){for(var f=c.name+"",d=zc[f],v=Ft.call(zc,f)?d.length:0;v--;){var E=d[v],x=E.func;if(x==null||x==c)return E.name}return f}o(Xd,"getFuncName");function el(c){var f=Ft.call(P,"placeholder")?P:c;return f.placeholder}o(el,"getHolder");function Ve(){var c=P.iteratee||pT;return c=c===pT?sI:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function Qd(c,f){var d=c.__data__;return vj(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(Qd,"getMapData");function zv(c){for(var f=Qn(c),d=f.length;d--;){var v=f[d],E=c[v];f[d]=[v,E,BI(E)]}return f}o(zv,"getMatchData");function Bs(c,f){var d=E2(c,f);return aI(d)?d:e}o(Bs,"getNative");function uj(c){var f=Ft.call(c,Ms),d=c[Ms];try{c[Ms]=e;var v=!0}catch{}var E=Cd.call(c);return v&&(f?c[Ms]=d:delete c[Ms]),E}o(uj,"getRawTag");var Yv=Pv?function(c){return c==null?[]:(c=Kt(c),Fa(Pv(c),function(f){return Wx.call(c,f)}))}:mT,jI=Pv?function(c){for(var f=[];c;)Da(f,Yv(c)),c=Od(c);return f}:mT,di=xi;(Cv&&di(new Cv(new ArrayBuffer(1)))!=Cr||Ff&&di(new Ff)!=Xe||xv&&di(xv.resolve())!=Ht||qc&&di(new qc)!=dn||Df&&di(new Df)!=Ui)&&(di=o(function(c){var f=xi(c),d=f==cn?c.constructor:e,v=d?Hs(d):"";if(v)switch(v){case X2:return Cr;case Q2:return Xe;case q2:return Ht;case z2:return dn;case Y2:return Ui}return f},"getTag"));function pj(c,f,d){for(var v=-1,E=d.length;++v<E;){var x=d[v],L=x.size;switch(x.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=pi(f,c+L);break;case"takeRight":c=$n(c,f-L);break}}return{start:c,end:f}}o(pj,"getView");function dj(c){var f=c.match(vM);return f?f[1].split(TM):[]}o(dj,"getWrapDetails");function UI(c,f,d){f=ja(f,c);for(var v=-1,E=f.length,x=!1;++v<E;){var L=Po(f[v]);if(!(x=c!=null&&d(c,L)))break;c=c[L]}return x||++v!=E?x:(E=c==null?0:c.length,!!E&&tg(E)&&ea(L,E)&&(Ke(c)||Gs(c)))}o(UI,"hasPath");function gj(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Ft.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(gj,"initCloneArray");function $I(c){return typeof c.constructor=="function"&&!Bf(c)?Yc(Od(c)):{}}o($I,"initCloneObject");function mj(c,f,d){var v=c.constructor;switch(f){case _s:return Gv(c);case I:case S:return new v(+c);case Cr:return Jk(c,d);case xf:case If:case Of:case Vs:case k:case $:case Q:case ce:case Ne:return SI(c,d);case Xe:return new v;case kt:case ui:return new v(c);case ir:return Zk(c);case dn:return new v;case Gt:return ej(c)}}o(mj,"initCloneByTag");function hj(c,f){var d=f.length;if(!d)return c;var v=d-1;return f[v]=(d>1?"& ":"")+f[v],f=f.join(d>2?", ":" "),c.replace(yM,`{
267
+ Please avoid using it as it will be completely removed in the future`)}var RQ,vy=Qe(()=>{VA();vr();tp();ys();op();zl();KA();wi();wi();Kl();iS();X_();tV();o(LQ,"clearCache");RQ=function(){function e(){throw new Error(`The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.
268
+ See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return o(e,"Parser"),e}()});var gS=qe((Rce,sV)=>{var{createToken:FQ,Lexer:pS}=(vy(),og(yy)),iV={},ef=iV;function dS(e,t){iV[e]=typeof t=="string"?t:t.source}o(dS,"FRAGMENT");function yp(e,...t){let n="";for(let i=0;i<e.length;i++)if(n+=e[i],i<t.length){let r=t[i];n+=`(?:${r})`}return new RegExp(n)}o(yp,"makePattern");var DQ=[],rV={};function Cn(e){let t=FQ(e);return DQ.push(t),rV[e.name]=t,t}o(Cn,"createToken");dS("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");dS("NameChar",yp`${ef.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);dS("Name",yp`${ef.NameStartChar}(${ef.NameChar})*`);var nV=Cn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),_Q=Cn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),VQ=Cn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),wQ=Cn({name:"DTD",pattern:/<!.*?>/,group:pS.SKIPPED}),MQ=Cn({name:"EntityRef",pattern:yp`&${ef.Name};`}),kQ=Cn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),jQ=Cn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),UQ=Cn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),oV=Cn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),$Q=Cn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[oV]}),BQ=Cn({name:"PROCESSING_INSTRUCTION",pattern:yp`<\\?${ef.Name}.*\\?>`}),aV=Cn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),HQ=Cn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[aV]}),GQ=Cn({name:"TEXT",pattern:/[^<&]+/}),WQ=Cn({name:"CLOSE",pattern:/>/,pop_mode:!0}),KQ=Cn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),XQ=Cn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),QQ=Cn({name:"SLASH",pattern:/\//}),qQ=Cn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),zQ=Cn({name:"EQUALS",pattern:/=/}),YQ=Cn({name:"Name",pattern:yp`${ef.Name}`}),JQ=Cn({name:"S",pattern:/[ \t\r\n]/,group:pS.SKIPPED}),ZQ={defaultMode:"OUTSIDE",modes:{OUTSIDE:[nV,_Q,VQ,wQ,MQ,kQ,jQ,UQ,oV,BQ,aV,GQ],INSIDE:[nV,$Q,HQ,WQ,KQ,XQ,QQ,zQ,qQ,YQ,JQ]}},e6=new pS(ZQ,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
269
+ `],lineTerminatorsPattern:/\n|\r\n/g});sV.exports={xmlLexer:e6,tokensDictionary:rV}});var lV=qe((Dce,cV)=>{var{CstParser:t6,tokenMatcher:n6}=(vy(),og(yy)),{tokensDictionary:xt}=gS(),hS=class hS extends t6{constructor(){super(xt,{maxLookahead:1,recoveryEnabled:!0,nodeLocationTracking:"full"}),this.deletionRecoveryEnabled=!0;let t=this;t.RULE("document",()=>{t.OPTION(()=>{t.SUBRULE(t.prolog)}),t.MANY(()=>{t.SUBRULE(t.misc)}),t.OPTION2(()=>{t.SUBRULE(t.docTypeDecl)}),t.MANY2(()=>{t.SUBRULE2(t.misc)}),t.SUBRULE(t.element),t.MANY3(()=>{t.SUBRULE3(t.misc)})}),t.RULE("prolog",()=>{t.CONSUME(xt.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(xt.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(xt.DocType),t.CONSUME(xt.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(xt.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:o(()=>t.SUBRULE(t.element),"ALT")},{ALT:o(()=>t.SUBRULE(t.chardata),"ALT")},{ALT:o(()=>t.SUBRULE(t.reference),"ALT")},{ALT:o(()=>t.CONSUME(xt.CData),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(xt.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(xt.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(xt.SLASH_OPEN),t.CONSUME2(xt.Name,{LABEL:"END_NAME"}),t.CONSUME2(xt.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(xt.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(xt.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(xt.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.EQUALS),t.CONSUME(xt.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),this.performSelfAnalysis()}canRecoverWithSingleTokenDeletion(t){return this.deletionRecoveryEnabled===!1?!1:super.canRecoverWithSingleTokenDeletion(t)}findReSyncTokenType(){let t=this.flattenFollowSet(),n=this.LA(1),i=2;for(;;){let r=t.find(a=>n6(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(hS,"Parser");var mS=hS,i6=new mS;cV.exports={xmlParser:i6}});var yS=qe((Vce,fV)=>{var{xmlLexer:r6}=gS(),{xmlParser:Ty}=lV();fV.exports={parse:o(function(t){let n=r6.tokenize(t);return Ty.input=n.tokens,{cst:Ty.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Ty.errors}},"parse"),BaseXmlCstVisitor:Ty.getBaseCstVisitorConstructor()}});var Tp=qe((tf,vp)=>{(function(){var e,t="4.17.21",n=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",a="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",p=1,g=2,m=4,y=1,A=2,b=1,O=2,D=4,j=8,G=16,B=32,ae=64,Z=128,re=256,Se=512,_=30,ft="...",yt=800,Ue=16,an=1,Wn=2,en=3,Lt=1/0,Re=9007199254740991,Ci=17976931348623157e292,It=NaN,Mt=4294967295,sn=Mt-1,ji=Mt>>>1,Fe=[["ary",Z],["bind",b],["bindKey",O],["curry",j],["curryRight",G],["flip",Se],["partial",B],["partialRight",ae],["rearg",re]],Kn="[object Arguments]",Pr="[object Array]",at="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",z="[object DOMException]",V="[object Error]",_e="[object Function]",Rt="[object GeneratorFunction]",Xe="[object Map]",kt="[object Number]",yn="[object Null]",cn="[object Object]",Ht="[object Promise]",ti="[object Proxy]",ir="[object RegExp]",dn="[object Set]",ui="[object String]",Gt="[object Symbol]",Qo="[object Undefined]",Ui="[object WeakMap]",Cf="[object WeakSet]",_s="[object ArrayBuffer]",Cr="[object DataView]",xf="[object Float32Array]",If="[object Float64Array]",Of="[object Int8Array]",Vs="[object Int16Array]",k="[object Int32Array]",$="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Ne="[object Uint32Array]",gn=/\b__p \+= '';/g,xn=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,Pe=RegExp(me.source),Ie=RegExp(Te.source),rt=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,ln=/<%=([\s\S]+?)%>/g,rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,md=/^\w*$/,ov=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nf=/[\\^$.*+?()[\]{}|]/g,mM=RegExp(Nf.source),av=/^\s+/,hM=/\s/,yM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,vM=/\{\n\/\* \[wrapped with (.+)\] \*/,TM=/,? & /,bM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,EM=/[()=,{}\[\]\/\s]/,AM=/\\(\\)?/g,SM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ox=/\w*$/,PM=/^[-+]0x[0-9a-f]+$/i,CM=/^0b[01]+$/i,xM=/^\[object .+?Constructor\]$/,IM=/^0o[0-7]+$/i,OM=/^(?:0|[1-9]\d*)$/,NM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hd=/($^)/,LM=/['\n\r\u2028\u2029\\]/g,yd="\\ud800-\\udfff",RM="\\u0300-\\u036f",FM="\\ufe20-\\ufe2f",DM="\\u20d0-\\u20ff",ax=RM+FM+DM,sx="\\u2700-\\u27bf",cx="a-z\\xdf-\\xf6\\xf8-\\xff",_M="\\xac\\xb1\\xd7\\xf7",VM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",wM="\\u2000-\\u206f",MM=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lx="A-Z\\xc0-\\xd6\\xd8-\\xde",fx="\\ufe0e\\ufe0f",ux=_M+VM+wM+MM,sv="['\u2019]",kM="["+yd+"]",px="["+ux+"]",vd="["+ax+"]",dx="\\d+",jM="["+sx+"]",gx="["+cx+"]",mx="[^"+yd+ux+dx+sx+cx+lx+"]",cv="\\ud83c[\\udffb-\\udfff]",UM="(?:"+vd+"|"+cv+")",hx="[^"+yd+"]",lv="(?:\\ud83c[\\udde6-\\uddff]){2}",fv="[\\ud800-\\udbff][\\udc00-\\udfff]",Gc="["+lx+"]",yx="\\u200d",vx="(?:"+gx+"|"+mx+")",$M="(?:"+Gc+"|"+mx+")",Tx="(?:"+sv+"(?:d|ll|m|re|s|t|ve))?",bx="(?:"+sv+"(?:D|LL|M|RE|S|T|VE))?",Ex=UM+"?",Ax="["+fx+"]?",BM="(?:"+yx+"(?:"+[hx,lv,fv].join("|")+")"+Ax+Ex+")*",HM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",GM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sx=Ax+Ex+BM,WM="(?:"+[jM,lv,fv].join("|")+")"+Sx,KM="(?:"+[hx+vd+"?",vd,lv,fv,kM].join("|")+")",XM=RegExp(sv,"g"),QM=RegExp(vd,"g"),uv=RegExp(cv+"(?="+cv+")|"+KM+Sx,"g"),qM=RegExp([Gc+"?"+gx+"+"+Tx+"(?="+[px,Gc,"$"].join("|")+")",$M+"+"+bx+"(?="+[px,Gc+vx,"$"].join("|")+")",Gc+"?"+vx+"+"+Tx,Gc+"+"+bx,GM,HM,dx,WM].join("|"),"g"),zM=RegExp("["+yx+yd+ax+fx+"]"),YM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,JM=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ZM=-1,tn={};tn[xf]=tn[If]=tn[Of]=tn[Vs]=tn[k]=tn[$]=tn[Q]=tn[ce]=tn[Ne]=!0,tn[Kn]=tn[Pr]=tn[_s]=tn[I]=tn[Cr]=tn[S]=tn[V]=tn[_e]=tn[Xe]=tn[kt]=tn[cn]=tn[ir]=tn[dn]=tn[ui]=tn[Ui]=!1;var qt={};qt[Kn]=qt[Pr]=qt[_s]=qt[Cr]=qt[I]=qt[S]=qt[xf]=qt[If]=qt[Of]=qt[Vs]=qt[k]=qt[Xe]=qt[kt]=qt[cn]=qt[ir]=qt[dn]=qt[ui]=qt[Gt]=qt[$]=qt[Q]=qt[ce]=qt[Ne]=!0,qt[V]=qt[_e]=qt[Ui]=!1;var e2={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},t2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},n2={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},i2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},r2=parseFloat,o2=parseInt,Px=typeof global=="object"&&global&&global.Object===Object&&global,a2=typeof self=="object"&&self&&self.Object===Object&&self,Xn=Px||a2||Function("return this")(),pv=typeof tf=="object"&&tf&&!tf.nodeType&&tf,ws=pv&&typeof vp=="object"&&vp&&!vp.nodeType&&vp,Cx=ws&&ws.exports===pv,dv=Cx&&Px.process,xr=function(){try{var w=ws&&ws.require&&ws.require("util").types;return w||dv&&dv.binding&&dv.binding("util")}catch{}}(),xx=xr&&xr.isArrayBuffer,Ix=xr&&xr.isDate,Ox=xr&&xr.isMap,Nx=xr&&xr.isRegExp,Lx=xr&&xr.isSet,Rx=xr&&xr.isTypedArray;function or(w,X,W){switch(W.length){case 0:return w.call(X);case 1:return w.call(X,W[0]);case 2:return w.call(X,W[0],W[1]);case 3:return w.call(X,W[0],W[1],W[2])}return w.apply(X,W)}o(or,"apply");function s2(w,X,W,Ee){for(var We=-1,St=w==null?0:w.length;++We<St;){var Un=w[We];X(Ee,Un,W(Un),w)}return Ee}o(s2,"arrayAggregator");function Ir(w,X){for(var W=-1,Ee=w==null?0:w.length;++W<Ee&&X(w[W],W,w)!==!1;);return w}o(Ir,"arrayEach");function c2(w,X){for(var W=w==null?0:w.length;W--&&X(w[W],W,w)!==!1;);return w}o(c2,"arrayEachRight");function Fx(w,X){for(var W=-1,Ee=w==null?0:w.length;++W<Ee;)if(!X(w[W],W,w))return!1;return!0}o(Fx,"arrayEvery");function Fa(w,X){for(var W=-1,Ee=w==null?0:w.length,We=0,St=[];++W<Ee;){var Un=w[W];X(Un,W,w)&&(St[We++]=Un)}return St}o(Fa,"arrayFilter");function Td(w,X){var W=w==null?0:w.length;return!!W&&Wc(w,X,0)>-1}o(Td,"arrayIncludes");function gv(w,X,W){for(var Ee=-1,We=w==null?0:w.length;++Ee<We;)if(W(X,w[Ee]))return!0;return!1}o(gv,"arrayIncludesWith");function fn(w,X){for(var W=-1,Ee=w==null?0:w.length,We=Array(Ee);++W<Ee;)We[W]=X(w[W],W,w);return We}o(fn,"arrayMap");function Da(w,X){for(var W=-1,Ee=X.length,We=w.length;++W<Ee;)w[We+W]=X[W];return w}o(Da,"arrayPush");function mv(w,X,W,Ee){var We=-1,St=w==null?0:w.length;for(Ee&&St&&(W=w[++We]);++We<St;)W=X(W,w[We],We,w);return W}o(mv,"arrayReduce");function l2(w,X,W,Ee){var We=w==null?0:w.length;for(Ee&&We&&(W=w[--We]);We--;)W=X(W,w[We],We,w);return W}o(l2,"arrayReduceRight");function hv(w,X){for(var W=-1,Ee=w==null?0:w.length;++W<Ee;)if(X(w[W],W,w))return!0;return!1}o(hv,"arraySome");var f2=yv("length");function u2(w){return w.split("")}o(u2,"asciiToArray");function p2(w){return w.match(bM)||[]}o(p2,"asciiWords");function Dx(w,X,W){var Ee;return W(w,function(We,St,Un){if(X(We,St,Un))return Ee=St,!1}),Ee}o(Dx,"baseFindKey");function bd(w,X,W,Ee){for(var We=w.length,St=W+(Ee?1:-1);Ee?St--:++St<We;)if(X(w[St],St,w))return St;return-1}o(bd,"baseFindIndex");function Wc(w,X,W){return X===X?C2(w,X,W):bd(w,_x,W)}o(Wc,"baseIndexOf");function d2(w,X,W,Ee){for(var We=W-1,St=w.length;++We<St;)if(Ee(w[We],X))return We;return-1}o(d2,"baseIndexOfWith");function _x(w){return w!==w}o(_x,"baseIsNaN");function Vx(w,X){var W=w==null?0:w.length;return W?Tv(w,X)/W:It}o(Vx,"baseMean");function yv(w){return function(X){return X==null?e:X[w]}}o(yv,"baseProperty");function vv(w){return function(X){return w==null?e:w[X]}}o(vv,"basePropertyOf");function wx(w,X,W,Ee,We){return We(w,function(St,Un,Kt){W=Ee?(Ee=!1,St):X(W,St,Un,Kt)}),W}o(wx,"baseReduce");function g2(w,X){var W=w.length;for(w.sort(X);W--;)w[W]=w[W].value;return w}o(g2,"baseSortBy");function Tv(w,X){for(var W,Ee=-1,We=w.length;++Ee<We;){var St=X(w[Ee]);St!==e&&(W=W===e?St:W+St)}return W}o(Tv,"baseSum");function bv(w,X){for(var W=-1,Ee=Array(w);++W<w;)Ee[W]=X(W);return Ee}o(bv,"baseTimes");function m2(w,X){return fn(X,function(W){return[W,w[W]]})}o(m2,"baseToPairs");function Mx(w){return w&&w.slice(0,$x(w)+1).replace(av,"")}o(Mx,"baseTrim");function ar(w){return function(X){return w(X)}}o(ar,"baseUnary");function Ev(w,X){return fn(X,function(W){return w[W]})}o(Ev,"baseValues");function Lf(w,X){return w.has(X)}o(Lf,"cacheHas");function kx(w,X){for(var W=-1,Ee=w.length;++W<Ee&&Wc(X,w[W],0)>-1;);return W}o(kx,"charsStartIndex");function jx(w,X){for(var W=w.length;W--&&Wc(X,w[W],0)>-1;);return W}o(jx,"charsEndIndex");function h2(w,X){for(var W=w.length,Ee=0;W--;)w[W]===X&&++Ee;return Ee}o(h2,"countHolders");var y2=vv(e2),T2=vv(t2);function b2(w){return"\\"+i2[w]}o(b2,"escapeStringChar");function E2(w,X){return w==null?e:w[X]}o(E2,"getValue");function Kc(w){return zM.test(w)}o(Kc,"hasUnicode");function A2(w){return YM.test(w)}o(A2,"hasUnicodeWord");function S2(w){for(var X,W=[];!(X=w.next()).done;)W.push(X.value);return W}o(S2,"iteratorToArray");function Av(w){var X=-1,W=Array(w.size);return w.forEach(function(Ee,We){W[++X]=[We,Ee]}),W}o(Av,"mapToArray");function Ux(w,X){return function(W){return w(X(W))}}o(Ux,"overArg");function _a(w,X){for(var W=-1,Ee=w.length,We=0,St=[];++W<Ee;){var Un=w[W];(Un===X||Un===u)&&(w[W]=u,St[We++]=W)}return St}o(_a,"replaceHolders");function Ed(w){var X=-1,W=Array(w.size);return w.forEach(function(Ee){W[++X]=Ee}),W}o(Ed,"setToArray");function P2(w){var X=-1,W=Array(w.size);return w.forEach(function(Ee){W[++X]=[Ee,Ee]}),W}o(P2,"setToPairs");function C2(w,X,W){for(var Ee=W-1,We=w.length;++Ee<We;)if(w[Ee]===X)return Ee;return-1}o(C2,"strictIndexOf");function x2(w,X,W){for(var Ee=W+1;Ee--;)if(w[Ee]===X)return Ee;return Ee}o(x2,"strictLastIndexOf");function Xc(w){return Kc(w)?O2(w):f2(w)}o(Xc,"stringSize");function Jr(w){return Kc(w)?N2(w):u2(w)}o(Jr,"stringToArray");function $x(w){for(var X=w.length;X--&&hM.test(w.charAt(X)););return X}o($x,"trimmedEndIndex");var I2=vv(n2);function O2(w){for(var X=uv.lastIndex=0;uv.test(w);)++X;return X}o(O2,"unicodeSize");function N2(w){return w.match(uv)||[]}o(N2,"unicodeToArray");function L2(w){return w.match(qM)||[]}o(L2,"unicodeWords");var R2=o(function w(X){X=X==null?Xn:Va.defaults(Xn.Object(),X,Va.pick(Xn,JM));var W=X.Array,Ee=X.Date,We=X.Error,St=X.Function,Un=X.Math,Kt=X.Object,Sv=X.RegExp,F2=X.String,Or=X.TypeError,Ad=W.prototype,D2=St.prototype,Qc=Kt.prototype,Sd=X["__core-js_shared__"],Pd=D2.toString,Ft=Qc.hasOwnProperty,_2=0,Bx=function(){var c=/[^.]+$/.exec(Sd&&Sd.keys&&Sd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Cd=Qc.toString,V2=Pd.call(Kt),w2=Xn._,M2=Sv("^"+Pd.call(Ft).replace(Nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xd=Cx?X.Buffer:e,wa=X.Symbol,Id=X.Uint8Array,Hx=xd?xd.allocUnsafe:e,Od=Ux(Kt.getPrototypeOf,Kt),Gx=Kt.create,Wx=Qc.propertyIsEnumerable,Nd=Ad.splice,Kx=wa?wa.isConcatSpreadable:e,Rf=wa?wa.iterator:e,Ms=wa?wa.toStringTag:e,Ld=function(){try{var c=Bs(Kt,"defineProperty");return c({},"",{}),c}catch{}}(),k2=X.clearTimeout!==Xn.clearTimeout&&X.clearTimeout,j2=Ee&&Ee.now!==Xn.Date.now&&Ee.now,U2=X.setTimeout!==Xn.setTimeout&&X.setTimeout,Rd=Un.ceil,Fd=Un.floor,Pv=Kt.getOwnPropertySymbols,$2=xd?xd.isBuffer:e,Xx=X.isFinite,B2=Ad.join,H2=Ux(Kt.keys,Kt),$n=Un.max,pi=Un.min,G2=Ee.now,W2=X.parseInt,Qx=Un.random,K2=Ad.reverse,Cv=Bs(X,"DataView"),Ff=Bs(X,"Map"),xv=Bs(X,"Promise"),qc=Bs(X,"Set"),Df=Bs(X,"WeakMap"),_f=Bs(Kt,"create"),Dd=Df&&new Df,zc={},X2=Hs(Cv),Q2=Hs(Ff),q2=Hs(xv),z2=Hs(qc),Y2=Hs(Df),_d=wa?wa.prototype:e,Vf=_d?_d.valueOf:e,qx=_d?_d.toString:e;function P(c){if(vn(c)&&!Ke(c)&&!(c instanceof ut)){if(c instanceof Nr)return c;if(Ft.call(c,"__wrapped__"))return zI(c)}return new Nr(c)}o(P,"lodash");var Yc=function(){function c(){}return o(c,"object"),function(f){if(!mn(f))return{};if(Gx)return Gx(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function Vd(){}o(Vd,"baseLodash");function Nr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Nr,"LodashWrapper"),P.templateSettings={escape:rt,evaluate:Wt,interpolate:ln,variable:"",imports:{_:P}},P.prototype=Vd.prototype,P.prototype.constructor=P,Nr.prototype=Yc(Vd.prototype),Nr.prototype.constructor=Nr;function ut(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mt,this.__views__=[]}o(ut,"LazyWrapper");function J2(){var c=new ut(this.__wrapped__);return c.__actions__=$i(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=$i(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=$i(this.__views__),c}o(J2,"lazyClone");function Z2(){if(this.__filtered__){var c=new ut(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(Z2,"lazyReverse");function ek(){var c=this.__wrapped__.value(),f=this.__dir__,d=Ke(c),v=f<0,E=d?c.length:0,x=pj(0,E,this.__views__),L=x.start,R=x.end,M=R-L,Y=v?R:L-1,J=this.__iteratees__,ee=J.length,ge=0,Oe=pi(M,this.__takeCount__);if(!d||!v&&E==M&&Oe==M)return TI(c,this.__actions__);var Me=[];e:for(;M--&&ge<Oe;){Y+=f;for(var Ze=-1,ke=c[Y];++Ze<ee;){var st=J[Ze],dt=st.iteratee,lr=st.type,Oi=dt(ke);if(lr==Wn)ke=Oi;else if(!Oi){if(lr==an)continue e;break e}}Me[ge++]=ke}return Me}o(ek,"lazyValue"),ut.prototype=Yc(Vd.prototype),ut.prototype.constructor=ut;function ks(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(ks,"Hash");function tk(){this.__data__=_f?_f(null):{},this.size=0}o(tk,"hashClear");function nk(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(nk,"hashDelete");function ik(c){var f=this.__data__;if(_f){var d=f[c];return d===s?e:d}return Ft.call(f,c)?f[c]:e}o(ik,"hashGet");function rk(c){var f=this.__data__;return _f?f[c]!==e:Ft.call(f,c)}o(rk,"hashHas");function ok(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=_f&&f===e?s:f,this}o(ok,"hashSet"),ks.prototype.clear=tk,ks.prototype.delete=nk,ks.prototype.get=ik,ks.prototype.has=rk,ks.prototype.set=ok;function qo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(qo,"ListCache");function ak(){this.__data__=[],this.size=0}o(ak,"listCacheClear");function sk(c){var f=this.__data__,d=wd(f,c);if(d<0)return!1;var v=f.length-1;return d==v?f.pop():Nd.call(f,d,1),--this.size,!0}o(sk,"listCacheDelete");function ck(c){var f=this.__data__,d=wd(f,c);return d<0?e:f[d][1]}o(ck,"listCacheGet");function lk(c){return wd(this.__data__,c)>-1}o(lk,"listCacheHas");function fk(c,f){var d=this.__data__,v=wd(d,c);return v<0?(++this.size,d.push([c,f])):d[v][1]=f,this}o(fk,"listCacheSet"),qo.prototype.clear=ak,qo.prototype.delete=sk,qo.prototype.get=ck,qo.prototype.has=lk,qo.prototype.set=fk;function zo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(zo,"MapCache");function uk(){this.size=0,this.__data__={hash:new ks,map:new(Ff||qo),string:new ks}}o(uk,"mapCacheClear");function pk(c){var f=Qd(this,c).delete(c);return this.size-=f?1:0,f}o(pk,"mapCacheDelete");function dk(c){return Qd(this,c).get(c)}o(dk,"mapCacheGet");function gk(c){return Qd(this,c).has(c)}o(gk,"mapCacheHas");function mk(c,f){var d=Qd(this,c),v=d.size;return d.set(c,f),this.size+=d.size==v?0:1,this}o(mk,"mapCacheSet"),zo.prototype.clear=uk,zo.prototype.delete=pk,zo.prototype.get=dk,zo.prototype.has=gk,zo.prototype.set=mk;function js(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new zo;++f<d;)this.add(c[f])}o(js,"SetCache");function hk(c){return this.__data__.set(c,s),this}o(hk,"setCacheAdd");function yk(c){return this.__data__.has(c)}o(yk,"setCacheHas"),js.prototype.add=js.prototype.push=hk,js.prototype.has=yk;function Zr(c){var f=this.__data__=new qo(c);this.size=f.size}o(Zr,"Stack");function vk(){this.__data__=new qo,this.size=0}o(vk,"stackClear");function Tk(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(Tk,"stackDelete");function bk(c){return this.__data__.get(c)}o(bk,"stackGet");function Ek(c){return this.__data__.has(c)}o(Ek,"stackHas");function Ak(c,f){var d=this.__data__;if(d instanceof qo){var v=d.__data__;if(!Ff||v.length<n-1)return v.push([c,f]),this.size=++d.size,this;d=this.__data__=new zo(v)}return d.set(c,f),this.size=d.size,this}o(Ak,"stackSet"),Zr.prototype.clear=vk,Zr.prototype.delete=Tk,Zr.prototype.get=bk,Zr.prototype.has=Ek,Zr.prototype.set=Ak;function zx(c,f){var d=Ke(c),v=!d&&Gs(c),E=!d&&!v&&$a(c),x=!d&&!v&&!E&&tl(c),L=d||v||E||x,R=L?bv(c.length,F2):[],M=R.length;for(var Y in c)(f||Ft.call(c,Y))&&!(L&&(Y=="length"||E&&(Y=="offset"||Y=="parent")||x&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||ea(Y,M)))&&R.push(Y);return R}o(zx,"arrayLikeKeys");function Yx(c){var f=c.length;return f?c[Mv(0,f-1)]:e}o(Yx,"arraySample");function Sk(c,f){return qd($i(c),Us(f,0,c.length))}o(Sk,"arraySampleSize");function Pk(c){return qd($i(c))}o(Pk,"arrayShuffle");function Iv(c,f,d){(d!==e&&!eo(c[f],d)||d===e&&!(f in c))&&Yo(c,f,d)}o(Iv,"assignMergeValue");function wf(c,f,d){var v=c[f];(!(Ft.call(c,f)&&eo(v,d))||d===e&&!(f in c))&&Yo(c,f,d)}o(wf,"assignValue");function wd(c,f){for(var d=c.length;d--;)if(eo(c[d][0],f))return d;return-1}o(wd,"assocIndexOf");function Ck(c,f,d,v){return Ma(c,function(E,x,L){f(v,E,d(E),L)}),v}o(Ck,"baseAggregator");function Jx(c,f){return c&&So(f,Qn(f),c)}o(Jx,"baseAssign");function xk(c,f){return c&&So(f,Hi(f),c)}o(xk,"baseAssignIn");function Yo(c,f,d){f=="__proto__"&&Ld?Ld(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(Yo,"baseAssignValue");function Ov(c,f){for(var d=-1,v=f.length,E=W(v),x=c==null;++d<v;)E[d]=x?e:cT(c,f[d]);return E}o(Ov,"baseAt");function Us(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(Us,"baseClamp");function Lr(c,f,d,v,E,x){var L,R=f&p,M=f&g,Y=f&m;if(d&&(L=E?d(c,v,E,x):d(c)),L!==e)return L;if(!mn(c))return c;var J=Ke(c);if(J){if(L=gj(c),!R)return $i(c,L)}else{var ee=di(c),ge=ee==_e||ee==Rt;if($a(c))return AI(c,R);if(ee==cn||ee==Kn||ge&&!E){if(L=M||ge?{}:$I(c),!R)return M?ij(c,xk(L,c)):nj(c,Jx(L,c))}else{if(!qt[ee])return E?c:{};L=mj(c,ee,R)}}x||(x=new Zr);var Oe=x.get(c);if(Oe)return Oe;x.set(c,L),hO(c)?c.forEach(function(ke){L.add(Lr(ke,f,d,ke,c,x))}):gO(c)&&c.forEach(function(ke,st){L.set(st,Lr(ke,f,d,st,c,x))});var Me=Y?M?Qv:Xv:M?Hi:Qn,Ze=J?e:Me(c);return Ir(Ze||c,function(ke,st){Ze&&(st=ke,ke=c[st]),wf(L,st,Lr(ke,f,d,st,c,x))}),L}o(Lr,"baseClone");function Ik(c){var f=Qn(c);return function(d){return Zx(d,c,f)}}o(Ik,"baseConforms");function Zx(c,f,d){var v=d.length;if(c==null)return!v;for(c=Kt(c);v--;){var E=d[v],x=f[E],L=c[E];if(L===e&&!(E in c)||!x(L))return!1}return!0}o(Zx,"baseConformsTo");function eI(c,f,d){if(typeof c!="function")throw new Or(r);return Hf(function(){c.apply(e,d)},f)}o(eI,"baseDelay");function Mf(c,f,d,v){var E=-1,x=Td,L=!0,R=c.length,M=[],Y=f.length;if(!R)return M;d&&(f=fn(f,ar(d))),v?(x=gv,L=!1):f.length>=n&&(x=Lf,L=!1,f=new js(f));e:for(;++E<R;){var J=c[E],ee=d==null?J:d(J);if(J=v||J!==0?J:0,L&&ee===ee){for(var ge=Y;ge--;)if(f[ge]===ee)continue e;M.push(J)}else x(f,ee,v)||M.push(J)}return M}o(Mf,"baseDifference");var Ma=II(Ao),tI=II(Lv,!0);function Ok(c,f){var d=!0;return Ma(c,function(v,E,x){return d=!!f(v,E,x),d}),d}o(Ok,"baseEvery");function Md(c,f,d){for(var v=-1,E=c.length;++v<E;){var x=c[v],L=f(x);if(L!=null&&(R===e?L===L&&!cr(L):d(L,R)))var R=L,M=x}return M}o(Md,"baseExtremum");function Nk(c,f,d,v){var E=c.length;for(d=Ye(d),d<0&&(d=-d>E?0:E+d),v=v===e||v>E?E:Ye(v),v<0&&(v+=E),v=d>v?0:vO(v);d<v;)c[d++]=f;return c}o(Nk,"baseFill");function nI(c,f){var d=[];return Ma(c,function(v,E,x){f(v,E,x)&&d.push(v)}),d}o(nI,"baseFilter");function ni(c,f,d,v,E){var x=-1,L=c.length;for(d||(d=yj),E||(E=[]);++x<L;){var R=c[x];f>0&&d(R)?f>1?ni(R,f-1,d,v,E):Da(E,R):v||(E[E.length]=R)}return E}o(ni,"baseFlatten");var Nv=OI(),iI=OI(!0);function Ao(c,f){return c&&Nv(c,f,Qn)}o(Ao,"baseForOwn");function Lv(c,f){return c&&iI(c,f,Qn)}o(Lv,"baseForOwnRight");function kd(c,f){return Fa(f,function(d){return ta(c[d])})}o(kd,"baseFunctions");function $s(c,f){f=ja(f,c);for(var d=0,v=f.length;c!=null&&d<v;)c=c[Po(f[d++])];return d&&d==v?c:e}o($s,"baseGet");function rI(c,f,d){var v=f(c);return Ke(c)?v:Da(v,d(c))}o(rI,"baseGetAllKeys");function xi(c){return c==null?c===e?Qo:yn:Ms&&Ms in Kt(c)?uj(c):Pj(c)}o(xi,"baseGetTag");function Rv(c,f){return c>f}o(Rv,"baseGt");function Lk(c,f){return c!=null&&Ft.call(c,f)}o(Lk,"baseHas");function Rk(c,f){return c!=null&&f in Kt(c)}o(Rk,"baseHasIn");function Fk(c,f,d){return c>=pi(f,d)&&c<$n(f,d)}o(Fk,"baseInRange");function Fv(c,f,d){for(var v=d?gv:Td,E=c[0].length,x=c.length,L=x,R=W(x),M=1/0,Y=[];L--;){var J=c[L];L&&f&&(J=fn(J,ar(f))),M=pi(J.length,M),R[L]=!d&&(f||E>=120&&J.length>=120)?new js(L&&J):e}J=c[0];var ee=-1,ge=R[0];e:for(;++ee<E&&Y.length<M;){var Oe=J[ee],Me=f?f(Oe):Oe;if(Oe=d||Oe!==0?Oe:0,!(ge?Lf(ge,Me):v(Y,Me,d))){for(L=x;--L;){var Ze=R[L];if(!(Ze?Lf(Ze,Me):v(c[L],Me,d)))continue e}ge&&ge.push(Me),Y.push(Oe)}}return Y}o(Fv,"baseIntersection");function Dk(c,f,d,v){return Ao(c,function(E,x,L){f(v,d(E),x,L)}),v}o(Dk,"baseInverter");function kf(c,f,d){f=ja(f,c),c=WI(c,f);var v=c==null?c:c[Po(Fr(f))];return v==null?e:or(v,c,d)}o(kf,"baseInvoke");function oI(c){return vn(c)&&xi(c)==Kn}o(oI,"baseIsArguments");function _k(c){return vn(c)&&xi(c)==_s}o(_k,"baseIsArrayBuffer");function Vk(c){return vn(c)&&xi(c)==S}o(Vk,"baseIsDate");function jf(c,f,d,v,E){return c===f?!0:c==null||f==null||!vn(c)&&!vn(f)?c!==c&&f!==f:wk(c,f,d,v,jf,E)}o(jf,"baseIsEqual");function wk(c,f,d,v,E,x){var L=Ke(c),R=Ke(f),M=L?Pr:di(c),Y=R?Pr:di(f);M=M==Kn?cn:M,Y=Y==Kn?cn:Y;var J=M==cn,ee=Y==cn,ge=M==Y;if(ge&&$a(c)){if(!$a(f))return!1;L=!0,J=!1}if(ge&&!J)return x||(x=new Zr),L||tl(c)?kI(c,f,d,v,E,x):lj(c,f,M,d,v,E,x);if(!(d&y)){var Oe=J&&Ft.call(c,"__wrapped__"),Me=ee&&Ft.call(f,"__wrapped__");if(Oe||Me){var Ze=Oe?c.value():c,ke=Me?f.value():f;return x||(x=new Zr),E(Ze,ke,d,v,x)}}return ge?(x||(x=new Zr),fj(c,f,d,v,E,x)):!1}o(wk,"baseIsEqualDeep");function Mk(c){return vn(c)&&di(c)==Xe}o(Mk,"baseIsMap");function Dv(c,f,d,v){var E=d.length,x=E,L=!v;if(c==null)return!x;for(c=Kt(c);E--;){var R=d[E];if(L&&R[2]?R[1]!==c[R[0]]:!(R[0]in c))return!1}for(;++E<x;){R=d[E];var M=R[0],Y=c[M],J=R[1];if(L&&R[2]){if(Y===e&&!(M in c))return!1}else{var ee=new Zr;if(v)var ge=v(Y,J,M,c,f,ee);if(!(ge===e?jf(J,Y,y|A,v,ee):ge))return!1}}return!0}o(Dv,"baseIsMatch");function aI(c){if(!mn(c)||Tj(c))return!1;var f=ta(c)?M2:xM;return f.test(Hs(c))}o(aI,"baseIsNative");function kk(c){return vn(c)&&xi(c)==ir}o(kk,"baseIsRegExp");function jk(c){return vn(c)&&di(c)==dn}o(jk,"baseIsSet");function Uk(c){return vn(c)&&tg(c.length)&&!!tn[xi(c)]}o(Uk,"baseIsTypedArray");function sI(c){return typeof c=="function"?c:c==null?Gi:typeof c=="object"?Ke(c)?fI(c[0],c[1]):lI(c):NO(c)}o(sI,"baseIteratee");function _v(c){if(!Bf(c))return H2(c);var f=[];for(var d in Kt(c))Ft.call(c,d)&&d!="constructor"&&f.push(d);return f}o(_v,"baseKeys");function $k(c){if(!mn(c))return Sj(c);var f=Bf(c),d=[];for(var v in c)v=="constructor"&&(f||!Ft.call(c,v))||d.push(v);return d}o($k,"baseKeysIn");function Vv(c,f){return c<f}o(Vv,"baseLt");function cI(c,f){var d=-1,v=Bi(c)?W(c.length):[];return Ma(c,function(E,x,L){v[++d]=f(E,x,L)}),v}o(cI,"baseMap");function lI(c){var f=zv(c);return f.length==1&&f[0][2]?HI(f[0][0],f[0][1]):function(d){return d===c||Dv(d,c,f)}}o(lI,"baseMatches");function fI(c,f){return Jv(c)&&BI(f)?HI(Po(c),f):function(d){var v=cT(d,c);return v===e&&v===f?lT(d,c):jf(f,v,y|A)}}o(fI,"baseMatchesProperty");function jd(c,f,d,v,E){c!==f&&Nv(f,function(x,L){if(E||(E=new Zr),mn(x))Bk(c,f,L,d,jd,v,E);else{var R=v?v(eT(c,L),x,L+"",c,f,E):e;R===e&&(R=x),Iv(c,L,R)}},Hi)}o(jd,"baseMerge");function Bk(c,f,d,v,E,x,L){var R=eT(c,d),M=eT(f,d),Y=L.get(M);if(Y){Iv(c,d,Y);return}var J=x?x(R,M,d+"",c,f,L):e,ee=J===e;if(ee){var ge=Ke(M),Oe=!ge&&$a(M),Me=!ge&&!Oe&&tl(M);J=M,ge||Oe||Me?Ke(R)?J=R:In(R)?J=$i(R):Oe?(ee=!1,J=AI(M,!0)):Me?(ee=!1,J=SI(M,!0)):J=[]:Gf(M)||Gs(M)?(J=R,Gs(R)?J=TO(R):(!mn(R)||ta(R))&&(J=$I(M))):ee=!1}ee&&(L.set(M,J),E(J,M,v,x,L),L.delete(M)),Iv(c,d,J)}o(Bk,"baseMergeDeep");function uI(c,f){var d=c.length;if(d)return f+=f<0?d:0,ea(f,d)?c[f]:e}o(uI,"baseNth");function pI(c,f,d){f.length?f=fn(f,function(x){return Ke(x)?function(L){return $s(L,x.length===1?x[0]:x)}:x}):f=[Gi];var v=-1;f=fn(f,ar(Ve()));var E=cI(c,function(x,L,R){var M=fn(f,function(Y){return Y(x)});return{criteria:M,index:++v,value:x}});return g2(E,function(x,L){return tj(x,L,d)})}o(pI,"baseOrderBy");function Hk(c,f){return dI(c,f,function(d,v){return lT(c,v)})}o(Hk,"basePick");function dI(c,f,d){for(var v=-1,E=f.length,x={};++v<E;){var L=f[v],R=$s(c,L);d(R,L)&&Uf(x,ja(L,c),R)}return x}o(dI,"basePickBy");function Gk(c){return function(f){return $s(f,c)}}o(Gk,"basePropertyDeep");function wv(c,f,d,v){var E=v?d2:Wc,x=-1,L=f.length,R=c;for(c===f&&(f=$i(f)),d&&(R=fn(c,ar(d)));++x<L;)for(var M=0,Y=f[x],J=d?d(Y):Y;(M=E(R,J,M,v))>-1;)R!==c&&Nd.call(R,M,1),Nd.call(c,M,1);return c}o(wv,"basePullAll");function gI(c,f){for(var d=c?f.length:0,v=d-1;d--;){var E=f[d];if(d==v||E!==x){var x=E;ea(E)?Nd.call(c,E,1):Uv(c,E)}}return c}o(gI,"basePullAt");function Mv(c,f){return c+Fd(Qx()*(f-c+1))}o(Mv,"baseRandom");function Wk(c,f,d,v){for(var E=-1,x=$n(Rd((f-c)/(d||1)),0),L=W(x);x--;)L[v?x:++E]=c,c+=d;return L}o(Wk,"baseRange");function kv(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=Fd(f/2),f&&(c+=c);while(f);return d}o(kv,"baseRepeat");function nt(c,f){return tT(GI(c,f,Gi),c+"")}o(nt,"baseRest");function Kk(c){return Yx(nl(c))}o(Kk,"baseSample");function Xk(c,f){var d=nl(c);return qd(d,Us(f,0,d.length))}o(Xk,"baseSampleSize");function Uf(c,f,d,v){if(!mn(c))return c;f=ja(f,c);for(var E=-1,x=f.length,L=x-1,R=c;R!=null&&++E<x;){var M=Po(f[E]),Y=d;if(M==="__proto__"||M==="constructor"||M==="prototype")return c;if(E!=L){var J=R[M];Y=v?v(J,M,R):e,Y===e&&(Y=mn(J)?J:ea(f[E+1])?[]:{})}wf(R,M,Y),R=R[M]}return c}o(Uf,"baseSet");var mI=Dd?function(c,f){return Dd.set(c,f),c}:Gi,Qk=Ld?function(c,f){return Ld(c,"toString",{configurable:!0,enumerable:!1,value:uT(f),writable:!0})}:Gi;function qk(c){return qd(nl(c))}o(qk,"baseShuffle");function Rr(c,f,d){var v=-1,E=c.length;f<0&&(f=-f>E?0:E+f),d=d>E?E:d,d<0&&(d+=E),E=f>d?0:d-f>>>0,f>>>=0;for(var x=W(E);++v<E;)x[v]=c[v+f];return x}o(Rr,"baseSlice");function zk(c,f){var d;return Ma(c,function(v,E,x){return d=f(v,E,x),!d}),!!d}o(zk,"baseSome");function Ud(c,f,d){var v=0,E=c==null?v:c.length;if(typeof f=="number"&&f===f&&E<=ji){for(;v<E;){var x=v+E>>>1,L=c[x];L!==null&&!cr(L)&&(d?L<=f:L<f)?v=x+1:E=x}return E}return jv(c,f,Gi,d)}o(Ud,"baseSortedIndex");function jv(c,f,d,v){var E=0,x=c==null?0:c.length;if(x===0)return 0;f=d(f);for(var L=f!==f,R=f===null,M=cr(f),Y=f===e;E<x;){var J=Fd((E+x)/2),ee=d(c[J]),ge=ee!==e,Oe=ee===null,Me=ee===ee,Ze=cr(ee);if(L)var ke=v||Me;else Y?ke=Me&&(v||ge):R?ke=Me&&ge&&(v||!Oe):M?ke=Me&&ge&&!Oe&&(v||!Ze):Oe||Ze?ke=!1:ke=v?ee<=f:ee<f;ke?E=J+1:x=J}return pi(x,sn)}o(jv,"baseSortedIndexBy");function hI(c,f){for(var d=-1,v=c.length,E=0,x=[];++d<v;){var L=c[d],R=f?f(L):L;if(!d||!eo(R,M)){var M=R;x[E++]=L===0?0:L}}return x}o(hI,"baseSortedUniq");function yI(c){return typeof c=="number"?c:cr(c)?It:+c}o(yI,"baseToNumber");function sr(c){if(typeof c=="string")return c;if(Ke(c))return fn(c,sr)+"";if(cr(c))return qx?qx.call(c):"";var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(sr,"baseToString");function ka(c,f,d){var v=-1,E=Td,x=c.length,L=!0,R=[],M=R;if(d)L=!1,E=gv;else if(x>=n){var Y=f?null:sj(c);if(Y)return Ed(Y);L=!1,E=Lf,M=new js}else M=f?[]:R;e:for(;++v<x;){var J=c[v],ee=f?f(J):J;if(J=d||J!==0?J:0,L&&ee===ee){for(var ge=M.length;ge--;)if(M[ge]===ee)continue e;f&&M.push(ee),R.push(J)}else E(M,ee,d)||(M!==R&&M.push(ee),R.push(J))}return R}o(ka,"baseUniq");function Uv(c,f){return f=ja(f,c),c=WI(c,f),c==null||delete c[Po(Fr(f))]}o(Uv,"baseUnset");function vI(c,f,d,v){return Uf(c,f,d($s(c,f)),v)}o(vI,"baseUpdate");function $d(c,f,d,v){for(var E=c.length,x=v?E:-1;(v?x--:++x<E)&&f(c[x],x,c););return d?Rr(c,v?0:x,v?x+1:E):Rr(c,v?x+1:0,v?E:x)}o($d,"baseWhile");function TI(c,f){var d=c;return d instanceof ut&&(d=d.value()),mv(f,function(v,E){return E.func.apply(E.thisArg,Da([v],E.args))},d)}o(TI,"baseWrapperValue");function $v(c,f,d){var v=c.length;if(v<2)return v?ka(c[0]):[];for(var E=-1,x=W(v);++E<v;)for(var L=c[E],R=-1;++R<v;)R!=E&&(x[E]=Mf(x[E]||L,c[R],f,d));return ka(ni(x,1),f,d)}o($v,"baseXor");function bI(c,f,d){for(var v=-1,E=c.length,x=f.length,L={};++v<E;){var R=v<x?f[v]:e;d(L,c[v],R)}return L}o(bI,"baseZipObject");function Bv(c){return In(c)?c:[]}o(Bv,"castArrayLikeObject");function Hv(c){return typeof c=="function"?c:Gi}o(Hv,"castFunction");function ja(c,f){return Ke(c)?c:Jv(c,f)?[c]:qI(Ot(c))}o(ja,"castPath");var Yk=nt;function Ua(c,f,d){var v=c.length;return d=d===e?v:d,!f&&d>=v?c:Rr(c,f,d)}o(Ua,"castSlice");var EI=k2||function(c){return Xn.clearTimeout(c)};function AI(c,f){if(f)return c.slice();var d=c.length,v=Hx?Hx(d):new c.constructor(d);return c.copy(v),v}o(AI,"cloneBuffer");function Gv(c){var f=new c.constructor(c.byteLength);return new Id(f).set(new Id(c)),f}o(Gv,"cloneArrayBuffer");function Jk(c,f){var d=f?Gv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(Jk,"cloneDataView");function Zk(c){var f=new c.constructor(c.source,ox.exec(c));return f.lastIndex=c.lastIndex,f}o(Zk,"cloneRegExp");function ej(c){return Vf?Kt(Vf.call(c)):{}}o(ej,"cloneSymbol");function SI(c,f){var d=f?Gv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(SI,"cloneTypedArray");function PI(c,f){if(c!==f){var d=c!==e,v=c===null,E=c===c,x=cr(c),L=f!==e,R=f===null,M=f===f,Y=cr(f);if(!R&&!Y&&!x&&c>f||x&&L&&M&&!R&&!Y||v&&L&&M||!d&&M||!E)return 1;if(!v&&!x&&!Y&&c<f||Y&&d&&E&&!v&&!x||R&&d&&E||!L&&E||!M)return-1}return 0}o(PI,"compareAscending");function tj(c,f,d){for(var v=-1,E=c.criteria,x=f.criteria,L=E.length,R=d.length;++v<L;){var M=PI(E[v],x[v]);if(M){if(v>=R)return M;var Y=d[v];return M*(Y=="desc"?-1:1)}}return c.index-f.index}o(tj,"compareMultiple");function CI(c,f,d,v){for(var E=-1,x=c.length,L=d.length,R=-1,M=f.length,Y=$n(x-L,0),J=W(M+Y),ee=!v;++R<M;)J[R]=f[R];for(;++E<L;)(ee||E<x)&&(J[d[E]]=c[E]);for(;Y--;)J[R++]=c[E++];return J}o(CI,"composeArgs");function xI(c,f,d,v){for(var E=-1,x=c.length,L=-1,R=d.length,M=-1,Y=f.length,J=$n(x-R,0),ee=W(J+Y),ge=!v;++E<J;)ee[E]=c[E];for(var Oe=E;++M<Y;)ee[Oe+M]=f[M];for(;++L<R;)(ge||E<x)&&(ee[Oe+d[L]]=c[E++]);return ee}o(xI,"composeArgsRight");function $i(c,f){var d=-1,v=c.length;for(f||(f=W(v));++d<v;)f[d]=c[d];return f}o($i,"copyArray");function So(c,f,d,v){var E=!d;d||(d={});for(var x=-1,L=f.length;++x<L;){var R=f[x],M=v?v(d[R],c[R],R,d,c):e;M===e&&(M=c[R]),E?Yo(d,R,M):wf(d,R,M)}return d}o(So,"copyObject");function nj(c,f){return So(c,Yv(c),f)}o(nj,"copySymbols");function ij(c,f){return So(c,jI(c),f)}o(ij,"copySymbolsIn");function Bd(c,f){return function(d,v){var E=Ke(d)?s2:Ck,x=f?f():{};return E(d,c,Ve(v,2),x)}}o(Bd,"createAggregator");function Jc(c){return nt(function(f,d){var v=-1,E=d.length,x=E>1?d[E-1]:e,L=E>2?d[2]:e;for(x=c.length>3&&typeof x=="function"?(E--,x):e,L&&Ii(d[0],d[1],L)&&(x=E<3?e:x,E=1),f=Kt(f);++v<E;){var R=d[v];R&&c(f,R,v,x)}return f})}o(Jc,"createAssigner");function II(c,f){return function(d,v){if(d==null)return d;if(!Bi(d))return c(d,v);for(var E=d.length,x=f?E:-1,L=Kt(d);(f?x--:++x<E)&&v(L[x],x,L)!==!1;);return d}}o(II,"createBaseEach");function OI(c){return function(f,d,v){for(var E=-1,x=Kt(f),L=v(f),R=L.length;R--;){var M=L[c?R:++E];if(d(x[M],M,x)===!1)break}return f}}o(OI,"createBaseFor");function rj(c,f,d){var v=f&b,E=$f(c);function x(){var L=this&&this!==Xn&&this instanceof x?E:c;return L.apply(v?d:this,arguments)}return o(x,"wrapper"),x}o(rj,"createBind");function NI(c){return function(f){f=Ot(f);var d=Kc(f)?Jr(f):e,v=d?d[0]:f.charAt(0),E=d?Ua(d,1).join(""):f.slice(1);return v[c]()+E}}o(NI,"createCaseFirst");function Zc(c){return function(f){return mv(IO(xO(f).replace(XM,"")),c,"")}}o(Zc,"createCompounder");function $f(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=Yc(c.prototype),v=c.apply(d,f);return mn(v)?v:d}}o($f,"createCtor");function oj(c,f,d){var v=$f(c);function E(){for(var x=arguments.length,L=W(x),R=x,M=el(E);R--;)L[R]=arguments[R];var Y=x<3&&L[0]!==M&&L[x-1]!==M?[]:_a(L,M);if(x-=Y.length,x<d)return _I(c,f,Hd,E.placeholder,e,L,Y,e,e,d-x);var J=this&&this!==Xn&&this instanceof E?v:c;return or(J,this,L)}return o(E,"wrapper"),E}o(oj,"createCurry");function LI(c){return function(f,d,v){var E=Kt(f);if(!Bi(f)){var x=Ve(d,3);f=Qn(f),d=o(function(R){return x(E[R],R,E)},"predicate")}var L=c(f,d,v);return L>-1?E[x?f[L]:L]:e}}o(LI,"createFind");function RI(c){return Zo(function(f){var d=f.length,v=d,E=Nr.prototype.thru;for(c&&f.reverse();v--;){var x=f[v];if(typeof x!="function")throw new Or(r);if(E&&!L&&Xd(x)=="wrapper")var L=new Nr([],!0)}for(v=L?v:d;++v<d;){x=f[v];var R=Xd(x),M=R=="wrapper"?qv(x):e;M&&Zv(M[0])&&M[1]==(Z|j|B|re)&&!M[4].length&&M[9]==1?L=L[Xd(M[0])].apply(L,M[3]):L=x.length==1&&Zv(x)?L[R]():L.thru(x)}return function(){var Y=arguments,J=Y[0];if(L&&Y.length==1&&Ke(J))return L.plant(J).value();for(var ee=0,ge=d?f[ee].apply(this,Y):J;++ee<d;)ge=f[ee].call(this,ge);return ge}})}o(RI,"createFlow");function Hd(c,f,d,v,E,x,L,R,M,Y){var J=f&Z,ee=f&b,ge=f&O,Oe=f&(j|G),Me=f&Se,Ze=ge?e:$f(c);function ke(){for(var st=arguments.length,dt=W(st),lr=st;lr--;)dt[lr]=arguments[lr];if(Oe)var Oi=el(ke),fr=h2(dt,Oi);if(v&&(dt=CI(dt,v,E,Oe)),x&&(dt=xI(dt,x,L,Oe)),st-=fr,Oe&&st<Y){var On=_a(dt,Oi);return _I(c,f,Hd,ke.placeholder,d,dt,On,R,M,Y-st)}var to=ee?d:this,ia=ge?to[c]:c;return st=dt.length,R?dt=Cj(dt,R):Me&&st>1&&dt.reverse(),J&&M<st&&(dt.length=M),this&&this!==Xn&&this instanceof ke&&(ia=Ze||$f(ia)),ia.apply(to,dt)}return o(ke,"wrapper"),ke}o(Hd,"createHybrid");function FI(c,f){return function(d,v){return Dk(d,c,f(v),{})}}o(FI,"createInverter");function Gd(c,f){return function(d,v){var E;if(d===e&&v===e)return f;if(d!==e&&(E=d),v!==e){if(E===e)return v;typeof d=="string"||typeof v=="string"?(d=sr(d),v=sr(v)):(d=yI(d),v=yI(v)),E=c(d,v)}return E}}o(Gd,"createMathOperation");function Wv(c){return Zo(function(f){return f=fn(f,ar(Ve())),nt(function(d){var v=this;return c(f,function(E){return or(E,v,d)})})})}o(Wv,"createOver");function Wd(c,f){f=f===e?" ":sr(f);var d=f.length;if(d<2)return d?kv(f,c):f;var v=kv(f,Rd(c/Xc(f)));return Kc(f)?Ua(Jr(v),0,c).join(""):v.slice(0,c)}o(Wd,"createPadding");function aj(c,f,d,v){var E=f&b,x=$f(c);function L(){for(var R=-1,M=arguments.length,Y=-1,J=v.length,ee=W(J+M),ge=this&&this!==Xn&&this instanceof L?x:c;++Y<J;)ee[Y]=v[Y];for(;M--;)ee[Y++]=arguments[++R];return or(ge,E?d:this,ee)}return o(L,"wrapper"),L}o(aj,"createPartial");function DI(c){return function(f,d,v){return v&&typeof v!="number"&&Ii(f,d,v)&&(d=v=e),f=na(f),d===e?(d=f,f=0):d=na(d),v=v===e?f<d?1:-1:na(v),Wk(f,d,v,c)}}o(DI,"createRange");function Kd(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Dr(f),d=Dr(d)),c(f,d)}}o(Kd,"createRelationalOperation");function _I(c,f,d,v,E,x,L,R,M,Y){var J=f&j,ee=J?L:e,ge=J?e:L,Oe=J?x:e,Me=J?e:x;f|=J?B:ae,f&=~(J?ae:B),f&D||(f&=~(b|O));var Ze=[c,f,E,Oe,ee,Me,ge,R,M,Y],ke=d.apply(e,Ze);return Zv(c)&&KI(ke,Ze),ke.placeholder=v,XI(ke,c,f)}o(_I,"createRecurry");function Kv(c){var f=Un[c];return function(d,v){if(d=Dr(d),v=v==null?0:pi(Ye(v),292),v&&Xx(d)){var E=(Ot(d)+"e").split("e"),x=f(E[0]+"e"+(+E[1]+v));return E=(Ot(x)+"e").split("e"),+(E[0]+"e"+(+E[1]-v))}return f(d)}}o(Kv,"createRound");var sj=qc&&1/Ed(new qc([,-0]))[1]==Lt?function(c){return new qc(c)}:gT;function VI(c){return function(f){var d=di(f);return d==Xe?Av(f):d==dn?P2(f):m2(f,c(f))}}o(VI,"createToPairs");function Jo(c,f,d,v,E,x,L,R){var M=f&O;if(!M&&typeof c!="function")throw new Or(r);var Y=v?v.length:0;if(Y||(f&=~(B|ae),v=E=e),L=L===e?L:$n(Ye(L),0),R=R===e?R:Ye(R),Y-=E?E.length:0,f&ae){var J=v,ee=E;v=E=e}var ge=M?e:qv(c),Oe=[c,f,d,v,E,J,ee,x,L,R];if(ge&&Aj(Oe,ge),c=Oe[0],f=Oe[1],d=Oe[2],v=Oe[3],E=Oe[4],R=Oe[9]=Oe[9]===e?M?0:c.length:$n(Oe[9]-Y,0),!R&&f&(j|G)&&(f&=~(j|G)),!f||f==b)var Me=rj(c,f,d);else f==j||f==G?Me=oj(c,f,R):(f==B||f==(b|B))&&!E.length?Me=aj(c,f,d,v):Me=Hd.apply(e,Oe);var Ze=ge?mI:KI;return XI(Ze(Me,Oe),c,f)}o(Jo,"createWrap");function wI(c,f,d,v){return c===e||eo(c,Qc[d])&&!Ft.call(v,d)?f:c}o(wI,"customDefaultsAssignIn");function MI(c,f,d,v,E,x){return mn(c)&&mn(f)&&(x.set(f,c),jd(c,f,e,MI,x),x.delete(f)),c}o(MI,"customDefaultsMerge");function cj(c){return Gf(c)?e:c}o(cj,"customOmitClone");function kI(c,f,d,v,E,x){var L=d&y,R=c.length,M=f.length;if(R!=M&&!(L&&M>R))return!1;var Y=x.get(c),J=x.get(f);if(Y&&J)return Y==f&&J==c;var ee=-1,ge=!0,Oe=d&A?new js:e;for(x.set(c,f),x.set(f,c);++ee<R;){var Me=c[ee],Ze=f[ee];if(v)var ke=L?v(Ze,Me,ee,f,c,x):v(Me,Ze,ee,c,f,x);if(ke!==e){if(ke)continue;ge=!1;break}if(Oe){if(!hv(f,function(st,dt){if(!Lf(Oe,dt)&&(Me===st||E(Me,st,d,v,x)))return Oe.push(dt)})){ge=!1;break}}else if(!(Me===Ze||E(Me,Ze,d,v,x))){ge=!1;break}}return x.delete(c),x.delete(f),ge}o(kI,"equalArrays");function lj(c,f,d,v,E,x,L){switch(d){case Cr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case _s:return!(c.byteLength!=f.byteLength||!x(new Id(c),new Id(f)));case I:case S:case kt:return eo(+c,+f);case V:return c.name==f.name&&c.message==f.message;case ir:case ui:return c==f+"";case Xe:var R=Av;case dn:var M=v&y;if(R||(R=Ed),c.size!=f.size&&!M)return!1;var Y=L.get(c);if(Y)return Y==f;v|=A,L.set(c,f);var J=kI(R(c),R(f),v,E,x,L);return L.delete(c),J;case Gt:if(Vf)return Vf.call(c)==Vf.call(f)}return!1}o(lj,"equalByTag");function fj(c,f,d,v,E,x){var L=d&y,R=Xv(c),M=R.length,Y=Xv(f),J=Y.length;if(M!=J&&!L)return!1;for(var ee=M;ee--;){var ge=R[ee];if(!(L?ge in f:Ft.call(f,ge)))return!1}var Oe=x.get(c),Me=x.get(f);if(Oe&&Me)return Oe==f&&Me==c;var Ze=!0;x.set(c,f),x.set(f,c);for(var ke=L;++ee<M;){ge=R[ee];var st=c[ge],dt=f[ge];if(v)var lr=L?v(dt,st,ge,f,c,x):v(st,dt,ge,c,f,x);if(!(lr===e?st===dt||E(st,dt,d,v,x):lr)){Ze=!1;break}ke||(ke=ge=="constructor")}if(Ze&&!ke){var Oi=c.constructor,fr=f.constructor;Oi!=fr&&"constructor"in c&&"constructor"in f&&!(typeof Oi=="function"&&Oi instanceof Oi&&typeof fr=="function"&&fr instanceof fr)&&(Ze=!1)}return x.delete(c),x.delete(f),Ze}o(fj,"equalObjects");function Zo(c){return tT(GI(c,e,ZI),c+"")}o(Zo,"flatRest");function Xv(c){return rI(c,Qn,Yv)}o(Xv,"getAllKeys");function Qv(c){return rI(c,Hi,jI)}o(Qv,"getAllKeysIn");var qv=Dd?function(c){return Dd.get(c)}:gT;function Xd(c){for(var f=c.name+"",d=zc[f],v=Ft.call(zc,f)?d.length:0;v--;){var E=d[v],x=E.func;if(x==null||x==c)return E.name}return f}o(Xd,"getFuncName");function el(c){var f=Ft.call(P,"placeholder")?P:c;return f.placeholder}o(el,"getHolder");function Ve(){var c=P.iteratee||pT;return c=c===pT?sI:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function Qd(c,f){var d=c.__data__;return vj(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(Qd,"getMapData");function zv(c){for(var f=Qn(c),d=f.length;d--;){var v=f[d],E=c[v];f[d]=[v,E,BI(E)]}return f}o(zv,"getMatchData");function Bs(c,f){var d=E2(c,f);return aI(d)?d:e}o(Bs,"getNative");function uj(c){var f=Ft.call(c,Ms),d=c[Ms];try{c[Ms]=e;var v=!0}catch{}var E=Cd.call(c);return v&&(f?c[Ms]=d:delete c[Ms]),E}o(uj,"getRawTag");var Yv=Pv?function(c){return c==null?[]:(c=Kt(c),Fa(Pv(c),function(f){return Wx.call(c,f)}))}:mT,jI=Pv?function(c){for(var f=[];c;)Da(f,Yv(c)),c=Od(c);return f}:mT,di=xi;(Cv&&di(new Cv(new ArrayBuffer(1)))!=Cr||Ff&&di(new Ff)!=Xe||xv&&di(xv.resolve())!=Ht||qc&&di(new qc)!=dn||Df&&di(new Df)!=Ui)&&(di=o(function(c){var f=xi(c),d=f==cn?c.constructor:e,v=d?Hs(d):"";if(v)switch(v){case X2:return Cr;case Q2:return Xe;case q2:return Ht;case z2:return dn;case Y2:return Ui}return f},"getTag"));function pj(c,f,d){for(var v=-1,E=d.length;++v<E;){var x=d[v],L=x.size;switch(x.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=pi(f,c+L);break;case"takeRight":c=$n(c,f-L);break}}return{start:c,end:f}}o(pj,"getView");function dj(c){var f=c.match(vM);return f?f[1].split(TM):[]}o(dj,"getWrapDetails");function UI(c,f,d){f=ja(f,c);for(var v=-1,E=f.length,x=!1;++v<E;){var L=Po(f[v]);if(!(x=c!=null&&d(c,L)))break;c=c[L]}return x||++v!=E?x:(E=c==null?0:c.length,!!E&&tg(E)&&ea(L,E)&&(Ke(c)||Gs(c)))}o(UI,"hasPath");function gj(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Ft.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(gj,"initCloneArray");function $I(c){return typeof c.constructor=="function"&&!Bf(c)?Yc(Od(c)):{}}o($I,"initCloneObject");function mj(c,f,d){var v=c.constructor;switch(f){case _s:return Gv(c);case I:case S:return new v(+c);case Cr:return Jk(c,d);case xf:case If:case Of:case Vs:case k:case $:case Q:case ce:case Ne:return SI(c,d);case Xe:return new v;case kt:case ui:return new v(c);case ir:return Zk(c);case dn:return new v;case Gt:return ej(c)}}o(mj,"initCloneByTag");function hj(c,f){var d=f.length;if(!d)return c;var v=d-1;return f[v]=(d>1?"& ":"")+f[v],f=f.join(d>2?", ":" "),c.replace(yM,`{
270
270
  /* [wrapped with `+f+`] */
271
271
  `)}o(hj,"insertWrapDetails");function yj(c){return Ke(c)||Gs(c)||!!(Kx&&c&&c[Kx])}o(yj,"isFlattenable");function ea(c,f){var d=typeof c;return f=f??Re,!!f&&(d=="number"||d!="symbol"&&OM.test(c))&&c>-1&&c%1==0&&c<f}o(ea,"isIndex");function Ii(c,f,d){if(!mn(d))return!1;var v=typeof f;return(v=="number"?Bi(d)&&ea(f,d.length):v=="string"&&f in d)?eo(d[f],c):!1}o(Ii,"isIterateeCall");function Jv(c,f){if(Ke(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||cr(c)?!0:md.test(c)||!rr.test(c)||f!=null&&c in Kt(f)}o(Jv,"isKey");function vj(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(vj,"isKeyable");function Zv(c){var f=Xd(c),d=P[f];if(typeof d!="function"||!(f in ut.prototype))return!1;if(c===d)return!0;var v=qv(d);return!!v&&c===v[0]}o(Zv,"isLaziable");function Tj(c){return!!Bx&&Bx in c}o(Tj,"isMasked");var bj=Sd?ta:hT;function Bf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||Qc;return c===d}o(Bf,"isPrototype");function BI(c){return c===c&&!mn(c)}o(BI,"isStrictComparable");function HI(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Kt(d))}}o(HI,"matchesStrictComparable");function Ej(c){var f=Zd(c,function(v){return d.size===l&&d.clear(),v}),d=f.cache;return f}o(Ej,"memoizeCapped");function Aj(c,f){var d=c[1],v=f[1],E=d|v,x=E<(b|O|Z),L=v==Z&&d==j||v==Z&&d==re&&c[7].length<=f[8]||v==(Z|re)&&f[7].length<=f[8]&&d==j;if(!(x||L))return c;v&b&&(c[2]=f[2],E|=d&b?0:D);var R=f[3];if(R){var M=c[3];c[3]=M?CI(M,R,f[4]):R,c[4]=M?_a(c[3],u):f[4]}return R=f[5],R&&(M=c[5],c[5]=M?xI(M,R,f[6]):R,c[6]=M?_a(c[5],u):f[6]),R=f[7],R&&(c[7]=R),v&Z&&(c[8]=c[8]==null?f[8]:pi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=E,c}o(Aj,"mergeData");function Sj(c){var f=[];if(c!=null)for(var d in Kt(c))f.push(d);return f}o(Sj,"nativeKeysIn");function Pj(c){return Cd.call(c)}o(Pj,"objectToString");function GI(c,f,d){return f=$n(f===e?c.length-1:f,0),function(){for(var v=arguments,E=-1,x=$n(v.length-f,0),L=W(x);++E<x;)L[E]=v[f+E];E=-1;for(var R=W(f+1);++E<f;)R[E]=v[E];return R[f]=d(L),or(c,this,R)}}o(GI,"overRest");function WI(c,f){return f.length<2?c:$s(c,Rr(f,0,-1))}o(WI,"parent");function Cj(c,f){for(var d=c.length,v=pi(f.length,d),E=$i(c);v--;){var x=f[v];c[v]=ea(x,d)?E[x]:e}return c}o(Cj,"reorder");function eT(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(eT,"safeGet");var KI=QI(mI),Hf=U2||function(c,f){return Xn.setTimeout(c,f)},tT=QI(Qk);function XI(c,f,d){var v=f+"";return tT(c,hj(v,xj(dj(v),d)))}o(XI,"setWrapToString");function QI(c){var f=0,d=0;return function(){var v=G2(),E=Ue-(v-d);if(d=v,E>0){if(++f>=yt)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(QI,"shortOut");function qd(c,f){var d=-1,v=c.length,E=v-1;for(f=f===e?v:f;++d<f;){var x=Mv(d,E),L=c[x];c[x]=c[d],c[d]=L}return c.length=f,c}o(qd,"shuffleSelf");var qI=Ej(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(ov,function(d,v,E,x){f.push(E?x.replace(AM,"$1"):v||d)}),f});function Po(c){if(typeof c=="string"||cr(c))return c;var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(Po,"toKey");function Hs(c){if(c!=null){try{return Pd.call(c)}catch{}try{return c+""}catch{}}return""}o(Hs,"toSource");function xj(c,f){return Ir(Fe,function(d){var v="_."+d[0];f&d[1]&&!Td(c,v)&&c.push(v)}),c.sort()}o(xj,"updateWrapDetails");function zI(c){if(c instanceof ut)return c.clone();var f=new Nr(c.__wrapped__,c.__chain__);return f.__actions__=$i(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(zI,"wrapperClone");function Ij(c,f,d){(d?Ii(c,f,d):f===e)?f=1:f=$n(Ye(f),0);var v=c==null?0:c.length;if(!v||f<1)return[];for(var E=0,x=0,L=W(Rd(v/f));E<v;)L[x++]=Rr(c,E,E+=f);return L}o(Ij,"chunk");function Oj(c){for(var f=-1,d=c==null?0:c.length,v=0,E=[];++f<d;){var x=c[f];x&&(E[v++]=x)}return E}o(Oj,"compact");function Nj(){var c=arguments.length;if(!c)return[];for(var f=W(c-1),d=arguments[0],v=c;v--;)f[v-1]=arguments[v];return Da(Ke(d)?$i(d):[d],ni(f,1))}o(Nj,"concat");var Lj=nt(function(c,f){return In(c)?Mf(c,ni(f,1,In,!0)):[]}),Rj=nt(function(c,f){var d=Fr(f);return In(d)&&(d=e),In(c)?Mf(c,ni(f,1,In,!0),Ve(d,2)):[]}),Fj=nt(function(c,f){var d=Fr(f);return In(d)&&(d=e),In(c)?Mf(c,ni(f,1,In,!0),e,d):[]});function Dj(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Ye(f),Rr(c,f<0?0:f,v)):[]}o(Dj,"drop");function _j(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Ye(f),f=v-f,Rr(c,0,f<0?0:f)):[]}o(_j,"dropRight");function Vj(c,f){return c&&c.length?$d(c,Ve(f,3),!0,!0):[]}o(Vj,"dropRightWhile");function wj(c,f){return c&&c.length?$d(c,Ve(f,3),!0):[]}o(wj,"dropWhile");function Mj(c,f,d,v){var E=c==null?0:c.length;return E?(d&&typeof d!="number"&&Ii(c,f,d)&&(d=0,v=E),Nk(c,f,d,v)):[]}o(Mj,"fill");function YI(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=d==null?0:Ye(d);return E<0&&(E=$n(v+E,0)),bd(c,Ve(f,3),E)}o(YI,"findIndex");function JI(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=v-1;return d!==e&&(E=Ye(d),E=d<0?$n(v+E,0):pi(E,v-1)),bd(c,Ve(f,3),E,!0)}o(JI,"findLastIndex");function ZI(c){var f=c==null?0:c.length;return f?ni(c,1):[]}o(ZI,"flatten");function kj(c){var f=c==null?0:c.length;return f?ni(c,Lt):[]}o(kj,"flattenDeep");function jj(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Ye(f),ni(c,f)):[]}o(jj,"flattenDepth");function Uj(c){for(var f=-1,d=c==null?0:c.length,v={};++f<d;){var E=c[f];v[E[0]]=E[1]}return v}o(Uj,"fromPairs");function eO(c){return c&&c.length?c[0]:e}o(eO,"head");function $j(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=d==null?0:Ye(d);return E<0&&(E=$n(v+E,0)),Wc(c,f,E)}o($j,"indexOf");function Bj(c){var f=c==null?0:c.length;return f?Rr(c,0,-1):[]}o(Bj,"initial");var Hj=nt(function(c){var f=fn(c,Bv);return f.length&&f[0]===c[0]?Fv(f):[]}),Gj=nt(function(c){var f=Fr(c),d=fn(c,Bv);return f===Fr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?Fv(d,Ve(f,2)):[]}),Wj=nt(function(c){var f=Fr(c),d=fn(c,Bv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?Fv(d,e,f):[]});function Kj(c,f){return c==null?"":B2.call(c,f)}o(Kj,"join");function Fr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(Fr,"last");function Xj(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=v;return d!==e&&(E=Ye(d),E=E<0?$n(v+E,0):pi(E,v-1)),f===f?x2(c,f,E):bd(c,_x,E,!0)}o(Xj,"lastIndexOf");function Qj(c,f){return c&&c.length?uI(c,Ye(f)):e}o(Qj,"nth");var qj=nt(tO);function tO(c,f){return c&&c.length&&f&&f.length?wv(c,f):c}o(tO,"pullAll");function zj(c,f,d){return c&&c.length&&f&&f.length?wv(c,f,Ve(d,2)):c}o(zj,"pullAllBy");function Yj(c,f,d){return c&&c.length&&f&&f.length?wv(c,f,e,d):c}o(Yj,"pullAllWith");var Jj=Zo(function(c,f){var d=c==null?0:c.length,v=Ov(c,f);return gI(c,fn(f,function(E){return ea(E,d)?+E:E}).sort(PI)),v});function Zj(c,f){var d=[];if(!(c&&c.length))return d;var v=-1,E=[],x=c.length;for(f=Ve(f,3);++v<x;){var L=c[v];f(L,v,c)&&(d.push(L),E.push(v))}return gI(c,E),d}o(Zj,"remove");function nT(c){return c==null?c:K2.call(c)}o(nT,"reverse");function eU(c,f,d){var v=c==null?0:c.length;return v?(d&&typeof d!="number"&&Ii(c,f,d)?(f=0,d=v):(f=f==null?0:Ye(f),d=d===e?v:Ye(d)),Rr(c,f,d)):[]}o(eU,"slice");function tU(c,f){return Ud(c,f)}o(tU,"sortedIndex");function nU(c,f,d){return jv(c,f,Ve(d,2))}o(nU,"sortedIndexBy");function iU(c,f){var d=c==null?0:c.length;if(d){var v=Ud(c,f);if(v<d&&eo(c[v],f))return v}return-1}o(iU,"sortedIndexOf");function rU(c,f){return Ud(c,f,!0)}o(rU,"sortedLastIndex");function oU(c,f,d){return jv(c,f,Ve(d,2),!0)}o(oU,"sortedLastIndexBy");function aU(c,f){var d=c==null?0:c.length;if(d){var v=Ud(c,f,!0)-1;if(eo(c[v],f))return v}return-1}o(aU,"sortedLastIndexOf");function sU(c){return c&&c.length?hI(c):[]}o(sU,"sortedUniq");function cU(c,f){return c&&c.length?hI(c,Ve(f,2)):[]}o(cU,"sortedUniqBy");function lU(c){var f=c==null?0:c.length;return f?Rr(c,1,f):[]}o(lU,"tail");function fU(c,f,d){return c&&c.length?(f=d||f===e?1:Ye(f),Rr(c,0,f<0?0:f)):[]}o(fU,"take");function uU(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Ye(f),f=v-f,Rr(c,f<0?0:f,v)):[]}o(uU,"takeRight");function pU(c,f){return c&&c.length?$d(c,Ve(f,3),!1,!0):[]}o(pU,"takeRightWhile");function dU(c,f){return c&&c.length?$d(c,Ve(f,3)):[]}o(dU,"takeWhile");var gU=nt(function(c){return ka(ni(c,1,In,!0))}),mU=nt(function(c){var f=Fr(c);return In(f)&&(f=e),ka(ni(c,1,In,!0),Ve(f,2))}),hU=nt(function(c){var f=Fr(c);return f=typeof f=="function"?f:e,ka(ni(c,1,In,!0),e,f)});function yU(c){return c&&c.length?ka(c):[]}o(yU,"uniq");function vU(c,f){return c&&c.length?ka(c,Ve(f,2)):[]}o(vU,"uniqBy");function TU(c,f){return f=typeof f=="function"?f:e,c&&c.length?ka(c,e,f):[]}o(TU,"uniqWith");function iT(c){if(!(c&&c.length))return[];var f=0;return c=Fa(c,function(d){if(In(d))return f=$n(d.length,f),!0}),bv(f,function(d){return fn(c,yv(d))})}o(iT,"unzip");function nO(c,f){if(!(c&&c.length))return[];var d=iT(c);return f==null?d:fn(d,function(v){return or(f,e,v)})}o(nO,"unzipWith");var bU=nt(function(c,f){return In(c)?Mf(c,f):[]}),EU=nt(function(c){return $v(Fa(c,In))}),AU=nt(function(c){var f=Fr(c);return In(f)&&(f=e),$v(Fa(c,In),Ve(f,2))}),SU=nt(function(c){var f=Fr(c);return f=typeof f=="function"?f:e,$v(Fa(c,In),e,f)}),PU=nt(iT);function CU(c,f){return bI(c||[],f||[],wf)}o(CU,"zipObject");function xU(c,f){return bI(c||[],f||[],Uf)}o(xU,"zipObjectDeep");var IU=nt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,nO(c,d)});function iO(c){var f=P(c);return f.__chain__=!0,f}o(iO,"chain");function OU(c,f){return f(c),c}o(OU,"tap");function zd(c,f){return f(c)}o(zd,"thru");var NU=Zo(function(c){var f=c.length,d=f?c[0]:0,v=this.__wrapped__,E=o(function(x){return Ov(x,c)},"interceptor");return f>1||this.__actions__.length||!(v instanceof ut)||!ea(d)?this.thru(E):(v=v.slice(d,+d+(f?1:0)),v.__actions__.push({func:zd,args:[E],thisArg:e}),new Nr(v,this.__chain__).thru(function(x){return f&&!x.length&&x.push(e),x}))});function LU(){return iO(this)}o(LU,"wrapperChain");function RU(){return new Nr(this.value(),this.__chain__)}o(RU,"wrapperCommit");function FU(){this.__values__===e&&(this.__values__=yO(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(FU,"wrapperNext");function DU(){return this}o(DU,"wrapperToIterator");function _U(c){for(var f,d=this;d instanceof Vd;){var v=zI(d);v.__index__=0,v.__values__=e,f?E.__wrapped__=v:f=v;var E=v;d=d.__wrapped__}return E.__wrapped__=c,f}o(_U,"wrapperPlant");function VU(){var c=this.__wrapped__;if(c instanceof ut){var f=c;return this.__actions__.length&&(f=new ut(this)),f=f.reverse(),f.__actions__.push({func:zd,args:[nT],thisArg:e}),new Nr(f,this.__chain__)}return this.thru(nT)}o(VU,"wrapperReverse");function wU(){return TI(this.__wrapped__,this.__actions__)}o(wU,"wrapperValue");var MU=Bd(function(c,f,d){Ft.call(c,d)?++c[d]:Yo(c,d,1)});function kU(c,f,d){var v=Ke(c)?Fx:Ok;return d&&Ii(c,f,d)&&(f=e),v(c,Ve(f,3))}o(kU,"every");function jU(c,f){var d=Ke(c)?Fa:nI;return d(c,Ve(f,3))}o(jU,"filter");var UU=LI(YI),$U=LI(JI);function BU(c,f){return ni(Yd(c,f),1)}o(BU,"flatMap");function HU(c,f){return ni(Yd(c,f),Lt)}o(HU,"flatMapDeep");function GU(c,f,d){return d=d===e?1:Ye(d),ni(Yd(c,f),d)}o(GU,"flatMapDepth");function rO(c,f){var d=Ke(c)?Ir:Ma;return d(c,Ve(f,3))}o(rO,"forEach");function oO(c,f){var d=Ke(c)?c2:tI;return d(c,Ve(f,3))}o(oO,"forEachRight");var WU=Bd(function(c,f,d){Ft.call(c,d)?c[d].push(f):Yo(c,d,[f])});function KU(c,f,d,v){c=Bi(c)?c:nl(c),d=d&&!v?Ye(d):0;var E=c.length;return d<0&&(d=$n(E+d,0)),ng(c)?d<=E&&c.indexOf(f,d)>-1:!!E&&Wc(c,f,d)>-1}o(KU,"includes");var XU=nt(function(c,f,d){var v=-1,E=typeof f=="function",x=Bi(c)?W(c.length):[];return Ma(c,function(L){x[++v]=E?or(f,L,d):kf(L,f,d)}),x}),QU=Bd(function(c,f,d){Yo(c,d,f)});function Yd(c,f){var d=Ke(c)?fn:cI;return d(c,Ve(f,3))}o(Yd,"map");function qU(c,f,d,v){return c==null?[]:(Ke(f)||(f=f==null?[]:[f]),d=v?e:d,Ke(d)||(d=d==null?[]:[d]),pI(c,f,d))}o(qU,"orderBy");var zU=Bd(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function YU(c,f,d){var v=Ke(c)?mv:wx,E=arguments.length<3;return v(c,Ve(f,4),d,E,Ma)}o(YU,"reduce");function JU(c,f,d){var v=Ke(c)?l2:wx,E=arguments.length<3;return v(c,Ve(f,4),d,E,tI)}o(JU,"reduceRight");function ZU(c,f){var d=Ke(c)?Fa:nI;return d(c,eg(Ve(f,3)))}o(ZU,"reject");function e$(c){var f=Ke(c)?Yx:Kk;return f(c)}o(e$,"sample");function t$(c,f,d){(d?Ii(c,f,d):f===e)?f=1:f=Ye(f);var v=Ke(c)?Sk:Xk;return v(c,f)}o(t$,"sampleSize");function n$(c){var f=Ke(c)?Pk:qk;return f(c)}o(n$,"shuffle");function i$(c){if(c==null)return 0;if(Bi(c))return ng(c)?Xc(c):c.length;var f=di(c);return f==Xe||f==dn?c.size:_v(c).length}o(i$,"size");function r$(c,f,d){var v=Ke(c)?hv:zk;return d&&Ii(c,f,d)&&(f=e),v(c,Ve(f,3))}o(r$,"some");var o$=nt(function(c,f){if(c==null)return[];var d=f.length;return d>1&&Ii(c,f[0],f[1])?f=[]:d>2&&Ii(f[0],f[1],f[2])&&(f=[f[0]]),pI(c,ni(f,1),[])}),Jd=j2||function(){return Xn.Date.now()};function a$(c,f){if(typeof f!="function")throw new Or(r);return c=Ye(c),function(){if(--c<1)return f.apply(this,arguments)}}o(a$,"after");function aO(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,Jo(c,Z,e,e,e,e,f)}o(aO,"ary");function sO(c,f){var d;if(typeof f!="function")throw new Or(r);return c=Ye(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(sO,"before");var rT=nt(function(c,f,d){var v=b;if(d.length){var E=_a(d,el(rT));v|=B}return Jo(c,v,f,d,E)}),cO=nt(function(c,f,d){var v=b|O;if(d.length){var E=_a(d,el(cO));v|=B}return Jo(f,v,c,d,E)});function lO(c,f,d){f=d?e:f;var v=Jo(c,j,e,e,e,e,e,f);return v.placeholder=lO.placeholder,v}o(lO,"curry");function fO(c,f,d){f=d?e:f;var v=Jo(c,G,e,e,e,e,e,f);return v.placeholder=fO.placeholder,v}o(fO,"curryRight");function uO(c,f,d){var v,E,x,L,R,M,Y=0,J=!1,ee=!1,ge=!0;if(typeof c!="function")throw new Or(r);f=Dr(f)||0,mn(d)&&(J=!!d.leading,ee="maxWait"in d,x=ee?$n(Dr(d.maxWait)||0,f):x,ge="trailing"in d?!!d.trailing:ge);function Oe(On){var to=v,ia=E;return v=E=e,Y=On,L=c.apply(ia,to),L}o(Oe,"invokeFunc");function Me(On){return Y=On,R=Hf(st,f),J?Oe(On):L}o(Me,"leadingEdge");function Ze(On){var to=On-M,ia=On-Y,LO=f-to;return ee?pi(LO,x-ia):LO}o(Ze,"remainingWait");function ke(On){var to=On-M,ia=On-Y;return M===e||to>=f||to<0||ee&&ia>=x}o(ke,"shouldInvoke");function st(){var On=Jd();if(ke(On))return dt(On);R=Hf(st,Ze(On))}o(st,"timerExpired");function dt(On){return R=e,ge&&v?Oe(On):(v=E=e,L)}o(dt,"trailingEdge");function lr(){R!==e&&EI(R),Y=0,v=M=E=R=e}o(lr,"cancel");function Oi(){return R===e?L:dt(Jd())}o(Oi,"flush");function fr(){var On=Jd(),to=ke(On);if(v=arguments,E=this,M=On,to){if(R===e)return Me(M);if(ee)return EI(R),R=Hf(st,f),Oe(M)}return R===e&&(R=Hf(st,f)),L}return o(fr,"debounced"),fr.cancel=lr,fr.flush=Oi,fr}o(uO,"debounce");var s$=nt(function(c,f){return eI(c,1,f)}),c$=nt(function(c,f,d){return eI(c,Dr(f)||0,d)});function l$(c){return Jo(c,Se)}o(l$,"flip");function Zd(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Or(r);var d=o(function(){var v=arguments,E=f?f.apply(this,v):v[0],x=d.cache;if(x.has(E))return x.get(E);var L=c.apply(this,v);return d.cache=x.set(E,L)||x,L},"memoized");return d.cache=new(Zd.Cache||zo),d}o(Zd,"memoize"),Zd.Cache=zo;function eg(c){if(typeof c!="function")throw new Or(r);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}o(eg,"negate");function f$(c){return sO(2,c)}o(f$,"once");var u$=Yk(function(c,f){f=f.length==1&&Ke(f[0])?fn(f[0],ar(Ve())):fn(ni(f,1),ar(Ve()));var d=f.length;return nt(function(v){for(var E=-1,x=pi(v.length,d);++E<x;)v[E]=f[E].call(this,v[E]);return or(c,this,v)})}),oT=nt(function(c,f){var d=_a(f,el(oT));return Jo(c,B,e,f,d)}),pO=nt(function(c,f){var d=_a(f,el(pO));return Jo(c,ae,e,f,d)}),p$=Zo(function(c,f){return Jo(c,re,e,e,e,f)});function d$(c,f){if(typeof c!="function")throw new Or(r);return f=f===e?f:Ye(f),nt(c,f)}o(d$,"rest");function g$(c,f){if(typeof c!="function")throw new Or(r);return f=f==null?0:$n(Ye(f),0),nt(function(d){var v=d[f],E=Ua(d,0,f);return v&&Da(E,v),or(c,this,E)})}o(g$,"spread");function m$(c,f,d){var v=!0,E=!0;if(typeof c!="function")throw new Or(r);return mn(d)&&(v="leading"in d?!!d.leading:v,E="trailing"in d?!!d.trailing:E),uO(c,f,{leading:v,maxWait:f,trailing:E})}o(m$,"throttle");function h$(c){return aO(c,1)}o(h$,"unary");function y$(c,f){return oT(Hv(f),c)}o(y$,"wrap");function v$(){if(!arguments.length)return[];var c=arguments[0];return Ke(c)?c:[c]}o(v$,"castArray");function T$(c){return Lr(c,m)}o(T$,"clone");function b$(c,f){return f=typeof f=="function"?f:e,Lr(c,m,f)}o(b$,"cloneWith");function E$(c){return Lr(c,p|m)}o(E$,"cloneDeep");function A$(c,f){return f=typeof f=="function"?f:e,Lr(c,p|m,f)}o(A$,"cloneDeepWith");function S$(c,f){return f==null||Zx(c,f,Qn(f))}o(S$,"conformsTo");function eo(c,f){return c===f||c!==c&&f!==f}o(eo,"eq");var P$=Kd(Rv),C$=Kd(function(c,f){return c>=f}),Gs=oI(function(){return arguments}())?oI:function(c){return vn(c)&&Ft.call(c,"callee")&&!Wx.call(c,"callee")},Ke=W.isArray,x$=xx?ar(xx):_k;function Bi(c){return c!=null&&tg(c.length)&&!ta(c)}o(Bi,"isArrayLike");function In(c){return vn(c)&&Bi(c)}o(In,"isArrayLikeObject");function I$(c){return c===!0||c===!1||vn(c)&&xi(c)==I}o(I$,"isBoolean");var $a=$2||hT,O$=Ix?ar(Ix):Vk;function N$(c){return vn(c)&&c.nodeType===1&&!Gf(c)}o(N$,"isElement");function L$(c){if(c==null)return!0;if(Bi(c)&&(Ke(c)||typeof c=="string"||typeof c.splice=="function"||$a(c)||tl(c)||Gs(c)))return!c.length;var f=di(c);if(f==Xe||f==dn)return!c.size;if(Bf(c))return!_v(c).length;for(var d in c)if(Ft.call(c,d))return!1;return!0}o(L$,"isEmpty");function R$(c,f){return jf(c,f)}o(R$,"isEqual");function F$(c,f,d){d=typeof d=="function"?d:e;var v=d?d(c,f):e;return v===e?jf(c,f,e,d):!!v}o(F$,"isEqualWith");function aT(c){if(!vn(c))return!1;var f=xi(c);return f==V||f==z||typeof c.message=="string"&&typeof c.name=="string"&&!Gf(c)}o(aT,"isError");function D$(c){return typeof c=="number"&&Xx(c)}o(D$,"isFinite");function ta(c){if(!mn(c))return!1;var f=xi(c);return f==_e||f==Rt||f==at||f==ti}o(ta,"isFunction");function dO(c){return typeof c=="number"&&c==Ye(c)}o(dO,"isInteger");function tg(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Re}o(tg,"isLength");function mn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(mn,"isObject");function vn(c){return c!=null&&typeof c=="object"}o(vn,"isObjectLike");var gO=Ox?ar(Ox):Mk;function _$(c,f){return c===f||Dv(c,f,zv(f))}o(_$,"isMatch");function V$(c,f,d){return d=typeof d=="function"?d:e,Dv(c,f,zv(f),d)}o(V$,"isMatchWith");function w$(c){return mO(c)&&c!=+c}o(w$,"isNaN");function M$(c){if(bj(c))throw new We(i);return aI(c)}o(M$,"isNative");function k$(c){return c===null}o(k$,"isNull");function j$(c){return c==null}o(j$,"isNil");function mO(c){return typeof c=="number"||vn(c)&&xi(c)==kt}o(mO,"isNumber");function Gf(c){if(!vn(c)||xi(c)!=cn)return!1;var f=Od(c);if(f===null)return!0;var d=Ft.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&Pd.call(d)==V2}o(Gf,"isPlainObject");var sT=Nx?ar(Nx):kk;function U$(c){return dO(c)&&c>=-Re&&c<=Re}o(U$,"isSafeInteger");var hO=Lx?ar(Lx):jk;function ng(c){return typeof c=="string"||!Ke(c)&&vn(c)&&xi(c)==ui}o(ng,"isString");function cr(c){return typeof c=="symbol"||vn(c)&&xi(c)==Gt}o(cr,"isSymbol");var tl=Rx?ar(Rx):Uk;function $$(c){return c===e}o($$,"isUndefined");function B$(c){return vn(c)&&di(c)==Ui}o(B$,"isWeakMap");function H$(c){return vn(c)&&xi(c)==Cf}o(H$,"isWeakSet");var G$=Kd(Vv),W$=Kd(function(c,f){return c<=f});function yO(c){if(!c)return[];if(Bi(c))return ng(c)?Jr(c):$i(c);if(Rf&&c[Rf])return S2(c[Rf]());var f=di(c),d=f==Xe?Av:f==dn?Ed:nl;return d(c)}o(yO,"toArray");function na(c){if(!c)return c===0?c:0;if(c=Dr(c),c===Lt||c===-Lt){var f=c<0?-1:1;return f*Ci}return c===c?c:0}o(na,"toFinite");function Ye(c){var f=na(c),d=f%1;return f===f?d?f-d:f:0}o(Ye,"toInteger");function vO(c){return c?Us(Ye(c),0,Mt):0}o(vO,"toLength");function Dr(c){if(typeof c=="number")return c;if(cr(c))return It;if(mn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=mn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=Mx(c);var d=CM.test(c);return d||IM.test(c)?o2(c.slice(2),d?2:8):PM.test(c)?It:+c}o(Dr,"toNumber");function TO(c){return So(c,Hi(c))}o(TO,"toPlainObject");function K$(c){return c?Us(Ye(c),-Re,Re):c===0?c:0}o(K$,"toSafeInteger");function Ot(c){return c==null?"":sr(c)}o(Ot,"toString");var X$=Jc(function(c,f){if(Bf(f)||Bi(f)){So(f,Qn(f),c);return}for(var d in f)Ft.call(f,d)&&wf(c,d,f[d])}),bO=Jc(function(c,f){So(f,Hi(f),c)}),ig=Jc(function(c,f,d,v){So(f,Hi(f),c,v)}),Q$=Jc(function(c,f,d,v){So(f,Qn(f),c,v)}),q$=Zo(Ov);function z$(c,f){var d=Yc(c);return f==null?d:Jx(d,f)}o(z$,"create");var Y$=nt(function(c,f){c=Kt(c);var d=-1,v=f.length,E=v>2?f[2]:e;for(E&&Ii(f[0],f[1],E)&&(v=1);++d<v;)for(var x=f[d],L=Hi(x),R=-1,M=L.length;++R<M;){var Y=L[R],J=c[Y];(J===e||eo(J,Qc[Y])&&!Ft.call(c,Y))&&(c[Y]=x[Y])}return c}),J$=nt(function(c){return c.push(e,MI),or(EO,e,c)});function Z$(c,f){return Dx(c,Ve(f,3),Ao)}o(Z$,"findKey");function e4(c,f){return Dx(c,Ve(f,3),Lv)}o(e4,"findLastKey");function t4(c,f){return c==null?c:Nv(c,Ve(f,3),Hi)}o(t4,"forIn");function n4(c,f){return c==null?c:iI(c,Ve(f,3),Hi)}o(n4,"forInRight");function i4(c,f){return c&&Ao(c,Ve(f,3))}o(i4,"forOwn");function r4(c,f){return c&&Lv(c,Ve(f,3))}o(r4,"forOwnRight");function o4(c){return c==null?[]:kd(c,Qn(c))}o(o4,"functions");function a4(c){return c==null?[]:kd(c,Hi(c))}o(a4,"functionsIn");function cT(c,f,d){var v=c==null?e:$s(c,f);return v===e?d:v}o(cT,"get");function s4(c,f){return c!=null&&UI(c,f,Lk)}o(s4,"has");function lT(c,f){return c!=null&&UI(c,f,Rk)}o(lT,"hasIn");var c4=FI(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Cd.call(f)),c[f]=d},uT(Gi)),l4=FI(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Cd.call(f)),Ft.call(c,f)?c[f].push(d):c[f]=[d]},Ve),f4=nt(kf);function Qn(c){return Bi(c)?zx(c):_v(c)}o(Qn,"keys");function Hi(c){return Bi(c)?zx(c,!0):$k(c)}o(Hi,"keysIn");function u4(c,f){var d={};return f=Ve(f,3),Ao(c,function(v,E,x){Yo(d,f(v,E,x),v)}),d}o(u4,"mapKeys");function p4(c,f){var d={};return f=Ve(f,3),Ao(c,function(v,E,x){Yo(d,E,f(v,E,x))}),d}o(p4,"mapValues");var d4=Jc(function(c,f,d){jd(c,f,d)}),EO=Jc(function(c,f,d,v){jd(c,f,d,v)}),g4=Zo(function(c,f){var d={};if(c==null)return d;var v=!1;f=fn(f,function(x){return x=ja(x,c),v||(v=x.length>1),x}),So(c,Qv(c),d),v&&(d=Lr(d,p|g|m,cj));for(var E=f.length;E--;)Uv(d,f[E]);return d});function m4(c,f){return AO(c,eg(Ve(f)))}o(m4,"omitBy");var h4=Zo(function(c,f){return c==null?{}:Hk(c,f)});function AO(c,f){if(c==null)return{};var d=fn(Qv(c),function(v){return[v]});return f=Ve(f),dI(c,d,function(v,E){return f(v,E[0])})}o(AO,"pickBy");function y4(c,f,d){f=ja(f,c);var v=-1,E=f.length;for(E||(E=1,c=e);++v<E;){var x=c==null?e:c[Po(f[v])];x===e&&(v=E,x=d),c=ta(x)?x.call(c):x}return c}o(y4,"result");function T4(c,f,d){return c==null?c:Uf(c,f,d)}o(T4,"set");function b4(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:Uf(c,f,d,v)}o(b4,"setWith");var SO=VI(Qn),PO=VI(Hi);function E4(c,f,d){var v=Ke(c),E=v||$a(c)||tl(c);if(f=Ve(f,4),d==null){var x=c&&c.constructor;E?d=v?new x:[]:mn(c)?d=ta(x)?Yc(Od(c)):{}:d={}}return(E?Ir:Ao)(c,function(L,R,M){return f(d,L,R,M)}),d}o(E4,"transform");function A4(c,f){return c==null?!0:Uv(c,f)}o(A4,"unset");function S4(c,f,d){return c==null?c:vI(c,f,Hv(d))}o(S4,"update");function P4(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:vI(c,f,Hv(d),v)}o(P4,"updateWith");function nl(c){return c==null?[]:Ev(c,Qn(c))}o(nl,"values");function C4(c){return c==null?[]:Ev(c,Hi(c))}o(C4,"valuesIn");function x4(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=Dr(d),d=d===d?d:0),f!==e&&(f=Dr(f),f=f===f?f:0),Us(Dr(c),f,d)}o(x4,"clamp");function I4(c,f,d){return f=na(f),d===e?(d=f,f=0):d=na(d),c=Dr(c),Fk(c,f,d)}o(I4,"inRange");function O4(c,f,d){if(d&&typeof d!="boolean"&&Ii(c,f,d)&&(f=d=e),d===e&&(typeof f=="boolean"?(d=f,f=e):typeof c=="boolean"&&(d=c,c=e)),c===e&&f===e?(c=0,f=1):(c=na(c),f===e?(f=c,c=0):f=na(f)),c>f){var v=c;c=f,f=v}if(d||c%1||f%1){var E=Qx();return pi(c+E*(f-c+r2("1e-"+((E+"").length-1))),f)}return Mv(c,f)}o(O4,"random");var N4=Zc(function(c,f,d){return f=f.toLowerCase(),c+(d?CO(f):f)});function CO(c){return fT(Ot(c).toLowerCase())}o(CO,"capitalize");function xO(c){return c=Ot(c),c&&c.replace(NM,y2).replace(QM,"")}o(xO,"deburr");function L4(c,f,d){c=Ot(c),f=sr(f);var v=c.length;d=d===e?v:Us(Ye(d),0,v);var E=d;return d-=f.length,d>=0&&c.slice(d,E)==f}o(L4,"endsWith");function R4(c){return c=Ot(c),c&&Ie.test(c)?c.replace(Te,T2):c}o(R4,"escape");function F4(c){return c=Ot(c),c&&mM.test(c)?c.replace(Nf,"\\$&"):c}o(F4,"escapeRegExp");var D4=Zc(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),_4=Zc(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),V4=NI("toLowerCase");function w4(c,f,d){c=Ot(c),f=Ye(f);var v=f?Xc(c):0;if(!f||v>=f)return c;var E=(f-v)/2;return Wd(Fd(E),d)+c+Wd(Rd(E),d)}o(w4,"pad");function M4(c,f,d){c=Ot(c),f=Ye(f);var v=f?Xc(c):0;return f&&v<f?c+Wd(f-v,d):c}o(M4,"padEnd");function k4(c,f,d){c=Ot(c),f=Ye(f);var v=f?Xc(c):0;return f&&v<f?Wd(f-v,d)+c:c}o(k4,"padStart");function j4(c,f,d){return d||f==null?f=0:f&&(f=+f),W2(Ot(c).replace(av,""),f||0)}o(j4,"parseInt");function U4(c,f,d){return(d?Ii(c,f,d):f===e)?f=1:f=Ye(f),kv(Ot(c),f)}o(U4,"repeat");function $4(){var c=arguments,f=Ot(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o($4,"replace");var B4=Zc(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function H4(c,f,d){return d&&typeof d!="number"&&Ii(c,f,d)&&(f=d=e),d=d===e?Mt:d>>>0,d?(c=Ot(c),c&&(typeof f=="string"||f!=null&&!sT(f))&&(f=sr(f),!f&&Kc(c))?Ua(Jr(c),0,d):c.split(f,d)):[]}o(H4,"split");var G4=Zc(function(c,f,d){return c+(d?" ":"")+fT(f)});function W4(c,f,d){return c=Ot(c),d=d==null?0:Us(Ye(d),0,c.length),f=sr(f),c.slice(d,d+f.length)==f}o(W4,"startsWith");function K4(c,f,d){var v=P.templateSettings;d&&Ii(c,f,d)&&(f=e),c=Ot(c),f=ig({},f,v,wI);var E=ig({},f.imports,v.imports,wI),x=Qn(E),L=Ev(E,x),R,M,Y=0,J=f.interpolate||hd,ee="__p += '",ge=Sv((f.escape||hd).source+"|"+J.source+"|"+(J===ln?SM:hd).source+"|"+(f.evaluate||hd).source+"|$","g"),Oe="//# sourceURL="+(Ft.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ZM+"]")+`
272
272
  `;c.replace(ge,function(ke,st,dt,lr,Oi,fr){return dt||(dt=lr),ee+=c.slice(Y,fr).replace(LM,b2),st&&(R=!0,ee+=`' +
@@ -285,13 +285,13 @@ __p += '`),dt&&(ee+=`' +
285
285
  function print() { __p += __j.call(arguments, '') }
286
286
  `:`;
287
287
  `)+ee+`return __p
288
- }`;var Ze=OO(function(){return St(x,Oe+"return "+ee).apply(e,L)});if(Ze.source=ee,aT(Ze))throw Ze;return Ze}o(K4,"template");function X4(c){return Ot(c).toLowerCase()}o(X4,"toLower");function Q4(c){return Ot(c).toUpperCase()}o(Q4,"toUpper");function q4(c,f,d){if(c=Ot(c),c&&(d||f===e))return Mx(c);if(!c||!(f=sr(f)))return c;var v=Jr(c),E=Jr(f),x=kx(v,E),L=jx(v,E)+1;return Ua(v,x,L).join("")}o(q4,"trim");function z4(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.slice(0,$x(c)+1);if(!c||!(f=sr(f)))return c;var v=Jr(c),E=jx(v,Jr(f))+1;return Ua(v,0,E).join("")}o(z4,"trimEnd");function Y4(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.replace(av,"");if(!c||!(f=sr(f)))return c;var v=Jr(c),E=kx(v,Jr(f));return Ua(v,E).join("")}o(Y4,"trimStart");function J4(c,f){var d=_,v=ft;if(mn(f)){var E="separator"in f?f.separator:E;d="length"in f?Ye(f.length):d,v="omission"in f?sr(f.omission):v}c=Ot(c);var x=c.length;if(Kc(c)){var L=Jr(c);x=L.length}if(d>=x)return c;var R=d-Xc(v);if(R<1)return v;var M=L?Ua(L,0,R).join(""):c.slice(0,R);if(E===e)return M+v;if(L&&(R+=M.length-R),sT(E)){if(c.slice(R).search(E)){var Y,J=M;for(E.global||(E=Sv(E.source,Ot(ox.exec(E))+"g")),E.lastIndex=0;Y=E.exec(J);)var ee=Y.index;M=M.slice(0,ee===e?R:ee)}}else if(c.indexOf(sr(E),R)!=R){var ge=M.lastIndexOf(E);ge>-1&&(M=M.slice(0,ge))}return M+v}o(J4,"truncate");function Z4(c){return c=Ot(c),c&&Pe.test(c)?c.replace(me,I2):c}o(Z4,"unescape");var eB=Zc(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),fT=NI("toUpperCase");function IO(c,f,d){return c=Ot(c),f=d?e:f,f===e?A2(c)?L2(c):p2(c):c.match(f)||[]}o(IO,"words");var OO=nt(function(c,f){try{return or(c,e,f)}catch(d){return aT(d)?d:new We(d)}}),tB=Zo(function(c,f){return Ir(f,function(d){d=Po(d),Yo(c,d,rT(c[d],c))}),c});function nB(c){var f=c==null?0:c.length,d=Ve();return c=f?fn(c,function(v){if(typeof v[1]!="function")throw new Or(r);return[d(v[0]),v[1]]}):[],nt(function(v){for(var E=-1;++E<f;){var x=c[E];if(or(x[0],this,v))return or(x[1],this,v)}})}o(nB,"cond");function iB(c){return Ik(Lr(c,p))}o(iB,"conforms");function uT(c){return function(){return c}}o(uT,"constant");function rB(c,f){return c==null||c!==c?f:c}o(rB,"defaultTo");var oB=RI(),aB=RI(!0);function Gi(c){return c}o(Gi,"identity");function pT(c){return sI(typeof c=="function"?c:Lr(c,p))}o(pT,"iteratee");function sB(c){return lI(Lr(c,p))}o(sB,"matches");function cB(c,f){return fI(c,Lr(f,p))}o(cB,"matchesProperty");var lB=nt(function(c,f){return function(d){return kf(d,c,f)}}),fB=nt(function(c,f){return function(d){return kf(c,d,f)}});function dT(c,f,d){var v=Qn(f),E=kd(f,v);d==null&&!(mn(f)&&(E.length||!v.length))&&(d=f,f=c,c=this,E=kd(f,Qn(f)));var x=!(mn(d)&&"chain"in d)||!!d.chain,L=ta(c);return Ir(E,function(R){var M=f[R];c[R]=M,L&&(c.prototype[R]=function(){var Y=this.__chain__;if(x||Y){var J=c(this.__wrapped__),ee=J.__actions__=$i(this.__actions__);return ee.push({func:M,args:arguments,thisArg:c}),J.__chain__=Y,J}return M.apply(c,Da([this.value()],arguments))})}),c}o(dT,"mixin");function uB(){return Xn._===this&&(Xn._=w2),this}o(uB,"noConflict");function gT(){}o(gT,"noop");function pB(c){return c=Ye(c),nt(function(f){return uI(f,c)})}o(pB,"nthArg");var dB=Wv(fn),gB=Wv(Fx),mB=Wv(hv);function NO(c){return Jv(c)?yv(Po(c)):Gk(c)}o(NO,"property");function hB(c){return function(f){return c==null?e:$s(c,f)}}o(hB,"propertyOf");var yB=DI(),vB=DI(!0);function mT(){return[]}o(mT,"stubArray");function hT(){return!1}o(hT,"stubFalse");function TB(){return{}}o(TB,"stubObject");function bB(){return""}o(bB,"stubString");function EB(){return!0}o(EB,"stubTrue");function AB(c,f){if(c=Ye(c),c<1||c>Re)return[];var d=Mt,v=pi(c,Mt);f=Ve(f),c-=Mt;for(var E=bv(v,f);++d<c;)f(d);return E}o(AB,"times");function SB(c){return Ke(c)?fn(c,Po):cr(c)?[c]:$i(qI(Ot(c)))}o(SB,"toPath");function PB(c){var f=++_2;return Ot(c)+f}o(PB,"uniqueId");var CB=Gd(function(c,f){return c+f},0),xB=Kv("ceil"),IB=Gd(function(c,f){return c/f},1),OB=Kv("floor");function NB(c){return c&&c.length?Md(c,Gi,Rv):e}o(NB,"max");function LB(c,f){return c&&c.length?Md(c,Ve(f,2),Rv):e}o(LB,"maxBy");function RB(c){return Vx(c,Gi)}o(RB,"mean");function FB(c,f){return Vx(c,Ve(f,2))}o(FB,"meanBy");function DB(c){return c&&c.length?Md(c,Gi,Vv):e}o(DB,"min");function _B(c,f){return c&&c.length?Md(c,Ve(f,2),Vv):e}o(_B,"minBy");var VB=Gd(function(c,f){return c*f},1),wB=Kv("round"),MB=Gd(function(c,f){return c-f},0);function kB(c){return c&&c.length?Tv(c,Gi):0}o(kB,"sum");function jB(c,f){return c&&c.length?Tv(c,Ve(f,2)):0}return o(jB,"sumBy"),P.after=a$,P.ary=aO,P.assign=X$,P.assignIn=bO,P.assignInWith=ig,P.assignWith=Q$,P.at=q$,P.before=sO,P.bind=rT,P.bindAll=tB,P.bindKey=cO,P.castArray=v$,P.chain=iO,P.chunk=Ij,P.compact=Oj,P.concat=Nj,P.cond=nB,P.conforms=iB,P.constant=uT,P.countBy=MU,P.create=z$,P.curry=lO,P.curryRight=fO,P.debounce=uO,P.defaults=Y$,P.defaultsDeep=J$,P.defer=s$,P.delay=c$,P.difference=Lj,P.differenceBy=Rj,P.differenceWith=Fj,P.drop=Dj,P.dropRight=_j,P.dropRightWhile=Vj,P.dropWhile=wj,P.fill=Mj,P.filter=jU,P.flatMap=BU,P.flatMapDeep=HU,P.flatMapDepth=GU,P.flatten=ZI,P.flattenDeep=kj,P.flattenDepth=jj,P.flip=l$,P.flow=oB,P.flowRight=aB,P.fromPairs=Uj,P.functions=o4,P.functionsIn=a4,P.groupBy=WU,P.initial=Bj,P.intersection=Hj,P.intersectionBy=Gj,P.intersectionWith=Wj,P.invert=c4,P.invertBy=l4,P.invokeMap=XU,P.iteratee=pT,P.keyBy=QU,P.keys=Qn,P.keysIn=Hi,P.map=Yd,P.mapKeys=u4,P.mapValues=p4,P.matches=sB,P.matchesProperty=cB,P.memoize=Zd,P.merge=d4,P.mergeWith=EO,P.method=lB,P.methodOf=fB,P.mixin=dT,P.negate=eg,P.nthArg=pB,P.omit=g4,P.omitBy=m4,P.once=f$,P.orderBy=qU,P.over=dB,P.overArgs=u$,P.overEvery=gB,P.overSome=mB,P.partial=oT,P.partialRight=pO,P.partition=zU,P.pick=h4,P.pickBy=AO,P.property=NO,P.propertyOf=hB,P.pull=qj,P.pullAll=tO,P.pullAllBy=zj,P.pullAllWith=Yj,P.pullAt=Jj,P.range=yB,P.rangeRight=vB,P.rearg=p$,P.reject=ZU,P.remove=Zj,P.rest=d$,P.reverse=nT,P.sampleSize=t$,P.set=T4,P.setWith=b4,P.shuffle=n$,P.slice=eU,P.sortBy=o$,P.sortedUniq=sU,P.sortedUniqBy=cU,P.split=H4,P.spread=g$,P.tail=lU,P.take=fU,P.takeRight=uU,P.takeRightWhile=pU,P.takeWhile=dU,P.tap=OU,P.throttle=m$,P.thru=zd,P.toArray=yO,P.toPairs=SO,P.toPairsIn=PO,P.toPath=SB,P.toPlainObject=TO,P.transform=E4,P.unary=h$,P.union=gU,P.unionBy=mU,P.unionWith=hU,P.uniq=yU,P.uniqBy=vU,P.uniqWith=TU,P.unset=A4,P.unzip=iT,P.unzipWith=nO,P.update=S4,P.updateWith=P4,P.values=nl,P.valuesIn=C4,P.without=bU,P.words=IO,P.wrap=y$,P.xor=EU,P.xorBy=AU,P.xorWith=SU,P.zip=PU,P.zipObject=CU,P.zipObjectDeep=xU,P.zipWith=IU,P.entries=SO,P.entriesIn=PO,P.extend=bO,P.extendWith=ig,dT(P,P),P.add=CB,P.attempt=OO,P.camelCase=N4,P.capitalize=CO,P.ceil=xB,P.clamp=x4,P.clone=T$,P.cloneDeep=E$,P.cloneDeepWith=A$,P.cloneWith=b$,P.conformsTo=S$,P.deburr=xO,P.defaultTo=rB,P.divide=IB,P.endsWith=L4,P.eq=eo,P.escape=R4,P.escapeRegExp=F4,P.every=kU,P.find=UU,P.findIndex=YI,P.findKey=Z$,P.findLast=$U,P.findLastIndex=JI,P.findLastKey=e4,P.floor=OB,P.forEach=rO,P.forEachRight=oO,P.forIn=t4,P.forInRight=n4,P.forOwn=i4,P.forOwnRight=r4,P.get=cT,P.gt=P$,P.gte=C$,P.has=s4,P.hasIn=lT,P.head=eO,P.identity=Gi,P.includes=KU,P.indexOf=$j,P.inRange=I4,P.invoke=f4,P.isArguments=Gs,P.isArray=Ke,P.isArrayBuffer=x$,P.isArrayLike=Bi,P.isArrayLikeObject=In,P.isBoolean=I$,P.isBuffer=$a,P.isDate=O$,P.isElement=N$,P.isEmpty=L$,P.isEqual=R$,P.isEqualWith=F$,P.isError=aT,P.isFinite=D$,P.isFunction=ta,P.isInteger=dO,P.isLength=tg,P.isMap=gO,P.isMatch=_$,P.isMatchWith=V$,P.isNaN=w$,P.isNative=M$,P.isNil=j$,P.isNull=k$,P.isNumber=mO,P.isObject=mn,P.isObjectLike=vn,P.isPlainObject=Gf,P.isRegExp=sT,P.isSafeInteger=U$,P.isSet=hO,P.isString=ng,P.isSymbol=cr,P.isTypedArray=tl,P.isUndefined=$$,P.isWeakMap=B$,P.isWeakSet=H$,P.join=Kj,P.kebabCase=D4,P.last=Fr,P.lastIndexOf=Xj,P.lowerCase=_4,P.lowerFirst=V4,P.lt=G$,P.lte=W$,P.max=NB,P.maxBy=LB,P.mean=RB,P.meanBy=FB,P.min=DB,P.minBy=_B,P.stubArray=mT,P.stubFalse=hT,P.stubObject=TB,P.stubString=bB,P.stubTrue=EB,P.multiply=VB,P.nth=Qj,P.noConflict=uB,P.noop=gT,P.now=Jd,P.pad=w4,P.padEnd=M4,P.padStart=k4,P.parseInt=j4,P.random=O4,P.reduce=YU,P.reduceRight=JU,P.repeat=U4,P.replace=$4,P.result=y4,P.round=wB,P.runInContext=w,P.sample=e$,P.size=i$,P.snakeCase=B4,P.some=r$,P.sortedIndex=tU,P.sortedIndexBy=nU,P.sortedIndexOf=iU,P.sortedLastIndex=rU,P.sortedLastIndexBy=oU,P.sortedLastIndexOf=aU,P.startCase=G4,P.startsWith=W4,P.subtract=MB,P.sum=kB,P.sumBy=jB,P.template=K4,P.times=AB,P.toFinite=na,P.toInteger=Ye,P.toLength=vO,P.toLower=X4,P.toNumber=Dr,P.toSafeInteger=K$,P.toString=Ot,P.toUpper=Q4,P.trim=q4,P.trimEnd=z4,P.trimStart=Y4,P.truncate=J4,P.unescape=Z4,P.uniqueId=PB,P.upperCase=eB,P.upperFirst=fT,P.each=rO,P.eachRight=oO,P.first=eO,dT(P,function(){var c={};return Ao(P,function(f,d){Ft.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Ir(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Ir(["drop","take"],function(c,f){ut.prototype[c]=function(d){d=d===e?1:$n(Ye(d),0);var v=this.__filtered__&&!f?new ut(this):this.clone();return v.__filtered__?v.__takeCount__=pi(d,v.__takeCount__):v.__views__.push({size:pi(d,Mt),type:c+(v.__dir__<0?"Right":"")}),v},ut.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Ir(["filter","map","takeWhile"],function(c,f){var d=f+1,v=d==an||d==en;ut.prototype[c]=function(E){var x=this.clone();return x.__iteratees__.push({iteratee:Ve(E,3),type:d}),x.__filtered__=x.__filtered__||v,x}}),Ir(["head","last"],function(c,f){var d="take"+(f?"Right":"");ut.prototype[c]=function(){return this[d](1).value()[0]}}),Ir(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");ut.prototype[c]=function(){return this.__filtered__?new ut(this):this[d](1)}}),ut.prototype.compact=function(){return this.filter(Gi)},ut.prototype.find=function(c){return this.filter(c).head()},ut.prototype.findLast=function(c){return this.reverse().find(c)},ut.prototype.invokeMap=nt(function(c,f){return typeof c=="function"?new ut(this):this.map(function(d){return kf(d,c,f)})}),ut.prototype.reject=function(c){return this.filter(eg(Ve(c)))},ut.prototype.slice=function(c,f){c=Ye(c);var d=this;return d.__filtered__&&(c>0||f<0)?new ut(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Ye(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},ut.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},ut.prototype.toArray=function(){return this.take(Mt)},Ao(ut.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),v=/^(?:head|last)$/.test(f),E=P[v?"take"+(f=="last"?"Right":""):f],x=v||/^find/.test(f);E&&(P.prototype[f]=function(){var L=this.__wrapped__,R=v?[1]:arguments,M=L instanceof ut,Y=R[0],J=M||Ke(L),ee=o(function(st){var dt=E.apply(P,Da([st],R));return v&&ge?dt[0]:dt},"interceptor");J&&d&&typeof Y=="function"&&Y.length!=1&&(M=J=!1);var ge=this.__chain__,Oe=!!this.__actions__.length,Me=x&&!ge,Ze=M&&!Oe;if(!x&&J){L=Ze?L:new ut(this);var ke=c.apply(L,R);return ke.__actions__.push({func:zd,args:[ee],thisArg:e}),new Nr(ke,ge)}return Me&&Ze?c.apply(this,R):(ke=this.thru(ee),Me?v?ke.value()[0]:ke.value():ke)})}),Ir(["pop","push","shift","sort","splice","unshift"],function(c){var f=Ad[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",v=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var E=arguments;if(v&&!this.__chain__){var x=this.value();return f.apply(Ke(x)?x:[],E)}return this[d](function(L){return f.apply(Ke(L)?L:[],E)})}}),Ao(ut.prototype,function(c,f){var d=P[f];if(d){var v=d.name+"";Ft.call(zc,v)||(zc[v]=[]),zc[v].push({name:f,func:d})}}),zc[Hd(e,O).name]=[{name:"wrapper",func:e}],ut.prototype.clone=J2,ut.prototype.reverse=Z2,ut.prototype.value=ek,P.prototype.at=NU,P.prototype.chain=LU,P.prototype.commit=RU,P.prototype.next=FU,P.prototype.plant=_U,P.prototype.reverse=VU,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=wU,P.prototype.first=P.prototype.head,Rf&&(P.prototype[Rf]=DU),P},"runInContext"),Va=R2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Xn._=Va,define(function(){return Va})):ws?((ws.exports=Va)._=Va,pv._=Va):Xn._=Va}).call(tf)});var pV=qe((kce,uV)=>{var{findIndex:oQ}=Tp();function aQ(e,t){let i=oQ(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o(aQ,"findNextTextualToken");uV.exports={findNextTextualToken:aQ}});var mV=qe((Uce,gV)=>{var dV=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function sQ({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(dV);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(sQ,"isXMLNamespaceKey");function cQ(e){if(typeof e!="string")return;let t=e.match(dV);if(t!==null)return t.groups&&t.groups.prefix||""}o(cQ,"getXMLNamespaceKeyPrefix");gV.exports={isXMLNamespaceKey:sQ,getXMLNamespaceKeyPrefix:cQ}});var yV=qe((Bce,hV)=>{var{findNextTextualToken:lQ}=pV(),{isXMLNamespaceKey:fQ,getXMLNamespaceKeyPrefix:uQ}=mV();hV.exports={findNextTextualToken:lQ,isXMLNamespaceKey:fQ,getXMLNamespaceKeyPrefix:uQ}});var vS=qe((Hce,TV)=>{var{reduce:pQ,has:vV,isArray:dQ}=Tp();function gQ(e){return pQ(e,(n,i,r)=>(r==="parent"||(vV(i,"type")?n.push(i):dQ(i)&&i.length>0&&vV(i[0],"type")&&(n=n.concat(i))),n),[])}o(gQ,"getAstChildrenReflective");TV.exports={getAstChildrenReflective:gQ}});var TS=qe((Wce,bV)=>{bV.exports={DEFAULT_NS:"::DEFAULT"}});var OV=qe((Kce,IV)=>{var{BaseXmlCstVisitor:mQ}=yS(),{last:hQ,forEach:PV,reduce:yQ,map:bp,pick:ES,sortBy:vQ,isEmpty:TQ,isArray:CV,assign:bQ}=Tp(),{findNextTextualToken:EQ,isXMLNamespaceKey:AQ,getXMLNamespaceKeyPrefix:SQ}=yV(),{getAstChildrenReflective:PQ}=vS(),{DEFAULT_NS:CQ}=TS();function xQ(e,t){EV.setState({tokenVector:t});let n=EV.visit(e);return n.rootElement!==_c&&xV(n.rootElement),n}o(xQ,"buildAst");var AS=class AS extends mQ{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:_c,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&TQ(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),by(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=bp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),by(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=bp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=bp(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:_c,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=bp(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return NQ(i,t),LQ(i,t),RQ(i,t,this.tokenVector),by(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:_c,value:_c,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=Ey(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=IQ(a.image),r.syntax.value=Ey(a)}return by(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:_c},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=vQ(r,["startOffset"]),s=bp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(AS,"CstToAstVisitor");var bS=AS,EV=new bS;function by(e){let t=PQ(e);PV(t,n=>n.parent=e)}o(by,"setChildrenParent");function xV(e,t=[]){let n=yQ(e.attributes,(r,a)=>{if(a.key!==_c&&AQ({key:a.key,includeEmptyPrefix:!1})===!0){let s=SQ(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[CQ]=l}}return r},{}),i=Object.create(null);e.namespaces=bQ(i,t,n),PV(e.subElements,r=>xV(r,e.namespaces))}o(xV,"updateNamespaces");function Ey(e){return ES(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Ey,"toXMLToken");function AV(e){return ES(e,["startOffset","startLine","startColumn"])}o(AV,"startOfXMLToken");function SV(e){return ES(e,["endOffset","endLine","endColumn"])}o(SV,"endOfXMLToken");function xa(e){return CV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(xa,"exists");function IQ(e){return e.substring(1,e.length-1)}o(IQ,"stripQuotes");function OQ(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(OQ,"nsToParts");var _c=null;function NQ(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Ey(n);let i=OQ(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=Ey(t.END_NAME[0]))}o(NQ,"handleElementOpenCloseNameRanges");function LQ(e,t){if(xa(t.OPEN)){let n;xa(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):xa(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...AV(t.OPEN[0]),...SV(n)}),xa(t.SLASH_OPEN)&&xa(t.END)&&(e.syntax.closeBody={...AV(t.SLASH_OPEN[0]),...SV(t.END[0])})}}o(LQ,"handleElementOpenCloseBodyRanges");function RQ(e,t,n){if(xa(t.Name)){let i=t.Name[0].endOffset+2;if(xa(t.START_CLOSE)||xa(t.SLASH_CLOSE)){let r=(xa(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=CV(t.attribute)?hQ(t.attribute).location.endOffset:t.Name[0].endOffset,s=EQ(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(RQ,"handleElementAttributeRanges");IV.exports={buildAst:xQ}});var RV=qe((Qce,LV)=>{var{forEach:FQ,isFunction:nf}=Tp(),{getAstChildrenReflective:DQ}=vS();function NV(e,t){switch(e.type){case"XMLDocument":{nf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{nf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{nf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{nf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{nf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{nf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=DQ(e);FQ(n,i=>{NV(i,t)})}o(NV,"accept");LV.exports={accept:NV}});var DV=qe((zce,FV)=>{var{buildAst:_Q}=OV(),{accept:VQ}=RV(),{DEFAULT_NS:wQ}=TS();FV.exports={buildAst:_Q,accept:VQ,DEFAULT_NS:wQ}});var Di={};Ws(Di,{deleteConfigEntityByPath:()=>cY,exportConfig:()=>aY,exportConfigEntityByPath:()=>sY,generateCustomExtension:()=>ZC,generateSchema:()=>oY,getApiVersion:()=>pY,getChanges:()=>gM,getGenericSchema:()=>ev,getPathToGenericSchema:()=>Iw,getProject:()=>yY,importConfig:()=>lY,importProject:()=>fY,importProjectSchema:()=>uY,isDirectory:()=>gY,log:()=>se,prompts:()=>rY,readDirectory:()=>rx});module.exports=og(Di);var pe=ie(le());var K=ie(le());var Be=o(e=>typeof e=="string","isString"),Wf=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),lR=o(e=>e==null?"":""+e,"makeString"),bG=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),EG=/###/g,fR=o(e=>e&&e.indexOf("###")>-1?e.replace(EG,"."):e,"cleanKey"),uR=o(e=>!e||Be(e),"canNotTraverseDeeper"),Kf=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(uR(e))return{};let a=fR(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return uR(e)?{}:{obj:e,k:fR(i[r])}},"getLastOfPath"),pR=o((e,t,n)=>{let{obj:i,k:r}=Kf(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=Kf(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=Kf(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),AG=o((e,t,n,i)=>{let{obj:r,k:a}=Kf(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),sg=o((e,t)=>{let{obj:n,k:i}=Kf(e,t);if(n)return n[i]},"getPath"),SG=o((e,t,n)=>{let i=sg(e,n);return i!==void 0?i:sg(t,n)},"getPathWithDefaults"),vR=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):vR(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),rl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),PG={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},CG=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>PG[t]):e,"escape"),FT=class FT{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(FT,"RegExpCache");var CT=FT,xG=[" ",",","?","!",";"],IG=new CT(20),OG=o((e,t,n)=>{t=t||"",n=n||"";let i=xG.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=IG.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),xT=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),cg=o(e=>e&&e.replace("_","-"),"getCleanedCode"),NG={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Xf=class Xf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||NG,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Xf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Xf(this.logger,t)}};o(Xf,"Logger");var IT=Xf,Co=new IT,DT=class DT{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l.apply(l,[t,...i])})}};o(DT,"EventEmitter");var al=DT,_T=class _T extends al{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let u=sg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||!Be(i)?u:xT(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),pR(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=sg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?vR(u,i,a):u={...u,...i},pR(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(_T,"ResourceStore");var lg=_T,TR={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},dR={},dg=class dg extends al{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),bG(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Co.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!OG(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let ae=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${ae}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${ae}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),y=m&&m.res,A=m&&m.usedKey||s,b=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(y),D=["[object Number]","[object Function]","[object RegExp]"],j=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,G=!this.i18nFormat||this.i18nFormat.handleAsObject,B=!Be(y)&&typeof y!="boolean"&&typeof y!="number";if(G&&y&&B&&D.indexOf(O)<0&&!(Be(j)&&Array.isArray(y))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ae=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,y,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=ae,m.usedParams=this.getUsedParamsDetails(n),m):ae}if(a){let ae=Array.isArray(y),Z=ae?[]:{},re=ae?b:A;for(let Se in y)if(Object.prototype.hasOwnProperty.call(y,Se)){let _=`${re}${a}${Se}`;Z[Se]=this.translate(_,{...n,joinArrays:!1,ns:l}),Z[Se]===_&&(Z[Se]=y[Se])}y=Z}}else if(G&&Be(j)&&Array.isArray(y))y=y.join(j),y&&(y=this.extendTranslation(y,t,n,i));else{let ae=!1,Z=!1,re=n.count!==void 0&&!Be(n.count),Se=dg.hasDefaultValue(n),_=re?this.pluralResolver.getSuffix(p,n.count,n):"",ft=n.ordinal&&re?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",yt=re&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ue=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${_}`]||n[`defaultValue${ft}`]||n.defaultValue;!this.isValidLookup(y)&&Se&&(ae=!0,y=Ue),this.isValidLookup(y)||(Z=!0,y=s);let Wn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:y,en=Se&&Ue!==y&&this.options.updateMissing;if(Z||ae||en){if(this.logger.log(en?"updateKey":"missingKey",p,u,s,en?Ue:y),a){let It=this.resolve(s,{...n,keySeparator:!1});It&&It.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Lt=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let It=0;It<Re.length;It++)Lt.push(Re[It]);else this.options.saveMissingTo==="all"?Lt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Lt.push(n.lng||this.language);let Ci=o((It,Mt,sn)=>{let ji=Se&&sn!==y?sn:Wn;this.options.missingKeyHandler?this.options.missingKeyHandler(It,u,Mt,ji,en,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(It,u,Mt,ji,en,n),this.emit("missingKey",It,u,Mt,y)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Lt.forEach(It=>{let Mt=this.pluralResolver.getSuffixes(It,n);yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Mt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Mt.push(`${this.options.pluralSeparator}zero`),Mt.forEach(sn=>{Ci([It],s+sn,n[`defaultValue${sn}`]||Ue)})}):Ci(Lt,s,Ue))}y=this.extendTranslation(y,t,n,m,i),Z&&y===s&&this.options.appendNamespaceToMissingKey&&(y=`${u}:${s}`),(Z||ae)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,ae?y:void 0):y=this.options.parseMissingKeyHandler(y))}return r?(m.res=y,m.usedParams=this.getUsedParamsDetails(n),m):y}extendTranslation(t,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=Be(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(p){let y=t.match(this.interpolator.nestingRegexp);g=y&&y.length}let m=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||r.usedLng,i),p){let y=t.match(this.interpolator.nestingRegexp),A=y&&y.length;g<A&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var y=arguments.length,A=new Array(y),b=0;b<y;b++)A[b]=arguments[b];return a&&a[0]===A[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${A[0]} in key: ${n[0]}`),null):s.translate(...A,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,u=Be(l)?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=TR.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return Be(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(u,n),g=p.key;r=g;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let y=n.count!==void 0&&!Be(n.count),A=y&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(D=>{this.isValidLookup(i)||(l=D,!dR[`${O[0]}-${D}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(dR[`${O[0]}-${D}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(j=>{if(this.isValidLookup(i))return;s=j;let G=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(G,g,j,D,n);else{let ae;y&&(ae=this.pluralResolver.getSuffix(j,n.count,n));let Z=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(y&&(G.push(g+ae),n.ordinal&&ae.indexOf(re)===0&&G.push(g+ae.replace(re,this.options.pluralSeparator)),A&&G.push(g+Z)),b){let Se=`${g}${this.options.contextSeparator}${n.context}`;G.push(Se),y&&(G.push(Se+ae),n.ordinal&&ae.indexOf(re)===0&&G.push(Se+ae.replace(re,this.options.pluralSeparator)),A&&G.push(Se+Z))}}let B;for(;B=G.pop();)this.isValidLookup(i)||(a=B,i=this.getResource(j,D,B,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(dg,"Translator");var fg=dg,ST=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),VT=class VT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Co.create("languageUtils")}getScriptPartFromCode(t){if(t=cg(t),!t||t.indexOf("-")<0)return null;let n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=cg(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=ST(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=ST(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=ST(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(VT,"LanguageUtil");var ug=VT,LG=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],RG={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},FG=["v1","v2","v3"],DG=["v4"],gR={zero:0,one:1,two:2,few:3,many:4,other:5},_G=o(()=>{let e={};return LG.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:RG[t.fc]}})}),e},"createRules"),wT=class wT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Co.create("pluralResolver"),(!this.options.compatibilityJSON||DG.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=_G(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let i=cg(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!t.match(/-|_/))return;let u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[a]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>gR[r]-gR[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let a=o(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!FG.includes(this.options.compatibilityJSON)}};o(wT,"PluralResolver");var OT=wT,mR=o(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=SG(e,t,n);return!a&&r&&Be(n)&&(a=xT(e,n,i),a===void 0&&(a=xT(t,n,i))),a},"deepFindWithDefaults"),PT=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),MT=class MT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Co.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:y,nestingPrefixEscaped:A,nestingSuffix:b,nestingSuffixEscaped:O,nestingOptionsSeparator:D,maxReplaces:j,alwaysFormat:G}=t.interpolation;this.escape=n!==void 0?n:CG,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?rl(a):s||"{{",this.suffix=l?rl(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=y?rl(y):A||rl("$t("),this.nestingSuffix=b?rl(b):O||rl(")"),this.nestingOptionsSeparator=D||",",this.maxReplaces=j||1e3,this.alwaysFormat=G!==void 0?G:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(A=>{if(A.indexOf(this.formatSeparator)<0){let j=mR(n,u,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,i,{...r,...n,interpolationkey:A}):j}let b=A.split(this.formatSeparator),O=b.shift().trim(),D=b.join(this.formatSeparator).trim();return this.format(mR(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),D,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(A=>PT(A),"safeValue")},{regex:this.regexp,safeValue:o(A=>this.escapeValue?PT(this.escape(A)):PT(A),"safeValue")}].forEach(A=>{for(l=0;a=A.regex.exec(t);){let b=a[1].trim();if(s=p(b),s===void 0)if(typeof g=="function"){let D=g(t,a,r);s=Be(D)?D:""}else if(r&&Object.prototype.hasOwnProperty.call(r,b))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=lR(s));let O=A.safeValue(s);if(t=t.replace(a[0],O),m?(A.regex.lastIndex+=s.length,A.regex.lastIndex-=a[0].length):A.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),y=`{${m[1]}`;u=m[0],y=this.interpolate(y,s);let A=y.match(/'/g),b=y.match(/"/g);(A&&A.length%2===0&&!b||b.length%2!==0)&&(y=y.replace(/'/g,'"'));try{s=JSON.parse(y),p&&(s={...p,...s})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,O),`${u}${g}${y}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let g=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=g.shift(),u=g,p=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=lR(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),p&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(MT,"Interpolator");var NT=MT,VG=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...u]=s.split(":"),p=u.join(":").trim().replace(/^'+|'+$/g,""),g=l.trim();n[g]||(n[g]=p),p==="false"&&(n[g]=!1),p==="true"&&(n[g]=!0),isNaN(p)||(n[g]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),ol=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(cg(i),r),t[s]=l),l(n)}},"createCachedFormatter"),kT=class kT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Co.create("formatter"),this.options=t,this.formats={number:ol((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:ol((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:ol((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:ol((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:ol((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ol(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=VG(u);if(this.formats[p]){let m=l;try{let y=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},A=y.locale||y.lng||r.locale||r.lng||i;m=this.formats[p](l,A,{...g,...r,...y})}catch(y){this.logger.warn(y)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(kT,"Formatter");var LT=kT,wG=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),jT=class jT extends al{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Co.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let y=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[y]=2:this.state[y]<0||(this.state[y]===1?s[y]===void 0&&(s[y]=!0):(this.state[y]=1,g=!1,s[y]===void 0&&(s[y]=!0),a[y]===void 0&&(a[y]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{AG(u.loaded,[a],s),wG(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let u={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,n,i,r,u):g=p(t,n,i,r),g&&typeof g.then=="function"?g.then(m=>l(null,m)).catch(l):l(null,g)}catch(g){l(g)}else p(t,n,i,r,l,u)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(jT,"Connector");var RT=jT,hR=o(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),yR=o(e=>(Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),ag=o(()=>{},"noop"),MG=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Qf=class Qf extends al{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=yR(t),this.services={},this.logger=Co,this.modules={external:[]},MG(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Be(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=hR();this.options={...r,...this.options,...yR(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=o(g=>g?typeof g=="function"?new g:g:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Co.init(a(this.modules.logger),this.options):Co.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=LT);let m=new ug(this.options);this.store=new lg(this.options.resources,this.options);let y=this.services;y.logger=Co,y.resourceStore=this.store,y.languageUtils=m,y.pluralResolver=new OT(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(y.formatter=a(g),y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new NT(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new RT(a(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",function(A){for(var b=arguments.length,O=new Array(b>1?b-1:0),D=1;D<b;D++)O[D-1]=arguments[D];t.emit(A,...O)}),this.modules.languageDetector&&(y.languageDetector=a(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=a(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new fg(this.services,this.options),this.translator.on("*",function(A){for(var b=arguments.length,O=new Array(b>1?b-1:0),D=1;D<b;D++)O[D-1]=arguments[D];t.emit(A,...O)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=ag),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});let u=Wf(),p=o(()=>{let g=o((m,y)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(y),i(m,y)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ag,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=Wf();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=ag),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&TR.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=Wf();this.emit("languageChanging",t);let a=o(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=o((u,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(u,function(){return i.t(...arguments)})},"done"),l=o(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=Be(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{s(g,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let u;if(typeof l!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),m=2;m<p;m++)g[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([s,l].concat(g))}else u={...l};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||a.keyPrefix);let y=r.options.keySeparator||".",A;return u.keyPrefix&&Array.isArray(s)?A=s.map(b=>`${u.keyPrefix}${y}${b}`):A=u.keyPrefix?`${u.keyPrefix}${y}${s}`:s,r.t(A,u)},"fixedT");return Be(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=Wf();return this.options.ns?(Be(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Wf();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new ug(hR());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Qf(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ag,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Qf(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new lg(this.store.data,r),a.services.resourceStore=a.store),a.translator=new fg(a.services,r),a.translator.on("*",function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];a.emit(l,...p)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(Qf,"I18n");var pg=Qf,q=pg.createInstance();q.createInstance=pg.createInstance;var OY=q.createInstance,NY=q.dir,LY=q.init,RY=q.loadResources,FY=q.reloadResources,DY=q.use,_Y=q.changeLanguage,VY=q.getFixedT,wY=q.t,MY=q.exists,kY=q.setDefaultNamespace,jY=q.hasLoadedNamespace,UY=q.loadNamespaces,$Y=q.loadLanguages;var _F=ie(UT()),VF=ie(KR()),_g=ie(FF()),Je=require("@sap-ux/vocabularies-types/vocabularies/UI"),Zf=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Fg=ie(le());var se=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${Fg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Fg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Fg.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var U="#/definitions/",hW=[K.v4.FE_TEMPLATE_V4_LIST_REPORT,K.v4.FE_TEMPLATE_V4_ALP,K.v4.FE_TEMPLATE_V4_OBJECT_PAGE,K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],yW=["sap.fe.core","sap.fe.templates"],pl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),pr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Oo(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,_g.parse)(r.fileContent,r.dataSourceUri))}catch(a){return se(t,{severity:K.LogSeverity.Error,message:q.t("ANNOERR"),location:{path:q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,_g.merge)(...n);i=(0,VF.convert)(r)}return i}o(Oo,"parseAndMergeAndConvert");var ul=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function ab(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(ab,"evaluateCommonLabel");function Vg(e,t){let n=e.value;return e.$target&&(n=ab(e.$target.annotations,t,n)),n}o(Vg,"getLabelForPropertyPath");function Dg(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=ab(i.annotations,t,n)),n}o(Dg,"getLabelForDataField");function vW(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return ab(a.annotations,t,s)}}}else return}o(vW,"getLabel");function DF(e,t,n){let i=Dg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(DF,"getTitleForDataField");function yi(e,t){var s,l,u,p;let n="",i,r,a="";try{let g=vW(e.Label,t);switch(e.$Type){case Je.UIAnnotationTypes.DataField:n=DF(e,t,g);break;case Je.UIAnnotationTypes.DataFieldWithUrl:i=Dg(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Je.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Dg(e,t),n=g||i||((l=(s=r.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((u=r.Target)==null?void 0:u.value.split("UI.v1.")[1]);break;case Je.UIAnnotationTypes.DataFieldForAction:case Je.UIAnnotationTypes.DataFieldWithAction:case Je.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,a=typeof e.Action=="string"?r.Action:(p=r.Action)==null?void 0:p.path,g?n=typeof g=="string"?g:a:n=a;break;case Je.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Dg(e,t),n=i||e.Value.path;break;case Je.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=DF(r,t,g);break;default:break}return n}catch{return n}}o(yi,"getDataFieldDescription");function pt(e){return e.replace("#","::").replace(/\//g,":2f")}o(pt,"prepareRef");function ca(e){if(e){let t=`${K.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(ca,"getPageTypeV2");function sb(e){if(e.name&&e.name!==K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${K.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return K.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return K.PageTypeV4.CustomPage}}o(sb,"getPageTypeV4");function TW(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(TW,"getTargetAnnotationName");function ii(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(ii,"findAlias");function bW(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(bW,"getAnnotationFromMetaPath");function EW(e,t,n){var s,l;let i=e[e.length-1],r=bW(i),a=ii(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(EW,"determineTargetAnnotation");function AW(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Je.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${K.UIVOCABULARY}`);return e}o(AW,"adjustKey");function SW(e,t,n,i,r=K.FioriElementsVersion.v2,a=!1){var m,y;let s=!1,l,u=i.split("/"),p=u.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=AW(t,u,a);let g=EW(u,n,e);if(g){let A=r===K.FioriElementsVersion.v2?"::":"#";t=TW(g,a).replace("#",A),l=(y=g.fullyQualifiedName)==null?void 0:y.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let A=r===K.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(A)}${A}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(SW,"getKeyAndEntityTypeOfReferenceFacet");function wF(e,t,n,i,r=K.FioriElementsVersion.v2,a=!1){var g,m,y;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((g=e.fullyQualifiedName)==null?void 0:g.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(y=e.fullyQualifiedName)==null?void 0:y.split("@")[0],p=t;if(e.$Type!==Je.UIAnnotationTypes.CollectionFacet&&"Target"in e){let A=ul(e.Target);if(!A){se(i,{severity:K.LogSeverity.Error,message:q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:O,stopProcessing:D,namespace:j}=SW(n,l,p,A,r,a);if(D)return;l=b,p=O,u=j}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}o(wF,"getSectionFacet");var cb=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),MF=o((e,t,n,i,r,a=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let u=0;u<l.length;u++){let p=l[u];if(p==="[]")continue;let g=i&&i===p?n:p.replace("??","/");if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=cb(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),No=o((e,t,n,i,r=!1)=>MF(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),kF=o((e,t,n,i,r)=>{MF(e,t,i,r,n)},"setManifestSectionByPathV4");function lb(e){let t,n,i;switch(e.$Type){case Je.UIAnnotationTypes.DataField:t=ul(e.Value);break;case Je.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ul(e.Value);break;case Je.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${K.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Je.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${pt(e.Action)}`);break;case Je.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ul(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Je.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${pt(e.Action)}`);break;case Je.UIAnnotationTypes.DataFieldWithNavigationPath:i=ul(e.Value),n=ul(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(lb,"getSchemaKeyOfLineItemRecord");function PW(e,t,n){return e.includes(Je.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Je.UIAnnotationTerms.Chart:e.includes(Je.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Je.UIAnnotationTerms.Identification:n&&e.includes(Je.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Je.UIAnnotationTerms.LineItem:e.includes(Je.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Je.UIAnnotationTerms.FieldGroup:e.includes(Je.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Je.UIAnnotationTerms.DataPoint:e.includes(Je.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Je.UIAnnotationTerms.PresentationVariant:void 0}o(PW,"getUIAnnotationTerm");function CW(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Zf.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Zf.CommunicationAnnotationTerms.Address:void 0}o(CW,"getCommunicationAnnotationTerm");function xW(e,t,n){return PW(e,t,n)||CW(e,t)}o(xW,"getAnnotationTerm");function IW(e,t,n,i,r){var p,g,m,y,A,b,O,D,j;let a=ii(K.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(xW(s,a,i)){case Je.UIAnnotationTerms.Chart:{n[s]={base:K.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.Identification:{n[s]={base:K.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.LineItem:{if(!s.includes(Je.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let G=s.split("::");G[G.length-1]=`@${Je.UIAnnotationTerms.LineItem}`,s=G.join("::")}n[s]={base:K.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.FieldGroup:{n[s]={base:K.FacetBase.Form},n[s].target=(y=t==null?void 0:t.Target)==null?void 0:y.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.DataPoint:{n[s]={base:K.FacetBase.DataPoint},n[s].Label=(A=t==null?void 0:t.Target)==null?void 0:A.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.PresentationVariant:{n[s]={base:K.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Zf.CommunicationAnnotationTerms.Contact:{n[s]={base:K.FacetBase.Contact},n[s].target=(D=t==null?void 0:t.Target)==null?void 0:D.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Zf.CommunicationAnnotationTerms.Address:{n[s]={base:K.FacetBase.Address},n[s].target=(j=t==null?void 0:t.Target)==null?void 0:j.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:K.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",K.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(IW,"evaluateTargetAnnotation");function fb(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(fb,"getAnnotationPathUsingFullyQualifiedName");function ub(e,t,n,i,r,a=K.FioriElementsVersion.v2,s){var u;let l=wF(e,i,t,s,a,!1);if(l)switch(e.$Type){case Je.UIAnnotationTypes.ReferenceFacet:{IW(l,e,r,i,t);break}case Je.UIAnnotationTypes.CollectionFacet:{let p=fb(i,e.fullyQualifiedName),g=r[l.key]={base:K.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===K.FioriElementsVersion.v4&&se(s,{severity:K.LogSeverity.Error,message:q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{ub(m,t,n,i,g.facets,a,s)});break}}}o(ub,"addFacetToConfig");function wg(e,t,n=K.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ii(K.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{ub(m,t,g,e,r,n,i)})}return r}o(wg,"getObjectPageHeaderFacets");function Mg(e,t,n=K.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ii(K.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{ub(g,t,p,e,r,n,i)})}return r}o(Mg,"getObjectPageFacets");function pb(e){var t,n,i,r;if(e[K.ManifestSection.generic]&&Object.keys(e[K.ManifestSection.generic]).length>0||e[K.ManifestSection.ovp]&&Object.keys(e[K.ManifestSection.ovp]).length>0)return K.FioriElementsVersion.v2;{let a=(n=(t=e[K.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[K.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>hW.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>yW.indexOf(l)>-1)?K.FioriElementsVersion.v4:void 0}}o(pb,"getFEVersionFromManifest");function OW(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[K.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[K.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[K.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[K.ManifestSection.ui5].models[t].dataSource:void 0}o(OW,"getMainService");function jF(e){var i,r;let t=OW(e);if(!t)return K.OdataVersion.v2;let n=(i=e[K.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?K.OdataVersion.v4:K.OdataVersion.v2}o(jF,"getODataVersionFromManifest");function NW(e,t){var i,r;let n;if(e[K.ManifestSection.generic]){let a=e[K.ManifestSection.generic].pages;if(!a){se(t,{severity:K.LogSeverity.Error,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(ca((i=l.component)==null?void 0:i.name)===K.PageTypeV2.AnalyticalListPage){n=K.TemplateType.AnalyticalListPageV2;break}else if(ca((r=l.component)==null?void 0:r.name)===K.PageTypeV2.ListReport){n=K.TemplateType.ListReportObjectPageV2;break}}}else n||se(t,{severity:K.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:K.ManifestSection.generic}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return n}o(NW,"determineV2Template");function eu(e){var i,r,a,s;let t,n=sb(e);if(n===K.PageTypeV4.AnalyticalListPage)t=K.TemplateType.AnalyticalListPageV4;else if(n===K.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[K.ALPViewType.Primary]||l[K.ALPViewType.Secondary])?t=K.TemplateType.AnalyticalListPageV4:t=K.TemplateType.ListReportObjectPageV4}else n===K.PageTypeV4.ObjectPage?t=K.TemplateType.ListReportObjectPageV4:[K.PageTypeV4.CustomPage,K.PageTypeV4.FPMCustomPage].includes(n)&&(t=K.TemplateType.FreestylePageV4);return t}o(eu,"determineV4PageTemplateType");function LW(e){let t;for(let n in e){let i=e[n];if(t=eu(i),t)break}return t}o(LW,"determineV4TemplateFromPages");function RW(e,t){let n=e[K.ManifestSection.ui5].routing&&e[K.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return se(t,{severity:K.LogSeverity.Info,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing"]}}),K.TemplateType.ListReportObjectPageV4;let i=LW(n);return i||se(t,{severity:K.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:K.ManifestSection.ui5}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing","targets"]}}),i}o(RW,"determineV4Template");function db(e,t,n){let i;return e[K.ManifestSection.ovp]?i=K.TemplateType.OverviewPageV2:t===K.FioriElementsVersion.v2?i=NW(e,n):t===K.FioriElementsVersion.v4&&(i=RW(e,n)),i}o(db,"getTemplateTypeFromManifest");function la(e,t,n){e!=null&&e.ID?(t.title=K.FACETTITLEPREFIX+e.ID,t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:n.replace(K.UIVOCABULARYALPHADOT,"")}])}o(la,"addSectionTitle");function Ha(e,t,n){e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(Ha,"addSectionDescription");function dl(e,t,n){var i,r;la(e,t,n),Ha(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(dl,"addTargetTitleAndSectionDescription");function UF(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(UF,"addChartFacetID");function Lo(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[K.SchemaTag.isViewNode]=!0,i[K.SchemaTag.annotationPath]=t.annotationPath,dl(t,i,n),i}o(Lo,"createDefaultSection");function $F(e,t,n,i=K.FioriElementsVersion.v2,r=!1){var l,u;let a=ii(K.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let y=wF(m,e,t,n,i,!0);return y&&g.push(y),g},s)),s}}o($F,"getObjectPageFacetSection");var Ga=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(u){let p=a&&a===u?r:u.replace("??","/");if(!(!s[p]&&(a===u&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),Ga(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),ob=o(e=>e===K.SchemaType.FreestylePage?K.PageTypeV2.CustomPage:e===K.SchemaType.FPMCustomPage?K.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Dt=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case K.SchemaType.Application:{i.filename="App",i.path=`./${K.DirName.Schemas}/${i.filename}`;break}case K.SchemaType.ListReport:case K.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:ob(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}case K.PageTypeV4.FPMCustomPage:case K.SchemaType.FPMCustomPage:{i.filename=n?`${K.SchemaType.FPMCustomPage}_${n}`:ob(K.SchemaType.FPMCustomPage),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}default:{i.filename=ob(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function kg(e,t,n,i){if(e===K.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(kg,"generatePageId");function gb(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split(U)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u]!==void 0)&&a.push(s)}return a}o(gb,"findMatchingKeysByAdditionalProperties");function FW(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split(U)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=gb(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(FW,"fillArrayFromAnyOfReference");function DW(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(U)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{FW(r,n,t,i)}),i.length===0))return;return i}o(DW,"fillArrayFromPropertyDefinition");function _W(e,t,n,i,r,a,s,l){var p,g,m,y;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let A=e[e.length-1];if(u.targetDefinition=t.definitions[A],(p=u==null?void 0:u.targetDefinition)!=null&&p.$ref||((g=u==null?void 0:u.targetDefinition)==null?void 0:g.type)==="array")return u=Ro(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(D=>{D!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[D].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let b=A==null?void 0:A.split("<")[0],O=i||{};u.configObject=a.createInstance(s,b,O,(y=u==null?void 0:u.targetDefinition)==null?void 0:y.controlProperty)}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(_W,"determineNextDefinitionFromDefinitionArray");function Ro(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Ro(e,t,n,i.items,r,a,s),l;let u=DW(i,n,e);if(u)return l=_W(u,e,t,n,r,a,s,i),l}o(Ro,"getNextTargetDefinition");var mb=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,_F.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Ki(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Ki,"convertActionKeyToStableId");function hn(e){return e==null?void 0:e.split(U)[1]}o(hn,"getDefinitionKey");function BF(e){return`#/definitions/${e}`}o(BF,"getDefinitionsRef");function jg(e){return e instanceof Error?e.message:String(e)}o(jg,"getErrorMessage");function qs(e,t){return e==null?void 0:e.includes(t)}o(qs,"isFeatureSupported");function Fo(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Fo,"updatePropertyIndices");function Ug(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(Ug,"getJSONPropertyByPath");function HF(e){return e=e.replace(K.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(HF,"removeNamespaces");function gl(e){return e=e.replace(K.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(gl,"replaceNamespaces");var Eo=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=ie(le());var Xi=ie(le());var zt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),$g=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),qn=o((e,t)=>{let n,i=Xi.FACETTITLEPREFIX;return t!==void 0&&t.includes(i)?n=t.split(i)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function VW(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(VW,"escapeId");var GF=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(GF||{}),WF=(n=>(n.Editable="{= ${ui>/editMode} === 'Editable'}",n.NotEditable="{= ${ui>/editMode} !== 'Editable'}",n))(WF||{});function wW(e,t,n){let i;return e=e.map(function(r){if(r===Xi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Xi.PropertyName.sections)return i=t[a+1],t[a+1]=qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(wW,"mapBreadcrumbs");var hb=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=wW(t,s,r)),s[0]===Xi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Xi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Xi.VOCWITHSLASH):t[0]===Xi.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,Xi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Xi.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,g=u.indexOf(":::");return u.startsWith("DataField")&&g>-1?(u=u.replace("/",":2f"),p=`${e}template:::TableColumn:::${u.substring(0,g)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${u.substring(g+3)}`):(u=u.replace("/","_"),p=`${e}${t.join("::")}-${u}`),VW(p)},"buildColumnControlId"),Qi=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function MW(e){let t=Xi.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(MW,"determinePattern");var yb=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split(U)[1]]:a,u=a.description?a.description:l.description,p=MW(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(g=>{s.enum.indexOf(g)===-1&&s.enum.push(g)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete a.description)},"addPatternForBindingChangeOfEnum"),zn=o((e,t,n)=>{yb(e,t,n)},"addPatternForBindingChangeOfEnumLR"),gt=o((e,t,n)=>{let i=Object.values(GF);yb(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ri=o((e,t,n)=>{let i=Object.values(WF);yb(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function zs(){}o(zs,"doNotDelete");var wJ=ie(XF());var QF=Symbol("specificationMetadataKey"),T=o(e=>Reflect.metadata(QF,e),"syncRule");function Yn(e,t){let n;return e&&(n=Reflect.getMetadata(QF,e,t)),n}o(Yn,"getReflectMetadata");var Vr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),qF=Symbol("childId"),jt=o(e=>Reflect.metadata(qF,e),"childId"),Bg=o((e,t)=>Reflect.getMetadata(qF,e,t),"getChildId"),Hg=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),kW=Symbol("descriptionSrcURL"),Le=o(e=>Reflect.metadata(kW,e),"descriptionSrcURL");var jW=Symbol("validityMetadataKey"),C=o(e=>Reflect.metadata(jW,e),"validity");function Gg(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Gg,"getTextForDeprecated");var i0=ie(t0()),r0=ie(le());var o0=i0.default.change,n0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function a0(e,t){let n="";try{for(let i in n0)e[i]===void 0&&(e[i]=n0[i]);n=o0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(a0,"createChangeString");function io(e){try{return o0.parse(e)}catch{return!1}}o(io,"parseChangeString");function s0(e,t,n,i,r){let a=n.layer?n.layer===r0.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(s0,"fillFlexChangeContent");function c0(e,t){return a0(e,t)}o(c0,"exportToFlexChange");var Ys=ie(le());function ml(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,a);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}o(ml,"importProperty");function Wg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(se(i,{severity:Ys.LogSeverity.Warning,message:Gg(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Wg,"checkDeprecatedProperties");function vb(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(U)[1]];return vb(n,t)}else return e.title?e.title.startsWith(Ys.FACETTITLEPREFIX)?e.title.split(Ys.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(vb,"getSectionTitle");function Kg(e){let t=e.split(`${Ys.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Kg,"getTargetFromCustomColumnRef");function Do(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(Do,"removeEmptyStructure");var Ut=require("@sap-ux/vocabularies-types/vocabularies/UI");var fa=require("@sap-ux/vocabularies-types/vocabularies/UI");function Xg(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(Xg,"replaceSpecialChars");var Js=o(function(e){return Xg(HF(e))},"prepareId");function KW(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(KW,"evaluateConcat");function Zs(e){if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if((e==null?void 0:e.$Function)==="odata.concat")return KW(e);if(e&&typeof e=="string")return Xg(e.replace(/ /g,"_"))}o(Zs,"getStableIdPartFromValue");var l0=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),ua=o(function(e){let t="";if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Js(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=l0(e),t;if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Js(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=Zs(e.Value)+"::"),t+=e.Action,Js(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataField)return t="DataField::",t+=Zs(e.Value),Js(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=Zs(e.Value)+"::",t+=l0(e),Js(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=Zs(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Js(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=Zs(e.Value),Js(t)},"getStableIdPartFromDataField");var de=ie(le());var De=ie(le());var qi=require("@sap-ux/vocabularies-types/vocabularies/UI"),d0=require("path"),g0=ie(Xs());var Qg="ResponsiveTableWithMultiSelect<LineItems>",qg="ResponsiveTableWithInlineDelete<LineItems>",XW="TreeTable<LineItems>",QW="AnalyticalTable<LineItems>",qW="GridTable<LineItems>",Tb=[Qg,qg,XW,QW,qW],f0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],u0="template::",zg="template:::ObjectPageAction:::";function zW(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${U}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${U}${n}`},description:"Custom Columns"},e.definitions[t][De.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[De.SchemaTag.artifactType]=De.ArtifactType.Manifest)}o(zW,"addCustomColumnDefinition");function YW(e,t){let n;return e==="TableColumnActionIntentBased"?n=lb(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=pt(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===qi.UIAnnotationTypes.DataFieldForAction?n=pt(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=pt(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(YW,"getActionId");function bb(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=YW(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=yi(n.lineItemRecord,n.entityType);t.properties[l]={$ref:U+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=ec(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[u]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:g}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[u][De.SchemaTag.target]=m)):(e.definitions[u]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.action,value:g}],m&&(e.definitions[u][De.SchemaTag.target]=m),e.definitions[u][De.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(bb,"handleActionRecord");function JW(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===qi.UIAnnotationTypes.DataFieldForAction||t.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===qi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(JW,"getColumnActionType");function ZW(e,t){let n=[];if(!(e.$Type!==qi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),JW(t,e,n),n}o(ZW,"getActionType");function m0(e,t,n){let i=lb(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:U+De.DefinitionName.TableColumn,description:yi(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,im(r.properties[i],e.lineItemRecord),rm(e.lineItemRecord,r.properties,i)}}o(m0,"generateGenericColumn");function e8(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{bb(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&bb(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{bb(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":m0(i,t,r)}}o(e8,"handleAnyAction");function tu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(tu,"retrieveNameWithoutVocabularyFromVisualization");function hl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=nm(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},y=ZW(g,r);y?y.forEach(A=>{e8(A,t,s,m,p,l,r)}):m0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${U}${a}`})}o(hl,"addLineItemsType");function t8(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,u)=>(l.includes(u.name)||l.push(u.name),l),[])}}o(t8,"addListReportLeadingProperties");function n8(e,t,n,i){var s,l,u,p,g,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(a){let y=[];for(let A in a){let b=(m=a[A])==null?void 0:m.key;b!==void 0&&!y.includes(b)&&y.push(b)}pa(y,r)}}o(n8,"addTabkeyEnum");function Yg(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,g0.xml2json)(u.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!g||g.Column||g["table:Column"]||g["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!g||!g.Column&&!g["table:Column"]&&!g["table:AnalyticalColumn"]&&!g["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+d0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),pa(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(Yg,"addFragmentEnum");function yl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){zW(e,a,s),t8(e,t,s),n8(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Yg(e,r,u,"fragmentName",s),Yg(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),Yg(e,r,u,"cellsFragmentName",s),Yg(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(yl,"addTableColumnExtensions");function h0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(h0,"removeElementsFromEnum");function Jg(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=pr(n==null?void 0:n.fullyQualifiedName,qi.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${pt(s.value)}>`,p=ro(s);s.type==="PropertyPath"&&(l=Vg(s,n)),i.properties[s.value]={$ref:U+u},i.properties[s.value][De.SchemaTag.propertyIndex]=a,e.definitions[u]={type:"object",description:l,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[u][De.SchemaTag.dataType]=p,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.value,value:`${s.value}`}],e.definitions[u][De.SchemaTag.annotationPath]=`${i[De.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${U}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(Jg,"addSelectionFields");function Zg(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(Zg,"isDraftEnabled");function y0(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}o(y0,"isEntityDeletable");function v0(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}o(v0,"isEntityUpdatable");function vl(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,u])=>{let p=u.$ref.split(U)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${U}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(vl,"addStandardHeaderActions");function T0(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(U)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${U}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(T0,"addStandardFooterActionsOP");function em(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?q.t("NOUIANNOTATIONS",{entityType:t.name}):q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});se(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(em,"getUIAnnotationForEntitySet");function tm(e,t,n,i="string"){let r=e!==void 0&&(typeof e!="object"||e[t]!==void 0&&typeof e[t]!==i);return r&&se(n,{severity:De.LogSeverity.Error,message:q.t("TYPEERROR",{propertyName:t,expectedType:i})}),r}o(tm,"hasPropertyTypeError");function i8(e,t,n,i){if(e===de.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ut.UIAnnotationTypes.DataField:case Ut.UIAnnotationTypes.DataFieldForAnnotation:case Ut.UIAnnotationTypes.DataFieldWithNavigationPath:case Ut.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===de.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ut.UIAnnotationTypes.DataField:case Ut.UIAnnotationTypes.DataFieldForAnnotation:case Ut.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(i8,"copyFieldProperties");function r8(e,t,n,i){let r=e===de.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===de.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(r8,"determineFieldDefinitionName");function o8(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][de.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][de.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][de.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][de.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(o8,"addKeysTagForDataField");function a8(e,t,n){if(e.$Type===Ut.UIAnnotationTypes.DataField||e.$Type===Ut.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ut.UIAnnotationTypes.DataFieldWithNavigationPath)o8(e,t,n);else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][de.SchemaTag.keys]=[{name:"Target",value:gl(e.Target.value)}],t.definitions[n][de.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][de.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][de.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][de.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][de.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][de.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(a8,"addKeysTagToField");function s8(e){var t,n;return e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Ut.UIAnnotationTypes.ConnectedFieldsType}o(s8,"isConnectedField");function c8(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===Ut.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let y=p[m];if(typeof y=="object"&&"$Type"in y){let A=u.findIndex(b=>b===m);A===-1&&(A=g,g++),Eb(e,t,y,`ConnectedFields::${a.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(c8,"addConnectedFields");function b0(e,t,n){if(n)return n;let i=pt(t);return e.definitions[i].properties}o(b0,"getFieldsSchemaContainer");function Eb(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){var b;let g=ua(n),m=s===de.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,y=r8(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===Ut.UIAnnotationTypes.DataFieldForAction||n.$Type===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===de.SectionType.Section){let O=b0(t,`${e}${de.DefinitionName.Actions}<${i}>`,u.actions),D=O[m]={$ref:`${U}${y}`};D[de.SchemaTag.propertyIndex]=parseInt(r)}}else{let O=b0(t,`${e}${de.DefinitionName.Fields}<${i}>`,u.fields);O[m]={$ref:`${U}${y}`,propertyIndex:parseInt(r)},s8(n)&&(A=c8(e,t,n,a,s))}t.definitions[y]={type:"object",properties:A,description:yi(n,a.entityType),additionalProperties:!1},a8(n,t,y),t.definitions[y][de.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[y][de.SchemaTag.annotationType]=n.$Type,t.definitions[y][de.SchemaTag.isViewNode]=!0,im(t.definitions[y],n),i8(s,t,n,y),n.$Type===Ut.UIAnnotationTypes.DataFieldForAction&&((b=t.definitions)!=null&&b.FormAction)&&(t.definitions[y].$ref=`${U}${de.DefinitionName.FormAction}`,delete t.definitions[y].properties)}}o(Eb,"addField");function l8(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(l8,"determineTargetIdOfForm");function f8(e,t,n,i,r,a){if(e.base===de.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&Eb(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];Eb(t,n,l,i,s,e,r)}}o(f8,"addFieldsToFormDefinition");function u8(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][de.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][de.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][de.SchemaTag.annotationPath]=pr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(u8,"addTagsToFormDefinition");function om(e,t,n,i,r,a){if(!t.target)return;let s=l8(t),l=pt(`${e}${de.DefinitionName.Form}<${s}>`),u=pt(`${e}${de.DefinitionName.Fields}<${s}>`),p=pt(`${e}${de.DefinitionName.Actions}<${s}>`),g=!(t.base===de.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${U}${l}`},e===de.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${U}${p}`},fields:{$ref:`${U}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][de.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${U}${u}`}},description:"Form",additionalProperties:!1},u8(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][de.SchemaTag.isViewNode]=!0,f8(t,e,i,s,r,g),s}o(om,"handleForm");function Ab(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(Ab,"replaceAlias");function am(e,t){let n=Ab(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(am,"getActionNameAndId");function E0(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===de.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:E0(a.pages,t)}}o(E0,"isFirstObjectPage");function sm(e,t,n,i,r){var g,m;e.definitions[de.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${de.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${U}${de.DefinitionName.ObjectPageFooter}`},e.definitions[de.DefinitionName.ObjectPageFooter].properties[de.PropertyName.actions]={$ref:`${U}${de.DefinitionName.FooterActions}`};let a=e.definitions[de.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[de.SchemaTag.isViewNode]=!0;let s=ii(de.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let y=p.fullyQualifiedName.replace(`@${Ut.UIAnnotationTerms.Identification}`,`/@${Ut.UIAnnotationTerms.Identification}`);a[de.SchemaTag.annotationPath]=`/${y}`,i(u,e,a,p)}else u&&(a[de.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${Ut.UIAnnotationTerms.Identification}`);n===de.FioriElementsVersion.v2&&E0(r,t)&&!Zg(l)&&T0(e,a),delete e.definitions[de.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${de.DefinitionName.ObjectPageFooter}<${de.DefinitionName.ObjectPageFooterActions}>`]}o(sm,"addFooterActions");function cm(e,t,n,i,r,a=!1){var m,y;let s=de.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[de.DefinitionName.ObjectPageHeader].properties[de.PropertyName.actions]={$ref:`${U}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[de.SchemaTag.isViewNode]=!0;let p=ii(de.UIVOCABULARY,n.serviceAVT),g=p&&((y=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:y.Identification);g?u[de.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${Ut.UIAnnotationTerms.Identification}`,`/@${Ut.UIAnnotationTerms.Identification}`):t&&(u[de.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ut.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&vl(e,!0,l)}o(cm,"addHeaderActions");function lm(e,t){e.properties.header={$ref:`${U}${de.DefinitionName.ObjectPageHeader}`},e.definitions[de.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${de.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[de.DefinitionName.ObjectPageHeader][de.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ut.UIAnnotationTerms.HeaderInfo}`)}o(lm,"addCommonHeaderSchema");function A0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(A0,"determineEntitySetOfEntityType");var wr=require("@sap-ux/vocabularies-types/vocabularies/UI");var et=ie(le());function pa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(pa,"addEnumToSchema");function um(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let u=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(u)===-1&&r.push(u)}}pa(r,n)}o(um,"addEnumForValidAnnotations");function Wa(e,t,n){let i=t.definitions[n].properties[et.SchemaTag.annotationPath],r=[wr.UIAnnotationTerms.SelectionVariant,wr.UIAnnotationTerms.SelectionPresentationVariant];um(e,r,i)}o(Wa,"addEnumForSingleTabVariant");function S0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[wr.UIAnnotationTerms.SelectionVariant,wr.UIAnnotationTerms.SelectionPresentationVariant];um(n.entityType,r,i)}o(S0,"addEnumForMultiTabVariant");function P0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),pa(r,i)}o(P0,"addEnumForVariantEntitySet");function C0(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[et.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${U}${et.DefinitionName.RelatedFacetKeys}`},l]}}}}o(C0,"addDefinitionForRelatedFacetKeys");function tc(e){return e.replace("#","::")}o(tc,"getFacetKeyInSchema");function pm(e,t){return`${e}<${tc(t)}>`}o(pm,"getFacetDefinitionKey");function bt(e,t,n,i=!0){let r=t;if(i&&(r=pm(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(bt,"parseSchemaDefinition");function fm(e,t,n){let i;return t===et.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${wr.UIAnnotationTerms.LineItem}`?i=`${U}${n}`:(i=`${U}${n}<${t}>`,bt(n,t,e,!0)),i}o(fm,"getCustomExtensionDefinitionName");function nm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][et.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=fm(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?et.DefinitionName.ObjectPageToolBar:et.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${et.DefinitionName.Actions}<${pt(r)}>`;t.definitions[p].properties.actions.$ref=U+g;let m=r.startsWith(et.DefinitionName.LineItems)?et.DefinitionName.Actions:et.DefinitionName.ObjectPageToolBarActions,y;try{if(y=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),y.properties={},y.additionalProperties=!1,s){let O=fm(t,r,s);y.additionalProperties={$ref:O}}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let A,b;if(r===et.DefinitionName.LineItems&&t.properties.footer){b=`${et.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${U}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.GenericFooter]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:et.DefinitionName.GenericFooter}))}let O=`${et.DefinitionName.FooterActions}<${pt(r)}>`;t.definitions[b].properties.actions.$ref=U+O,A=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.Actions])),A.properties={},A.additionalProperties=!1}return n&&(l=pr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][et.SchemaTag.annotationPath]=l,A&&(t.definitions[b][et.SchemaTag.annotationPath]=l))),{actions:y,footerActions:A,lineItemPath:l}}o(nm,"addCommonLineItemDefinitions");function x0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(x0,"getDataTypeFromAnnotation");function nc(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=x0(e.$Type)),t}o(nc,"determineDataTypeOfTarget");function ro(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=nc((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=x0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(ro,"determineDataType");function im(e,t){let n=ro(t);n&&(e[et.SchemaTag.dataType]=n)}o(im,"addDataTypeToDefinition");function vi(e,t){return`${U}${pm(e,t)}`}o(vi,"getFacetDefinitionLink");function Ka(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${U}${i}`}o(Ka,"addDefinitionRef");function dm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${et.UIVOCABULARY}`);t=`/${n}/@${et.UIVOCABULARY}${i}`}return t}o(dm,"getFacetAnnotationPath");function nu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:vi(a?u:l,t)};let p=bt(a?u:l,t,i,!0);la(e,p,t),Ha(e,p,t),p[et.SchemaTag.annotationPath]=e.annotationPath,p[et.SchemaTag.isViewNode]=!0}o(nu,"handleAddressContact");function Sb(e,t,n){typeof e=="object"&&(e[t]=n)}o(Sb,"updateSchemaProperty");function Tl(e,t,n=pt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${et.DefinitionName.Fields4Dialog}${n}`];Sb(r.properties.fields.items,"enum",i)}o(Tl,"addFieldsType");function p8(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(p8,"findFirstSchemaDefinitionKey");function gm(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=hn(t.$ref),m=(p=e.definitions)==null?void 0:p[g];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,u=p8(a,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(gm,"getEnumEntry");function Xa(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=gm(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];Sb(l,"oneOf",r)}else Sb(a,"oneOf",r)}o(Xa,"addDescriptiveEnumDefinition");function ec(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(ec,"getActionKey");function rm(e,t,n){var i,r,a;try{if(e.Value)t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.value,value:Zs(e.Value)}];else if(e.$Type===wr.UIAnnotationTypes.DataFieldWithAction||e.$Type===wr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=ec(e.Action,!0);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.action,value:s}],l&&(t[n][et.SchemaTag.target]=l)}else if(e.$Type===wr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=ec(e.Target.value,!1);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.target,value:gl(s)}],t[n][et.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===wr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===wr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=ec(s,!0);t[n][et.SchemaTag.keys]=[{name:"SemanticObject",value:e[et.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][et.SchemaTag.target]=u)}}catch{return}}o(rm,"addKeyToDefinition");var bl=ie(le());var I0=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var N0="1.96.83";var L0={name:"@sap/ux-specification",version:N0,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/to-json-schema.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.33.16","@sap-ux/vocabularies-types":"0.12.0"},devDependencies:{"@sap/ux-specification-types":"1.96.83","@sapui5/ts-types-esm":"latest-1.96","@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@types/d3":"7.4.3","@types/jquery":"3.5.32","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.8.2",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.1","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var Qa=class Qa{constructor(){Qa.distTagsOfSpec.length===0&&(Qa.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Qa.distTagsOfSpec=[]}getSpecVersion(){return N0}getDistTagsOfVersion(){let t=[],n=I0,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let r=q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});se(n,{severity:bl.LogSeverity.Info,message:r,location:{path:bl.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(Qa.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=q.t("WRONGMINUI5VERSION",{minUI5Version:t});se(n,{severity:bl.LogSeverity.Warning,message:r,location:{path:bl.MANIFESTPATH}})}}};o(Qa,"DistTagEvaluator"),Qa.distTagsOfSpec=[];var iu=Qa;var fe=ie(le());var _n=ie(le());var Ti=ie(le());function R0(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(R0,"getCustomPageFullName");function m8(e){let n=R0(e).split(".");return n[n.length-1]}o(m8,"getCustomPageName");function F0(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||Ti.ViewTypes.XML}o(F0,"getViewType");function h8(e,t){return F0(e,t).toLowerCase()}o(h8,"getViewTypeExtension");function y8(e,t,n){var p;let i=o(g=>{var m;return(m=g.split(`${t.id}.`)[1])==null?void 0:m.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.viewPath)||(r==null?void 0:r.viewPath),s=R0(e);s!=null&&s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}o(y8,"getViewPath");function v8(e,t){let n=e.entitySet||m8(e),{viewPath:i,fileName:r}=y8(e,t,[n]),a=h8(e,t);return[...i,`${r}.view.${a}`].join("/")}o(v8,"getCustomPagePath");var Pb=class Pb{constructor(t,n,i,r){this.unhandledControllers=[];let a=Dt(Ti.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===Ti.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Ti.DirName.Pages}/${s}.json`]=u)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[Ti.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=F0(t,this.app)===Ti.ViewTypes.XML&&!!t.config;if(t.pageType===Ti.PageTypeV4.CustomPage||t.pageType===Ti.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Dt(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=Dt(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Dt(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Ti.PageTypeV4.CustomPage||t.pageType===Ti.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=v8(t,this.app);n.$filePath=i}};o(Pb,"AppProvider");var qa=Pb;var lt=ie(le());var El=ie(le());var Bn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),D0=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),_0=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function Cb(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(Cb,"getNewPageTemplate");function T8(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(T8,"findPageInManifest");function b8(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=Cb(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:Cb(e[t].pageType)}),!Array.isArray(n.pages))){let i=T8(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=Cb(e[t].pageType)),xb(t,e,i)}}o(b8,"transformPageFromAssociation");function E8(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===El.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===El.PageTypeV2.ListReport||n.pageType===El.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(E8,"deletePage");function xb(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===El.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)b8(t,r,n);Array.isArray(n.pages)||E8(n,t,i)}}o(xb,"transformPageToNewManifestV2");var b1=ie(Xs());var dA={};Ws(dA,{ALPAnalyticalTable:()=>pE,ALPGridTable:()=>uE,ALPResponsiveTable:()=>fE,Action:()=>hE,AnalyticalCard:()=>xl,AnalyticalCardSettings:()=>vm,AnalyticalCardSettingsv4:()=>Fb,AnalyticalListPageFilterBar:()=>$b,AnalyticalTable:()=>lE,BaseCustomSection:()=>Vu,ChartSettings:()=>_E,ChartSettingsType:()=>Ob,CommonCardSettings:()=>Za,CommonFilterBar:()=>mu,CommonHeaderFacetSettings:()=>dc,CommonTableSettings:()=>is,CommonTableSettingsForSections:()=>vc,CreateWithFilters:()=>iE,CustomCard:()=>Lb,DataLoadSettings:()=>rE,DateRange:()=>Mb,DefaultDateRange:()=>kb,DefaultSpanObject:()=>Nb,FRAGMENT_DEFINITION:()=>Vo,Field:()=>wb,FieldForAction:()=>Kb,Fields4Dialog:()=>oE,Fields4DialogOP:()=>sA,FooterAction:()=>vE,FormAction:()=>Wb,GlobalChartSettings:()=>oA,GlobalTableSettings:()=>uA,GridTable:()=>dE,HeaderActionStandard:()=>SE,HeaderSections:()=>BE,KPISettings:()=>VE,LinkListCardSettings:()=>_b,LinklistCard:()=>pu,ListCard:()=>Cl,ListCardSettings:()=>Rb,ListReportFilterBar:()=>Bb,ObjectPageAnalyticalTable:()=>cA,ObjectPageChart:()=>rA,ObjectPageCustomSectionFragment:()=>wu,ObjectPageCustomSectionView:()=>Mu,ObjectPageFooterAction:()=>GE,ObjectPageFooterActionStandard:()=>CE,ObjectPageGridTable:()=>lA,ObjectPageHeader:()=>wE,ObjectPageHeaderAction:()=>ME,ObjectPageHeaderActionStandard:()=>PE,ObjectPageHeaderSectionAddress:()=>$E,ObjectPageHeaderSectionChart:()=>jE,ObjectPageHeaderSectionDataPoint:()=>UE,ObjectPageHeaderSectionForm:()=>kE,ObjectPageLayout:()=>KE,ObjectPageResponsiveTable:()=>Tc,ObjectPageSectionAddressV2:()=>YE,ObjectPageSectionChartV2:()=>qE,ObjectPageSectionContactV2:()=>JE,ObjectPageSectionFormV2:()=>QE,ObjectPageSectionTableV2:()=>zE,ObjectPageSectionV2:()=>XE,ObjectPageSubSectionChartV2:()=>tA,ObjectPageSubSectionContactV2:()=>nA,ObjectPageSubSectionFormV2:()=>eA,ObjectPageSubSectionTableV2:()=>iA,ObjectPageSubSectionV2:()=>ZE,ObjectPageToolBarAction:()=>pA,ObjectPageTreeTable:()=>fA,QuickVariantSelection:()=>aE,QuickVariantSelectionOP:()=>aA,QuickVariantSelectionX:()=>sE,ResponsiveTable:()=>cc,SAP_UI_TABLE:()=>Cm,SaveAndEditOP:()=>AE,SelectionFieldDateSettings:()=>jb,SelectionFields:()=>Ub,Share:()=>TE,ShareOP:()=>bE,StackCard:()=>uu,StackCardSettings:()=>Db,TableALP:()=>Rl,TableCard:()=>Il,TableCardSettings:()=>Vb,TableColumn:()=>OE,TableColumnAction:()=>Wm,TableColumnActionIntentBased:()=>NE,TableCustomColumn:()=>LE,ToolBar:()=>FE,ToolBarAction:()=>yE,TreeTable:()=>cE,UpAndDownNavigationOP:()=>EE,buildIntentBasedActionId:()=>xE,deleteColumnFromFragment:()=>Om,deleteType:()=>Dl,exportColorPalette:()=>k0,exportCreateParametersFields:()=>Vm,exportCustomColumnsToFragment:()=>nE,exportDateSettings:()=>B0,exportDateSettingsField:()=>H0,exportDefaultSpan:()=>j0,exportType:()=>Fl,getChartSectionControlId:()=>m1,getContactSubSectionControlId:()=>y1,getCustomColumnPath:()=>Nm,getFormSectionControlId:()=>g1,getRootCustomColumnFromFragmentJSON:()=>vu,getSectionControlId:()=>hc,getSmartChartControlId:()=>Iu,getSmartTableControlId:()=>sc,getSubSectionControlId:()=>h1,getTableSectionControlId:()=>d1,importCreateParameters:()=>_m,importDateSettings:()=>Hb});var Jn=ie(le());var je=o(e=>`${Jn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),ic=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),V0=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),w0=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var bn=o(()=>Jn.ManifestSection.ovp,"getOVPsettingPath"),Ce=o(e=>{let t=[Jn.ManifestSection.ovp];return e.forEach(n=>{n in Jn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var rc=o((e,t)=>`${Jn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),ym=o(e=>{let t=[Jn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ni=o(e=>{let t=[];return t.push(ym(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),oc=o(e=>Ni(e)+"/tableSettings","getGlobalTableSettingsPathV2"),oo=o((e,t,n)=>{let i=[];i.push(ym(e));let r=n.replace(Jn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),kr=o((e,t,n)=>oo(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),M0=o((e,t,n)=>oo(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),Ib=o(()=>`sap.ui5/extends/extensions/${Jn.v2.SAPUI5_VIEW_EXTENSION}/${Jn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),da=o((e,t,n,...i)=>{let r="|",a=n.split(r),s=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join(r);return i.unshift(u),`${Ib()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),hm=class hm{};o(hm,"ApplicationV2"),h([jt("settings")],hm.prototype,"settings",2);var mm=hm,Mr=class Mr{};o(Mr,"AppSettings"),h([T({manifest:{path:o(()=>"sap.app","path")}})],Mr.prototype,"title",2),h([T({manifest:{path:o(()=>"sap.app","path")}})],Mr.prototype,"description",2),h([T({manifest:{path:o(()=>"sap.fiori","path")}})],Mr.prototype,"cloudDevAdaptationStatus",2),h([T({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.50.0"})],Mr.prototype,"flexibleColumnLayout",2),h([T({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.46.0"})],Mr.prototype,"forceGlobalRefresh",2),h([T({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.74.0"})],Mr.prototype,"tableColumnVerticalAlignment",2),h([T({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"}),Le("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Mr.prototype,"flexEnabled",2),h([T({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],Mr.prototype,"draftDiscardConfirmationSettings",2),h([T({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],Mr.prototype,"statePreservationMode",2);var za=Mr;var ru=ie(le());function A8(e){let t=e.colorPalette,n;if(Array.isArray(t))throw new Error("The array syntax for colorPalette is deprecated and not supported");return t[0]&&typeof t[0]=="object"?(n=t,n.colorPaletteType=ru.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=ru.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:ru.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(A8,"importColorPalette");function k0(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===ru.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(k0,"exportColorPalette");function j0(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(j0,"exportDefaultSpan");var Tm=class Tm{};o(Tm,"ChartSettingsType"),h([T({manifest:{path:o(()=>bn()+"/chartSettings","path")}})],Tm.prototype,"showDataLabel",2);var Ob=Tm,Ya=class Ya{};o(Ya,"DefaultSpanObject"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ya.prototype,"cols",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ya.prototype,"rows",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ya.prototype,"showOnlyHeader",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ya.prototype,"minimumTitleRow",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ya.prototype,"minimumSubTitleRow",2);var Nb=Ya,Xt=class Xt{};o(Xt,"CommonCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"entitySet",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"title",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"subTitle",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"annotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"dataPointAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"selectionPresentationAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"kpiAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"category",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"dynamicSubtitleAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"valueSelectionInfo",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showFilterInHeader",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"sortBy",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"sortOrder",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"identificationAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"selectionAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"presentationAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"enableLocaleCurrencyFormatting",2),h([T({manifest:{path:o(t=>Ce(t),"path"),export:j0}})],Xt.prototype,"defaultSpan",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"requireAppAuthorization",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showSortingInHeader",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"tabs",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"addODataSelect",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showRefresh",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"customParams",2);var Za=Xt,Al=class Al{};o(Al,"CustomCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Al.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Al.prototype,"template",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Al.prototype,"settings",2);var Lb=Al,Ja=class Ja extends Za{};o(Ja,"ListCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"showLineItemDetail",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"imageSupported",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"enableAddToInsights",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"listFlavor",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"listType",2);var Rb=Ja,ou=class ou{};o(ou,"ListCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ou.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ou.prototype,"template",2);var Cl=ou,ao=class ao extends Za{};o(ao,"AnalyticalCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"chartAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"ignoreSapText",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"enableAddToInsights",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"navigation",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"valueSelectionInfo",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"chartProperties",2),h([T({manifest:{path:o(t=>Ce(t),"path"),import:A8,export:k0}})],ao.prototype,"colorPalette",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"bEnableStableColors",2);var vm=ao,bm=class bm extends vm{};o(bm,"AnalyticalCardSettingsv4"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],bm.prototype,"measureAggregate",2);var Fb=bm,au=class au{};o(au,"AnalyticalCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],au.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],au.prototype,"template",2);var xl=au,Sl=class Sl extends Za{};o(Sl,"StackCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"itemText",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"objectStreamCardsNavigationProperty",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"objectStreamCardsSettings",2);var Db=Sl,su=class su{};o(su,"StackCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],su.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],su.prototype,"template",2);var uu=su,Pl=class Pl extends Za{};o(Pl,"LinkListCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"listFlavor",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"headerAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"staticContent",2);var _b=Pl,cu=class cu{};o(cu,"LinklistCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],cu.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],cu.prototype,"template",2);var pu=cu,lu=class lu extends Za{};o(lu,"TableCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],lu.prototype,"showLineItemDetail",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],lu.prototype,"enableAddToInsights",2);var Vb=lu,fu=class fu{};o(fu,"TableCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],fu.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],fu.prototype,"template",2);var Il=fu;var U0=ie(le());var S8=o((e,t,n,i,r)=>{let a=qn(n[1],r),s=n.slice(-1)[0];return zt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Em=class Em{};o(Em,"Field"),h([T({flex:{controlId:S8,controlType:o(()=>U0.ControlType.GroupElement,"controlType")},generate:gt})],Em.prototype,"visible",2);var wb=Em;var ac=ie(le());function Hb(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),delete t.fields,t}o(Hb,"importDateSettings");function B0(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];n==="selectedValues"&&(e[n]=i.join())}o(B0,"exportDateSettings");function P8(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(P8,"importDateSettingsField");function H0(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o(H0,"exportDateSettingsField");var Ol=class Ol{};o(Ol,"DateRange"),h([T({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],Ol.prototype,"useDateRange",2),h([T({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path"),import:Hb,export:B0}}),C({since:"1.77.0"})],Ol.prototype,"selectedValues",2),h([T({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],Ol.prototype,"exclude",2);var Mb=Ol,Am={controlId:zt,controlType:o(()=>ac.ControlType.SmartFilterBar,"controlType")},du={path:o((e,t,n)=>`${je(e)}${ac.DATESETTINGSPATH}/fields/${n}`,"path")},$0={...du,import:P8,export:H0},Sm=class Sm{};o(Sm,"DefaultDateRange"),h([T({manifest:du}),C({since:"1.90.0"})],Sm.prototype,"operation",2);var kb=Sm,es=class es{};o(es,"SelectionFieldDateSettings"),h([T({manifest:$0}),C({since:"1.77.0"})],es.prototype,"selectedValues",2),h([T({manifest:du}),C({since:"1.77.0"})],es.prototype,"exclude",2),h([T({manifest:du}),C({since:"1.77.0"})],es.prototype,"customDateRangeImplementation",2),h([T({manifest:$0}),C({since:"1.77.0"})],es.prototype,"filter",2),h([T({manifest:du}),C({since:"1.90.0"})],es.prototype,"defaultValue",2);var jb=es,Gb=class Gb{};o(Gb,"SelectionFields");var Ub=Gb,so=class so{};o(so,"CommonFilterBar"),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.38.0"})],so.prototype,"smartVariantManagement",2),h([T({flex:Am}),C({since:"1.40.0"})],so.prototype,"liveMode",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.48.0"})],so.prototype,"variantManagementHidden",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.52.0"})],so.prototype,"subTitleIfVariantMgmtHidden",2),h([T({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:Hb}}),C({since:"1.77.0"})],so.prototype,"dateSettings",2),h([T({flex:Am}),C({since:"1.28.0"})],so.prototype,"showClearOnFB",2),h([T({flex:Am}),C({since:"1.38.0"})],so.prototype,"showFilterConfiguration",2),h([T({flex:Am}),C({since:"1.28.0"})],so.prototype,"showRestoreOnFB",2);var mu=so,gu=class gu extends mu{};o(gu,"AnalyticalListPageFilterBar"),h([T({manifest:{path:o(t=>je(t),"path")}})],gu.prototype,"showGoButtonOnFilterBar",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.60.0"})],gu.prototype,"filterDefaultsFromSelectionVariant",2);var $b=gu,Pm=class Pm extends mu{};o(Pm,"ListReportFilterBar"),h([T({manifest:{path:o(t=>je(t),"path")}}),Le("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),C({since:"1.86.0"})],Pm.prototype,"annotationPath",2);var Bb=Pm;var Xb=ie(le());var C8=o((e,t,n,i,r)=>{if(i()===Xb.ControlType.Button){let a=n[n.length-1],s=qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return zt(e,t)},"getFormActionButtonId"),_o={controlId:C8,controlType:o(()=>Xb.ControlType.Button,"controlType")},ts=class ts{};o(ts,"FormAction"),h([T({flex:_o,generate:gt})],ts.prototype,"visible",2),h([T({flex:_o})],ts.prototype,"tooltip",2),h([T({flex:_o})],ts.prototype,"icon",2),h([T({flex:_o})],ts.prototype,"activeIcon",2),h([T({flex:_o})],ts.prototype,"type",2);var Wb=ts,ns=class ns{};o(ns,"FieldForAction"),h([T({flex:_o,generate:gt})],ns.prototype,"visible",2),h([T({flex:_o})],ns.prototype,"tooltip",2),h([T({flex:_o})],ns.prototype,"icon",2),h([T({flex:_o})],ns.prototype,"activeIcon",2),h([T({flex:_o}),C({since:"1.73.0"})],ns.prototype,"type",2);var Kb=ns;var Et=ie(le()),co=ie(Xs());var Yb=require("path"),H8=ie(le()),n1=ie(t1()),i1=require("fs");var G8=(0,Yb.join)(__dirname,"templates");var W8=o((e,t)=>{let n=(0,i1.readFileSync)(e,"utf8");return(0,n1.render)(n,t)},"renderTemplate");var Jb=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return W8((0,Yb.join)(G8,t+".xml"),n)},"getSingleColumnContent"),Zb=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=Jb(i,t);n=n+`
288
+ }`;var Ze=OO(function(){return St(x,Oe+"return "+ee).apply(e,L)});if(Ze.source=ee,aT(Ze))throw Ze;return Ze}o(K4,"template");function X4(c){return Ot(c).toLowerCase()}o(X4,"toLower");function Q4(c){return Ot(c).toUpperCase()}o(Q4,"toUpper");function q4(c,f,d){if(c=Ot(c),c&&(d||f===e))return Mx(c);if(!c||!(f=sr(f)))return c;var v=Jr(c),E=Jr(f),x=kx(v,E),L=jx(v,E)+1;return Ua(v,x,L).join("")}o(q4,"trim");function z4(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.slice(0,$x(c)+1);if(!c||!(f=sr(f)))return c;var v=Jr(c),E=jx(v,Jr(f))+1;return Ua(v,0,E).join("")}o(z4,"trimEnd");function Y4(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.replace(av,"");if(!c||!(f=sr(f)))return c;var v=Jr(c),E=kx(v,Jr(f));return Ua(v,E).join("")}o(Y4,"trimStart");function J4(c,f){var d=_,v=ft;if(mn(f)){var E="separator"in f?f.separator:E;d="length"in f?Ye(f.length):d,v="omission"in f?sr(f.omission):v}c=Ot(c);var x=c.length;if(Kc(c)){var L=Jr(c);x=L.length}if(d>=x)return c;var R=d-Xc(v);if(R<1)return v;var M=L?Ua(L,0,R).join(""):c.slice(0,R);if(E===e)return M+v;if(L&&(R+=M.length-R),sT(E)){if(c.slice(R).search(E)){var Y,J=M;for(E.global||(E=Sv(E.source,Ot(ox.exec(E))+"g")),E.lastIndex=0;Y=E.exec(J);)var ee=Y.index;M=M.slice(0,ee===e?R:ee)}}else if(c.indexOf(sr(E),R)!=R){var ge=M.lastIndexOf(E);ge>-1&&(M=M.slice(0,ge))}return M+v}o(J4,"truncate");function Z4(c){return c=Ot(c),c&&Pe.test(c)?c.replace(me,I2):c}o(Z4,"unescape");var eB=Zc(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),fT=NI("toUpperCase");function IO(c,f,d){return c=Ot(c),f=d?e:f,f===e?A2(c)?L2(c):p2(c):c.match(f)||[]}o(IO,"words");var OO=nt(function(c,f){try{return or(c,e,f)}catch(d){return aT(d)?d:new We(d)}}),tB=Zo(function(c,f){return Ir(f,function(d){d=Po(d),Yo(c,d,rT(c[d],c))}),c});function nB(c){var f=c==null?0:c.length,d=Ve();return c=f?fn(c,function(v){if(typeof v[1]!="function")throw new Or(r);return[d(v[0]),v[1]]}):[],nt(function(v){for(var E=-1;++E<f;){var x=c[E];if(or(x[0],this,v))return or(x[1],this,v)}})}o(nB,"cond");function iB(c){return Ik(Lr(c,p))}o(iB,"conforms");function uT(c){return function(){return c}}o(uT,"constant");function rB(c,f){return c==null||c!==c?f:c}o(rB,"defaultTo");var oB=RI(),aB=RI(!0);function Gi(c){return c}o(Gi,"identity");function pT(c){return sI(typeof c=="function"?c:Lr(c,p))}o(pT,"iteratee");function sB(c){return lI(Lr(c,p))}o(sB,"matches");function cB(c,f){return fI(c,Lr(f,p))}o(cB,"matchesProperty");var lB=nt(function(c,f){return function(d){return kf(d,c,f)}}),fB=nt(function(c,f){return function(d){return kf(c,d,f)}});function dT(c,f,d){var v=Qn(f),E=kd(f,v);d==null&&!(mn(f)&&(E.length||!v.length))&&(d=f,f=c,c=this,E=kd(f,Qn(f)));var x=!(mn(d)&&"chain"in d)||!!d.chain,L=ta(c);return Ir(E,function(R){var M=f[R];c[R]=M,L&&(c.prototype[R]=function(){var Y=this.__chain__;if(x||Y){var J=c(this.__wrapped__),ee=J.__actions__=$i(this.__actions__);return ee.push({func:M,args:arguments,thisArg:c}),J.__chain__=Y,J}return M.apply(c,Da([this.value()],arguments))})}),c}o(dT,"mixin");function uB(){return Xn._===this&&(Xn._=w2),this}o(uB,"noConflict");function gT(){}o(gT,"noop");function pB(c){return c=Ye(c),nt(function(f){return uI(f,c)})}o(pB,"nthArg");var dB=Wv(fn),gB=Wv(Fx),mB=Wv(hv);function NO(c){return Jv(c)?yv(Po(c)):Gk(c)}o(NO,"property");function hB(c){return function(f){return c==null?e:$s(c,f)}}o(hB,"propertyOf");var yB=DI(),vB=DI(!0);function mT(){return[]}o(mT,"stubArray");function hT(){return!1}o(hT,"stubFalse");function TB(){return{}}o(TB,"stubObject");function bB(){return""}o(bB,"stubString");function EB(){return!0}o(EB,"stubTrue");function AB(c,f){if(c=Ye(c),c<1||c>Re)return[];var d=Mt,v=pi(c,Mt);f=Ve(f),c-=Mt;for(var E=bv(v,f);++d<c;)f(d);return E}o(AB,"times");function SB(c){return Ke(c)?fn(c,Po):cr(c)?[c]:$i(qI(Ot(c)))}o(SB,"toPath");function PB(c){var f=++_2;return Ot(c)+f}o(PB,"uniqueId");var CB=Gd(function(c,f){return c+f},0),xB=Kv("ceil"),IB=Gd(function(c,f){return c/f},1),OB=Kv("floor");function NB(c){return c&&c.length?Md(c,Gi,Rv):e}o(NB,"max");function LB(c,f){return c&&c.length?Md(c,Ve(f,2),Rv):e}o(LB,"maxBy");function RB(c){return Vx(c,Gi)}o(RB,"mean");function FB(c,f){return Vx(c,Ve(f,2))}o(FB,"meanBy");function DB(c){return c&&c.length?Md(c,Gi,Vv):e}o(DB,"min");function _B(c,f){return c&&c.length?Md(c,Ve(f,2),Vv):e}o(_B,"minBy");var VB=Gd(function(c,f){return c*f},1),wB=Kv("round"),MB=Gd(function(c,f){return c-f},0);function kB(c){return c&&c.length?Tv(c,Gi):0}o(kB,"sum");function jB(c,f){return c&&c.length?Tv(c,Ve(f,2)):0}return o(jB,"sumBy"),P.after=a$,P.ary=aO,P.assign=X$,P.assignIn=bO,P.assignInWith=ig,P.assignWith=Q$,P.at=q$,P.before=sO,P.bind=rT,P.bindAll=tB,P.bindKey=cO,P.castArray=v$,P.chain=iO,P.chunk=Ij,P.compact=Oj,P.concat=Nj,P.cond=nB,P.conforms=iB,P.constant=uT,P.countBy=MU,P.create=z$,P.curry=lO,P.curryRight=fO,P.debounce=uO,P.defaults=Y$,P.defaultsDeep=J$,P.defer=s$,P.delay=c$,P.difference=Lj,P.differenceBy=Rj,P.differenceWith=Fj,P.drop=Dj,P.dropRight=_j,P.dropRightWhile=Vj,P.dropWhile=wj,P.fill=Mj,P.filter=jU,P.flatMap=BU,P.flatMapDeep=HU,P.flatMapDepth=GU,P.flatten=ZI,P.flattenDeep=kj,P.flattenDepth=jj,P.flip=l$,P.flow=oB,P.flowRight=aB,P.fromPairs=Uj,P.functions=o4,P.functionsIn=a4,P.groupBy=WU,P.initial=Bj,P.intersection=Hj,P.intersectionBy=Gj,P.intersectionWith=Wj,P.invert=c4,P.invertBy=l4,P.invokeMap=XU,P.iteratee=pT,P.keyBy=QU,P.keys=Qn,P.keysIn=Hi,P.map=Yd,P.mapKeys=u4,P.mapValues=p4,P.matches=sB,P.matchesProperty=cB,P.memoize=Zd,P.merge=d4,P.mergeWith=EO,P.method=lB,P.methodOf=fB,P.mixin=dT,P.negate=eg,P.nthArg=pB,P.omit=g4,P.omitBy=m4,P.once=f$,P.orderBy=qU,P.over=dB,P.overArgs=u$,P.overEvery=gB,P.overSome=mB,P.partial=oT,P.partialRight=pO,P.partition=zU,P.pick=h4,P.pickBy=AO,P.property=NO,P.propertyOf=hB,P.pull=qj,P.pullAll=tO,P.pullAllBy=zj,P.pullAllWith=Yj,P.pullAt=Jj,P.range=yB,P.rangeRight=vB,P.rearg=p$,P.reject=ZU,P.remove=Zj,P.rest=d$,P.reverse=nT,P.sampleSize=t$,P.set=T4,P.setWith=b4,P.shuffle=n$,P.slice=eU,P.sortBy=o$,P.sortedUniq=sU,P.sortedUniqBy=cU,P.split=H4,P.spread=g$,P.tail=lU,P.take=fU,P.takeRight=uU,P.takeRightWhile=pU,P.takeWhile=dU,P.tap=OU,P.throttle=m$,P.thru=zd,P.toArray=yO,P.toPairs=SO,P.toPairsIn=PO,P.toPath=SB,P.toPlainObject=TO,P.transform=E4,P.unary=h$,P.union=gU,P.unionBy=mU,P.unionWith=hU,P.uniq=yU,P.uniqBy=vU,P.uniqWith=TU,P.unset=A4,P.unzip=iT,P.unzipWith=nO,P.update=S4,P.updateWith=P4,P.values=nl,P.valuesIn=C4,P.without=bU,P.words=IO,P.wrap=y$,P.xor=EU,P.xorBy=AU,P.xorWith=SU,P.zip=PU,P.zipObject=CU,P.zipObjectDeep=xU,P.zipWith=IU,P.entries=SO,P.entriesIn=PO,P.extend=bO,P.extendWith=ig,dT(P,P),P.add=CB,P.attempt=OO,P.camelCase=N4,P.capitalize=CO,P.ceil=xB,P.clamp=x4,P.clone=T$,P.cloneDeep=E$,P.cloneDeepWith=A$,P.cloneWith=b$,P.conformsTo=S$,P.deburr=xO,P.defaultTo=rB,P.divide=IB,P.endsWith=L4,P.eq=eo,P.escape=R4,P.escapeRegExp=F4,P.every=kU,P.find=UU,P.findIndex=YI,P.findKey=Z$,P.findLast=$U,P.findLastIndex=JI,P.findLastKey=e4,P.floor=OB,P.forEach=rO,P.forEachRight=oO,P.forIn=t4,P.forInRight=n4,P.forOwn=i4,P.forOwnRight=r4,P.get=cT,P.gt=P$,P.gte=C$,P.has=s4,P.hasIn=lT,P.head=eO,P.identity=Gi,P.includes=KU,P.indexOf=$j,P.inRange=I4,P.invoke=f4,P.isArguments=Gs,P.isArray=Ke,P.isArrayBuffer=x$,P.isArrayLike=Bi,P.isArrayLikeObject=In,P.isBoolean=I$,P.isBuffer=$a,P.isDate=O$,P.isElement=N$,P.isEmpty=L$,P.isEqual=R$,P.isEqualWith=F$,P.isError=aT,P.isFinite=D$,P.isFunction=ta,P.isInteger=dO,P.isLength=tg,P.isMap=gO,P.isMatch=_$,P.isMatchWith=V$,P.isNaN=w$,P.isNative=M$,P.isNil=j$,P.isNull=k$,P.isNumber=mO,P.isObject=mn,P.isObjectLike=vn,P.isPlainObject=Gf,P.isRegExp=sT,P.isSafeInteger=U$,P.isSet=hO,P.isString=ng,P.isSymbol=cr,P.isTypedArray=tl,P.isUndefined=$$,P.isWeakMap=B$,P.isWeakSet=H$,P.join=Kj,P.kebabCase=D4,P.last=Fr,P.lastIndexOf=Xj,P.lowerCase=_4,P.lowerFirst=V4,P.lt=G$,P.lte=W$,P.max=NB,P.maxBy=LB,P.mean=RB,P.meanBy=FB,P.min=DB,P.minBy=_B,P.stubArray=mT,P.stubFalse=hT,P.stubObject=TB,P.stubString=bB,P.stubTrue=EB,P.multiply=VB,P.nth=Qj,P.noConflict=uB,P.noop=gT,P.now=Jd,P.pad=w4,P.padEnd=M4,P.padStart=k4,P.parseInt=j4,P.random=O4,P.reduce=YU,P.reduceRight=JU,P.repeat=U4,P.replace=$4,P.result=y4,P.round=wB,P.runInContext=w,P.sample=e$,P.size=i$,P.snakeCase=B4,P.some=r$,P.sortedIndex=tU,P.sortedIndexBy=nU,P.sortedIndexOf=iU,P.sortedLastIndex=rU,P.sortedLastIndexBy=oU,P.sortedLastIndexOf=aU,P.startCase=G4,P.startsWith=W4,P.subtract=MB,P.sum=kB,P.sumBy=jB,P.template=K4,P.times=AB,P.toFinite=na,P.toInteger=Ye,P.toLength=vO,P.toLower=X4,P.toNumber=Dr,P.toSafeInteger=K$,P.toString=Ot,P.toUpper=Q4,P.trim=q4,P.trimEnd=z4,P.trimStart=Y4,P.truncate=J4,P.unescape=Z4,P.uniqueId=PB,P.upperCase=eB,P.upperFirst=fT,P.each=rO,P.eachRight=oO,P.first=eO,dT(P,function(){var c={};return Ao(P,function(f,d){Ft.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Ir(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Ir(["drop","take"],function(c,f){ut.prototype[c]=function(d){d=d===e?1:$n(Ye(d),0);var v=this.__filtered__&&!f?new ut(this):this.clone();return v.__filtered__?v.__takeCount__=pi(d,v.__takeCount__):v.__views__.push({size:pi(d,Mt),type:c+(v.__dir__<0?"Right":"")}),v},ut.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Ir(["filter","map","takeWhile"],function(c,f){var d=f+1,v=d==an||d==en;ut.prototype[c]=function(E){var x=this.clone();return x.__iteratees__.push({iteratee:Ve(E,3),type:d}),x.__filtered__=x.__filtered__||v,x}}),Ir(["head","last"],function(c,f){var d="take"+(f?"Right":"");ut.prototype[c]=function(){return this[d](1).value()[0]}}),Ir(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");ut.prototype[c]=function(){return this.__filtered__?new ut(this):this[d](1)}}),ut.prototype.compact=function(){return this.filter(Gi)},ut.prototype.find=function(c){return this.filter(c).head()},ut.prototype.findLast=function(c){return this.reverse().find(c)},ut.prototype.invokeMap=nt(function(c,f){return typeof c=="function"?new ut(this):this.map(function(d){return kf(d,c,f)})}),ut.prototype.reject=function(c){return this.filter(eg(Ve(c)))},ut.prototype.slice=function(c,f){c=Ye(c);var d=this;return d.__filtered__&&(c>0||f<0)?new ut(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Ye(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},ut.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},ut.prototype.toArray=function(){return this.take(Mt)},Ao(ut.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),v=/^(?:head|last)$/.test(f),E=P[v?"take"+(f=="last"?"Right":""):f],x=v||/^find/.test(f);E&&(P.prototype[f]=function(){var L=this.__wrapped__,R=v?[1]:arguments,M=L instanceof ut,Y=R[0],J=M||Ke(L),ee=o(function(st){var dt=E.apply(P,Da([st],R));return v&&ge?dt[0]:dt},"interceptor");J&&d&&typeof Y=="function"&&Y.length!=1&&(M=J=!1);var ge=this.__chain__,Oe=!!this.__actions__.length,Me=x&&!ge,Ze=M&&!Oe;if(!x&&J){L=Ze?L:new ut(this);var ke=c.apply(L,R);return ke.__actions__.push({func:zd,args:[ee],thisArg:e}),new Nr(ke,ge)}return Me&&Ze?c.apply(this,R):(ke=this.thru(ee),Me?v?ke.value()[0]:ke.value():ke)})}),Ir(["pop","push","shift","sort","splice","unshift"],function(c){var f=Ad[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",v=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var E=arguments;if(v&&!this.__chain__){var x=this.value();return f.apply(Ke(x)?x:[],E)}return this[d](function(L){return f.apply(Ke(L)?L:[],E)})}}),Ao(ut.prototype,function(c,f){var d=P[f];if(d){var v=d.name+"";Ft.call(zc,v)||(zc[v]=[]),zc[v].push({name:f,func:d})}}),zc[Hd(e,O).name]=[{name:"wrapper",func:e}],ut.prototype.clone=J2,ut.prototype.reverse=Z2,ut.prototype.value=ek,P.prototype.at=NU,P.prototype.chain=LU,P.prototype.commit=RU,P.prototype.next=FU,P.prototype.plant=_U,P.prototype.reverse=VU,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=wU,P.prototype.first=P.prototype.head,Rf&&(P.prototype[Rf]=DU),P},"runInContext"),Va=R2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Xn._=Va,define(function(){return Va})):ws?((ws.exports=Va)._=Va,pv._=Va):Xn._=Va}).call(tf)});var pV=qe((kce,uV)=>{var{findIndex:o6}=Tp();function a6(e,t){let i=o6(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o(a6,"findNextTextualToken");uV.exports={findNextTextualToken:a6}});var mV=qe((Uce,gV)=>{var dV=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function s6({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(dV);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(s6,"isXMLNamespaceKey");function c6(e){if(typeof e!="string")return;let t=e.match(dV);if(t!==null)return t.groups&&t.groups.prefix||""}o(c6,"getXMLNamespaceKeyPrefix");gV.exports={isXMLNamespaceKey:s6,getXMLNamespaceKeyPrefix:c6}});var yV=qe((Bce,hV)=>{var{findNextTextualToken:l6}=pV(),{isXMLNamespaceKey:f6,getXMLNamespaceKeyPrefix:u6}=mV();hV.exports={findNextTextualToken:l6,isXMLNamespaceKey:f6,getXMLNamespaceKeyPrefix:u6}});var vS=qe((Hce,TV)=>{var{reduce:p6,has:vV,isArray:d6}=Tp();function g6(e){return p6(e,(n,i,r)=>(r==="parent"||(vV(i,"type")?n.push(i):d6(i)&&i.length>0&&vV(i[0],"type")&&(n=n.concat(i))),n),[])}o(g6,"getAstChildrenReflective");TV.exports={getAstChildrenReflective:g6}});var TS=qe((Wce,bV)=>{bV.exports={DEFAULT_NS:"::DEFAULT"}});var OV=qe((Kce,IV)=>{var{BaseXmlCstVisitor:m6}=yS(),{last:h6,forEach:PV,reduce:y6,map:bp,pick:ES,sortBy:v6,isEmpty:T6,isArray:CV,assign:b6}=Tp(),{findNextTextualToken:E6,isXMLNamespaceKey:A6,getXMLNamespaceKeyPrefix:S6}=yV(),{getAstChildrenReflective:P6}=vS(),{DEFAULT_NS:C6}=TS();function x6(e,t){EV.setState({tokenVector:t});let n=EV.visit(e);return n.rootElement!==_c&&xV(n.rootElement),n}o(x6,"buildAst");var AS=class AS extends m6{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:_c,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&T6(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),by(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=bp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),by(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=bp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=bp(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:_c,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=bp(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return N6(i,t),L6(i,t),R6(i,t,this.tokenVector),by(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:_c,value:_c,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=Ey(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=I6(a.image),r.syntax.value=Ey(a)}return by(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:_c},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=v6(r,["startOffset"]),s=bp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(AS,"CstToAstVisitor");var bS=AS,EV=new bS;function by(e){let t=P6(e);PV(t,n=>n.parent=e)}o(by,"setChildrenParent");function xV(e,t=[]){let n=y6(e.attributes,(r,a)=>{if(a.key!==_c&&A6({key:a.key,includeEmptyPrefix:!1})===!0){let s=S6(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[C6]=l}}return r},{}),i=Object.create(null);e.namespaces=b6(i,t,n),PV(e.subElements,r=>xV(r,e.namespaces))}o(xV,"updateNamespaces");function Ey(e){return ES(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Ey,"toXMLToken");function AV(e){return ES(e,["startOffset","startLine","startColumn"])}o(AV,"startOfXMLToken");function SV(e){return ES(e,["endOffset","endLine","endColumn"])}o(SV,"endOfXMLToken");function xa(e){return CV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(xa,"exists");function I6(e){return e.substring(1,e.length-1)}o(I6,"stripQuotes");function O6(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(O6,"nsToParts");var _c=null;function N6(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Ey(n);let i=O6(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=Ey(t.END_NAME[0]))}o(N6,"handleElementOpenCloseNameRanges");function L6(e,t){if(xa(t.OPEN)){let n;xa(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):xa(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...AV(t.OPEN[0]),...SV(n)}),xa(t.SLASH_OPEN)&&xa(t.END)&&(e.syntax.closeBody={...AV(t.SLASH_OPEN[0]),...SV(t.END[0])})}}o(L6,"handleElementOpenCloseBodyRanges");function R6(e,t,n){if(xa(t.Name)){let i=t.Name[0].endOffset+2;if(xa(t.START_CLOSE)||xa(t.SLASH_CLOSE)){let r=(xa(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=CV(t.attribute)?h6(t.attribute).location.endOffset:t.Name[0].endOffset,s=E6(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(R6,"handleElementAttributeRanges");IV.exports={buildAst:x6}});var RV=qe((Qce,LV)=>{var{forEach:F6,isFunction:nf}=Tp(),{getAstChildrenReflective:D6}=vS();function NV(e,t){switch(e.type){case"XMLDocument":{nf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{nf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{nf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{nf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{nf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{nf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=D6(e);F6(n,i=>{NV(i,t)})}o(NV,"accept");LV.exports={accept:NV}});var DV=qe((zce,FV)=>{var{buildAst:_6}=OV(),{accept:V6}=RV(),{DEFAULT_NS:w6}=TS();FV.exports={buildAst:_6,accept:V6,DEFAULT_NS:w6}});var Di={};Ws(Di,{deleteConfigEntityByPath:()=>cY,exportConfig:()=>aY,exportConfigEntityByPath:()=>sY,generateCustomExtension:()=>ZC,generateSchema:()=>oY,getApiVersion:()=>pY,getChanges:()=>gM,getGenericSchema:()=>ev,getPathToGenericSchema:()=>Iw,getProject:()=>yY,importConfig:()=>lY,importProject:()=>fY,importProjectSchema:()=>uY,isDirectory:()=>gY,log:()=>se,prompts:()=>rY,readDirectory:()=>rx});module.exports=og(Di);var pe=ie(le());var K=ie(le());var Be=o(e=>typeof e=="string","isString"),Wf=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),lR=o(e=>e==null?"":""+e,"makeString"),bG=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),EG=/###/g,fR=o(e=>e&&e.indexOf("###")>-1?e.replace(EG,"."):e,"cleanKey"),uR=o(e=>!e||Be(e),"canNotTraverseDeeper"),Kf=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(uR(e))return{};let a=fR(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return uR(e)?{}:{obj:e,k:fR(i[r])}},"getLastOfPath"),pR=o((e,t,n)=>{let{obj:i,k:r}=Kf(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=Kf(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=Kf(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),AG=o((e,t,n,i)=>{let{obj:r,k:a}=Kf(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),sg=o((e,t)=>{let{obj:n,k:i}=Kf(e,t);if(n)return n[i]},"getPath"),SG=o((e,t,n)=>{let i=sg(e,n);return i!==void 0?i:sg(t,n)},"getPathWithDefaults"),vR=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):vR(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),rl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),PG={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},CG=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>PG[t]):e,"escape"),FT=class FT{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(FT,"RegExpCache");var CT=FT,xG=[" ",",","?","!",";"],IG=new CT(20),OG=o((e,t,n)=>{t=t||"",n=n||"";let i=xG.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=IG.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),xT=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),cg=o(e=>e&&e.replace("_","-"),"getCleanedCode"),NG={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Xf=class Xf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||NG,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Xf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Xf(this.logger,t)}};o(Xf,"Logger");var IT=Xf,Co=new IT,DT=class DT{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l.apply(l,[t,...i])})}};o(DT,"EventEmitter");var al=DT,_T=class _T extends al{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let u=sg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||!Be(i)?u:xT(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),pR(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=sg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?vR(u,i,a):u={...u,...i},pR(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(_T,"ResourceStore");var lg=_T,TR={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},dR={},dg=class dg extends al{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),bG(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Co.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!OG(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let ae=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${ae}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${ae}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),y=m&&m.res,A=m&&m.usedKey||s,b=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(y),D=["[object Number]","[object Function]","[object RegExp]"],j=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,G=!this.i18nFormat||this.i18nFormat.handleAsObject,B=!Be(y)&&typeof y!="boolean"&&typeof y!="number";if(G&&y&&B&&D.indexOf(O)<0&&!(Be(j)&&Array.isArray(y))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ae=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,y,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=ae,m.usedParams=this.getUsedParamsDetails(n),m):ae}if(a){let ae=Array.isArray(y),Z=ae?[]:{},re=ae?b:A;for(let Se in y)if(Object.prototype.hasOwnProperty.call(y,Se)){let _=`${re}${a}${Se}`;Z[Se]=this.translate(_,{...n,joinArrays:!1,ns:l}),Z[Se]===_&&(Z[Se]=y[Se])}y=Z}}else if(G&&Be(j)&&Array.isArray(y))y=y.join(j),y&&(y=this.extendTranslation(y,t,n,i));else{let ae=!1,Z=!1,re=n.count!==void 0&&!Be(n.count),Se=dg.hasDefaultValue(n),_=re?this.pluralResolver.getSuffix(p,n.count,n):"",ft=n.ordinal&&re?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",yt=re&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ue=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${_}`]||n[`defaultValue${ft}`]||n.defaultValue;!this.isValidLookup(y)&&Se&&(ae=!0,y=Ue),this.isValidLookup(y)||(Z=!0,y=s);let Wn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:y,en=Se&&Ue!==y&&this.options.updateMissing;if(Z||ae||en){if(this.logger.log(en?"updateKey":"missingKey",p,u,s,en?Ue:y),a){let It=this.resolve(s,{...n,keySeparator:!1});It&&It.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Lt=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let It=0;It<Re.length;It++)Lt.push(Re[It]);else this.options.saveMissingTo==="all"?Lt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Lt.push(n.lng||this.language);let Ci=o((It,Mt,sn)=>{let ji=Se&&sn!==y?sn:Wn;this.options.missingKeyHandler?this.options.missingKeyHandler(It,u,Mt,ji,en,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(It,u,Mt,ji,en,n),this.emit("missingKey",It,u,Mt,y)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Lt.forEach(It=>{let Mt=this.pluralResolver.getSuffixes(It,n);yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Mt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Mt.push(`${this.options.pluralSeparator}zero`),Mt.forEach(sn=>{Ci([It],s+sn,n[`defaultValue${sn}`]||Ue)})}):Ci(Lt,s,Ue))}y=this.extendTranslation(y,t,n,m,i),Z&&y===s&&this.options.appendNamespaceToMissingKey&&(y=`${u}:${s}`),(Z||ae)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,ae?y:void 0):y=this.options.parseMissingKeyHandler(y))}return r?(m.res=y,m.usedParams=this.getUsedParamsDetails(n),m):y}extendTranslation(t,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=Be(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(p){let y=t.match(this.interpolator.nestingRegexp);g=y&&y.length}let m=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||r.usedLng,i),p){let y=t.match(this.interpolator.nestingRegexp),A=y&&y.length;g<A&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var y=arguments.length,A=new Array(y),b=0;b<y;b++)A[b]=arguments[b];return a&&a[0]===A[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${A[0]} in key: ${n[0]}`),null):s.translate(...A,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,u=Be(l)?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=TR.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return Be(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(u,n),g=p.key;r=g;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let y=n.count!==void 0&&!Be(n.count),A=y&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(D=>{this.isValidLookup(i)||(l=D,!dR[`${O[0]}-${D}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(dR[`${O[0]}-${D}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(j=>{if(this.isValidLookup(i))return;s=j;let G=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(G,g,j,D,n);else{let ae;y&&(ae=this.pluralResolver.getSuffix(j,n.count,n));let Z=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(y&&(G.push(g+ae),n.ordinal&&ae.indexOf(re)===0&&G.push(g+ae.replace(re,this.options.pluralSeparator)),A&&G.push(g+Z)),b){let Se=`${g}${this.options.contextSeparator}${n.context}`;G.push(Se),y&&(G.push(Se+ae),n.ordinal&&ae.indexOf(re)===0&&G.push(Se+ae.replace(re,this.options.pluralSeparator)),A&&G.push(Se+Z))}}let B;for(;B=G.pop();)this.isValidLookup(i)||(a=B,i=this.getResource(j,D,B,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(dg,"Translator");var fg=dg,ST=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),VT=class VT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Co.create("languageUtils")}getScriptPartFromCode(t){if(t=cg(t),!t||t.indexOf("-")<0)return null;let n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=cg(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=ST(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=ST(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=ST(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(VT,"LanguageUtil");var ug=VT,LG=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],RG={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},FG=["v1","v2","v3"],DG=["v4"],gR={zero:0,one:1,two:2,few:3,many:4,other:5},_G=o(()=>{let e={};return LG.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:RG[t.fc]}})}),e},"createRules"),wT=class wT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Co.create("pluralResolver"),(!this.options.compatibilityJSON||DG.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=_G(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let i=cg(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!t.match(/-|_/))return;let u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[a]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>gR[r]-gR[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let a=o(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!FG.includes(this.options.compatibilityJSON)}};o(wT,"PluralResolver");var OT=wT,mR=o(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=SG(e,t,n);return!a&&r&&Be(n)&&(a=xT(e,n,i),a===void 0&&(a=xT(t,n,i))),a},"deepFindWithDefaults"),PT=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),MT=class MT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Co.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:y,nestingPrefixEscaped:A,nestingSuffix:b,nestingSuffixEscaped:O,nestingOptionsSeparator:D,maxReplaces:j,alwaysFormat:G}=t.interpolation;this.escape=n!==void 0?n:CG,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?rl(a):s||"{{",this.suffix=l?rl(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=y?rl(y):A||rl("$t("),this.nestingSuffix=b?rl(b):O||rl(")"),this.nestingOptionsSeparator=D||",",this.maxReplaces=j||1e3,this.alwaysFormat=G!==void 0?G:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(A=>{if(A.indexOf(this.formatSeparator)<0){let j=mR(n,u,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,i,{...r,...n,interpolationkey:A}):j}let b=A.split(this.formatSeparator),O=b.shift().trim(),D=b.join(this.formatSeparator).trim();return this.format(mR(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),D,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(A=>PT(A),"safeValue")},{regex:this.regexp,safeValue:o(A=>this.escapeValue?PT(this.escape(A)):PT(A),"safeValue")}].forEach(A=>{for(l=0;a=A.regex.exec(t);){let b=a[1].trim();if(s=p(b),s===void 0)if(typeof g=="function"){let D=g(t,a,r);s=Be(D)?D:""}else if(r&&Object.prototype.hasOwnProperty.call(r,b))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=lR(s));let O=A.safeValue(s);if(t=t.replace(a[0],O),m?(A.regex.lastIndex+=s.length,A.regex.lastIndex-=a[0].length):A.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),y=`{${m[1]}`;u=m[0],y=this.interpolate(y,s);let A=y.match(/'/g),b=y.match(/"/g);(A&&A.length%2===0&&!b||b.length%2!==0)&&(y=y.replace(/'/g,'"'));try{s=JSON.parse(y),p&&(s={...p,...s})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,O),`${u}${g}${y}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let g=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=g.shift(),u=g,p=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=lR(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),p&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(MT,"Interpolator");var NT=MT,VG=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...u]=s.split(":"),p=u.join(":").trim().replace(/^'+|'+$/g,""),g=l.trim();n[g]||(n[g]=p),p==="false"&&(n[g]=!1),p==="true"&&(n[g]=!0),isNaN(p)||(n[g]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),ol=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(cg(i),r),t[s]=l),l(n)}},"createCachedFormatter"),kT=class kT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Co.create("formatter"),this.options=t,this.formats={number:ol((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:ol((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:ol((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:ol((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:ol((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ol(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=VG(u);if(this.formats[p]){let m=l;try{let y=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},A=y.locale||y.lng||r.locale||r.lng||i;m=this.formats[p](l,A,{...g,...r,...y})}catch(y){this.logger.warn(y)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(kT,"Formatter");var LT=kT,wG=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),jT=class jT extends al{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Co.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let y=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[y]=2:this.state[y]<0||(this.state[y]===1?s[y]===void 0&&(s[y]=!0):(this.state[y]=1,g=!1,s[y]===void 0&&(s[y]=!0),a[y]===void 0&&(a[y]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{AG(u.loaded,[a],s),wG(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let u={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,n,i,r,u):g=p(t,n,i,r),g&&typeof g.then=="function"?g.then(m=>l(null,m)).catch(l):l(null,g)}catch(g){l(g)}else p(t,n,i,r,l,u)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(jT,"Connector");var RT=jT,hR=o(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),yR=o(e=>(Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),ag=o(()=>{},"noop"),MG=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Qf=class Qf extends al{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=yR(t),this.services={},this.logger=Co,this.modules={external:[]},MG(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Be(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=hR();this.options={...r,...this.options,...yR(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=o(g=>g?typeof g=="function"?new g:g:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Co.init(a(this.modules.logger),this.options):Co.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=LT);let m=new ug(this.options);this.store=new lg(this.options.resources,this.options);let y=this.services;y.logger=Co,y.resourceStore=this.store,y.languageUtils=m,y.pluralResolver=new OT(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(y.formatter=a(g),y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new NT(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new RT(a(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",function(A){for(var b=arguments.length,O=new Array(b>1?b-1:0),D=1;D<b;D++)O[D-1]=arguments[D];t.emit(A,...O)}),this.modules.languageDetector&&(y.languageDetector=a(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=a(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new fg(this.services,this.options),this.translator.on("*",function(A){for(var b=arguments.length,O=new Array(b>1?b-1:0),D=1;D<b;D++)O[D-1]=arguments[D];t.emit(A,...O)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=ag),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});let u=Wf(),p=o(()=>{let g=o((m,y)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(y),i(m,y)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ag,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=Wf();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=ag),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&TR.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=Wf();this.emit("languageChanging",t);let a=o(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=o((u,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(u,function(){return i.t(...arguments)})},"done"),l=o(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=Be(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{s(g,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let u;if(typeof l!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),m=2;m<p;m++)g[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([s,l].concat(g))}else u={...l};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||a.keyPrefix);let y=r.options.keySeparator||".",A;return u.keyPrefix&&Array.isArray(s)?A=s.map(b=>`${u.keyPrefix}${y}${b}`):A=u.keyPrefix?`${u.keyPrefix}${y}${s}`:s,r.t(A,u)},"fixedT");return Be(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=Wf();return this.options.ns?(Be(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Wf();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new ug(hR());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Qf(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ag,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Qf(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new lg(this.store.data,r),a.services.resourceStore=a.store),a.translator=new fg(a.services,r),a.translator.on("*",function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];a.emit(l,...p)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(Qf,"I18n");var pg=Qf,q=pg.createInstance();q.createInstance=pg.createInstance;var OY=q.createInstance,NY=q.dir,LY=q.init,RY=q.loadResources,FY=q.reloadResources,DY=q.use,_Y=q.changeLanguage,VY=q.getFixedT,wY=q.t,MY=q.exists,kY=q.setDefaultNamespace,jY=q.hasLoadedNamespace,UY=q.loadNamespaces,$Y=q.loadLanguages;var _F=ie(UT()),VF=ie(KR()),_g=ie(FF()),Je=require("@sap-ux/vocabularies-types/vocabularies/UI"),Zf=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Fg=ie(le());var se=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${Fg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Fg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Fg.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var U="#/definitions/",hW=[K.v4.FE_TEMPLATE_V4_LIST_REPORT,K.v4.FE_TEMPLATE_V4_ALP,K.v4.FE_TEMPLATE_V4_OBJECT_PAGE,K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],yW=["sap.fe.core","sap.fe.templates"],pl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),pr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Oo(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,_g.parse)(r.fileContent,r.dataSourceUri))}catch(a){return se(t,{severity:K.LogSeverity.Error,message:q.t("ANNOERR"),location:{path:q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,_g.merge)(...n);i=(0,VF.convert)(r)}return i}o(Oo,"parseAndMergeAndConvert");var ul=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function ab(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(ab,"evaluateCommonLabel");function Vg(e,t){let n=e.value;return e.$target&&(n=ab(e.$target.annotations,t,n)),n}o(Vg,"getLabelForPropertyPath");function Dg(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=ab(i.annotations,t,n)),n}o(Dg,"getLabelForDataField");function vW(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return ab(a.annotations,t,s)}}}else return}o(vW,"getLabel");function DF(e,t,n){let i=Dg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(DF,"getTitleForDataField");function yi(e,t){var s,l,u,p;let n="",i,r,a="";try{let g=vW(e.Label,t);switch(e.$Type){case Je.UIAnnotationTypes.DataField:n=DF(e,t,g);break;case Je.UIAnnotationTypes.DataFieldWithUrl:i=Dg(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Je.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Dg(e,t),n=g||i||((l=(s=r.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((u=r.Target)==null?void 0:u.value.split("UI.v1.")[1]);break;case Je.UIAnnotationTypes.DataFieldForAction:case Je.UIAnnotationTypes.DataFieldWithAction:case Je.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,a=typeof e.Action=="string"?r.Action:(p=r.Action)==null?void 0:p.path,g?n=typeof g=="string"?g:a:n=a;break;case Je.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Dg(e,t),n=i||e.Value.path;break;case Je.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=DF(r,t,g);break;default:break}return n}catch{return n}}o(yi,"getDataFieldDescription");function pt(e){return e.replace("#","::").replace(/\//g,":2f")}o(pt,"prepareRef");function ca(e){if(e){let t=`${K.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(ca,"getPageTypeV2");function sb(e){if(e.name&&e.name!==K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${K.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return K.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return K.PageTypeV4.CustomPage}}o(sb,"getPageTypeV4");function TW(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(TW,"getTargetAnnotationName");function ii(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(ii,"findAlias");function bW(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(bW,"getAnnotationFromMetaPath");function EW(e,t,n){var s,l;let i=e[e.length-1],r=bW(i),a=ii(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(EW,"determineTargetAnnotation");function AW(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Je.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${K.UIVOCABULARY}`);return e}o(AW,"adjustKey");function SW(e,t,n,i,r=K.FioriElementsVersion.v2,a=!1){var m,y;let s=!1,l,u=i.split("/"),p=u.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=AW(t,u,a);let g=EW(u,n,e);if(g){let A=r===K.FioriElementsVersion.v2?"::":"#";t=TW(g,a).replace("#",A),l=(y=g.fullyQualifiedName)==null?void 0:y.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let A=r===K.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(A)}${A}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(SW,"getKeyAndEntityTypeOfReferenceFacet");function wF(e,t,n,i,r=K.FioriElementsVersion.v2,a=!1){var g,m,y;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((g=e.fullyQualifiedName)==null?void 0:g.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(y=e.fullyQualifiedName)==null?void 0:y.split("@")[0],p=t;if(e.$Type!==Je.UIAnnotationTypes.CollectionFacet&&"Target"in e){let A=ul(e.Target);if(!A){se(i,{severity:K.LogSeverity.Error,message:q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:O,stopProcessing:D,namespace:j}=SW(n,l,p,A,r,a);if(D)return;l=b,p=O,u=j}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}o(wF,"getSectionFacet");var cb=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),MF=o((e,t,n,i,r,a=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let u=0;u<l.length;u++){let p=l[u];if(p==="[]")continue;let g=i&&i===p?n:p.replace("??","/");if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=cb(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),No=o((e,t,n,i,r=!1)=>MF(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),kF=o((e,t,n,i,r)=>{MF(e,t,i,r,n)},"setManifestSectionByPathV4");function lb(e){let t,n,i;switch(e.$Type){case Je.UIAnnotationTypes.DataField:t=ul(e.Value);break;case Je.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ul(e.Value);break;case Je.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${K.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Je.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${pt(e.Action)}`);break;case Je.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ul(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Je.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${pt(e.Action)}`);break;case Je.UIAnnotationTypes.DataFieldWithNavigationPath:i=ul(e.Value),n=ul(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(lb,"getSchemaKeyOfLineItemRecord");function PW(e,t,n){return e.includes(Je.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Je.UIAnnotationTerms.Chart:e.includes(Je.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Je.UIAnnotationTerms.Identification:n&&e.includes(Je.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Je.UIAnnotationTerms.LineItem:e.includes(Je.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Je.UIAnnotationTerms.FieldGroup:e.includes(Je.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Je.UIAnnotationTerms.DataPoint:e.includes(Je.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Je.UIAnnotationTerms.PresentationVariant:void 0}o(PW,"getUIAnnotationTerm");function CW(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Zf.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Zf.CommunicationAnnotationTerms.Address:void 0}o(CW,"getCommunicationAnnotationTerm");function xW(e,t,n){return PW(e,t,n)||CW(e,t)}o(xW,"getAnnotationTerm");function IW(e,t,n,i,r){var p,g,m,y,A,b,O,D,j;let a=ii(K.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(xW(s,a,i)){case Je.UIAnnotationTerms.Chart:{n[s]={base:K.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.Identification:{n[s]={base:K.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.LineItem:{if(!s.includes(Je.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let G=s.split("::");G[G.length-1]=`@${Je.UIAnnotationTerms.LineItem}`,s=G.join("::")}n[s]={base:K.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.FieldGroup:{n[s]={base:K.FacetBase.Form},n[s].target=(y=t==null?void 0:t.Target)==null?void 0:y.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.DataPoint:{n[s]={base:K.FacetBase.DataPoint},n[s].Label=(A=t==null?void 0:t.Target)==null?void 0:A.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.PresentationVariant:{n[s]={base:K.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Zf.CommunicationAnnotationTerms.Contact:{n[s]={base:K.FacetBase.Contact},n[s].target=(D=t==null?void 0:t.Target)==null?void 0:D.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Zf.CommunicationAnnotationTerms.Address:{n[s]={base:K.FacetBase.Address},n[s].target=(j=t==null?void 0:t.Target)==null?void 0:j.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:K.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",K.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(IW,"evaluateTargetAnnotation");function fb(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(fb,"getAnnotationPathUsingFullyQualifiedName");function ub(e,t,n,i,r,a=K.FioriElementsVersion.v2,s){var u;let l=wF(e,i,t,s,a,!1);if(l)switch(e.$Type){case Je.UIAnnotationTypes.ReferenceFacet:{IW(l,e,r,i,t);break}case Je.UIAnnotationTypes.CollectionFacet:{let p=fb(i,e.fullyQualifiedName),g=r[l.key]={base:K.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===K.FioriElementsVersion.v4&&se(s,{severity:K.LogSeverity.Error,message:q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{ub(m,t,n,i,g.facets,a,s)});break}}}o(ub,"addFacetToConfig");function wg(e,t,n=K.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ii(K.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{ub(m,t,g,e,r,n,i)})}return r}o(wg,"getObjectPageHeaderFacets");function Mg(e,t,n=K.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ii(K.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{ub(g,t,p,e,r,n,i)})}return r}o(Mg,"getObjectPageFacets");function pb(e){var t,n,i,r;if(e[K.ManifestSection.generic]&&Object.keys(e[K.ManifestSection.generic]).length>0||e[K.ManifestSection.ovp]&&Object.keys(e[K.ManifestSection.ovp]).length>0)return K.FioriElementsVersion.v2;{let a=(n=(t=e[K.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[K.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>hW.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>yW.indexOf(l)>-1)?K.FioriElementsVersion.v4:void 0}}o(pb,"getFEVersionFromManifest");function OW(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[K.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[K.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[K.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[K.ManifestSection.ui5].models[t].dataSource:void 0}o(OW,"getMainService");function jF(e){var i,r;let t=OW(e);if(!t)return K.OdataVersion.v2;let n=(i=e[K.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?K.OdataVersion.v4:K.OdataVersion.v2}o(jF,"getODataVersionFromManifest");function NW(e,t){var i,r;let n;if(e[K.ManifestSection.generic]){let a=e[K.ManifestSection.generic].pages;if(!a){se(t,{severity:K.LogSeverity.Error,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(ca((i=l.component)==null?void 0:i.name)===K.PageTypeV2.AnalyticalListPage){n=K.TemplateType.AnalyticalListPageV2;break}else if(ca((r=l.component)==null?void 0:r.name)===K.PageTypeV2.ListReport){n=K.TemplateType.ListReportObjectPageV2;break}}}else n||se(t,{severity:K.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:K.ManifestSection.generic}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return n}o(NW,"determineV2Template");function eu(e){var i,r,a,s;let t,n=sb(e);if(n===K.PageTypeV4.AnalyticalListPage)t=K.TemplateType.AnalyticalListPageV4;else if(n===K.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[K.ALPViewType.Primary]||l[K.ALPViewType.Secondary])?t=K.TemplateType.AnalyticalListPageV4:t=K.TemplateType.ListReportObjectPageV4}else n===K.PageTypeV4.ObjectPage?t=K.TemplateType.ListReportObjectPageV4:[K.PageTypeV4.CustomPage,K.PageTypeV4.FPMCustomPage].includes(n)&&(t=K.TemplateType.FreestylePageV4);return t}o(eu,"determineV4PageTemplateType");function LW(e){let t;for(let n in e){let i=e[n];if(t=eu(i),t)break}return t}o(LW,"determineV4TemplateFromPages");function RW(e,t){let n=e[K.ManifestSection.ui5].routing&&e[K.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return se(t,{severity:K.LogSeverity.Info,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing"]}}),K.TemplateType.ListReportObjectPageV4;let i=LW(n);return i||se(t,{severity:K.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:K.ManifestSection.ui5}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing","targets"]}}),i}o(RW,"determineV4Template");function db(e,t,n){let i;return e[K.ManifestSection.ovp]?i=K.TemplateType.OverviewPageV2:t===K.FioriElementsVersion.v2?i=NW(e,n):t===K.FioriElementsVersion.v4&&(i=RW(e,n)),i}o(db,"getTemplateTypeFromManifest");function la(e,t,n){e!=null&&e.ID?(t.title=K.FACETTITLEPREFIX+e.ID,t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:n.replace(K.UIVOCABULARYALPHADOT,"")}])}o(la,"addSectionTitle");function Ha(e,t,n){e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(Ha,"addSectionDescription");function dl(e,t,n){var i,r;la(e,t,n),Ha(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(dl,"addTargetTitleAndSectionDescription");function UF(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(UF,"addChartFacetID");function Lo(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[K.SchemaTag.isViewNode]=!0,i[K.SchemaTag.annotationPath]=t.annotationPath,dl(t,i,n),i}o(Lo,"createDefaultSection");function $F(e,t,n,i=K.FioriElementsVersion.v2,r=!1){var l,u;let a=ii(K.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let y=wF(m,e,t,n,i,!0);return y&&g.push(y),g},s)),s}}o($F,"getObjectPageFacetSection");var Ga=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(u){let p=a&&a===u?r:u.replace("??","/");if(!(!s[p]&&(a===u&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),Ga(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),ob=o(e=>e===K.SchemaType.FreestylePage?K.PageTypeV2.CustomPage:e===K.SchemaType.FPMCustomPage?K.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Dt=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case K.SchemaType.Application:{i.filename="App",i.path=`./${K.DirName.Schemas}/${i.filename}`;break}case K.SchemaType.ListReport:case K.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:ob(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}case K.PageTypeV4.FPMCustomPage:case K.SchemaType.FPMCustomPage:{i.filename=n?`${K.SchemaType.FPMCustomPage}_${n}`:ob(K.SchemaType.FPMCustomPage),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}default:{i.filename=ob(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function kg(e,t,n,i){if(e===K.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(kg,"generatePageId");function gb(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split(U)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u]!==void 0)&&a.push(s)}return a}o(gb,"findMatchingKeysByAdditionalProperties");function FW(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split(U)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=gb(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(FW,"fillArrayFromAnyOfReference");function DW(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(U)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{FW(r,n,t,i)}),i.length===0))return;return i}o(DW,"fillArrayFromPropertyDefinition");function _W(e,t,n,i,r,a,s,l){var p,g,m,y;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let A=e[e.length-1];if(u.targetDefinition=t.definitions[A],(p=u==null?void 0:u.targetDefinition)!=null&&p.$ref||((g=u==null?void 0:u.targetDefinition)==null?void 0:g.type)==="array")return u=Ro(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(D=>{D!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[D].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let b=A==null?void 0:A.split("<")[0],O=i||{};u.configObject=a.createInstance(s,b,O,(y=u==null?void 0:u.targetDefinition)==null?void 0:y.controlProperty)}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(_W,"determineNextDefinitionFromDefinitionArray");function Ro(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Ro(e,t,n,i.items,r,a,s),l;let u=DW(i,n,e);if(u)return l=_W(u,e,t,n,r,a,s,i),l}o(Ro,"getNextTargetDefinition");var mb=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,_F.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Ki(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Ki,"convertActionKeyToStableId");function hn(e){return e==null?void 0:e.split(U)[1]}o(hn,"getDefinitionKey");function BF(e){return`#/definitions/${e}`}o(BF,"getDefinitionsRef");function jg(e){return e instanceof Error?e.message:String(e)}o(jg,"getErrorMessage");function qs(e,t){return e==null?void 0:e.includes(t)}o(qs,"isFeatureSupported");function Fo(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Fo,"updatePropertyIndices");function Ug(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(Ug,"getJSONPropertyByPath");function HF(e){return e=e.replace(K.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(HF,"removeNamespaces");function gl(e){return e=e.replace(K.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(gl,"replaceNamespaces");var Eo=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=ie(le());var Xi=ie(le());var zt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),$g=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),qn=o((e,t)=>{let n,i=Xi.FACETTITLEPREFIX;return t!==void 0&&t.includes(i)?n=t.split(i)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function VW(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(VW,"escapeId");var GF=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(GF||{}),WF=(n=>(n.Editable="{= ${ui>/editMode} === 'Editable'}",n.NotEditable="{= ${ui>/editMode} !== 'Editable'}",n))(WF||{});function wW(e,t,n){let i;return e=e.map(function(r){if(r===Xi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Xi.PropertyName.sections)return i=t[a+1],t[a+1]=qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(wW,"mapBreadcrumbs");var hb=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=wW(t,s,r)),s[0]===Xi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Xi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Xi.VOCWITHSLASH):t[0]===Xi.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,Xi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Xi.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,g=u.indexOf(":::");return u.startsWith("DataField")&&g>-1?(u=u.replace("/",":2f"),p=`${e}template:::TableColumn:::${u.substring(0,g)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${u.substring(g+3)}`):(u=u.replace("/","_"),p=`${e}${t.join("::")}-${u}`),VW(p)},"buildColumnControlId"),Qi=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function MW(e){let t=Xi.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(MW,"determinePattern");var yb=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split(U)[1]]:a,u=a.description?a.description:l.description,p=MW(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(g=>{s.enum.indexOf(g)===-1&&s.enum.push(g)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete a.description)},"addPatternForBindingChangeOfEnum"),zn=o((e,t,n)=>{yb(e,t,n)},"addPatternForBindingChangeOfEnumLR"),gt=o((e,t,n)=>{let i=Object.values(GF);yb(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ri=o((e,t,n)=>{let i=Object.values(WF);yb(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function zs(){}o(zs,"doNotDelete");var wJ=ie(XF());var QF=Symbol("specificationMetadataKey"),T=o(e=>Reflect.metadata(QF,e),"syncRule");function Yn(e,t){let n;return e&&(n=Reflect.getMetadata(QF,e,t)),n}o(Yn,"getReflectMetadata");var Vr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),qF=Symbol("childId"),jt=o(e=>Reflect.metadata(qF,e),"childId"),Bg=o((e,t)=>Reflect.getMetadata(qF,e,t),"getChildId"),Hg=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),kW=Symbol("descriptionSrcURL"),Le=o(e=>Reflect.metadata(kW,e),"descriptionSrcURL");var jW=Symbol("validityMetadataKey"),C=o(e=>Reflect.metadata(jW,e),"validity");function Gg(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Gg,"getTextForDeprecated");var i0=ie(t0()),r0=ie(le());var o0=i0.default.change,n0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function a0(e,t){let n="";try{for(let i in n0)e[i]===void 0&&(e[i]=n0[i]);n=o0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(a0,"createChangeString");function io(e){try{return o0.parse(e)}catch{return!1}}o(io,"parseChangeString");function s0(e,t,n,i,r){let a=n.layer?n.layer===r0.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(s0,"fillFlexChangeContent");function c0(e,t){return a0(e,t)}o(c0,"exportToFlexChange");var Ys=ie(le());function ml(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,a);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}o(ml,"importProperty");function Wg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(se(i,{severity:Ys.LogSeverity.Warning,message:Gg(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Wg,"checkDeprecatedProperties");function vb(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(U)[1]];return vb(n,t)}else return e.title?e.title.startsWith(Ys.FACETTITLEPREFIX)?e.title.split(Ys.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(vb,"getSectionTitle");function Kg(e){let t=e.split(`${Ys.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Kg,"getTargetFromCustomColumnRef");function Do(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(Do,"removeEmptyStructure");var Ut=require("@sap-ux/vocabularies-types/vocabularies/UI");var fa=require("@sap-ux/vocabularies-types/vocabularies/UI");function Xg(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(Xg,"replaceSpecialChars");var Js=o(function(e){return Xg(HF(e))},"prepareId");function KW(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(KW,"evaluateConcat");function Zs(e){if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if((e==null?void 0:e.$Function)==="odata.concat")return KW(e);if(e&&typeof e=="string")return Xg(e.replace(/ /g,"_"))}o(Zs,"getStableIdPartFromValue");var l0=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),ua=o(function(e){let t="";if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Js(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=l0(e),t;if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Js(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=Zs(e.Value)+"::"),t+=e.Action,Js(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataField)return t="DataField::",t+=Zs(e.Value),Js(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=Zs(e.Value)+"::",t+=l0(e),Js(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=Zs(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Js(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=Zs(e.Value),Js(t)},"getStableIdPartFromDataField");var de=ie(le());var De=ie(le());var qi=require("@sap-ux/vocabularies-types/vocabularies/UI"),d0=require("path"),g0=ie(Xs());var Qg="ResponsiveTableWithMultiSelect<LineItems>",qg="ResponsiveTableWithInlineDelete<LineItems>",XW="TreeTable<LineItems>",QW="AnalyticalTable<LineItems>",qW="GridTable<LineItems>",Tb=[Qg,qg,XW,QW,qW],f0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],u0="template::",zg="template:::ObjectPageAction:::";function zW(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${U}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${U}${n}`},description:"Custom Columns"},e.definitions[t][De.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[De.SchemaTag.artifactType]=De.ArtifactType.Manifest)}o(zW,"addCustomColumnDefinition");function YW(e,t){let n;return e==="TableColumnActionIntentBased"?n=lb(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=pt(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===qi.UIAnnotationTypes.DataFieldForAction?n=pt(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=pt(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(YW,"getActionId");function bb(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=YW(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=yi(n.lineItemRecord,n.entityType);t.properties[l]={$ref:U+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=ec(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[u]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:g}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[u][De.SchemaTag.target]=m)):(e.definitions[u]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.action,value:g}],m&&(e.definitions[u][De.SchemaTag.target]=m),e.definitions[u][De.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(bb,"handleActionRecord");function JW(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===qi.UIAnnotationTypes.DataFieldForAction||t.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===qi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(JW,"getColumnActionType");function ZW(e,t){let n=[];if(!(e.$Type!==qi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),JW(t,e,n),n}o(ZW,"getActionType");function m0(e,t,n){let i=lb(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:U+De.DefinitionName.TableColumn,description:yi(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,im(r.properties[i],e.lineItemRecord),rm(e.lineItemRecord,r.properties,i)}}o(m0,"generateGenericColumn");function e8(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{bb(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&bb(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{bb(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":m0(i,t,r)}}o(e8,"handleAnyAction");function tu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(tu,"retrieveNameWithoutVocabularyFromVisualization");function hl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=nm(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},y=ZW(g,r);y?y.forEach(A=>{e8(A,t,s,m,p,l,r)}):m0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${U}${a}`})}o(hl,"addLineItemsType");function t8(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,u)=>(l.includes(u.name)||l.push(u.name),l),[])}}o(t8,"addListReportLeadingProperties");function n8(e,t,n,i){var s,l,u,p,g,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(a){let y=[];for(let A in a){let b=(m=a[A])==null?void 0:m.key;b!==void 0&&!y.includes(b)&&y.push(b)}pa(y,r)}}o(n8,"addTabkeyEnum");function Yg(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,g0.xml2json)(u.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!g||g.Column||g["table:Column"]||g["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!g||!g.Column&&!g["table:Column"]&&!g["table:AnalyticalColumn"]&&!g["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+d0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),pa(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(Yg,"addFragmentEnum");function yl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){zW(e,a,s),t8(e,t,s),n8(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Yg(e,r,u,"fragmentName",s),Yg(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),Yg(e,r,u,"cellsFragmentName",s),Yg(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(yl,"addTableColumnExtensions");function h0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(h0,"removeElementsFromEnum");function Jg(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=pr(n==null?void 0:n.fullyQualifiedName,qi.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${pt(s.value)}>`,p=ro(s);s.type==="PropertyPath"&&(l=Vg(s,n)),i.properties[s.value]={$ref:U+u},i.properties[s.value][De.SchemaTag.propertyIndex]=a,e.definitions[u]={type:"object",description:l,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[u][De.SchemaTag.dataType]=p,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.value,value:`${s.value}`}],e.definitions[u][De.SchemaTag.annotationPath]=`${i[De.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${U}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(Jg,"addSelectionFields");function Zg(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(Zg,"isDraftEnabled");function y0(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}o(y0,"isEntityDeletable");function v0(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}o(v0,"isEntityUpdatable");function vl(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,u])=>{let p=u.$ref.split(U)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${U}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(vl,"addStandardHeaderActions");function T0(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(U)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${U}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(T0,"addStandardFooterActionsOP");function em(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?q.t("NOUIANNOTATIONS",{entityType:t.name}):q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});se(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(em,"getUIAnnotationForEntitySet");function tm(e,t,n,i="string"){let r=e!==void 0&&(typeof e!="object"||e[t]!==void 0&&typeof e[t]!==i);return r&&se(n,{severity:De.LogSeverity.Error,message:q.t("TYPEERROR",{propertyName:t,expectedType:i})}),r}o(tm,"hasPropertyTypeError");function i8(e,t,n,i){if(e===de.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ut.UIAnnotationTypes.DataField:case Ut.UIAnnotationTypes.DataFieldForAnnotation:case Ut.UIAnnotationTypes.DataFieldWithNavigationPath:case Ut.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===de.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ut.UIAnnotationTypes.DataField:case Ut.UIAnnotationTypes.DataFieldForAnnotation:case Ut.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(i8,"copyFieldProperties");function r8(e,t,n,i){let r=e===de.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===de.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(r8,"determineFieldDefinitionName");function o8(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][de.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][de.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][de.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][de.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(o8,"addKeysTagForDataField");function a8(e,t,n){if(e.$Type===Ut.UIAnnotationTypes.DataField||e.$Type===Ut.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ut.UIAnnotationTypes.DataFieldWithNavigationPath)o8(e,t,n);else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][de.SchemaTag.keys]=[{name:"Target",value:gl(e.Target.value)}],t.definitions[n][de.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][de.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][de.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][de.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][de.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][de.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(a8,"addKeysTagToField");function s8(e){var t,n;return e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Ut.UIAnnotationTypes.ConnectedFieldsType}o(s8,"isConnectedField");function c8(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===Ut.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let y=p[m];if(typeof y=="object"&&"$Type"in y){let A=u.findIndex(b=>b===m);A===-1&&(A=g,g++),Eb(e,t,y,`ConnectedFields::${a.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(c8,"addConnectedFields");function b0(e,t,n){if(n)return n;let i=pt(t);return e.definitions[i].properties}o(b0,"getFieldsSchemaContainer");function Eb(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){var b;let g=ua(n),m=s===de.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,y=r8(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===Ut.UIAnnotationTypes.DataFieldForAction||n.$Type===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===de.SectionType.Section){let O=b0(t,`${e}${de.DefinitionName.Actions}<${i}>`,u.actions),D=O[m]={$ref:`${U}${y}`};D[de.SchemaTag.propertyIndex]=parseInt(r)}}else{let O=b0(t,`${e}${de.DefinitionName.Fields}<${i}>`,u.fields);O[m]={$ref:`${U}${y}`,propertyIndex:parseInt(r)},s8(n)&&(A=c8(e,t,n,a,s))}t.definitions[y]={type:"object",properties:A,description:yi(n,a.entityType),additionalProperties:!1},a8(n,t,y),t.definitions[y][de.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[y][de.SchemaTag.annotationType]=n.$Type,t.definitions[y][de.SchemaTag.isViewNode]=!0,im(t.definitions[y],n),i8(s,t,n,y),n.$Type===Ut.UIAnnotationTypes.DataFieldForAction&&((b=t.definitions)!=null&&b.FormAction)&&(t.definitions[y].$ref=`${U}${de.DefinitionName.FormAction}`,delete t.definitions[y].properties)}}o(Eb,"addField");function l8(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(l8,"determineTargetIdOfForm");function f8(e,t,n,i,r,a){if(e.base===de.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&Eb(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];Eb(t,n,l,i,s,e,r)}}o(f8,"addFieldsToFormDefinition");function u8(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][de.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][de.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][de.SchemaTag.annotationPath]=pr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(u8,"addTagsToFormDefinition");function om(e,t,n,i,r,a){if(!t.target)return;let s=l8(t),l=pt(`${e}${de.DefinitionName.Form}<${s}>`),u=pt(`${e}${de.DefinitionName.Fields}<${s}>`),p=pt(`${e}${de.DefinitionName.Actions}<${s}>`),g=!(t.base===de.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${U}${l}`},e===de.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${U}${p}`},fields:{$ref:`${U}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][de.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${U}${u}`}},description:"Form",additionalProperties:!1},u8(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][de.SchemaTag.isViewNode]=!0,f8(t,e,i,s,r,g),s}o(om,"handleForm");function Ab(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(Ab,"replaceAlias");function am(e,t){let n=Ab(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(am,"getActionNameAndId");function E0(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===de.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:E0(a.pages,t)}}o(E0,"isFirstObjectPage");function sm(e,t,n,i,r){var g,m;e.definitions[de.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${de.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${U}${de.DefinitionName.ObjectPageFooter}`},e.definitions[de.DefinitionName.ObjectPageFooter].properties[de.PropertyName.actions]={$ref:`${U}${de.DefinitionName.FooterActions}`};let a=e.definitions[de.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[de.SchemaTag.isViewNode]=!0;let s=ii(de.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let y=p.fullyQualifiedName.replace(`@${Ut.UIAnnotationTerms.Identification}`,`/@${Ut.UIAnnotationTerms.Identification}`);a[de.SchemaTag.annotationPath]=`/${y}`,i(u,e,a,p)}else u&&(a[de.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${Ut.UIAnnotationTerms.Identification}`);n===de.FioriElementsVersion.v2&&E0(r,t)&&!Zg(l)&&T0(e,a),delete e.definitions[de.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${de.DefinitionName.ObjectPageFooter}<${de.DefinitionName.ObjectPageFooterActions}>`]}o(sm,"addFooterActions");function cm(e,t,n,i,r,a=!1){var m,y;let s=de.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[de.DefinitionName.ObjectPageHeader].properties[de.PropertyName.actions]={$ref:`${U}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[de.SchemaTag.isViewNode]=!0;let p=ii(de.UIVOCABULARY,n.serviceAVT),g=p&&((y=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:y.Identification);g?u[de.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${Ut.UIAnnotationTerms.Identification}`,`/@${Ut.UIAnnotationTerms.Identification}`):t&&(u[de.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ut.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&vl(e,!0,l)}o(cm,"addHeaderActions");function lm(e,t){e.properties.header={$ref:`${U}${de.DefinitionName.ObjectPageHeader}`},e.definitions[de.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${de.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[de.DefinitionName.ObjectPageHeader][de.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ut.UIAnnotationTerms.HeaderInfo}`)}o(lm,"addCommonHeaderSchema");function A0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(A0,"determineEntitySetOfEntityType");var wr=require("@sap-ux/vocabularies-types/vocabularies/UI");var et=ie(le());function pa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(pa,"addEnumToSchema");function um(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let u=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(u)===-1&&r.push(u)}}pa(r,n)}o(um,"addEnumForValidAnnotations");function Wa(e,t,n){let i=t.definitions[n].properties[et.SchemaTag.annotationPath],r=[wr.UIAnnotationTerms.SelectionVariant,wr.UIAnnotationTerms.SelectionPresentationVariant];um(e,r,i)}o(Wa,"addEnumForSingleTabVariant");function S0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[wr.UIAnnotationTerms.SelectionVariant,wr.UIAnnotationTerms.SelectionPresentationVariant];um(n.entityType,r,i)}o(S0,"addEnumForMultiTabVariant");function P0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),pa(r,i)}o(P0,"addEnumForVariantEntitySet");function C0(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[et.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${U}${et.DefinitionName.RelatedFacetKeys}`},l]}}}}o(C0,"addDefinitionForRelatedFacetKeys");function tc(e){return e.replace("#","::")}o(tc,"getFacetKeyInSchema");function pm(e,t){return`${e}<${tc(t)}>`}o(pm,"getFacetDefinitionKey");function bt(e,t,n,i=!0){let r=t;if(i&&(r=pm(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(bt,"parseSchemaDefinition");function fm(e,t,n){let i;return t===et.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${wr.UIAnnotationTerms.LineItem}`?i=`${U}${n}`:(i=`${U}${n}<${t}>`,bt(n,t,e,!0)),i}o(fm,"getCustomExtensionDefinitionName");function nm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][et.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=fm(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?et.DefinitionName.ObjectPageToolBar:et.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${et.DefinitionName.Actions}<${pt(r)}>`;t.definitions[p].properties.actions.$ref=U+g;let m=r.startsWith(et.DefinitionName.LineItems)?et.DefinitionName.Actions:et.DefinitionName.ObjectPageToolBarActions,y;try{if(y=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),y.properties={},y.additionalProperties=!1,s){let O=fm(t,r,s);y.additionalProperties={$ref:O}}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let A,b;if(r===et.DefinitionName.LineItems&&t.properties.footer){b=`${et.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${U}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.GenericFooter]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:et.DefinitionName.GenericFooter}))}let O=`${et.DefinitionName.FooterActions}<${pt(r)}>`;t.definitions[b].properties.actions.$ref=U+O,A=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.Actions])),A.properties={},A.additionalProperties=!1}return n&&(l=pr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][et.SchemaTag.annotationPath]=l,A&&(t.definitions[b][et.SchemaTag.annotationPath]=l))),{actions:y,footerActions:A,lineItemPath:l}}o(nm,"addCommonLineItemDefinitions");function x0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(x0,"getDataTypeFromAnnotation");function nc(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=x0(e.$Type)),t}o(nc,"determineDataTypeOfTarget");function ro(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=nc((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=x0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(ro,"determineDataType");function im(e,t){let n=ro(t);n&&(e[et.SchemaTag.dataType]=n)}o(im,"addDataTypeToDefinition");function vi(e,t){return`${U}${pm(e,t)}`}o(vi,"getFacetDefinitionLink");function Ka(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${U}${i}`}o(Ka,"addDefinitionRef");function dm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${et.UIVOCABULARY}`);t=`/${n}/@${et.UIVOCABULARY}${i}`}return t}o(dm,"getFacetAnnotationPath");function nu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:vi(a?u:l,t)};let p=bt(a?u:l,t,i,!0);la(e,p,t),Ha(e,p,t),p[et.SchemaTag.annotationPath]=e.annotationPath,p[et.SchemaTag.isViewNode]=!0}o(nu,"handleAddressContact");function Sb(e,t,n){typeof e=="object"&&(e[t]=n)}o(Sb,"updateSchemaProperty");function Tl(e,t,n=pt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${et.DefinitionName.Fields4Dialog}${n}`];Sb(r.properties.fields.items,"enum",i)}o(Tl,"addFieldsType");function p8(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(p8,"findFirstSchemaDefinitionKey");function gm(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=hn(t.$ref),m=(p=e.definitions)==null?void 0:p[g];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,u=p8(a,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(gm,"getEnumEntry");function Xa(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=gm(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];Sb(l,"oneOf",r)}else Sb(a,"oneOf",r)}o(Xa,"addDescriptiveEnumDefinition");function ec(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(ec,"getActionKey");function rm(e,t,n){var i,r,a;try{if(e.Value)t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.value,value:Zs(e.Value)}];else if(e.$Type===wr.UIAnnotationTypes.DataFieldWithAction||e.$Type===wr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=ec(e.Action,!0);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.action,value:s}],l&&(t[n][et.SchemaTag.target]=l)}else if(e.$Type===wr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=ec(e.Target.value,!1);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.target,value:gl(s)}],t[n][et.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===wr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===wr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=ec(s,!0);t[n][et.SchemaTag.keys]=[{name:"SemanticObject",value:e[et.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][et.SchemaTag.target]=u)}}catch{return}}o(rm,"addKeyToDefinition");var bl=ie(le());var I0=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var N0="1.96.84";var L0={name:"@sap/ux-specification",version:N0,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/to-json-schema.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.33.19","@sap-ux/vocabularies-types":"0.12.0"},devDependencies:{"@sap/ux-specification-types":"1.96.84","@sapui5/ts-types-esm":"latest-1.96","@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@types/d3":"7.4.3","@types/jquery":"3.5.32","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.8.4",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.1","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var Qa=class Qa{constructor(){Qa.distTagsOfSpec.length===0&&(Qa.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Qa.distTagsOfSpec=[]}getSpecVersion(){return N0}getDistTagsOfVersion(){let t=[],n=I0,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let r=q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});se(n,{severity:bl.LogSeverity.Info,message:r,location:{path:bl.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(Qa.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=q.t("WRONGMINUI5VERSION",{minUI5Version:t});se(n,{severity:bl.LogSeverity.Warning,message:r,location:{path:bl.MANIFESTPATH}})}}};o(Qa,"DistTagEvaluator"),Qa.distTagsOfSpec=[];var iu=Qa;var fe=ie(le());var _n=ie(le());var Ti=ie(le());function R0(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(R0,"getCustomPageFullName");function m8(e){let n=R0(e).split(".");return n[n.length-1]}o(m8,"getCustomPageName");function F0(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||Ti.ViewTypes.XML}o(F0,"getViewType");function h8(e,t){return F0(e,t).toLowerCase()}o(h8,"getViewTypeExtension");function y8(e,t,n){var p;let i=o(g=>{var m;return(m=g.split(`${t.id}.`)[1])==null?void 0:m.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.viewPath)||(r==null?void 0:r.viewPath),s=R0(e);s!=null&&s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}o(y8,"getViewPath");function v8(e,t){let n=e.entitySet||m8(e),{viewPath:i,fileName:r}=y8(e,t,[n]),a=h8(e,t);return[...i,`${r}.view.${a}`].join("/")}o(v8,"getCustomPagePath");var Pb=class Pb{constructor(t,n,i,r){this.unhandledControllers=[];let a=Dt(Ti.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===Ti.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Ti.DirName.Pages}/${s}.json`]=u)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[Ti.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=F0(t,this.app)===Ti.ViewTypes.XML&&!!t.config;if(t.pageType===Ti.PageTypeV4.CustomPage||t.pageType===Ti.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Dt(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=Dt(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Dt(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Ti.PageTypeV4.CustomPage||t.pageType===Ti.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=v8(t,this.app);n.$filePath=i}};o(Pb,"AppProvider");var qa=Pb;var lt=ie(le());var El=ie(le());var Bn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),D0=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),_0=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function Cb(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(Cb,"getNewPageTemplate");function T8(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(T8,"findPageInManifest");function b8(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=Cb(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:Cb(e[t].pageType)}),!Array.isArray(n.pages))){let i=T8(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=Cb(e[t].pageType)),xb(t,e,i)}}o(b8,"transformPageFromAssociation");function E8(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===El.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===El.PageTypeV2.ListReport||n.pageType===El.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(E8,"deletePage");function xb(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===El.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)b8(t,r,n);Array.isArray(n.pages)||E8(n,t,i)}}o(xb,"transformPageToNewManifestV2");var b1=ie(Xs());var dA={};Ws(dA,{ALPAnalyticalTable:()=>pE,ALPGridTable:()=>uE,ALPResponsiveTable:()=>fE,Action:()=>hE,AnalyticalCard:()=>xl,AnalyticalCardSettings:()=>vm,AnalyticalCardSettingsv4:()=>Fb,AnalyticalListPageFilterBar:()=>$b,AnalyticalTable:()=>lE,BaseCustomSection:()=>Vu,ChartSettings:()=>_E,ChartSettingsType:()=>Ob,CommonCardSettings:()=>Za,CommonFilterBar:()=>mu,CommonHeaderFacetSettings:()=>dc,CommonTableSettings:()=>is,CommonTableSettingsForSections:()=>vc,CreateWithFilters:()=>iE,CustomCard:()=>Lb,DataLoadSettings:()=>rE,DateRange:()=>Mb,DefaultDateRange:()=>kb,DefaultSpanObject:()=>Nb,FRAGMENT_DEFINITION:()=>Vo,Field:()=>wb,FieldForAction:()=>Kb,Fields4Dialog:()=>oE,Fields4DialogOP:()=>sA,FooterAction:()=>vE,FormAction:()=>Wb,GlobalChartSettings:()=>oA,GlobalTableSettings:()=>uA,GridTable:()=>dE,HeaderActionStandard:()=>SE,HeaderSections:()=>BE,KPISettings:()=>VE,LinkListCardSettings:()=>_b,LinklistCard:()=>pu,ListCard:()=>Cl,ListCardSettings:()=>Rb,ListReportFilterBar:()=>Bb,ObjectPageAnalyticalTable:()=>cA,ObjectPageChart:()=>rA,ObjectPageCustomSectionFragment:()=>wu,ObjectPageCustomSectionView:()=>Mu,ObjectPageFooterAction:()=>GE,ObjectPageFooterActionStandard:()=>CE,ObjectPageGridTable:()=>lA,ObjectPageHeader:()=>wE,ObjectPageHeaderAction:()=>ME,ObjectPageHeaderActionStandard:()=>PE,ObjectPageHeaderSectionAddress:()=>$E,ObjectPageHeaderSectionChart:()=>jE,ObjectPageHeaderSectionDataPoint:()=>UE,ObjectPageHeaderSectionForm:()=>kE,ObjectPageLayout:()=>KE,ObjectPageResponsiveTable:()=>Tc,ObjectPageSectionAddressV2:()=>YE,ObjectPageSectionChartV2:()=>qE,ObjectPageSectionContactV2:()=>JE,ObjectPageSectionFormV2:()=>QE,ObjectPageSectionTableV2:()=>zE,ObjectPageSectionV2:()=>XE,ObjectPageSubSectionChartV2:()=>tA,ObjectPageSubSectionContactV2:()=>nA,ObjectPageSubSectionFormV2:()=>eA,ObjectPageSubSectionTableV2:()=>iA,ObjectPageSubSectionV2:()=>ZE,ObjectPageToolBarAction:()=>pA,ObjectPageTreeTable:()=>fA,QuickVariantSelection:()=>aE,QuickVariantSelectionOP:()=>aA,QuickVariantSelectionX:()=>sE,ResponsiveTable:()=>cc,SAP_UI_TABLE:()=>Cm,SaveAndEditOP:()=>AE,SelectionFieldDateSettings:()=>jb,SelectionFields:()=>Ub,Share:()=>TE,ShareOP:()=>bE,StackCard:()=>uu,StackCardSettings:()=>Db,TableALP:()=>Rl,TableCard:()=>Il,TableCardSettings:()=>Vb,TableColumn:()=>OE,TableColumnAction:()=>Wm,TableColumnActionIntentBased:()=>NE,TableCustomColumn:()=>LE,ToolBar:()=>FE,ToolBarAction:()=>yE,TreeTable:()=>cE,UpAndDownNavigationOP:()=>EE,buildIntentBasedActionId:()=>xE,deleteColumnFromFragment:()=>Om,deleteType:()=>Dl,exportColorPalette:()=>k0,exportCreateParametersFields:()=>Vm,exportCustomColumnsToFragment:()=>nE,exportDateSettings:()=>B0,exportDateSettingsField:()=>H0,exportDefaultSpan:()=>j0,exportType:()=>Fl,getChartSectionControlId:()=>m1,getContactSubSectionControlId:()=>y1,getCustomColumnPath:()=>Nm,getFormSectionControlId:()=>g1,getRootCustomColumnFromFragmentJSON:()=>vu,getSectionControlId:()=>hc,getSmartChartControlId:()=>Iu,getSmartTableControlId:()=>sc,getSubSectionControlId:()=>h1,getTableSectionControlId:()=>d1,importCreateParameters:()=>_m,importDateSettings:()=>Hb});var Jn=ie(le());var je=o(e=>`${Jn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),ic=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),V0=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),w0=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var bn=o(()=>Jn.ManifestSection.ovp,"getOVPsettingPath"),Ce=o(e=>{let t=[Jn.ManifestSection.ovp];return e.forEach(n=>{n in Jn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var rc=o((e,t)=>`${Jn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),ym=o(e=>{let t=[Jn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ni=o(e=>{let t=[];return t.push(ym(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),oc=o(e=>Ni(e)+"/tableSettings","getGlobalTableSettingsPathV2"),oo=o((e,t,n)=>{let i=[];i.push(ym(e));let r=n.replace(Jn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),kr=o((e,t,n)=>oo(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),M0=o((e,t,n)=>oo(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),Ib=o(()=>`sap.ui5/extends/extensions/${Jn.v2.SAPUI5_VIEW_EXTENSION}/${Jn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),da=o((e,t,n,...i)=>{let r="|",a=n.split(r),s=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join(r);return i.unshift(u),`${Ib()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),hm=class hm{};o(hm,"ApplicationV2"),h([jt("settings")],hm.prototype,"settings",2);var mm=hm,Mr=class Mr{};o(Mr,"AppSettings"),h([T({manifest:{path:o(()=>"sap.app","path")}})],Mr.prototype,"title",2),h([T({manifest:{path:o(()=>"sap.app","path")}})],Mr.prototype,"description",2),h([T({manifest:{path:o(()=>"sap.fiori","path")}})],Mr.prototype,"cloudDevAdaptationStatus",2),h([T({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.50.0"})],Mr.prototype,"flexibleColumnLayout",2),h([T({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.46.0"})],Mr.prototype,"forceGlobalRefresh",2),h([T({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.74.0"})],Mr.prototype,"tableColumnVerticalAlignment",2),h([T({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"}),Le("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Mr.prototype,"flexEnabled",2),h([T({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],Mr.prototype,"draftDiscardConfirmationSettings",2),h([T({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],Mr.prototype,"statePreservationMode",2);var za=Mr;var ru=ie(le());function A8(e){let t=e.colorPalette,n;if(Array.isArray(t))throw new Error("The array syntax for colorPalette is deprecated and not supported");return t[0]&&typeof t[0]=="object"?(n=t,n.colorPaletteType=ru.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=ru.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:ru.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(A8,"importColorPalette");function k0(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===ru.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(k0,"exportColorPalette");function j0(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(j0,"exportDefaultSpan");var Tm=class Tm{};o(Tm,"ChartSettingsType"),h([T({manifest:{path:o(()=>bn()+"/chartSettings","path")}})],Tm.prototype,"showDataLabel",2);var Ob=Tm,Ya=class Ya{};o(Ya,"DefaultSpanObject"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ya.prototype,"cols",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ya.prototype,"rows",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ya.prototype,"showOnlyHeader",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ya.prototype,"minimumTitleRow",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ya.prototype,"minimumSubTitleRow",2);var Nb=Ya,Xt=class Xt{};o(Xt,"CommonCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"entitySet",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"title",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"subTitle",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"annotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"dataPointAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"selectionPresentationAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"kpiAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"category",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"dynamicSubtitleAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"valueSelectionInfo",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showFilterInHeader",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"sortBy",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"sortOrder",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"identificationAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"selectionAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"presentationAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"enableLocaleCurrencyFormatting",2),h([T({manifest:{path:o(t=>Ce(t),"path"),export:j0}})],Xt.prototype,"defaultSpan",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"requireAppAuthorization",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showSortingInHeader",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"tabs",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"addODataSelect",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showRefresh",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"customParams",2);var Za=Xt,Al=class Al{};o(Al,"CustomCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Al.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Al.prototype,"template",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Al.prototype,"settings",2);var Lb=Al,Ja=class Ja extends Za{};o(Ja,"ListCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"showLineItemDetail",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"imageSupported",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"enableAddToInsights",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"listFlavor",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"listType",2);var Rb=Ja,ou=class ou{};o(ou,"ListCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ou.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ou.prototype,"template",2);var Cl=ou,ao=class ao extends Za{};o(ao,"AnalyticalCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"chartAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"ignoreSapText",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"enableAddToInsights",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"navigation",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"valueSelectionInfo",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"chartProperties",2),h([T({manifest:{path:o(t=>Ce(t),"path"),import:A8,export:k0}})],ao.prototype,"colorPalette",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"bEnableStableColors",2);var vm=ao,bm=class bm extends vm{};o(bm,"AnalyticalCardSettingsv4"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],bm.prototype,"measureAggregate",2);var Fb=bm,au=class au{};o(au,"AnalyticalCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],au.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],au.prototype,"template",2);var xl=au,Sl=class Sl extends Za{};o(Sl,"StackCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"itemText",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"objectStreamCardsNavigationProperty",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"objectStreamCardsSettings",2);var Db=Sl,su=class su{};o(su,"StackCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],su.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],su.prototype,"template",2);var uu=su,Pl=class Pl extends Za{};o(Pl,"LinkListCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"listFlavor",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"headerAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"staticContent",2);var _b=Pl,cu=class cu{};o(cu,"LinklistCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],cu.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],cu.prototype,"template",2);var pu=cu,lu=class lu extends Za{};o(lu,"TableCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],lu.prototype,"showLineItemDetail",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],lu.prototype,"enableAddToInsights",2);var Vb=lu,fu=class fu{};o(fu,"TableCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],fu.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],fu.prototype,"template",2);var Il=fu;var U0=ie(le());var S8=o((e,t,n,i,r)=>{let a=qn(n[1],r),s=n.slice(-1)[0];return zt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Em=class Em{};o(Em,"Field"),h([T({flex:{controlId:S8,controlType:o(()=>U0.ControlType.GroupElement,"controlType")},generate:gt})],Em.prototype,"visible",2);var wb=Em;var ac=ie(le());function Hb(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),delete t.fields,t}o(Hb,"importDateSettings");function B0(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];n==="selectedValues"&&(e[n]=i.join())}o(B0,"exportDateSettings");function P8(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(P8,"importDateSettingsField");function H0(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o(H0,"exportDateSettingsField");var Ol=class Ol{};o(Ol,"DateRange"),h([T({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],Ol.prototype,"useDateRange",2),h([T({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path"),import:Hb,export:B0}}),C({since:"1.77.0"})],Ol.prototype,"selectedValues",2),h([T({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],Ol.prototype,"exclude",2);var Mb=Ol,Am={controlId:zt,controlType:o(()=>ac.ControlType.SmartFilterBar,"controlType")},du={path:o((e,t,n)=>`${je(e)}${ac.DATESETTINGSPATH}/fields/${n}`,"path")},$0={...du,import:P8,export:H0},Sm=class Sm{};o(Sm,"DefaultDateRange"),h([T({manifest:du}),C({since:"1.90.0"})],Sm.prototype,"operation",2);var kb=Sm,es=class es{};o(es,"SelectionFieldDateSettings"),h([T({manifest:$0}),C({since:"1.77.0"})],es.prototype,"selectedValues",2),h([T({manifest:du}),C({since:"1.77.0"})],es.prototype,"exclude",2),h([T({manifest:du}),C({since:"1.77.0"})],es.prototype,"customDateRangeImplementation",2),h([T({manifest:$0}),C({since:"1.77.0"})],es.prototype,"filter",2),h([T({manifest:du}),C({since:"1.90.0"})],es.prototype,"defaultValue",2);var jb=es,Gb=class Gb{};o(Gb,"SelectionFields");var Ub=Gb,so=class so{};o(so,"CommonFilterBar"),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.38.0"})],so.prototype,"smartVariantManagement",2),h([T({flex:Am}),C({since:"1.40.0"})],so.prototype,"liveMode",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.48.0"})],so.prototype,"variantManagementHidden",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.52.0"})],so.prototype,"subTitleIfVariantMgmtHidden",2),h([T({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:Hb}}),C({since:"1.77.0"})],so.prototype,"dateSettings",2),h([T({flex:Am}),C({since:"1.28.0"})],so.prototype,"showClearOnFB",2),h([T({flex:Am}),C({since:"1.38.0"})],so.prototype,"showFilterConfiguration",2),h([T({flex:Am}),C({since:"1.28.0"})],so.prototype,"showRestoreOnFB",2);var mu=so,gu=class gu extends mu{};o(gu,"AnalyticalListPageFilterBar"),h([T({manifest:{path:o(t=>je(t),"path")}})],gu.prototype,"showGoButtonOnFilterBar",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.60.0"})],gu.prototype,"filterDefaultsFromSelectionVariant",2);var $b=gu,Pm=class Pm extends mu{};o(Pm,"ListReportFilterBar"),h([T({manifest:{path:o(t=>je(t),"path")}}),Le("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),C({since:"1.86.0"})],Pm.prototype,"annotationPath",2);var Bb=Pm;var Xb=ie(le());var C8=o((e,t,n,i,r)=>{if(i()===Xb.ControlType.Button){let a=n[n.length-1],s=qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return zt(e,t)},"getFormActionButtonId"),_o={controlId:C8,controlType:o(()=>Xb.ControlType.Button,"controlType")},ts=class ts{};o(ts,"FormAction"),h([T({flex:_o,generate:gt})],ts.prototype,"visible",2),h([T({flex:_o})],ts.prototype,"tooltip",2),h([T({flex:_o})],ts.prototype,"icon",2),h([T({flex:_o})],ts.prototype,"activeIcon",2),h([T({flex:_o})],ts.prototype,"type",2);var Wb=ts,ns=class ns{};o(ns,"FieldForAction"),h([T({flex:_o,generate:gt})],ns.prototype,"visible",2),h([T({flex:_o})],ns.prototype,"tooltip",2),h([T({flex:_o})],ns.prototype,"icon",2),h([T({flex:_o})],ns.prototype,"activeIcon",2),h([T({flex:_o}),C({since:"1.73.0"})],ns.prototype,"type",2);var Kb=ns;var Et=ie(le()),co=ie(Xs());var Yb=require("path"),H8=ie(le()),n1=ie(t1()),i1=require("fs");var G8=(0,Yb.join)(__dirname,"templates");var W8=o((e,t)=>{let n=(0,i1.readFileSync)(e,"utf8");return(0,n1.render)(n,t)},"renderTemplate");var Jb=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return W8((0,Yb.join)(G8,t+".xml"),n)},"getSingleColumnContent"),Zb=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=Jb(i,t);n=n+`
289
289
  `+r}return n+`
290
290
  </core:FragmentDefinition>`},"getColumnFragmentContent"),eE=o(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
291
291
  <Text text="Placeholder"/>`}),t+`
292
292
  </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var xm=require("path");var Vo="core:FragmentDefinition",Cm="sap.ui.table",tE=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:Cm,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:Cm,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Cm,name:"AnalyticalColumn"}]]),K8=new Map([[Et.v2.FE_TEMPLATE_V2_LIST_REPORT,Et.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Et.v2.FE_TEMPLATE_V2_ALP,Et.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Et.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Et.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),o1={type:"element",name:"Text",attributes:{text:"Placeholder"}},X8=JSON.stringify(o1);function Q8(e,t){var i;let n=t?(i=e==null?void 0:e[Vo])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o(Q8,"getFragmentNamespaces");function r1(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(r1,"getTagName");function Im(e,t,n=e){let i=Q8(n,!!(t||n!==e));if(t){let r=tE.get(t);return r1(r,i.get(r.namespace))}else{let r=tE.keys();for(let a of r){let s=tE.get(a),l=i?r1(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(Im,"getTagNameFromFragmentJSON");function vu(e,t=e){let n=Im(e,void 0,t);return e[n]}o(vu,"getRootCustomColumnFromFragmentJSON");function q8(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(q8,"addP13nData");function a1(e,t){var l,u,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(g=>g.columnKey===a.columnKey);return s<0?!1:(n=!0,r=q8(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(u=t[s])==null?void 0:u.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}o(a1,"handleFragmentColumn");function z8(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Et.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(xm.sep);if(p[p.length-1]===l){let g=JSON.parse((0,co.xml2json)(u.fileContent,{compact:!0}));try{let m=Im(g[Vo]);m&&(delete g[Vo][m],u.fileContent=(0,co.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${u.dataSourceUri}, please check content`)}break}}}o(z8,"deleteColumnsFromFragment");function s1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===X8&&(e.splice(n,1),t-=1,t===0));n++);}o(s1,"deleteNumberOfCells");function Y8(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+Et.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,co.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&s1(l.elements[0].elements,u.length),s.fileContent=(0,co.json2xml)(JSON.stringify(l),{spaces:4});break}}o(Y8,"deleteCellsFromFragment");function Om(e,t,n,i){if(i){z8(e,i,t,n);let r=t.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&Y8(a,i,n)}}o(Om,"deleteColumnFromFragment");function J8(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(o1)}o(J8,"addNewColumnsInFragment");function Z8(e,t){let n=JSON.parse((0,co.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)J8(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;s1(a,r)}e.fileContent=(0,co.json2xml)(JSON.stringify(n),{spaces:4})}}o(Z8,"updateNonEmptyCellsFragment");function eK(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(xm.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=eE(n):Z8(r,n);break}}return i}o(eK,"updateCellsFragment");function tK(e,t,n,i,r){var g;let a,s,l=t.manifest,u=Bn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){se(r,{severity:Et.LogSeverity.Error,message:q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=Et.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,a=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,xm.sep))+Et.FRAGMENTNAMEPART+p}if(e.indexOf(Et.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Et.ChangeIndicator.Updated;let m=e.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),y=Bn(l,m),A=n.reduce((b,O)=>O.cellsFragmentName?O:b);A&&A.cellsFragmentName?(y.fragmentName=s=A.cellsFragmentName,y.className=n[0].className,y.type=p.toUpperCase()):_0(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(tK,"exportCustomColumnsToManifest");function nK(e,t,n,i,r){let a=Jb(e,t);if(a){let s=JSON.parse((0,co.xml2json)(a,{compact:!0})),l=vu(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let u=[n];u.splice(r,0,l),n=u}else n=[l]}return n}o(nK,"insertNewColumnInFragment");function iK(e,t){let n=[];for(let i=0;i<e.length;i++)a1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(iK,"processCustomColumnInArray");function rK(e,t,n){if(e){if(Array.isArray(e))iK(e,t);else if(!a1(e,t)){let r=Im(n[Vo]);r&&(delete n[Vo][r],e=void 0)}}return e}o(rK,"maintainExistingColumnInFragment");function oK(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=nK(a,i,n,r,s)}return n}o(oK,"insertNewColumnsInFragment");function aK(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Et.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=Zb(i,r);else{let u=JSON.parse((0,co.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=vu(u[Vo]),l=rK(l,i,u),l=oK(i,n,l,r,u);let g=Im(u,r);u[Vo][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,co.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(aK,"updateColumnsInFragment");function nE(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=tK(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),y=l.fragmentName,A=y.substr(i.length+1),b=A.split(".");y=b[b.length-1]+Et.FRAGMENTNAMEPART+g;let D=p==null?void 0:p.split("."),j=D?D[D.length-1]:null,G=j?j+Et.FRAGMENTNAMEPART+g:null,B=aK(s,y,A,m,r),ae=!1;if(p?ae=eK(s,G,n):ae=!0,!B){let Z={fileContent:Zb(m,r),dataSourceUri:u,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!ae){let Z={fileContent:eE(n),dataSourceUri:u.replace(y,G),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(nE,"exportCustomColumnsToFragment");var Nm=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=K8.get((u=e.component)==null?void 0:u.name);if(!i){let y=(m=(g=(p=e.component)==null?void 0:p.settings)==null?void 0:g.tableSettings)==null?void 0:m.type;y||(y="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(y="AnalyticalTable"),i=y+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var En=ie(le());var sc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+En.PropertyName.table:zt(e,t),"getSmartTableControlId");function _m(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}o(_m,"importCreateParameters");function Vm(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(Vm,"exportCreateParametersFields");function sK(e,t){t.variants&&(Object.keys(t.variants).length>0?cK(e,t):delete e.variants)}o(sK,"exportQuickVariantSelectionX");function cK(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let u in s)l.indexOf(u)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[u]=s[u],delete s[u]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(cK,"exportVariants");var Lm=class Lm{};o(Lm,"CreateWithFilters"),h([T({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],Lm.prototype,"strategy",2);var iE=Lm;function Eu(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}o(Eu,"importType");function Fl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Fl,"exportType");function Dl(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(Dl,"deleteType");var Rm=class Rm{};o(Rm,"DataLoadSettings"),h([T({manifest:{path:o(t=>w0(t),"path")}}),C({since:"1.75.2"})],Rm.prototype,"loadDataOnAppLaunch",2);var rE=Rm,Fm=class Fm{};o(Fm,"Fields4Dialog"),h([T({manifest:{path:o(t=>ic(t)+"/createWithParameterDialog","path"),export:Vm}}),C({since:"1.77.0"})],Fm.prototype,"fields",2);var oE=Fm,Tu=class Tu{};o(Tu,"QuickVariantSelection"),h([T({manifest:{path:o(t=>je(t)+En.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Tu.prototype,"showCounts",2),h([T({manifest:{path:o(t=>je(t)+En.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Tu.prototype,"variants",2);var aE=Tu,Nl=class Nl{};o(Nl,"QuickVariantSelectionX"),h([T({manifest:{path:o(t=>je(t)+En.QUICKVARPATHX,"path")}}),C({since:"1.48.0"})],Nl.prototype,"showCounts",2),h([T({manifest:{path:o(t=>je(t)+En.QUICKVARPATHX,"path")}}),C({since:"1.48.0"})],Nl.prototype,"enableAutoBinding",2),h([T({manifest:{path:o(t=>je(t)+En.QUICKVARPATHX,"path"),export:sK}}),C({since:"1.48.0"})],Nl.prototype,"variants",2);var sE=Nl,bi=class bi{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}}),"getDeprecated")}};o(bi,"CommonTableSettings"),h([T({manifest:{key:"createWithParameterDialog",path:o(t=>ic(t),"path"),import:_m}}),C({since:"1.77.0"})],bi.prototype,"createWithParameterDialog",2),h([T({flex:{controlId:zt,controlType:o(()=>En.ControlType.SmartTable,"controlType")}}),C({since:"1.38.0"})],bi.prototype,"showTablePersonalisation",2),h([T({flex:{controlId:sc,controlType:o(()=>En.ControlType.SmartTable,"controlType")}}),C({since:"1.26.0"})],bi.prototype,"useExportToExcel",2),h([T({flex:{controlId:sc,controlType:o(()=>En.ControlType.SmartTable,"controlType")}}),C({since:"1.50.0"})],bi.prototype,"exportType",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.48.0"})],bi.prototype,"quickVariantSelection",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.48.0"})],bi.prototype,"quickVariantSelectionX",2),h([T({manifest:{path:o(t=>ic(t),"path")}}),C({since:"1.38.0"})],bi.prototype,"multiSelect",2),h([T({manifest:{path:o(t=>ic(t),"path")}}),C({since:"1.70.0"})],bi.prototype,"selectAll",2),h([T({manifest:{path:o(t=>ic(t),"path")}}),C({since:"1.70.0"})],bi.prototype,"selectionLimit",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.75.2"})],bi.prototype,"dataLoadSettings",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.42.0"})],bi.prototype,"condensedTableLayout",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.56.0"}),Le("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],bi.prototype,"enableTableFilterInPageVariant",2),h([jt("toolBar")],bi.prototype,"toolBar",2);var is=bi,wo=class wo extends is{};o(wo,"ResponsiveTable"),h([T({manifest:{path:o(t=>je(t),"path"),import:Eu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],wo.prototype,"type",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.54.0"})],wo.prototype,"createWithFilters",2),h([T({flex:{controlId:sc,controlType:o(()=>En.ControlType.Table,"controlType")},generate:zn}),C({since:"1.52.0"})],wo.prototype,"popinLayout",2),h([T({flex:{controlId:sc,controlType:o(()=>En.ControlType.Table,"controlType")}})],wo.prototype,"includeItemInSelection",2),h([T({manifest:{path:o(t=>ic(t),"path")}}),C({since:"1.77.0"})],wo.prototype,"inlineDelete",2),h([T({manifest:{path:o(()=>En.GENERICAPPSETTINGS,"path")}}),C({since:"1.63.0"})],wo.prototype,"showDraftToggle",2),h([T({flex:{controlId:sc,controlType:o(()=>En.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],wo.prototype,"growingThreshold",2);var cc=wo,bu=class bu extends is{};o(bu,"TreeTable"),h([T({manifest:{path:o(t=>je(t),"path"),import:Eu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],bu.prototype,"type",2),h([T({manifest:{path:o(()=>En.GENERICAPPSETTINGS,"path")}}),C({since:"1.63.0"})],bu.prototype,"showDraftToggle",2);var cE=bu,Ur=class Ur extends is{};o(Ur,"AnalyticalTable"),h([T({manifest:{path:o(t=>je(t),"path"),import:Eu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],Ur.prototype,"type",2),h([T({manifest:{path:o(t=>je(t),"path")}})],Ur.prototype,"qualifier",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.38.0"}),T({manifest:{path:o(t=>je(t),"path")}})],Ur.prototype,"defaultContentView",2),h([T({manifest:{path:o(t=>je(t),"path")}})],Ur.prototype,"defaultFilterMode",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.60.0"})],Ur.prototype,"contentTitle",2),h([T({manifest:{path:o(t=>je(t),"path")}})],Ur.prototype,"autoHide",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.78.0"})],Ur.prototype,"allFiltersAsInParameters",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.54.0"})],Ur.prototype,"createWithFilters",2),h([T({manifest:{path:o(()=>En.GENERICAPPSETTINGS,"path")}}),C({since:"1.63.0"})],Ur.prototype,"showDraftToggle",2);var lE=Ur,Mo=class Mo extends is{};o(Mo,"TableALP"),h([T({manifest:{path:o(t=>je(t),"path"),import:Eu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],Mo.prototype,"type",2),h([T({manifest:{path:o(t=>je(t),"path")}})],Mo.prototype,"qualifier",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.38.0"}),T({manifest:{path:o(t=>je(t),"path")}})],Mo.prototype,"defaultContentView",2),h([T({manifest:{path:o(t=>je(t),"path")}})],Mo.prototype,"defaultFilterMode",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.60.0"})],Mo.prototype,"contentTitle",2),h([T({manifest:{path:o(t=>je(t),"path")}})],Mo.prototype,"autoHide",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.78.0"})],Mo.prototype,"allFiltersAsInParameters",2);var Rl=Mo,Dm=class Dm extends Rl{};o(Dm,"ALPResponsiveTable"),h([T({flex:{controlId:sc,controlType:o(()=>En.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],Dm.prototype,"growingThreshold",2);var fE=Dm,gE=class gE extends Rl{};o(gE,"ALPGridTable");var uE=gE,mE=class mE extends Rl{};o(mE,"ALPAnalyticalTable");var pE=mE,Ll=class Ll extends is{};o(Ll,"GridTable"),h([T({manifest:{path:o(t=>je(t),"path"),import:Eu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],Ll.prototype,"type",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.54.0"})],Ll.prototype,"createWithFilters",2),h([T({manifest:{path:o(()=>En.GENERICAPPSETTINGS,"path")}}),C({since:"1.63.0"})],Ll.prototype,"showDraftToggle",2);var dE=Ll;var Au=ie(le());var lK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}action::${Ki(i).replace(":2f","::")}`},"getActionButtonId"),fK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}template::${i}`},"getStandardActionButtonId"),uK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}${zg}${i}`},"getStandardFooterActionOPButtonId"),xE=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Qi(n);return`${e}action::${i}::${Ki(r)}`},"buildIntentBasedActionId"),pK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}action::${Ki(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),rs={controlId:lK,controlType:o(()=>Au.ControlType.Button,"controlType")},Su={controlId:fK,controlType:o(()=>Au.ControlType.Button,"controlType")},c1={controlId:uK,controlType:o(()=>Au.ControlType.Button,"controlType")},wm={controlId:pK,controlType:o(()=>Au.ControlType.Button,"controlType")},lc=class lc{};o(lc,"Action"),h([T({flex:rs})],lc.prototype,"tooltip",2),h([T({flex:rs})],lc.prototype,"icon",2),h([T({flex:rs})],lc.prototype,"activeIcon",2),h([T({flex:rs})],lc.prototype,"type",2);var hE=lc,fc=class fc{};o(fc,"ToolBarAction"),h([T({flex:rs})],fc.prototype,"tooltip",2),h([T({flex:rs})],fc.prototype,"icon",2),h([T({flex:rs})],fc.prototype,"activeIcon",2),h([T({flex:rs})],fc.prototype,"type",2);var yE=fc,uc=class uc{};o(uc,"FooterAction"),h([T({flex:wm})],uc.prototype,"tooltip",2),h([T({flex:wm})],uc.prototype,"icon",2),h([T({flex:wm})],uc.prototype,"activeIcon",2),h([T({flex:wm})],uc.prototype,"type",2);var vE=uc,Mm=class Mm{};o(Mm,"Share"),h([T({flex:Su})],Mm.prototype,"visible",2);var TE=Mm,km=class km{};o(km,"ShareOP"),h([T({flex:Su})],km.prototype,"visible",2);var bE=km,jm=class jm{};o(jm,"UpAndDownNavigationOP"),h([T({flex:Su})],jm.prototype,"visible",2);var EE=jm,Um=class Um{};o(Um,"SaveAndEditOP"),h([T({flex:c1,generate:gt})],Um.prototype,"visible",2);var AE=Um,$m=class $m{};o($m,"HeaderActionStandard"),h([T({flex:Su})],$m.prototype,"visible",2);var SE=$m,Bm=class Bm{};o(Bm,"ObjectPageHeaderActionStandard"),h([T({flex:Su})],Bm.prototype,"visible",2);var PE=Bm,Hm=class Hm{};o(Hm,"ObjectPageFooterActionStandard"),h([T({flex:c1})],Hm.prototype,"visible",2);var CE=Hm;var xu=ie(le());var dK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Qi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),gK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Qi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),mK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),IE={controlId:dK,controlType:o(()=>xu.ControlType.TableColumn,"controlType")},Pu={controlId:mK,controlType:o(()=>xu.ControlType.Button,"controlType")},l1={...IE,controlId:gK},Gm={...Pu,controlId:xE},Cu=class Cu{};o(Cu,"TableColumn"),h([T({flex:{controlId:hb,controlType:o(()=>xu.ControlType.TableColumn,"controlType")}})],Cu.prototype,"width",2),h([T({flex:{controlId:hb,controlType:o(()=>xu.ControlType.TableColumn,"controlType")},generate:zn})],Cu.prototype,"hAlign",2);var OE=Cu,ga=class ga{};o(ga,"TableColumnAction"),h([T({flex:IE})],ga.prototype,"width",2),h([T({flex:IE,generate:zn})],ga.prototype,"hAlign",2),h([T({flex:Pu})],ga.prototype,"tooltip",2),h([T({flex:Pu})],ga.prototype,"icon",2),h([T({flex:Pu})],ga.prototype,"activeIcon",2),h([T({flex:Pu})],ga.prototype,"type",2);var Wm=ga,ma=class ma extends Wm{};o(ma,"TableColumnActionIntentBased"),h([T({flex:l1})],ma.prototype,"width",2),h([T({flex:l1,generate:zn})],ma.prototype,"hAlign",2),h([T({flex:Gm})],ma.prototype,"tooltip",2),h([T({flex:Gm})],ma.prototype,"icon",2),h([T({flex:Gm})],ma.prototype,"activeIcon",2),h([T({flex:Gm})],ma.prototype,"type",2);var NE=ma,RE=class RE{};o(RE,"TableCustomColumn");var LE=RE;var DE=class DE{};o(DE,"ToolBar");var FE=DE;var pc=ie(le());var Iu=o(e=>e+pc.PropertyName.chart,"getSmartChartControlId"),os=class os{};o(os,"ChartSettings"),h([T({flex:{controlId:Iu,controlType:o(()=>pc.ControlType.SmartChart,"controlType")}})],os.prototype,"showLegendButton",2),h([T({flex:{controlId:Iu,controlType:o(()=>pc.ControlType.SmartChart,"controlType")}})],os.prototype,"showDownloadButton",2),h([T({flex:{controlId:Iu,controlType:o(()=>pc.ControlType.SmartChart,"controlType")}})],os.prototype,"showChartTypeSelectionButton",2),h([T({flex:{controlId:Iu,controlType:o(()=>pc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],os.prototype,"ignoredChartTypes",2),h([T({manifest:{path:o(t=>V0(t),"path")}}),C({since:"1.81.0"})],os.prototype,"showDataLabel",2);var _E=os;var ha=class ha{};o(ha,"KPISettings"),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ha.prototype,"model",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ha.prototype,"entitySet",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ha.prototype,"qualifier",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ha.prototype,"filterable",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ha.prototype,"detailNavigation",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ha.prototype,"groupId",2);var VE=ha;var f1=ie(le());var hK=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",zt(e,n)},"getAvatarControlId"),as=class as{};o(as,"ObjectPageHeader"),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.46.0"})],as.prototype,"showRelatedApps",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.46.0"})],as.prototype,"editableHeaderContent",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.48.0"})],as.prototype,"simpleHeaderFacets",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.48.0"}),Le("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],as.prototype,"showHeaderAsCarouselOnDesktop",2),h([T({flex:{controlId:hK,controlType:o(()=>f1.ControlType.Avatar,"controlType")},generate:gt})],as.prototype,"displayShape",2);var wE=as;var Km=ie(le());var yK=o((e,t,n,i)=>{if(i()===Km.ControlType.Button||i()===Km.ControlType.HeaderAction){let r=n[2];return`${e}action::${Ki(r)}`}return zt(e,t)},"getActionButtonId"),Ou={controlId:yK,controlType:o(()=>Km.ControlType.HeaderAction,"controlType")},ss=class ss{};o(ss,"ObjectPageHeaderAction"),h([T({flex:Ou,generate:gt})],ss.prototype,"visible",2),h([T({flex:Ou})],ss.prototype,"tooltip",2),h([T({flex:Ou})],ss.prototype,"icon",2),h([T({flex:Ou})],ss.prototype,"activeIcon",2),h([T({flex:Ou})],ss.prototype,"type",2);var ME=ss;var Nu=ie(le());var Jm="header::headerEditable::",vK=o((e,t,n,i,r)=>`${e}${Jm}${r}`,"getDataPointHeaderSectionId"),TK=o((e,t,n,i,r)=>`${e}${Jm}${r}::ContactAddress`,"getAddressHeaderSectionId"),bK=o((e,t,n,i,r)=>`${e}${Jm}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),u1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(Nu.FACETTITLEPREFIX)?r.split(Nu.FACETTITLEPREFIX)[1]:a;return`${e}${Jm}${s}::Form`},"getFormHeaderSectionId"),Lu={controlType:o(()=>Nu.ControlType.ObjectPageHeaderSection,"controlType")},Xm=class Xm{};o(Xm,"CommonHeaderFacetSettings"),h([T({flex:{...Lu,controlId:u1},generate:gt})],Xm.prototype,"visible",2);var dc=Xm,Qm=class Qm extends dc{};o(Qm,"ObjectPageHeaderSectionForm"),h([T({flex:{...Lu,controlId:u1}})],Qm.prototype,"visible",2);var kE=Qm,qm=class qm extends dc{};o(qm,"ObjectPageHeaderSectionChart"),h([T({flex:{...Lu,controlId:bK}})],qm.prototype,"visible",2);var jE=qm,zm=class zm extends dc{};o(zm,"ObjectPageHeaderSectionDataPoint"),h([T({flex:{...Lu,controlId:vK}})],zm.prototype,"visible",2);var UE=zm,Ym=class Ym extends dc{};o(Ym,"ObjectPageHeaderSectionAddress"),h([T({flex:{...Lu,controlId:TK}})],Ym.prototype,"visible",2);var $E=Ym,HE=class HE{};o(HE,"HeaderSections");var BE=HE;var WE=ie(le());var EK=o((e,t,n,i)=>{if(i()===WE.ControlType.Button){let{actionId:r}=Qi(n);return`${e}action::${Ki(r)}::Determining`}return zt(e,t)},"getFooterActionButtonId"),Ru={controlId:EK,controlType:o(()=>WE.ControlType.Button,"controlType")},cs=class cs{};o(cs,"ObjectPageFooterAction"),h([T({flex:Ru,generate:gt})],cs.prototype,"visible",2),h([T({flex:Ru})],cs.prototype,"tooltip",2),h([T({flex:Ru})],cs.prototype,"icon",2),h([T({flex:Ru})],cs.prototype,"activeIcon",2),h([T({flex:Ru})],cs.prototype,"type",2);var GE=cs;var Fu=ie(le());var Zm=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",zt(e,n)},"getControlId"),gc=class gc{};o(gc,"ObjectPageLayout"),h([T({flex:{controlId:Zm,controlType:o(()=>Fu.ControlType.ObjectPageLayout,"controlType")},generate:gt})],gc.prototype,"showHeaderContent",2),h([T({flex:{controlId:Zm,controlType:o(()=>Fu.ControlType.ObjectPageLayout,"controlType")}})],gc.prototype,"showAnchorBar",2),h([T({flex:{controlId:Zm,controlType:o(()=>Fu.ControlType.ObjectPageLayout,"controlType")}})],gc.prototype,"useIconTabBar",2),h([T({flex:{controlId:Zm,controlType:o(()=>Fu.ControlType.ObjectPageLayout,"controlType")}}),C({since:"1.34.0"})],gc.prototype,"alwaysShowContentHeader",2);var KE=gc;var p1=ie(le());var mc=class mc{};o(mc,"BaseCustomSection"),h([T({manifest:{path:da,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),C({since:"1.52.0"})],mc.prototype,"relatedFacet",2),h([T({manifest:{path:da,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),C({since:"1.52.0"})],mc.prototype,"relativePosition",2),h([T({manifest:{path:o((t,n,i)=>da(t,{},i,p1.ManifestSection.generic),"path")}}),C({since:"1.52.0"})],mc.prototype,"title",2),h([T({manifest:{path:da}}),C({since:"1.52.0"})],mc.prototype,"className",2);var Vu=mc,Du=class Du extends Vu{};o(Du,"ObjectPageCustomSectionFragment"),h([T({manifest:{path:da}}),C({since:"1.52.0"})],Du.prototype,"fragmentName",2),h([T({manifest:{path:da}}),C({since:"1.52.0"})],Du.prototype,"type",2);var wu=Du,_u=class _u extends Vu{};o(_u,"ObjectPageCustomSectionView"),h([T({manifest:{path:da}}),C({since:"1.52.0"})],_u.prototype,"viewName",2),h([T({manifest:{path:da}}),C({since:"1.52.0"})],_u.prototype,"type",2);var Mu=_u;var zi=ie(le());var d1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),zi.DefinitionName.Table];return zt(e,s)},"getTableSectionControlId"),g1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"FormGroup"];return zt(e,s)},"getFormSectionControlId"),m1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Chart"];return zt(e,s)},"getChartSectionControlId"),hc=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Section"];return zt(e,s)},"getSectionControlId"),h1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"SubSection"];return zt(e,s)},"getSubSectionControlId"),y1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"ContactsList"];return zt(e,s)},"getContactSubSectionControlId"),eh=class eh{};o(eh,"ObjectPageSectionV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:gt})],eh.prototype,"visible",2);var XE=eh,th=class th{};o(th,"ObjectPageSectionFormV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:gt})],th.prototype,"visible",2);var QE=th,nh=class nh{};o(nh,"ObjectPageSectionChartV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:gt})],nh.prototype,"visible",2);var qE=nh,ih=class ih{};o(ih,"ObjectPageSectionTableV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:gt})],ih.prototype,"visible",2);var zE=ih,rh=class rh{};o(rh,"ObjectPageSectionAddressV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:gt})],rh.prototype,"visible",2);var YE=rh,oh=class oh{};o(oh,"ObjectPageSectionContactV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:gt})],oh.prototype,"visible",2);var JE=oh,ah=class ah{};o(ah,"ObjectPageSubSectionV2"),h([T({flex:{controlId:h1,controlType:o(()=>zi.ControlType.SubSection,"controlType")},generate:gt})],ah.prototype,"visible",2);var ZE=ah,sh=class sh{};o(sh,"ObjectPageSubSectionFormV2"),h([T({flex:{controlId:g1,controlType:o(()=>zi.ControlType.Group,"controlType")},generate:gt})],sh.prototype,"visible",2);var eA=sh,ch=class ch{};o(ch,"ObjectPageSubSectionChartV2"),h([T({flex:{controlId:m1,controlType:o(()=>zi.ControlType.SmartChart,"controlType")},generate:gt})],ch.prototype,"visible",2);var tA=ch,lh=class lh{};o(lh,"ObjectPageSubSectionContactV2"),h([T({flex:{controlId:y1,controlType:o(()=>zi.ControlType.SubSection,"controlType")},generate:gt})],lh.prototype,"visible",2);var nA=lh,fh=class fh{};o(fh,"ObjectPageSubSectionTableV2"),h([T({flex:{controlId:d1,controlType:o(()=>zi.ControlType.SmartTable,"controlType")},generate:gt})],fh.prototype,"visible",2);var iA=fh;var uh=class uh{};o(uh,"ObjectPageChart"),h([T({manifest:{path:M0}}),C({since:"1.78.0"})],uh.prototype,"variantManagement",2);var rA=uh,ph=class ph{};o(ph,"GlobalChartSettings"),h([T({manifest:{path:o(t=>Ni(t)+"/chartSettings","path")}}),C({since:"1.78.0"})],ph.prototype,"variantManagement",2);var oA=ph;var dr=ie(le());var yc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=dr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=qn(a[0],r),zt(e,a)},"getSmartTableControlId"),ku=class ku{};o(ku,"QuickVariantSelectionOP"),h([T({manifest:{path:o((t,n,i)=>oo(t,n,i)+dr.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],ku.prototype,"showCounts",2),h([T({manifest:{path:o((t,n,i)=>oo(t,n,i)+dr.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],ku.prototype,"variants",2);var aA=ku,dh=class dh{};o(dh,"Fields4DialogOP"),h([T({manifest:{path:o((t,n,i)=>kr(t,n,i)+"/createWithParameterDialog","path"),export:Vm}}),C({since:"1.77.0"})],dh.prototype,"fields",2);var sA=dh,Ei=class Ei{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(Ei,"CommonTableSettingsForSections"),h([T({manifest:{key:"createWithParameterDialog",path:kr,import:_m}}),C({since:"1.77.0"})],Ei.prototype,"createWithParameterDialog",2),h([T({flex:{controlId:yc,controlType:o(()=>dr.ControlType.SmartTable,"controlType")}}),C({since:"1.28.0"})],Ei.prototype,"editable",2),h([T({flex:{controlId:yc,controlType:o(()=>dr.ControlType.SmartTable,"controlType")}}),C({since:"1.95.0"}),Le("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Ei.prototype,"showPasteButton",2),h([T({manifest:{path:kr}}),C({since:"1.54.0"})],Ei.prototype,"multiSelect",2),h([T({manifest:{path:kr}}),C({since:"1.70.0"})],Ei.prototype,"selectAll",2),h([T({manifest:{path:kr}}),C({since:"1.70.0"})],Ei.prototype,"selectionLimit",2),h([T({manifest:{path:oo}}),C({since:"1.63.0"})],Ei.prototype,"quickVariantSelection",2),h([T({flex:{controlId:yc,controlType:o(()=>dr.ControlType.SmartTable,"controlType")}}),C({since:"1.26.0"})],Ei.prototype,"useExportToExcel",2),h([T({flex:{controlId:yc,controlType:o(()=>dr.ControlType.SmartTable,"controlType")}}),C({since:"1.50.0"})],Ei.prototype,"exportType",2),h([T({manifest:{path:oo}}),C({since:"1.48.5"}),Le("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Ei.prototype,"createMode",2),h([T({manifest:{path:oo}}),C({since:"1.61.0"})],Ei.prototype,"disableDefaultInlineCreateSort",2),h([T({manifest:{path:kr}}),C({since:"1.78.0"})],Ei.prototype,"variantManagement",2),h([jt("toolBar")],Ei.prototype,"toolBar",2);var vc=Ei,ls=class ls extends vc{};o(ls,"ObjectPageResponsiveTable"),h([T({manifest:{path:kr}})],ls.prototype,"type",2),h([T({flex:{controlId:yc,controlType:o(()=>dr.ControlType.Table,"controlType")}})],ls.prototype,"includeItemInSelection",2),h([T({flex:{controlId:yc,controlType:o(()=>dr.ControlType.Table,"controlType")},generate:gt}),C({since:"1.52.0"})],ls.prototype,"popinLayout",2),h([T({manifest:{path:kr}}),C({since:"1.77.0"})],ls.prototype,"inlineDelete",2),h([T({flex:{controlId:yc,controlType:o(()=>dr.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],ls.prototype,"growingThreshold",2);var Tc=ls,ju=class ju extends vc{};o(ju,"ObjectPageAnalyticalTable"),h([T({manifest:{path:kr}})],ju.prototype,"type",2),h([T({manifest:{path:oo}}),C({since:"1.67.0"})],ju.prototype,"condensedTableLayout",2);var cA=ju,Uu=class Uu extends vc{};o(Uu,"ObjectPageGridTable"),h([T({manifest:{path:kr}})],Uu.prototype,"type",2),h([T({manifest:{path:oo}}),C({since:"1.67.0"})],Uu.prototype,"condensedTableLayout",2);var lA=Uu,$u=class $u extends vc{};o($u,"ObjectPageTreeTable"),h([T({manifest:{path:kr}})],$u.prototype,"type",2),h([T({manifest:{path:oo}}),C({since:"1.67.0"})],$u.prototype,"condensedTableLayout",2);var fA=$u,ya=class ya{};o(ya,"GlobalTableSettings"),h([T({manifest:{path:oc}}),C({since:"1.70.0"})],ya.prototype,"selectAll",2),h([T({manifest:{path:oc}}),C({since:"1.78.0"})],ya.prototype,"variantManagement",2),h([T({manifest:{path:oc}})],ya.prototype,"type",2),h([T({manifest:{path:oc}}),C({since:"1.54.0"})],ya.prototype,"multiSelect",2),h([T({manifest:{path:oc}}),C({since:"1.67.0"})],ya.prototype,"condensedTableLayout",2),h([T({manifest:{path:oc}}),C({since:"1.77.0"})],ya.prototype,"inlineDelete",2);var uA=ya;var v1=ie(le());var AK=o((e,t,n,i,r)=>{let{actionId:a}=Qi(n),s=qn(n[1],r);return`${e}${s}::action::${Ki(a).replace(":2f","::")}`},"getActionButtonId"),Bu={controlId:AK,controlType:o(()=>v1.ControlType.Button,"controlType")},fs=class fs{};o(fs,"ObjectPageToolBarAction"),h([T({flex:Bu,generate:gt})],fs.prototype,"visible",2),h([T({flex:Bu})],fs.prototype,"tooltip",2),h([T({flex:Bu})],fs.prototype,"icon",2),h([T({flex:Bu})],fs.prototype,"activeIcon",2),h([T({flex:Bu})],fs.prototype,"type",2);var pA=fs;var Li=ie(le());function gA(e,t,n,i){if(t.controlType===Li.ControlType.TableColumn||t.controlType===Li.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===Li.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Li.VOCWITHCOLONS),u=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(u!=null&&u.startsWith("DataField")?u=u==null?void 0:u.replace("/",":2f"):u=u==null?void 0:u.replace("/","_"),u!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(gA,"addFlexChangeToConfigTableColumn");function gh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Li.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(gh,"addFlexChangeToConfigTable");function mh(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,y,A;let s=io(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(g=s.content)!=null&&g.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},u;if(s.controlType===Li.ControlType.TableColumn)u=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===Li.v2.TableTypeV2.ResponsiveTable)&&!((y=l.controlId)!=null&&y.includes(Li.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Li.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;u=(A=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:A.properties[l.propertyId]}u&&gA(t.table,l,n,i)})}o(mh,"importFlexChangesOfColumn");function us(e){return e.replace("/","::")}o(us,"convertActionKey");function mA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(mA,"convertSelector");function SK(e,t,n,i){var a,s,l,u;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((u=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:u.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}o(SK,"addSmartFilterBarFlex");function PK(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=Ki((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let u=a.split(":::"),p=u.find(y=>y.startsWith("sSemanticObject")),g=u.find(y=>y.startsWith("sAction")),m=g.split("sAction::")[1].replace(":2f","::");if(p){let y=`${p.split("::")[1]}::${m}`,A=`${u[0]}:::${p}:::${g}`;i.set(y,r),i.set(r,A)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(PK,"filterActions");function CK(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(CK,"addColumnActionConfigPart");function xK(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}o(xK,"getActionId");function IK(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var u,p;let l=PK(s.name,i);if(l.has(s.id)){let g=l.get(s.id),m=(u=g.split("<")[1])==null?void 0:u.split(">")[0];s.name==="TableColumnAction"&&CK(s,e,m);let y=s.configPart[m];((p=i.definitions[g])==null?void 0:p.properties[t])&&y&&(y[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(IK,"addActionFlex");function OK(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=Yn(e[lt.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[lt.PropertyName.chart],t):e[lt.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(OK,"addSmartChartFlex");function hh(e,t,n,i){var r,a;try{let s=io(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(lt.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(lt.PageTypeV2.AnalyticalListPage))switch(s.controlId=mA(s.controlId),s.controlType){case lt.ControlType.SmartFilterBar:{SK(e,l,s,n);break}case lt.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case lt.ControlType.Button:{let u=xK(s);u&&IK(e,l,s,n,u);break}case lt.ControlType.SmartChart:{OK(e,l,s,n);break}default:break}}catch(s){se(i,{severity:lt.LogSeverity.Error,message:q.t("FLEXERROR")},...s)}}o(hh,"addFlex");function NK(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let r in i.tableSettings)i[r]=i.tableSettings[r];delete i.tableSettings}}}o(NK,"adjustQuickVariantSelectionX");function Dn(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=Yn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=Bn(t,g),ml(p,s,u,e),Wg(l,s,g,r)}NK(u,e)}}o(Dn,"transferSettingsOfObject");function yh(e,t){var r,a,s,l,u,p,g,m,y;let n=e[lt.ManifestSection.generic].pages[t],i=lt.v2.TableTypeV2.ResponsiveTable;return(r=e[lt.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[lt.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[lt.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.tableSettings)==null?void 0:g.type)||((m=n.component)==null?void 0:m.settings.tableType):((y=n.component)==null?void 0:y.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=lt.v2.TableTypeV2.AnalyticalTable),i}o(yh,"determineTableType");function T1(e,t,n,i,r,a,s){var l,u;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,g=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let y={...(l=e._attributes)!=null&&l.id?{id:(u=e._attributes)==null?void 0:u.id}:{},...m?{text:m}:{},...g,...g.columnKey?{columnKey:g.columnKey}:{},...g.columnIndex?{columnIndex:Number(g.columnIndex)}:{},...g.leadingProperty?{leadingProperty:g.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(y.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(y)}}o(T1,"evaluateFragmentColumn");function LK(e,t,n,i){let r;if(e===lt.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===lt.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(LK,"determineCellsFragmentName");function RK(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,b1.xml2json)(e[0].fileContent,{compact:!0}))[Vo];try{let g=vu(p);if(g)if((l=t[lt.PropertyName.table])!=null&&l.columns||(t[lt.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)T1(m,n,i,r,t,a,s);else T1(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(RK,"analyzeFilteredFragments");function FK(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[u,p]=l,g=l[2];if(u&&p===t){let m=e[s].type?e[s].type.toLowerCase():"xml",y=e[s].fragmentName;if(!y)continue;let A=LK(u,e,p,g),b=y.split(".");y=b[b.length-1]+lt.FRAGMENTNAMEPART+m;let O=i.fragments.filter(D=>D.dataSourceUri.endsWith(y));try{RK(O,n,e,s,g,u,A)}catch(D){i.logger.error(D.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(D=>{mh(i,n,D.id,D,r)})}}}o(FK,"processViewExtensions");function _l(e,t,n,i,r,a="LineItems"){var s,l,u;if(t.fragments&&(u=(l=(s=t.manifest[lt.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&u["sap.ui.viewExtensions"]){let p=lt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),g=t.manifest[lt.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!g)return;let m=r&&r.target?r.target:n.entitySet;FK(g,m,e,t,a)}}o(_l,"addFragments");function vh(e,t,n){if(e.header={actions:{}},n[lt.DefinitionName.HeaderActionsStandard]){let i=n[lt.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(lt.PageTypeV2.ListReport,r,{})}}o(vh,"importHeaderActions");var Qt=ie(le());var A1=ie(le());var hA={};Ws(hA,{ANNOERR:()=>JK,ANNOTATIONFILE:()=>ZK,COMPONENTNOTDEFINED:()=>e3,CONTEXTPATHCOULDNOTBERESOLVED:()=>QK,ENTITYSETNOTFOUND:()=>XK,FLEXERROR:()=>f3,INCONSISTENTSCHEMA:()=>T3,INVALIDANCHOR:()=>u3,INVALIDEXTENSION:()=>p3,INVALIDTARGETDEFINITION:()=>g3,MACROS_ANNOTATION_ERROR:()=>y3,NOALP:()=>zK,NOANNOTATIONFORPATH:()=>WK,NOBASEPATH:()=>VK,NOCHARTS:()=>r3,NOENTITYSET:()=>UK,NOENTITYTYPE4SET:()=>$K,NOFE:()=>MK,NOFRAGMENT:()=>d3,NOGENERICSCHEMA:()=>kK,NOID4SECTION:()=>m3,NOLINEITEMANDCHARTS:()=>o3,NOLINEITEMFORPATH:()=>KK,NOLINEITEMS:()=>i3,NOLR:()=>qK,NOPAGEFORENTITYSET:()=>jK,NOPAGES:()=>wK,NOPRESENTATIONVARIANT:()=>BK,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>HK,NOPRESENTATIONVARIANTFORSPV:()=>GK,NOROUTING:()=>t3,NOROUTINGID:()=>l3,NOTARGET:()=>c3,NOTARGETS:()=>s3,NOTEMPLATE:()=>YK,NOUIANNOTATIONS:()=>n3,NOVISUALIZATIONS:()=>a3,TYPEERROR:()=>v3,UNKNOWNMINUI5VERSION:()=>_K,WRONGMINUI5VERSION:()=>DK,XMLPARSEFAILURE:()=>h3,default:()=>b3});var DK="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",_K="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",VK="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",wK="No pages found in manifest for app with id '{{- appId}}'",MK="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",kK="No generic schema found while generating page schema for {{- pageType}}",jK="No page found in manifest for entitySet '{{- entitySet}}'",UK="No entitySet defined for page '{{- pageName}}'",$K="No entityType could be found for the given entity set '{{- entitySetName}}'",BK="No PresentationVariant defined for '{{- key}}'",HK="No PresentationVariant found for default SelectionPresentationVariant",GK="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",WK="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",KK="No line item annotation found for path '{{- annotationPath}}'",XK="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",QK="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",qK="No page found in manifest for list report",zK="No page found in manifest for analytical list page",YK="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",JK="Error while parsing annotation files",ZK="Annotation file: '{{- file}}'",e3="Component name is not defined for page '{{- pageName}}'",t3="Incomplete manifest definition: no routing defined",n3="No UI Annotation defined for entity type '{{- entityType }}'",i3="UI.LineItem annotation has not been defined",r3="UI.Chart annotation has not been defined",o3="Neither UI.LineItem nor UI.Chart annotation has been defined",a3="Empty Collection for Visualizations",s3="Incomplete manifest definition: no targets defined",c3="Invalid reference: annotation target '{{- target}}' not found",l3="No page found in manifest for routingId '{{- routingId}}'",f3="Error while parsing flex change",u3="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",p3="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",d3="fragmentName is undefined for columnKey '{{- columnKey}}'",g3="Invalid routing target definition in manifest: '{{- target}}'",m3="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",h3="Parsing of XML file failed with error - {{- error}}",y3="Error during resolving annotation for '{{- control}}'",v3="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",T3="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",b3={WRONGMINUI5VERSION:DK,UNKNOWNMINUI5VERSION:_K,NOBASEPATH:VK,NOPAGES:wK,NOFE:MK,NOGENERICSCHEMA:kK,NOPAGEFORENTITYSET:jK,NOENTITYSET:UK,NOENTITYTYPE4SET:$K,NOPRESENTATIONVARIANT:BK,NOPRESENTATIONVARIANTFORDEFAULTSPV:HK,NOPRESENTATIONVARIANTFORSPV:GK,NOANNOTATIONFORPATH:WK,NOLINEITEMFORPATH:KK,ENTITYSETNOTFOUND:XK,CONTEXTPATHCOULDNOTBERESOLVED:QK,NOLR:qK,NOALP:zK,NOTEMPLATE:YK,ANNOERR:JK,ANNOTATIONFILE:ZK,COMPONENTNOTDEFINED:e3,NOROUTING:t3,NOUIANNOTATIONS:n3,NOLINEITEMS:i3,NOCHARTS:r3,NOLINEITEMANDCHARTS:o3,NOVISUALIZATIONS:a3,NOTARGETS:s3,NOTARGET:c3,NOROUTINGID:l3,FLEXERROR:f3,INVALIDANCHOR:u3,INVALIDEXTENSION:p3,NOFRAGMENT:d3,INVALIDTARGETDEFINITION:g3,NOID4SECTION:m3,XMLPARSEFAILURE:h3,MACROS_ANNOTATION_ERROR:y3,TYPEERROR:v3,INCONSISTENTSCHEMA:T3};function E1(e){e.addResourceBundle(e.language,"translation",hA)}o(E1,"initI18n");function nn(e="en"){q.init({resources:{en:{translation:A1.default}},lng:e,fallbackLng:"en",joinArrays:`
293
293
 
294
- `}),E1(q)}o(nn,"initI18n");var $t=ie(le());function bc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(ca((r=s.component)==null?void 0:r.name)===$t.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=bc(s.pages,t,n),i))return n.unshift(a),i}}o(bc,"findObjectPageV2");function Vl(e,t){var n;for(let i in e){let r=e[i];if(ca((n=r.component)==null?void 0:n.name)===$t.PageTypeV2.ListReport)return t.push(i),r}}o(Vl,"findListReportPageV2");function wl(e){if(!e.manifest[$t.ManifestSection.generic]){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOFE"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}let t=e.manifest[$t.ManifestSection.generic].pages;if(!t){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}return t}o(wl,"getV2Pages");function Ml(e,t,n){var i;if(!e){se(t,{severity:$t.LogSeverity.Error,message:q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;se(t,{severity:$t.LogSeverity.Error,message:q.t("NOENTITYSET",{pageName:r}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}}o(Ml,"checkV2Page");function kl(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),ca((i=a.component)==null?void 0:i.name)===$t.PageTypeV2.AnalyticalListPage)return a}se(n,{severity:$t.LogSeverity.Error,message:q.t("NOALP"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}o(kl,"findAnalyticalListPage");function yA(e,t){let n=e.split("|");return $t.v2.SectionPosition[n[0]]&&n[1]===t}o(yA,"isAssociatedCustomSection");function S1(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${$t.v2.SAPUI5_VIEW_EXTENSION}/${$t.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)yA(r,t)&&(i[r]=n[r]);return i}o(S1,"findCustomSectionExtensions");function E3(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(E3,"removeEmptySettingsOfFooter");function A3(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(A3,"removeEmptySettingsOfFilterBar");function S3(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(S3,"removeEmptySettingsOfToolBar");function Th(e){S3(e),A3(e),E3(e)}o(Th,"removeEmptySettings");var TA={};Ws(TA,{AnalyticalListPage:()=>$r,ListReport:()=>lo,ObjectPage:()=>oi,OverviewPage:()=>Yt,exportFilterSettings:()=>x1,importDateSettingsOVP:()=>P1,importFilterSettings:()=>C1});var bh=ie(le());var $r=class{};o($r,"AnalyticalListPage"),h([T({flex:{controlId:$g,controlType:o(()=>bh.ControlType.DynamicPage,"controlType")}})],$r.prototype,"fitContent",2),h([jt("table")],$r.prototype,"table",2),h([jt("template::SmartFilterBar")],$r.prototype,"filterBar",2),h([jt("analyticalListPageChart")],$r.prototype,"chart",2),h([jt("analyticalListFooter")],$r.prototype,"footer",2),$r=h([Vr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:bh.v2.FE_TEMPLATE_V2_ALP})],$r);var Hu=ie(le());var lo=class{};o(lo,"ListReport"),h([T({flex:{controlId:$g,controlType:o(()=>Hu.ControlType.DynamicPage,"controlType")}})],lo.prototype,"fitContent",2),h([jt("listReportFilter")],lo.prototype,"filterBar",2),h([jt("listReport")],lo.prototype,"table",2),h([jt("listReportFooter")],lo.prototype,"footer",2),lo=h([Vr({id:Hu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Hu.v2.FE_TEMPLATE_V2_LIST_REPORT})],lo);var vA=ie(le());var oi=class{};o(oi,"ObjectPage"),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.52.0"})],oi.prototype,"showConfirmationOnDraftActivate",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.52.1"})],oi.prototype,"hideChevronForUnauthorizedExtNav",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.48.0"})],oi.prototype,"allowDeepLinking",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.52.0"})],oi.prototype,"navToListOnSave",2),h([jt("header")],oi.prototype,"header",2),h([jt("sections")],oi.prototype,"sections",2),h([jt("layout")],oi.prototype,"layout",2),h([T({manifest:{path:o(t=>ym(t),"path")}}),C({since:"1.77.0"})],oi.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([T({manifest:{path:o(t=>Ni(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),C({since:"1.78.0"})],oi.prototype,"globalChartSettings",2),h([T({manifest:{path:o(t=>Ni(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:zs}}),C({since:"1.71.0"})],oi.prototype,"globalTableSettings",2),oi=h([Vr({id:vA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:vA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],oi);function P3(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(P3,"importDateSettingsFieldsOVP");function P1(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&P3(e,t),t}o(P1,"importDateSettingsOVP");function C1(e){let t={};return t.dateSettings=P1(e.filterSettings),t}o(C1,"importFilterSettings");function C3(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(C3,"exportFilterFields");function x1(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&C3(t,n,e))}o(x1,"exportFilterSettings");var Yt=class{};o(Yt,"OverviewPage"),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"globalFilterModel",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"globalFilterEntityType",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"globalFilterEntitySet",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"showBasicSearch",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"disableErrorPage",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"smartVariantRequired",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"bHeaderExpanded",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"containerLayout",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"showDateInRelativeFormat",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"disableTableCardFlexibility",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"enableLiveFilter",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"enableLazyRendering",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"refreshStrategyOnAppRestore",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"considerAnalyticalParameters",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"refreshIntervalInMinutes",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"useDateRangeType",2),h([T({manifest:{path:o(()=>bn(),"path"),import:C1,export:x1}}),C({since:"1.80.0"})],Yt.prototype,"filterSettings",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"dataLoadSettings",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"resizableLayout",2),Yt=h([Vr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Yt);var bA=class bA{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(bA,"MetadataFactory");var jl=bA;var Zn=ie(le());var x3={},I3={Table:cc,ResponsiveTableWithMultiSelect:cc,ResponsiveTableWithInlineDelete:cc},O3={[Zn.v2.CardSettingsType.listCardSettings]:Cl,[Zn.v2.CardSettingsType.listCardSettingsv4]:Cl,[Zn.v2.CardSettingsType.analyticalCardSettings]:xl,[Zn.v2.CardSettingsType.analyticalCardSettingsv4]:xl,[Zn.v2.CardSettingsType.stackCardSettings]:uu,[Zn.v2.CardSettingsType.linkListCardSettings]:pu,[Zn.v2.CardSettingsType.tableCardSettings]:Il,[Zn.v2.CardSettingsType.tableCardSettingsv4]:Il},N3={[Zn.SAPUI5_VIEW_CLASS]:Mu,[Zn.SAPUI5_FRAGMENT_CLASS]:wu,Table:Tc,ObjectPageResponsiveTableWithMultiSelect:Tc,ObjectPageResponsiveTableWithInlineDelete:Tc},L3={[Zn.PageTypeV2.AnalyticalListPage]:x3,[Zn.PageTypeV2.ListReport]:I3,[Zn.PageTypeV2.ObjectPage]:N3,[Zn.PageTypeV2.OverviewPage]:O3},EA=class EA extends jl{constructor(){super(dA,TA,L3)}};o(EA,"MetadataInstanceFactoryV2");var Ri=EA;function R3(e,t,n,i,r){if(e.filterBar=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar),Dn(e.filterBar,n.manifest,i[Qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),Dn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(R3,"importFilterBar");function AA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=io(s),u={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(g=l.content)!=null&&g.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};gh(n.table,u,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&mh(e,n,s)}o(AA,"importFlexChangesOfTableAndColumns");function F3(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Qg]&&t[qg]&&(a=JSON.parse(JSON.stringify(t[Qg])),a.properties={...a.properties,...t[qg].properties}),Dn(n.table,i.manifest,a,r,i.logger),AA(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&se(i.logger,{severity:Qt.LogSeverity.Error,message:q.t("NOLINEITEMS")})}o(F3,"importTable");function D3(e,t,n,i){let r=e.jsonSchema.definitions,a=yh(e.manifest,i);if(t.table=n.createInstance(Qt.PageTypeV2.ListReport,a,t.table),vh(t,n,r),F3(a,r,t,e,i),t.table.toolBar=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,r[Qt.DefinitionName.ToolBarLR],i,e.logger),r[Qt.DefinitionName.ActionsLR])for(let l in r[Qt.DefinitionName.ActionsLR].properties){let u=us(l);t.table.toolBar.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.Action),Dn(t.table.toolBar.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}R3(t,n,e,r,i),t.footer={actions:{}};let s=r[Qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=us(l);t.footer.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.FooterAction),Dn(t.footer.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}}o(D3,"addSettings");function Eh(e){if(nn(),!wl(e))return;let n=new Ri,i=n.createPageInstance(Qt.PageTypeV2.ListReport),r=[],a=Vl(e.manifest[Qt.ManifestSection.generic].pages,r);if(Ml(a,e.logger,a==null?void 0:a.entitySet),!!a)return D3(e,i,n,r[0]),e.flex.forEach(s=>{io(s)&&hh(i,s,e.jsonSchema,e.logger)}),_l(i,e,a,Qt.PageTypeV2.ListReport),Th(i),i}o(Eh,"createListReportConfig");var Ct=ie(le());function _3(e,t,n,i){var p,g;let r=yh(e.manifest,i),a=e.jsonSchema.definitions;vh(t,n,a),t.table=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(Dn(t.table,e.manifest,s,i,e.logger),AA(e,s,t),t.table.toolBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,a[Ct.DefinitionName.ToolBar],i,e.logger),a[Ct.DefinitionName.ActionsLR])for(let m in a[Ct.DefinitionName.ActionsLR].properties){let y=us(m);t.table.toolBar.actions[y]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.Action),Dn(t.table.toolBar.actions[y],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Dn(t.filterBar,e.manifest,a[Ct.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[Ct.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[Ct.DefinitionName.SelectionFields].properties;for(let y in m){let A=y;t.filterBar.selectionFields[A]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),Dn(t.filterBar.selectionFields[A],e.manifest,a.SelectionFieldDateSettings,i,e.logger,A)}}t.chart=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Dn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[Ct.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let y=us(m);t.footer.actions[y]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.FooterAction),Dn(t.footer.actions[y],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[Ct.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:g.keyPerformanceIndicators;u&&Object.keys(u).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Dn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(_3,"addSettings");function Ah(e){if(nn(),!wl(e))return;let n=new Ri,i=n.createPageInstance(Ct.PageTypeV2.AnalyticalListPage),r=[],a=kl(e.manifest[Ct.ManifestSection.generic].pages,r,e.logger);if(Ml(a,e.logger,a==null?void 0:a.entitySet),!!a)return _3(e,i,n,r[0]),e.flex.forEach(s=>{io(s)&&hh(i,s,e.jsonSchema,e.logger)}),_l(i,e,a,Ct.PageTypeV2.AnalyticalListPage),Th(i),i}o(Ah,"createAnalyticalListPageConfig");var be=ie(le());var Gu=require("@sap-ux/vocabularies-types/vocabularies/UI");var w3=[be.ControlType.Avatar,be.ControlType.ObjectPageLayout,be.ControlType.DynamicPage];function M3(e,t){let n=e[0].split("--"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Gu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${be.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Gu.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}o(M3,"getSingleSelectorIdPart");function k3(e){let t,n=e.split(":::");if(n.length===1)t=M3(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Gu.UIAnnotationTerms.LineItem}`,`/@${Gu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(k3,"getFacetID");function j3(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=io(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(be.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let y=m[1].replace(/:3a:3a/g,"::");r.exec(y)!==null&&(y=y.split("template:::TableColumn:::")[1]);let A=k3(y);y=mA(y).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${y}::${g.content.property}`]={controlId:y,propertyId:g.content.property,facetId:A,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){se(n,{severity:be.LogSeverity.Error,message:q.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}o(j3,"prepareFlexChanges");var U3=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(U,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace(U,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function $3(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&gA(i,t,r)}o($3,"addFlexChangeToColumns");function I1(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,be.VOCWITHSLASH)];for(let u in e){let p=e[u],g=p.propertyId===t,m=t==="columns"&&p.controlType===be.ControlType.TableColumn;(g||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?$3(a,p,r.properties,n):gh(n,p,r))}}o(I1,"importFlexChangesOfTable");function B3(e,t){return e.facetId==="template"&&t}o(B3,"isStandardActionFlexChange");var O1=o((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function H3(e,t,n,i,r,a){var O;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===be.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(be.ACTIONTITLEPREFIX))&&!r&&s,m=r&&O1(u,r.split("::"))&&s,y=e.title&&O1(u,e.title.split("::"),!0),A=!t.facetId&&w3.includes(t.controlType),b=B3(t,l);return p||g||m||y||A||b}o(H3,"matchSelector");function G3(e,t,n,i,r,a){var u;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let g=n[p];if(g.propertyId!==i||g.controlType!==((u=e.properties[g.propertyId])==null?void 0:u[be.SchemaTag.controlType]))continue;H3(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(G3,"importFlexChanges");function W3(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(se(n.logger,{severity:be.LogSeverity.Warning,message:Gg(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(W3,"checkDeprecatedProperties");function K3(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=Bn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u));let g=e.manifest.import;if(g&&typeof g=="function"){let m=g(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return W3(p,a,n,u),p}o(K3,"importManifestSetting");function Fi(e,t,n,i,r,a){var u,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let g in n.properties||n){let m=Yn(t,g);if(g==="columns"||m!=null&&m.flex)if((u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSectionTableV2")||(p=r==null?void 0:r.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(g==="columns"){let y=n.properties[g].$ref.split(U)[1],A=e.jsonSchema.definitions[y];I1(i.flexChanges,g,t,r,A,l)}else I1(i.flexChanges,g,t,r,n);else{let y=(r==null?void 0:r.title)||(r==null?void 0:r.id);G3(n,t,i.flexChanges,g,y,a)}else m!=null&&m.manifest&&K3(m,i.pageKeys,e,t,g,s,r)}}o(Fi,"transferSettingsAndFlexChanges");function L1(e,t,n,i){let r=Ki(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${u0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${zg}${r}`;break}}return r.replace(/@/g,"")}o(L1,"getActionId");function X3(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split(U)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=L1(s,a,"","");e.actions[a]=i.factory.createInstance(be.PageTypeV2.ObjectPage,l,{}),Fi(n,e[be.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(X3,"fillStandardActions");function Sh(e,t,n,i,r,a){var l;n[be.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};a&&(u.id=a);for(let p in t){let g=us(p),m=L1(s,g,r,a);m&&(n[be.PropertyName.actions][g]=i.factory.createInstance(be.PageTypeV2.ObjectPage,s),Fi(e,n[be.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[be.PropertyName.actions])!=null&&l[g]&&Object.keys(n[be.PropertyName.actions][g]).length===0&&delete n[be.PropertyName.actions][g]}}X3(n,t,e,i),Object.keys(n[be.PropertyName.actions]).length===0&&delete n[be.PropertyName.actions]}o(Sh,"fillActions");function Q3(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(be.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(be.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Fi(e,i[t.id].form.fields[l],e.jsonSchema.definitions[be.DefinitionName.Field],r,{},u),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(Q3,"fillFields");function q3(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}o(q3,"prepareTableSchema");function z3(e,t,n,i,r){var l,u;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",g=r.factory.createInstance(be.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(be.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][be.PropertyName.table]=g;let m=e.jsonSchema.definitions,y=q3(p,t,m);Fi(e,i[t.id],t.schema,r,{title:t.title}),Fi(e,i[t.id][be.PropertyName.table],y,r,t);let A=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(A!=null&&A.properties){let b=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");Sh(e,A.properties,i[t.id][be.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][be.PropertyName.table].toolBar).length===0&&delete i[t.id][be.PropertyName.table].toolBar}}o(z3,"fillTableInConfig");function Y3(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Kg(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};_l(n[t],e,i,be.PageTypeV2.ObjectPage,l,r)}}o(Y3,"fillCustomColumnsInConfig");function J3(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(be.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][be.PropertyName.chart]=r.factory.createInstance(be.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(Fi(e,i[t.id],t.schema,r,{title:t.title}),Fi(e,i[t.id][be.PropertyName.chart],e.jsonSchema.definitions[be.DefinitionName.ObjectPageChart],r,t))}o(J3,"fillChartSection");function Z3(e,t,n,i){n[t.id]=i.factory.createInstance(be.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Fi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(Z3,"fillHeaderSection");function eX(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(be.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Fi(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&Sh(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&Q3(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}o(eX,"fillFormSection");function N1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(be.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Fi(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,SA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(N1,"fillSubSection");function SA(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:U3(t[l]),schema:t[l],title:vb(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],z3(e,p,n,i,r),Y3(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],J3(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],eX(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],N1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],Z3(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],N1(e,p,n,i,r))}}o(SA,"fillSectionsInConfig");function tX(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(be.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(be.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Fi(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(tX,"fillCustomSectionsInConfig");function nX(e,t){var g,m;let n=t.factory.createPageInstance(be.PageTypeV2.ObjectPage);Fi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(be.PageTypeV2.ObjectPage,be.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Fi(e,n.globalTableSettings,i[be.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(be.PageTypeV2.ObjectPage,be.DefinitionName.ObjectPageHeader);let r=i[be.DefinitionName.ObjectPageHeader]?i[be.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Fi(e,n.header,r,t);let a=i[be.DefinitionName.ObjectPageHeaderActions];a&&Sh(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[be.DefinitionName.FooterActions];s&&Sh(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(be.PageTypeV2.ObjectPage,"ObjectPageLayout"),Fi(e,n.layout,i[be.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[be.DefinitionName.HeaderSections];if(l){let y=(g=t.v2Page.component)==null?void 0:g.settings;SA(e,l.properties,y,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[be.DefinitionName.Sections];if(u){let y=(m=t.v2Page.component)==null?void 0:m.settings;SA(e,u.properties,y,n.sections,t)}let p=S1(e.manifest,e.entitySet);return tX(p,n,t,i,e),n}o(nX,"fillConfig");function Ph(e){nn();let t=wl(e);if(!t)return;let n=e.entitySet,i=[],r=bc(t,e.entitySet,i);if(Ml(r,e.logger,n),!r)return;let a=j3(e.flex,n),s=new Ri;return nX(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(Ph,"createObjectPageConfigV2");function xh(e,t){var n,i;return(n=e.component)!=null&&n.name?kg(ca((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(xh,"generateId");function iX(e,t,n,i){e.navigation={};let r=R1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=xh(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(iX,"getPageConfigsAndNavigations");function R1(e,t){var i;let n={};for(let r in e){let a=e[r],s=xh(a,r);if(!s)continue;let l={pageType:ca((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let u=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(u)if(l.pageType===_n.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Eh(p)}else if(l.pageType===_n.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Ah(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=Ph(p)}a.pages&&iX(l,a,t,n)}return n}o(R1,"getPagesAndConfigs");var PA=class PA extends qa{constructor(t){nn();let n;t.manifest[_n.ManifestSection.generic]?n=t.manifest[_n.ManifestSection.generic].pages:se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOFE"),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}}),n||se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&xh(n[i],i),a=new za,s=Dt(_n.SchemaType.Application),l=t.appSchemas[s.filename];Dn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,R1(n,t),a)}};o(PA,"V2AppProvider");var Ch=PA;function Wu(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||se(n,{severity:_n.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:_n.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=xh(l,s);i[u]=l}if(t===_n.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Wu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(Wu,"getPages");var Ac=ie(le());var ko=ie(le());var xA=ie(UT());var _t=ie(le());var rX=["colorPalette","tabs"];function oX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(oX,"createCard");function F1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),F1(e,n.join("|"))}return t}o(F1,"findAvailableId");function Ku(e,t,n,i,r,a,s){i!=null&&i.properties&&CA(e,t,n,i.properties,r,a,s)}o(Ku,"transferManifestEntriesOVP");function Ec(e,t,n,i){return e.createInstance(_t.PageTypeV2.OverviewPage,i,n,t)}o(Ec,"assignReflectMetadataRules");function aX(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split(U),r=e.appSchema.definitions[i[1]];t=Ec(e.factory,i[1],t,"CustomCard"),Ku(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(aX,"processAnyOfDefinitionsOfOVP");function sX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!rX.includes(i)?t[i]=(0,xA.default)(t[i]||{},r||{},{arrayMerge:mb}):t[i]=r}o(sX,"checkSyncRuleForExport");function cX(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in _t.v2.CardSettingsType||n==="settings")l.settings=(0,xA.default)(l.settings||{},r||{},{arrayMerge:mb});else if(r!==void 0){let u=e.manifest.export;sX(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(cX,"transferToManifest");function lX(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(_t.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=Ec(e.factory,i[0],e.currentObject[t],"CustomCard"),oX(t,e.exportResults.manifest[_t.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,Ku(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[_t.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[_t.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated)})}o(lX,"transferCards");function fX(e,t){if(t==="cards")lX(e);else{let n=Ro(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,_t.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(U);e.currentObject=Ec(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Ku(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],CA(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],CA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(fX,"exportOfObject");function CA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!pl(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=Yn(e,l),g={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(g.currentObject=e[a[a.length-2]],u=aX(g)):u&&typeof u=="object"&&i[l]&&fX(g,l),p!=null&&p.manifest&&cX(p,a,l,t,u,e)}}o(CA,"processProperties");function uX(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=s0(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=c0(p,g);e.exportResults.flexChanges.find(A=>{let b=!1,O=JSON.parse(A);O={content:O.content,selector:O.selector};let D=JSON.parse(m);return D={content:D.content,selector:D.selector},JSON.stringify(O)===JSON.stringify(D)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(uX,"evaluateFlexRule");function pX(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated}}o(pX,"exportConfigValueToManifest");function dX(e,t,n,i,r){let a=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)pX(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,Ga(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(dX,"evaluateManifestRule");function gX(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(_t.FACETTITLEPREFIX)?r.split(_t.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(gX,"getManifestPathOfSections");function mX(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o(mX,"getManifestPathOfTable");function hX(e,t,n,i,r){let a;return t[0]===_t.PropertyName.sections?a=gX(t,a,n,e,r):t[0]===_t.PropertyName.table?a=mX(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(hX,"getManifestPath");function yX(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)uX(e,i,t,r,a,n,s);else if(t.manifest){let u=hX(e,i,t,n,a);dX(e,u,t,s,n)}}o(yX,"evaluateExportRule");function vX(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(Om(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(_t.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(_t.ViewTemplateType.ResponsiveTableColumnsExtension,_t.ViewTemplateType.ResponsiveTableCellsExtension);Om(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(vX,"deleteObsoleteColumn");function TX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=D0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,vX(r,e,n))}o(TX,"deleteObsoleteColumnsFromFragment");function bX(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:u}=Nm(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(bX,"clusterConfigColumnsByPath");function D1(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in _t.v2.TableColumnExtensionTypeV2){let{path:u}=Nm(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{TX(p)}catch(g){e.logger.error(g.message)}}if(t){let l=bX(t,n,e.v2Page,s,r);for(let u in l)nE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(D1,"transferColumnExtensions");function EX(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=F1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(A=>{var b;return(b=A.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split(U),y=e.appSchema.definitions[m[m.length-1]];ps(e,t[p],i,[...r,s[p]],y)}let u=Bn(e.exportResults.manifest,Ib());for(let p in u)yA(p,l)&&!s.includes(p)&&delete u[p]}o(EX,"transferManifestExtensions");function AX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===_t.PropertyName.table){n=e[i-1];break}return qn(n,t)}o(AX,"getSectionId");function SX(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Ro(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);ps(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(SX,"transferIndexTable");function PX(e,t,n,i,r,a){let s,l=Kg(e.$ref);l&&(s={target:l,key:AX(t,n)}),D1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(PX,"transferCustomColumns");function CX(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Ro(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&ps(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(CX,"handleAnyOfDefinitions");function xX(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")EX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){PX(l,t,s,e,n,a);return}else a?ps(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&CX(l,e,s,n==null?void 0:n[r],r,i,t)}o(xX,"transferComplexProperty");function ps(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!pl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Bg(t,l),p=u?[...n,u]:n,g=Yn(t,l),m=e.propertyDefinition=r.properties[l],y=e.nextDefinition=Ro(e.appSchema,a,s,m,l,e.factory,e.pageType);if(yX(e,g,t,[...i],p,a,l),SX(s,e,a,l,p,i),s===void 0||typeof s=="object")xX(e,i,t,p,l,y,a);else if((m==null?void 0:m.$ref)===U+"TableCustomColumns"){D1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(ps,"transferManifestEntriesAndFlexChange");function _1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Ec(r,i,n[i],s),a.push(i),IA(r,n[i],e,l.properties,a)}o(_1,"transferSettingsOfRef");function IX(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(U);_1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${U}${ko.v2.cardTemplateSettingsMap[e.template]}`.split(U);_1(i,l,e,t,r,a)}}o(IX,"processPropertiesOfObject");function OX(e,t,n,i,r,a){let s=Yn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=Bn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{ml(s,u,t,e)}catch(p){se(i.logger,{severity:ko.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:jg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&IX(e,t,r,i,a,n)}o(OX,"processOvpProperty");function IA(e,t,n,i,r){for(let a in i)OX(t,a,r,n,i,e)}o(IA,"processOvpProperties");function NX(e,t,n){IA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[ko.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[ko.ManifestSection.ovp].cards[i].template,a=ko.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Ec(n,a,{},"CustomCard"),e.cards=Ec(n,a,e.cards,"CustomCard"),IA(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(NX,"addSettings");function Ih(e){let t=new Ri,n=t.createPageInstance(ko.PageTypeV2.OverviewPage);return e.jsonSchema&&NX(n,e,t),n}o(Ih,"createOverviewPageConfig");var OA=class OA extends qa{constructor(t){let n={},i=t.manifest[Ac.ManifestSection.ovp],r=new za,a=Dt(Ac.SchemaType.Application);Dn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Ac.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Ac.PageTypeV2.OverviewPage,config:Ih(l),entitySet:i.globalFilterEntitySet},p=kg(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(OA,"V2OvpProvider");var Oh=OA;var jo=require("@sap-ux/vocabularies-types/vocabularies/UI");var te=ie(le()),V1=require("path");function LX(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(LX,"sortByPropertyIndex");function Xu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(LX())}o(Xu,"sortPropertiesRecords");function RX(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}o(RX,"getExtensionText");function NA(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||te.v4.Placement.After)===te.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(NA,"addExtensionToSortedArray");function FX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var u,p,g;return((u=l.position)==null?void 0:u.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((g=n.position)==null?void 0:g.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}o(FX,"addRemainingTargetByBefore");function w1(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=RX(e);return{$ref:`${U}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(w1,"getExtensionDetails");function LA(e,t,n,i,r=!1){var l,u;let a=Object.entries(e).length;for(let p of Object.keys(e)){let g=e[p],m=w1(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let y=n.findIndex(A=>A[0]===g.position.anchor);y>-1?(NA(g,n,y,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(se(i,{severity:Di.LogSeverity.Error,message:q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&FX(e,p,g,n,m)}else r&&(NA(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?LA(e,t,n,i):s>0&&LA(e,t,n,i,!0)}o(LA,"adjustCustomExtReferringToCustomExt");function DX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||te.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===te.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(DX,"getExtensionAnchor");function _X(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o(_X,"getLocalExtensionsToSkip");function VX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||te.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let y=t[m[0]];if(g(y))break;p++}return p},"findNextIndex"),s=0;return i===te.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==te.v4.Placement.Before))}),s>-1?s:0}o(VX,"getExtensionIndexByMergedApproach");function wX(e,t,n,i,r=!1){return r?VX(e,t,n):n.findIndex(a=>a[0]===i)}o(wX,"getExtensionIndex");function MX(e,t,n,i,r){se(e,{severity:Di.LogSeverity.Error,message:q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(MX,"handleInvalidExtension");function va(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=_X(l,s);if(!l)return[];for(let p of Object.keys(l)){let g=l[p];if(u!=null&&u.includes(p))continue;let m=w1(g,n,p,te.ActionType.Custom);if(typeof g!="object"){MX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let y=DX(g,s);if(y){let A=wX(g,e,t,y,a);A>-1&&(NA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&LA(l,n,t,r),t}o(va,"addExtensionToArray");function RA(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(RA,"addEnumForProperties");function kX(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];RA(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(kX,"addColumnPropertyIndexAndEnum");function Sc(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var y,A,b,O;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Xu(l),p=a?a.replace(/::/g,"/"):`@${jo.UIAnnotationTerms.LineItem}`,g=(O=(b=(A=(y=t.options)==null?void 0:y.settings)==null?void 0:A.controlConfiguration)==null?void 0:b[p])==null?void 0:O.columns;g&&(u=va(g,u,i,void 0,n)),kX(u,e,l,i);let m={};u.forEach(([D,j])=>m[D]=j),e.definitions[s].properties=m}o(Sc,"addCustomColumnDefinition");function jX(e){let t;return e.lineItemId.startsWith(te.DefinitionName.LineItemsOfView)?t=te.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(te.DefinitionName.LineItems)?t=te.DefinitionName.ToolBarAction:t=te.DefinitionName.ObjectPageToolBarAction,t}o(jX,"determineActionDefinitionName");function UX(e,t,n){e[te.SchemaTag.keys]=[],t[te.SchemaKeyName.semanticObject]&&e[te.SchemaTag.keys].push({name:te.SchemaKeyName.semanticObject,value:t[te.SchemaKeyName.semanticObject]});let{key:i,ns:r}=ec(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(UX,"addTargetAndKeysOfAction");function $X(e,t,n,i,r,a=!0){if(i.Determining===!0)return;let s=jX(e),l=yi(i,e.entityType),u=i.$Type.split(`${te.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=Xg(p),m=t.properties[`${u}::${g}`]={description:l};if(a?m.$ref=vi(s,pt(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[te.SchemaTag.propertyIndex]=r,m[te.SchemaTag.dataType]=ro(i),UX(m,i,p),m[te.SchemaTag.annotationType]=i.$Type,a){let y=bt(s,pt(g),e.appSchema);y[te.SchemaTag.annotationPath]=`${n}/${r}`}else m[te.SchemaTag.annotationPath]=`${n}/${r}`}o($X,"addActionRecordToSchema");function BX(e,t,n,i,r){var u;let a=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ii(te.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=ua(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[a]);let g=p.properties,m={description:yi(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=U+n,m[te.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[te.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[te.SchemaTag.propertyIndex]=i,m[te.SchemaTag.dataType]=ro(s),g[l]=m,rm(s,g,l)}}o(BX,"addLineItemRecordToSchema");function FA(e,t,n,i,r=te.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===jo.UIAnnotationTypes.DataFieldForAction||s.$Type===jo.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))$X(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===jo.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;BX(e,l,u,a,i)}a++})}o(FA,"appendLineItemsToSchema");function Pc(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=nm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);FA(e,r,a,void 0,t)}o(Pc,"addLineItemsTypeToSchema");function Cc(e,t,n,i=te.DefinitionName.Position,r){var p,g,m,y,A;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==te.DefinitionName.LineItems?r:`@${jo.UIAnnotationTerms.LineItem}`,u=(A=(y=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:y[l])==null?void 0:A.columns;if(u)for(let b in u)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;pa(s,b)}}o(Cc,"addFragmentEnumForAnchor");function fo(e,t,n=te.DefinitionName.CustomActionPosition){Xa(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(fo,"addEnumForActionAnchor");function Nh(e,t,n,i){var a,s,l,u;let r;for(let p in e)if((i&&((s=(a=e[p].options)==null?void 0:a.settings)==null?void 0:s.contextPath)===i||((u=(l=e[p].options)==null?void 0:l.settings)==null?void 0:u.entitySet)===(n==null?void 0:n.name))&&(e[p].name===t||t===te.v4.FE_TEMPLATE_V4_ALP&&e[p].name===te.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[p];break}return r}o(Nh,"findPageV4");function M1(e,t){let n,i=e.properties[te.PropertyName.table];return t.templateType===te.TemplateType.AnalyticalListPageV4?(n=te.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${U}${te.DefinitionName.ALPTableView}`,delete e.definitions[te.DefinitionName.Table],delete e.definitions[te.DefinitionName.LRChartView],delete e.definitions[te.DefinitionName.LRTableView],delete e.definitions[te.DefinitionName.MultiTableModeV4]):t.templateType===te.TemplateType.ListReportObjectPageV4&&(n=te.DefinitionName.Table,delete i.anyOf,i.$ref=`${U}${te.DefinitionName.Table}`,e.definitions[n].properties[te.PropertyName.annotationPath][te.SchemaTag.hidden]=!0,delete e.definitions[te.DefinitionName.ALPTableView],e.properties[te.PropertyName.defaultPath][te.SchemaTag.hidden]=!0),n}o(M1,"alignSchemaWithTemplateType");function Ta(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var g,m,y,A,b,O,D,j,G,B;let s=e.definitions[r];if(!s)return;let l=Xu(s),u;a?i.indexOf(te.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===te.DefinitionName.CustomFormActionOP?u=`@${jo.UIAnnotationTerms.FieldGroup}`:u=`@${jo.UIAnnotationTerms.LineItem}`;let p;if(r.includes(te.DefinitionName.ObjectPageCustomSectionActions)?p=(O=(b=(A=(y=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:y.body)==null?void 0:A.sections)==null?void 0:b[u])==null?void 0:O.actions:p=(B=(G=(j=(D=t.options)==null?void 0:D.settings)==null?void 0:j.controlConfiguration)==null?void 0:G[u])==null?void 0:B.actions,p&&(l=va(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][te.SchemaTag.propertyIndex]=Z;let ae={};l.forEach(([Z,re])=>ae[Z]=re),e.definitions[r].properties=ae}}o(Ta,"addCustomActionDefinition");function Lh(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,y,A,b,O,D;let a=e.definitions[r];if(!a)return;let s=Xu(a),l;[te.DefinitionName.CustomHeaderAction,te.DefinitionName.CustomHeaderActionOP].includes(i)?l=(y=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:y.actions:l=(D=(O=(b=(A=t.options)==null?void 0:A.settings)==null?void 0:b.content)==null?void 0:O.footer)==null?void 0:D.actions,l&&(s=va(l,s,i,"press",n));let u={};if(s){for(let j=0;j<s.length;j++)s[j][1][te.SchemaTag.propertyIndex]=j;s.forEach(([j,G])=>u[j]=G)}e.definitions[r].properties=u}o(Lh,"addHeaderFooterCustomActionDefinition");function xc(e,t,n){let i=Ug(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){se(n,{severity:Di.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Ug(i,[t]);if(!r){se(n,{severity:Di.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(xc,"getManifestPage");function Ic(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,V1.join)(...p,g),y=e.find(A=>A.dataSourceUri.endsWith(m));if(y){let A=(s=t.options)==null?void 0:s.settings;return{file:y,relativeFilePath:m,connection:{contextPath:A==null?void 0:A.contextPath,entitySet:A==null?void 0:A.entitySet}}}}}o(Ic,"getPageCustomExtensionFile");function Uo(e,t,n,i){let r=xc(n,t,i),a=Ug(r,["options","settings","viewName"]);return r&&typeof a=="string"?Ic(e,r,n,"view",a):void 0}o(Uo,"getPageCustomViewFile");function k1(e,t,n,i,r,a,s){var g,m,y,A,b,O,D,j,G,B,ae,Z;let l=Xu(t),u=new Map;if(l=l.map(re=>{let Se=gm(e,re[1],re[0],{keyProperties:[te.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Se.const,re[0]),[Se.const,re[1]]}),a){let re=(b=(A=(y=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:y.body)==null?void 0:A.sections)==null?void 0:b[a];re&&"subSections"in re&&(l=va(re.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let re=(j=(D=(O=n.options)==null?void 0:O.settings)==null?void 0:D.content)==null?void 0:j.header;re&&"facets"in re&&(l=va(re.facets,l,i,"template",s,r))}else{let re=(Z=(ae=(B=(G=n.options)==null?void 0:G.settings)==null?void 0:B.content)==null?void 0:ae.body)==null?void 0:Z.sections;re&&(l=va(re,l,i,"template",s,r))}for(let re=0;re<l.length;re++)l[re][1][te.SchemaTag.propertyIndex]=re;let p={};l.forEach(([re,Se])=>{re=u.get(re)||re,p[re]=Se}),t.properties=p}o(k1,"addCustomSectionDefinition");function j1(e,t,n){var l,u,p;let i=Xu(t),r=new Map;i=i.map(g=>{let m=gm(e,g[1],g[0],{keyProperties:[te.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${jo.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=va(a.filterFields,i,te.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][te.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(j1,"addCustomFilterFieldDefinition");var F=ie(le()),Oc=require("@sap-ux/vocabularies-types/vocabularies/UI");var HX=["header","filterBar","chart","table"],DA="@UI.LineItem";function _A(e,t,n,i,r){if(i||(i=t.definitions[F.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[F.SchemaTag.annotationPath]=pr(e.fullyQualifiedName,Oc.UIAnnotationTerms.SelectionFields,r)),n){let a=0;n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+pt(s.value);s.type==="PropertyPath"&&(l=Vg(s,e)),i.properties[u]={$ref:U+u},i.properties[u][F.SchemaTag.propertyIndex]=a;let p=ro(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][F.SchemaTag.isViewNode]=!0,t.definitions[u][F.SchemaTag.keys]=[{name:F.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][F.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][F.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][F.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][F.SchemaTag.annotationPath]=`${i[F.SchemaTag.annotationPath]}/${a}`,a++})}return i}o(_A,"addSelectionFields");function GX(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Oc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(GX,"getVisualFilters");function WX(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}o(WX,"getPropertiesIndex");function KX(e,t,n,i){var s,l,u,p,g,m;let r=WX(i,e),a=t.definitions[F.DefinitionName.VisualFilters];a.properties={};for(let y in n){let A=n[y];if(!A.template){let b=a.properties[y]={$ref:vi(F.DefinitionName.VisualFilter,y)},O=r.indexOf(y);O!==-1&&(b[F.SchemaTag.propertyIndex]=O);let D=bt(F.DefinitionName.VisualFilter,y,t);(s=A.visualFilter)!=null&&s.valueList&&(D[F.SchemaTag.annotationPath]=`${y}/@${A.visualFilter.valueList}`);let j=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(G=>G.name===y))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();D.description=j||y,D[F.SchemaTag.keys]=[{name:F.SchemaKeyName.value,value:y}]}}}o(KX,"addVisualFilters");function XX(e,t,n){t.additionalProperties={$ref:`#/definitions/${F.DefinitionName.CustomFilterField}`},j1(e,t,n);let i=e.definitions[F.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&Xa(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[F.SchemaKeyName.value,F.SchemaKeyName.key],descriptionAsFallback:!0})}o(XX,"applyCustomFilterFields");function QX(e,t,n,i){var l,u;let r=GX(n),a=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[F.DefinitionName.SelectionFields][F.SchemaTag.hidden]=!0,t.definitions[F.DefinitionName.SelectionFields].properties={},s=t.definitions[F.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},KX(e,t,r,a);else{let p=t.definitions[F.DefinitionName.FilterBar];p.properties.initialLayout[F.SchemaTag.hidden]=!0,p.properties.layout[F.SchemaTag.hidden]=!0,t.definitions[F.DefinitionName.CompactFilters][F.SchemaTag.hidden]=!0,t.definitions[F.DefinitionName.VisualFilters][F.SchemaTag.hidden]=!0}s=_A(e,t,a,s),XX(t,s,n)}o(QX,"addFilterBar");function $1(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${F.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=pt(`${F.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=yi(u,r),m=u.$Type.split(`${F.UIVOCABULARY}.`)[1],y=a.properties[`${m}::${u.Action}`]={$ref:U+p,description:g};y[F.SchemaTag.propertyIndex]=l,y[F.SchemaTag.annotationType]=u.$Type,y[F.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[F.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][F.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}o($1,"defineActions");function B1(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(u=>u.value.indexOf(F.FacetBase.LineItem)>-1):i?a=e.find(u=>u.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?gl(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",F.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(B1,"findTheRightVisualization");function qX(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(qX,"analyzeChartAnnotation");function zX(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=B1((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(se(r,{severity:F.LogSeverity.Error,message:q.t("NOVISUALIZATIONS")}),s=DA,l=`/${t}/`+s.replace("UI",F.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(zX,"analyzeSPVforView");function Ul(e,t,n,i,r,a){let s,l,u=e==null?void 0:e.split(`${F.UIVOCABULARY}.`)[1],p=u&&t[u];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(F.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=B1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return zX(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=DA,m=`/${s}/@${Oc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=DA;p.qualifier&&(g+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("Chart")){let{visualization:g,targetAnnotation:m,chartTitle:y}=qX(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:y}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(Ul,"analyzeViewAnnotation");function YX(e,t,n,i){let r=e.definitions[F.DefinitionName.ALPChartView];if(e.definitions[F.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[F.DefinitionName.ALPChart][F.SchemaTag.isViewNode],n&&(e.definitions[F.DefinitionName.ALPChart][F.SchemaTag.annotationPath]=n),e.definitions[F.DefinitionName.ALPChart].properties.annotationPath[F.SchemaTag.hidden]=!0,r.properties.annotationPath[F.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${U}${F.DefinitionName.ALPChart}`,t){let a=t.split(F.UIVOCABULARYDOT)[1],s=i[a].fullyQualifiedName.split("@");r[F.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}r[F.SchemaTag.artifactType]=F.ArtifactType.Manifest,r[F.SchemaTag.key]="primary",r[F.SchemaTag.keys]=[{name:F.SchemaKeyName.key,value:"primary"}]}o(YX,"addALPChartView");function JX(e,t,n,i,r,a){var j,G,B,ae,Z,re,Se,_;let s=(j=n.entityType)==null?void 0:j.annotations.UI,l=(ae=(B=(G=t==null?void 0:t[0])==null?void 0:G.primary)==null?void 0:B[0])==null?void 0:ae[F.SchemaTag.annotationPath],{targetAnnotation:u}=Ul(l,s,n.serviceAVT,"primary",void 0,n.logger);YX(e,l,u,s);let p="Actions<ALPChart>";e.definitions[F.DefinitionName.ViewChartToolBar].properties.actions.$ref=U+p,$1(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=Ul((Se=(re=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:re[0])==null?void 0:Se[F.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),y=e.definitions[a];g||i?(y.properties.toolBar.$ref=`${U}${F.DefinitionName.ToolBarLR}`,y.properties.columns={$ref:U+F.DefinitionName.LineItems},y.properties.annotationPath[F.SchemaTag.hidden]=!0):y.properties={};let A=e.definitions[F.DefinitionName.ALPTableView];e.definitions[F.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(A)),delete e.definitions[F.DefinitionName.ALPTable][F.SchemaTag.isViewNode],A.additionalProperties=!1,A.description="Table (key: secondary)",A.title="Table",g?(delete A.properties,A.$ref=`${U}${F.DefinitionName.ALPTable}`):i||(A.properties={}),A[F.SchemaTag.artifactType]=F.ArtifactType.Manifest;let b,O;if(g&&g.indexOf(F.FacetBase.LineItem)>-1?(b=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(F.UIVOCABULARYDOT)[1]):i&&(b=O=i.split(F.UIVOCABULARYDOT)[1]),b){let ft={isObjectPage:!1,appSchema:e,lineItemAnnotation:(_=n.entityType)==null?void 0:_.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:F.DefinitionName.LineItems};Pc(ft,F.DefinitionName.ViewTableColumn),m&&(e.definitions[F.DefinitionName.ALPTable][F.SchemaTag.annotationPath]=m);let yt=s[O].fullyQualifiedName.split("@");A[F.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,A[F.SchemaTag.key]="secondary",A[F.SchemaTag.keys]=[{name:F.SchemaKeyName.key,value:"secondary"}]}Sc(e,r,n.logger);let D=`${F.DefinitionName.Actions}<${pt(F.DefinitionName.LineItems)}>`;Ta(e,r,n.logger,void 0,D),fo(e,D,F.DefinitionName.CustomActionPosition)}o(JX,"addALPViews");function ZX(e,t){let n=`${F.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[F.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][F.SchemaTag.isViewNode],e.appSchema.definitions[n][F.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${F.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[F.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${U}${i}`;let r=`${F.DefinitionName.Actions}<${e.viewKey}>`;return $1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[F.PropertyName.actions].$ref=`${U}${r}`,n}o(ZX,"addViewChartDefinitions");function e7(e,t,n,i,r,a){let s=ZX(e,t);n.definitions[s].properties.annotationPath[F.SchemaTag.hidden]=!0,n.definitions[s].properties.index[F.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[F.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${U}${s}`,description:a||l,title:l}}o(e7,"addViewChart");function t7(e,t,n,i,r){var y;let a=`${F.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${F.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=bt(F.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[F.SchemaTag.isViewNode],l[F.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),Ka(l.properties.toolBar,F.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${U}${a}`,description:e.title||u,title:u},Ka(l.properties.columns,s),l.properties.annotationPath[F.SchemaTag.hidden]=!0,l.properties.index[F.SchemaTag.hidden]=!0,l.properties.entitySet[F.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(F.UIVOCABULARYDOT)[1],g={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(y=e.targetEntityType)==null?void 0:y.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s,entitySet:l.entitySet},m=F.DefinitionName.ViewTableColumn;if(l.entitySet!==void 0){let{definitions:A}=e.appSchema;m=F.DefinitionName.ViewTableColumnBasic;let b=A[F.DefinitionName.ViewTableColumn];A[m]=U1(b);let O=F.DefinitionName.ViewTableColumnBasicAction,D=`${F.DefinitionName.ViewTableColumnAction}`;A[O]=U1(A[D])}Pc(g,m,l.entitySet?void 0:F.DefinitionName.ViewCustomColumn,l.entitySet?void 0:F.DefinitionName.ViewCustomAction)}o(t7,"addViewLineItems");function n7(e,t,n,i){e.properties[t][F.SchemaTag.isViewNode]=!0,e.properties[t][F.SchemaTag.annotationPath]=n?`/${n}/@${i[F.SchemaTag.annotationPath]}`:void 0,e.properties[t][F.SchemaTag.artifactType]=F.ArtifactType.Manifest,e.properties[t][F.SchemaTag.key]=t,e.properties[t][F.SchemaTag.keys]=[{name:F.SchemaKeyName.key,value:t}]}o(n7,"addTagsToView");function i7(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(i7,"getTargetEntityType");function r7(e,t,n,i){let r=`${F.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.navPropName?`${e.navPropName}/`:""}@${Oc.UIAnnotationTerms.LineItem}${n.split(F.Visualization.LineItem)[1]}`,l=bt(F.DefinitionName.ViewCustomColumn,r,e.appSchema);Ka(l.properties.position,F.DefinitionName.ViewPosition,r),bt(F.DefinitionName.ViewPosition,r,e.appSchema),Sc(e.appSchema,i,t.logger,`${F.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Cc(e.appSchema,r,i,`${F.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let u=`${F.DefinitionName.Actions}<${r}>`,p=`${F.DefinitionName.ViewCustomAction}<${r}>`;Ta(e.appSchema,i,t.logger,p,u,s),bt(F.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${F.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${U}${g}`,fo(e.appSchema,u,g)}o(r7,"addViewCustomExtensions");function o7(e,t){let{properties:n}=e;if(n)for(let i in n)n[i].artifactType===F.ArtifactType.Manifest&&t.indexOf(i)===-1&&delete n[i]}o(o7,"handleViewProperties");function U1(e){return typeof e=="object"?{...e,properties:{}}:{properties:{}}}o(U1,"createEmptyProperties");function a7(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(F.Visualization.LineItem))>-1)t7(n,t,e,n.targetAnnotation,i),s.entitySet===void 0?r7(n,i,e,r):o7(n.appSchema.definitions[`${F.DefinitionName.LRTableView}<${s.key}>`],["visible"]);else if((e==null?void 0:e.indexOf("Chart"))>-1)e7(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${U}${F.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${U}${F.DefinitionName.LRTableView}`}}}o(a7,"addLRViewParts");function s7(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let u of t){if(!u[F.SchemaTag.key])continue;let p,g=i7(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:y,targetAnnotation:A,namespace:b,title:O}=Ul(u==null?void 0:u[F.SchemaTag.annotationPath],m,n.serviceAVT,u[F.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(G=>G.targetTypeName===b))==null?void 0:l.name);let D=pt(u[F.SchemaTag.key]),j={viewKey:D,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};a7(y,s,j,n,i,m,u),n7(s,D,b,u)}}o(s7,"addLRViews");function c7(e,t,n,i,r,a){var g,m,y,A,b,O,D,j,G,B,ae,Z,re;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=Ul(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,F.Visualization.LineItem,t.logger);if(l){let Se=l.split(".")[1],_=`${F.DefinitionName.LineItems}OfSPV::${pt(Se)}`,ft=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ft[F.SchemaTag.isViewNode],Ka(ft.properties.toolBar,F.DefinitionName.ToolBar,_),ft[F.SchemaTag.annotationPath]=u,ft.properties.columns={},Ka(ft.properties.columns,_),delete s.properties,Ka(s,`${a}SPV`),s[F.SchemaTag.annotationPath]=`/${p}/@${n}`;let yt=(m=t.entityType)==null?void 0:m.annotations.UI[Se];yt||se(t.logger,{severity:F.LogSeverity.Error,message:q.t("NOTARGET",{target:Se})});let Ue={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_};Pc(Ue,F.DefinitionName.TableColumn,F.DefinitionName.CustomColumn,F.DefinitionName.CustomTableAction);let an=(y=Se.split("#"))==null?void 0:y[1],Wn=an?`@${Oc.UIAnnotationTerms.LineItem}#${an}`:`@${Oc.UIAnnotationTerms.LineItem}`;Sc(e,i,t.logger,void 0,_,Wn),Cc(e,_,i,void 0,Wn);let en=`${F.DefinitionName.Actions}<${_}>`,Lt=fm(e,_,F.DefinitionName.CustomTableAction);Ta(e,i,t.logger,hn(Lt),en,Wn),fo(e,en,F.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${U}${F.DefinitionName.ToolBarLR}`,Ka(s.properties.columns,F.DefinitionName.LineItems);let Se=(O=(b=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:b[r])==null?void 0:O.LineItem;!Se&&!((G=(j=(D=i.options)==null?void 0:D.settings)==null?void 0:j.views)!=null&&G.paths)&&se(t.logger,{severity:F.LogSeverity.Error,message:q.t("NOLINEITEMS")});let _={isObjectPage:!1,appSchema:e,lineItemAnnotation:Se,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:F.DefinitionName.LineItems};Pc(_,F.DefinitionName.TableColumn,F.DefinitionName.CustomColumn,F.DefinitionName.CustomTableAction),Sc(e,i,t.logger),Cc(e,F.DefinitionName.LineItems,i),Se&&!((Z=(ae=(B=i.options)==null?void 0:B.settings)==null?void 0:ae.views)!=null&&Z.paths)&&(s[F.SchemaTag.annotationPath]=pr((re=t.entityType)==null?void 0:re.fullyQualifiedName,Se.term,Se.qualifier));let ft=`${F.DefinitionName.Actions}<${pt(F.DefinitionName.LineItems)}>`;Ta(e,i,t.logger,void 0,ft),fo(e,ft,F.DefinitionName.CustomActionPosition)}}o(c7,"adaptTableDefinition");function l7(e,t,n){var i,r,a,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===F.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===F.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(u=t==null?void 0:t.annotations.UI)==null?void 0:u.PresentationVariant)==null?void 0:p.term)}}o(l7,"getDefaultAnnotationPath");function f7(e,t,n,i){var u,p,g,m,y;let r=(g=(p=(u=t.options)==null?void 0:u.settings)==null?void 0:p.views)==null?void 0:g.paths,a=n.entityType,s=l7(t,n.entityType,n.templateType),l=M1(e,n);QX(a,e,t,i),n.templateType===F.TemplateType.ListReportObjectPageV4?(c7(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],s7(e,r,n,t,l)):(y=(m=t.options)==null?void 0:m.settings)!=null&&y.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[F.PropertyName.chart][F.SchemaTag.hidden]=!0):n.templateType===F.TemplateType.AnalyticalListPageV4&&(JX(e,r,n,s,t,l),Cc(e,F.DefinitionName.LineItems,t))}o(f7,"addTableAndViews");function u7(e,t,n){let i=F.DefinitionName.HeaderActions,r=e.definitions[i];r[F.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=F.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[F.SchemaTag.isViewNode]=!0,s.description="Custom Action",Lh(e,t,n,a,i);let l=F.DefinitionName.CustomHeaderActionPosition;bt(l,l,e,!1),s.properties.position.$ref=`${U}${l}`,fo(e,i,l)}o(u7,"addHeaderActions");function Qu(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ii(F.UIVOCABULARY,e.serviceAVT);if(r.properties[F.PropertyName.defaultTemplateAnnotationPath][F.SchemaTag.hidden]=!0,Wa(a,r,F.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[F.ManifestSection.ui5].routing.targets;if(!l)return se(e.logger,{severity:F.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.generic]}}),r;let u=Nh(l,n,e.entitySet,i);if(!u)return r;u7(r,u,e.logger),f7(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Fo(r,HX),r}o(Qu,"generateListReportSchemaV4");var Tr=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=ie(le());var _V=ie(Xs()),VV=ie(DV()),wV=ie(yS());var MV=ie(le()),kV=ie(le());function MQ(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o(MQ,"findElementByXMLPath");function jV(e,t){return e[t]?!1:(e[t]={},!0)}o(jV,"ensureObjectExists");function kQ(e,t){let n={},i=hn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(kQ,"getPropertiesFromRef");function jQ(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=jV(l,i),m=l[i];return Vc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(jQ,"traverseDefaultAggregation");function UQ(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}o(UQ,"isDefaultAggregationAppliable");function Vc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=kQ(s,n.$ref));for(let y in u){let A=u[y],b=typeof A=="object";if(b&&(p==null?void 0:p.defaultAggregation)===y&&UQ(u,p)&&(l=jQ(e,t,p)||l,b=!1),!!b)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let O=A.metadata.path,D=O.slice(r.length),j=MQ(i,D);l=jV(a,y)||l;let G=a[y];l=Vc({fullSchema:e.fullSchema,schema:A,element:j,contextPath:O,config:G,parent:e},t)||l}else l=t(e,A,a,y)||l}return l}o(Vc,"traverseSchema");function rf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,wV.parse)(e.fileContent),s=(0,VV.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,_V.xml2js)(e.fileContent)}catch(r){se(n,{severity:kV.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:jg(r)}),location:{path:e.dataSourceUri}})}return i}o(rf,"parseXML");function of(e){return`${MV.DefinitionName.CustomExtensionFragment}<${e}>`}o(of,"getCustomExtensionFragmentDefinitionKey");function Ay(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(Ay,"getRootElement");var OS=ie(le()),NS=ie(le());var Ep=ie(le());function Ts(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(Ts,"getAttribute");function UV(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(UV,"getNodeByName");function $Q(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}o($Q,"resolveMetaPath");function SS(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=Ts(t,"contextPath")||i.contextPath,a=Ts(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let O=$Q(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,y=a.split("#");y.length&&(m=y[1]);let A;if(a){let O=a.split(".");O.length&&(A=O[O.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:A}:void 0}o(SS,"getEntityTypeResolution");function $V(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o($V,"applyAnnotationPath");function BQ(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=Ul(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=fb(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(BQ,"getTableLineItemAnnotationData");var BV={"sap.fe.macros.Chart":o(e=>{let t=SS(e);$V(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=SS(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ii(Ep.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);_A(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=SS(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=ii(Ep.UIVOCABULARY,n);if($V(t,r),t.annotationPath){let u=BQ(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:Ep.DefinitionName.LineItems};FA(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var HV=ie(le());var HQ=new Map([["filterFields","SelectionField::"]]),GQ=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Ap={anchor:"anchor",placement:"placement",key:"key"};function WQ(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[hn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return Ap.anchor in r&&Ap.placement in r}return!1}o(WQ,"isCustomExtensionSchema");function GV(e){let t=HQ.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=GQ.get(e),t&&(n.prefix=t)),n}o(GV,"getAnnotationPrefix");function KQ(e,t,n,i){let r=t.properties[n],a=GV(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=Ts(l,Ap.key)||n,p=Ts(l,Ap.anchor),g=Ts(l,Ap.placement)||HV.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,y={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:y}}o(KQ,"getExtensionData");function XQ(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=KQ(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}va(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],u=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in a&&(u=t.properties[a[l]]),u&&(u.propertyIndex=s)}}o(XQ,"updatePropertyIndices");function QQ(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=Ts(e.subElements[s],"key")||r}return r}o(QQ,"getCorrectedAnchorEnumKey");function qQ(e,t,n,i){var a,s;let r=GV(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;Xa(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let g=((s=(a=p.properties)==null?void 0:a[u])==null?void 0:s.oneOf)||[];for(let m of g)typeof m=="object"&&typeof m.const=="string"&&(m.const=QQ(e,m.const,r,t.properties[m.const]))}}o(qQ,"applyEnumsForAnchors");function WV(e,t,n,i){WQ(t,n)&&(i=i||e.name,XQ(e,t,i),qQ(e,t,n,i))}o(WV,"handleExtensions");var ci=[];for(let e=0;e<256;++e)ci.push((e+256).toString(16).slice(1));function KV(e,t=0){return(ci[e[t+0]]+ci[e[t+1]]+ci[e[t+2]]+ci[e[t+3]]+"-"+ci[e[t+4]]+ci[e[t+5]]+"-"+ci[e[t+6]]+ci[e[t+7]]+"-"+ci[e[t+8]]+ci[e[t+9]]+"-"+ci[e[t+10]]+ci[e[t+11]]+ci[e[t+12]]+ci[e[t+13]]+ci[e[t+14]]+ci[e[t+15]]).toLowerCase()}o(KV,"unsafeStringify");var XV=require("crypto");var Py=new Uint8Array(256),Sy=Py.length;function PS(){return Sy>Py.length-16&&((0,XV.randomFillSync)(Py),Sy=0),Py.slice(Sy,Sy+=16)}o(PS,"rng");var QV=require("crypto"),CS={randomUUID:QV.randomUUID};function zQ(e,t,n){var r;if(CS.randomUUID&&!t&&!e)return CS.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??PS();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=i[a];return t}return KV(i)}o(zQ,"v4");var xS=zQ;var IS="sap.fe.macros",YQ=["id","key","title","text","label","header"];function qV(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(qV,"getElementName");function JQ(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(JQ,"isElementWithNamespace");function ZQ(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(ZQ,"getDependencies");function eq(e,t){let n="",i=e.attributes||[];for(let r of YQ){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(eq,"getViewNodeDescription");function tq(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(tq,"findAvailableName");function zV(e,t){if(e.properties={},e.$ref){let n=hn(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(zV,"prepareSchemaProperties");function nq(e,t,n){t.properties||zV(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(nq,"handleAttributes");function iq(e){e.type===NS.MacrosPropertyType.Control&&(e.internalId=xS())}o(iq,"applyIdForMacros");function rq(e,t,n){var i,r;try{(r=(i=BV)[e])==null||r.call(i,t)}catch{se(n,{severity:OS.LogSeverity.Error,message:q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(rq,"callAnnotationHandler");function oq(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===NS.MacrosPropertyType.Control&&(e.controlName=n)}o(oq,"updateMetadataByReference");function aq(e,t,n,i){var y,A,b,O,D;let r=n.schema;t.properties||zV(t,r);let a=t.properties[i],s=(y=a==null?void 0:a.metadata)==null?void 0:y.type,l=(A=a==null?void 0:a.metadata)==null?void 0:A.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&O.length?tq(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(hn(a.$ref)):g=[`${IS}.${i}`,`${IS}.table.${i}`,`${IS}.filterBar.${i}`];let m=!1;for(let j of g){let G=(D=r.definitions)==null?void 0:D[j];if(typeof G!="object")continue;oq(u,G,j);let B=eq(e,i),ae={$ref:BF(j),description:B,propertyIndex:n.index,metadata:u};nq(e,ae,r),t.properties[p]=ae,m=!0,rq(j,{...n,node:e,schema:ae,rootSchema:n.schema},n.logger);break}if(iq(u),!m)if(!(a!=null&&a.properties)||!(p in t.properties)){let j={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=j}else a.metadata=u;return p}o(aq,"addControlToSchema");function YV(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split(U)[1];a&&t.indexOf(a)===-1&&t.push(a)}YV(r,t)}}o(YV,"populateUsedDefinitionKeys");function sq(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let i=t.additionalProperties.$ref.split(".");if(i[i.length-1]===e.name)return!0}return!1}o(sq,"isElementAddableToSchema");function cq(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!UV(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(cq,"getDefaultAggregation");function lq(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,JV(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:qV(s),index:a}]},i)}}o(lq,"handleSubElementsOfXMLNode");function JV(e,t,n,i){var g,m,y;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[hn(t.$ref)]:t;if(JQ(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(y=t.metadata)==null?void 0:y.defaultAggregation;A&&sq(e,t.properties[A])&&(t=t.properties[A]);let b=e.name.split(":"),O=aq(e,t,n,b[b.length-1]);if(t.properties[O])t=t.properties[O];else return}let{subElements:l=[]}=e,u=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&u&&n.schema.definitions[u]&&i.indexOf(u)===-1&&(i.push(u),YV(t,i));let p=cq(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),lq(l,t,n,i),r.push({node:e,schema:t});for(let A of r)WV(A.node,A.schema,n.schema,A.name)}o(JV,"handleXMLNode");function fq(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}o(fq,"getMacrosPrefixes");function wc(e,t,n,i){let r=rf(t.file,!0,i),a=[];if(!r)return;nn();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){se(i,{severity:OS.LogSeverity.Error,message:q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=ZQ(l),p=fq(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let y=l.subElements[m],A=!g[y.name];g[y.name]=!0,JV(y,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:qV(y),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(wc,"generateMacrosSchemaDefinition");function ZV(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&ZV(i.subSections,t)}}o(ZV,"populateTemplates");function ew(e,t,n,i){var s,l,u;let r=xc(n.manifest,i),a=[];ZV(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=of(p);e.definitions[m]=g;let y=Ic(n.fragments,r,n.manifest,"fragment",p);if(y){g.metadata.filePath=y.relativeFilePath;let{properties:A={},definitions:b={}}=wc(t,y,n.serviceAVT,n.logger)||{};g.properties=A;for(let O in b)e.definitions[O]||(e.definitions[O]=b[O])}}return t}o(ew,"resolveFragments");var uq=["header","layout","sections","footer"],pq=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],LS="Custom Action";function RS(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=am(t.item,e),p=ua(t.item),g=t.item.fullyQualifiedName.replace(`@${Tr.UIAnnotationTerms.Identification}`,`/@${Tr.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${pt(p)}>`,y=i.definitions[m]={type:"object",$ref:`${U}${N.DefinitionName.ObjectPageHeaderAction}`,description:yi(t.item,r)};y[N.SchemaTag.isViewNode]=!0,y[N.SchemaTag.dataType]=ro(t.item),y[N.SchemaTag.propertyIndex]=s,y[N.SchemaTag.keys]=[],t.item[N.SchemaKeyName.semanticObject]&&y[N.SchemaTag.keys].push({name:N.SchemaKeyName.semanticObject,value:t.item[N.SchemaKeyName.semanticObject]}),y[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:l}),u&&(i.definitions[m][N.SchemaTag.target]=u),y[N.SchemaTag.actionType]=n,y[N.SchemaTag.annotationPath]=`/${g}`,a.properties[p]={$ref:`${U}${m}`},a.properties[p][N.SchemaTag.propertyIndex]=s}o(RS,"addSingleHeaderActionV4");function tw(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[N.SchemaTag.isViewNode]=!0,s[N.SchemaTag.propertyIndex]=i,s[N.SchemaTag.keys]=[],s[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:e}),s[N.SchemaTag.actionType]=N.ActionType.Standard,n.properties[r]={$ref:`${U}${a}`},n.properties[r][N.SchemaTag.propertyIndex]=i,s}o(tw,"addStandardHeaderAction");function nw(e,t,n,i,r,a){let s=ua(e.item),l=yi(e.item,n),u=pt(`${N.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Tr.UIAnnotationTerms.Identification}`,`/@${Tr.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${U}${N.DefinitionName.FooterActionV4}`,description:l};g[N.SchemaTag.isViewNode]=!0,g[N.SchemaTag.actionType]=t,g[N.SchemaTag.propertyIndex]=a,g[N.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${U}${u}`}}o(nw,"addSingleFooterAction");function dq(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Tr.UIAnnotationTypes.DataFieldForAction||i.$Type===Tr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(pq.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(dq,"groupByCriticality");function gq(e,t,n,i,r){for(let a=0;a<e.length;a++)RS(t,e[a],N.ActionType.Criticality,n,i,r,a)}o(gq,"addCriticalActions");function mq(e,t,n,i,r,a){let s=e.findIndex(l=>{var u,p;return((p=(u=l.item.annotations)==null?void 0:u.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(RS(t,e[s],N.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(mq,"addCopyAction");function hq(e,t,n,i,r,a){for(let s of e)RS(t,s,N.ActionType.Annotation,n,i,r,a),a++}o(hq,"addUncriticalActions");function yq(e){let t="RelatedApps",n=e.properties[t]={$ref:`${U}${t}`,description:"Related Apps"};n[N.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[N.SchemaTag.artifactType]=N.ArtifactType.Manifest,n[N.SchemaTag.actionType]=N.ActionType.Standard,n[N.SchemaTag.isViewNode]=!0,n[N.SchemaTag.keys]=[{name:N.SchemaKeyName.action,value:t}]}o(yq,"addRelatedAppsButton");function iw(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[N.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`:e[N.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`}o(iw,"setAnnotationPathFromEntitySetOrEntityType");function vq(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?dq(n):{};if(gq(s,r.serviceAVT,t,e,i),r.entitySet){let p=y0(r.entitySet),g=v0(r.entitySet);if(Zg(r.entitySet)&&g){let m=tw("Edit",t,i,s.length);iw(m,r.entitySet,e,"UpdateHidden")}if(p){let m=tw("Delete",t,i,s.length+1);iw(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;mq(l,r.serviceAVT,t,e,i,u),hq(l,r.serviceAVT,t,e,i,u),ow(t,a,N.DefinitionName.CustomHeaderActionOP,r.logger),yq(i)}o(vq,"addHeaderActionCallBackV4");function Tq(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Tr.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];nw(l,N.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];nw(l,N.ActionType.Annotation,e,t,n,r.length+s)}}o(Tq,"addFooterActionCallBackV4");function bq(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Tr.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomColumnOP}<${n}>`:N.DefinitionName.CustomColumnOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${N.DefinitionName.CustomColumnOP}<${n}>`;Sc(e,t,r,u,n,i);let p=a?n:N.DefinitionName.PositionOP;bt(N.DefinitionName.PositionOP,p,e,a);let g=a?`${N.DefinitionName.PositionOP}<${n}>`:N.DefinitionName.PositionOP;l.properties.position.$ref=`${U}${g}`,Cc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&RA(m,l)}o(bq,"addCustomColumnsOP");function Eq(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Tr.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomTableActionOP}<${n}>`:N.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description=LS;let u=`${N.DefinitionName.CustomTableActionOP}<${n}>`,p=`${N.DefinitionName.Actions}<${pt(n)}>`;Ta(e,t,r,u,p,i);let g=a?n:N.DefinitionName.CustomActionPositionOP;bt(N.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${N.DefinitionName.CustomActionPositionOP}<${n}>`:N.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${U}${m}`,fo(e,p,m)}o(Eq,"addTableCustomActionsOP");function ow(e,t,n,i){let r=e.definitions[n];r[N.SchemaTag.isViewNode]=!0,r.description=LS;let a=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.ObjectPageHeaderActions:N.DefinitionName.FooterActions;Lh(e,t,i,n,a);let s=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.CustomHeaderActionPositionOP:N.DefinitionName.CustomFooterActionPositionOP;bt(s,s,e,!1),r.properties.position.$ref=`${U}${s}`,fo(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${U}${n}`})}o(ow,"addHeaderFooterCustomActionsOP");function Aq(e,t,n,i,r){let a=`${N.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[N.SchemaTag.isViewNode]=!0,s.description=LS;let l=`${N.DefinitionName.CustomFormActionOP}<${n}>`,u=`${N.DefinitionName.SectionActions}<${pt(n)}>`;Ta(e,t,r,l,u,i),bt(N.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${N.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${U}${p}`,fo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${U}${a}`})}o(Aq,"addFormCustomActionsOP");function Sq(e,t,n,i,r,a,s){let l=tc(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=bt(N.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${U}${l}`},g.properties.toolBar.$ref=vi(N.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=vi(N.DefinitionName.QuickVariantSelectionV4OP,t);let m=bt(N.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=vi(N.DefinitionName.AnnotationPathAsObject,t),bt(N.DefinitionName.AnnotationPathAsObject,t,n),Wa(e.entityType,n,`${N.DefinitionName.AnnotationPathAsObject}<${l}>`);let y={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Pc(y,N.DefinitionName.ObjectPageTableColumn,N.DefinitionName.CustomColumnOP,N.DefinitionName.CustomTableActionOP),bq(n,a,l,t,s),Eq(n,a,l,t,s),g}o(Sq,"handleLineItem");function aw(e,t,n,i,r,a,s){s&&Cy(s,t,N.DefinitionName.ObjectPageSectionTableV4);let l=bt(N.DefinitionName.ObjectPageSectionTableV4,t,n);la(e,l,tc(t)),Ha(e,l,tc(t)),l[N.SchemaTag.annotationPath]=e.annotationPath,l[N.SchemaTag.target]=e.namespace,l.properties.table.$ref=vi(N.DefinitionName.ObjectPageTable,t);let u=Sq(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(aw,"handleSectionTable");function Pq(e,t,n,i,r,a,s){let l;a===N.SectionType.Section?l=N.DefinitionName.ObjectPageSectionForm:a===N.SectionType.HeaderSection&&(l=N.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:vi(l,n)};let u=bt(l,n,r);e.ID||(u.properties={}),la(e,u,n),Ha(e,u,n),u[N.SchemaTag.annotationPath]=e.annotationPath,u[N.SchemaTag.target]=e.namespace,u[N.SchemaTag.isViewNode]=!0;let p=om(a,e,u,r,N.FioriElementsVersion.v4,n);if(e.base===N.FacetBase.Form){let g=tc(n);bt(N.DefinitionName.CustomFormActionOP,p,r),Aq(r,t,p,g,s)}}o(Pq,"handleFormIdentification");function rw(e,t,n,i,r){n.properties[t]={$ref:`${U}${r}`};let a=bt(N.DefinitionName.CommonHeaderFacetSettings,r,i,!1);dl(e,a,t),a[N.SchemaTag.annotationPath]=e.annotationPath,a[N.SchemaTag.target]=e.namespace,a[N.SchemaTag.dataType]=nc(e==null?void 0:e.target),a[N.SchemaTag.isViewNode]=!0}o(rw,"handleHeaderFacet");function Cq(e,t,n,i){let r=bt(N.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,u=yi(l,i),p=l.$Type.split(N.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:vi(N.DefinitionName.ObjectPageToolBarAction,g),description:u};m[N.SchemaTag.propertyIndex]=a,m[N.SchemaTag.annotationType]=l.$Type;let y=bt(N.DefinitionName.ObjectPageToolBarAction,pt(g),n);y[N.SchemaTag.annotationPath]=dm(l),y[N.SchemaTag.dataType]=ro(l),y.properties={},a++})}return r}o(Cq,"handleChartActions");function xq(e,t,n,i){let r=bt(N.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[N.SchemaTag.annotationPath]=dm(e),r[N.SchemaTag.dataType]=nc(e.target||e),r[N.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=vi(N.DefinitionName.ObjectPageToolBar,t);let a=bt(N.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=vi(N.DefinitionName.ObjectPageToolBarActions,t);let s=Cq(e,t,n,i);return{chart:r,chartActions:s}}o(xq,"handleChart");function sw(e,t,n,i,r=e.entityType,a=!1,s){let l=a?N.DefinitionName.CommonHeaderFacetSettings:N.DefinitionName.ObjectPageSectionChart,u=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart;i&&Cy(i,t,l);let p=pm(u,t),g=bt(l,p,n,!1);if(dl(e,g,t),a)return delete g.properties.chart,{parentChartRef:g};g[N.SchemaTag.annotationPath]=dm(e),g.properties.chart.$ref=vi(N.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:y}=xq(e.target||e,t,n,r);return m[N.SchemaTag.target]=s,{parentChartRef:g,chart:m,chartActions:y}}o(sw,"handleSectionChart");function Iq(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${Ab(r,n.serviceAVT)}`,l=s.split(N.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(Iq,"getVisualizationKeyAndType");function Oq(e,t,n){var r,a;return(a=(r=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:r.annotations)==null?void 0:a.UI[n]}o(Oq,"getTargetFromNavigation");function Nq(e,t,n){let i=e.target[N.FacetBase.PresentationVariant]?e.target[N.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:u}=Iq(!!r,a,n),p=r?a:Oq(n,s,u),g=e.target[N.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:u,target:p,namespace:g,navigationPath:s}}o(Nq,"getVisualizationProps");function Cy(e,t,n,i){e.properties[t]={$ref:vi(n,i||t)}}o(Cy,"addPropertyRef");function cw(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(cw,"getSectionPropertyRef");function Lq(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:u}=cw(t,r);Cy(i,l,N.DefinitionName.ObjectPageSectionTableV4,u);let{sectionTable:p,table:g}=aw(e,u,n,{target:r.target,entityType:e.entityType},a,s);p[N.SchemaTag.annotationPath]=e.annotationPath,dl(e,p,t),delete p[N.SchemaTag.isViewNode],g[N.SchemaTag.annotationPath]=`/${r.namespace}/${r.key}`,g[N.SchemaTag.target]=r.namespace}o(Lq,"addPVLineItemSection");function Rq(e,t,n,i,r,a=!1){let s=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:u}=cw(t,r);Cy(i,l,s,u);let{parentChartRef:p}=sw(r.target,u,n,void 0,e.entityType,a,r.namespace);p[N.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(la(e,p,t),UF(e,p)):dl(e,p,t)}o(Rq,"addPVChartSection");function Fq(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){se(a.logger,{severity:N.LogSeverity.Error,message:q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=Nq(e,t,a),u=r===N.SectionType.HeaderSection;l&&(l.type.startsWith(N.Visualization.Chart)?Rq(e,t,n,i,l,u):l.type.startsWith(N.Visualization.LineItem)&&Lq(e,t,n,i,l,a,s))}o(Fq,"handleSectionPresentationVariant");function Dq(e){let t=e.facets||{};for(let n in t)if(t[n].base===N.FacetBase.CollectionFacet)return!0;return!1}o(Dq,"containsCollectionFacet");function _q(e,t,n){var a;let i=`${N.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[N.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};qs(n,N.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(_q,"createCustomSubSectionReference");function Vq(e,t,n,i){var a,s,l,u;let r=(u=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:u.sections;if(r)for(let p in r){let g=bt(n,p,e),m=bt(N.DefinitionName.ObjectPageCustomSectionActions,p,e),y=bt(N.DefinitionName.CustomSectionActionOP,p,e),A=`${N.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${U}${A}`};let b=`${N.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${U}${b}`},bt(N.DefinitionName.CustomSectionActionPositionOP,p,e);let O=`${N.DefinitionName.CustomSectionActionPositionOP}<${p}>`;y.properties.position.$ref=`${U}${O}`,y[N.SchemaTag.isViewNode]=!0,Ta(e,t,i,b,A,p),fo(e,A,O)}}o(Vq,"applyCustomActionsToCustomSections");function FS(e,t,n,i,r,a,s){var m,y,A,b,O;let l=!1,u;a&&s?(l=!Dq(a),u=_q(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${U}${u}`},k1(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&Xa(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[N.SchemaKeyName.id,N.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(N.DefinitionName.ObjectPageCustomSectionFragment)){let D=t.definitions[N.DefinitionName.ObjectPageCustomSectionActions];D.properties={},Vq(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(N.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let D=(O=(b=(A=(y=(m=i.options)==null?void 0:m.settings)==null?void 0:y.content)==null?void 0:A.body)==null?void 0:b.sections)==null?void 0:O[s],j=D&&"subSections"in D?D.subSections:{};for(let G=g.oneOf.length-1;G>=0;G--){let B=g.oneOf[G];j[B.const]||(B.hidden=!0)}}}o(FS,"applyCustomSections");function wq(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=Lo(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[N.SchemaTag.annotationPath]=e.annotationPath,g[N.SchemaTag.target]=e.namespace,g[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}],g[N.SchemaTag.isViewNode]=!0;let m=l+1;for(let y in e.facets)DS(a,e.facets,y,g,n,r,s,m);u&&FS(g,n,a,s,N.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(wq,"handleCollection");function DS(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${tc(n)}>`;switch(u.base){case N.FacetBase.PresentationVariant:case N.FacetBase.SelectionPresentationVariant:{Fq(u,n,r,i,a,e,s);break}case N.FacetBase.CollectionFacet:{wq(u,n,r,i,a,e,s,l);break}case N.FacetBase.LineItem:{if(a===N.SectionType.Section){let g=t[n];aw(u,n,r,g,e,s,i)}break}case N.FacetBase.Form:case N.FacetBase.Identification:{Pq(u,s,n,i,r,a,e.logger);break}case N.FacetBase.DataPoint:{rw(u,n,i,r,p);break}case N.FacetBase.Chart:{a===N.SectionType.HeaderSection?rw(u,n,i,r,p):a===N.SectionType.Section&&sw(u,n,r,i);break}case N.FacetBase.Address:case N.FacetBase.Contact:{nu(u,n,i,r,a);break}default:i.properties[n]=Lo(r,u,n)}}o(DS,"addSection");function Mq(e,t,n){let i=Mg(e.entityType,e.serviceAVT,N.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[N.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[N.DefinitionName.Sections];for(let a in i)DS(e,i,a,r,t,N.SectionType.Section,n);FS(r,t,e,n,N.DefinitionName.ObjectPageCustomSectionFragment)}o(Mq,"addSections");function kq(e,t,n,i){let r=wg(n,e.serviceAVT,N.FioriElementsVersion.v4,e.logger),a=t.definitions[N.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)DS(e,r,s,a,t,N.SectionType.HeaderSection,i);FS(a,t,e,i,N.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionAddress]}}o(kq,"addHeaderSections");function jq(e,t,n){let i=e.entityType;lm(t,i),cm(t,i,e,vq,n),i&&(t.definitions[N.DefinitionName.HeaderSections][N.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Tr.UIAnnotationTerms.HeaderFacets}`),kq(e,t,i,n)}o(jq,"addHeader");function Sp(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${U}${N.DefinitionName.Sections}`},!e.manifest[N.ManifestSection.ui5].routing||!e.manifest[N.ManifestSection.ui5].routing.targets)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:N.MANIFESTPATH}}),r;let a=r.definitions[N.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:N.DefinitionName.Sections};if(a[N.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[N.ManifestSection.ui5].routing.targets;if(!s)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}}),r;let l=Nh(s,N.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(jq(e,r,l),a[N.SchemaTag.isViewNode]=!0,e.entityType&&(a[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Tr.UIAnnotationTerms.Facets}`),qs(e.featureToggles,N.Features.BuildingBlocks)&&i){r.definitions[N.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{ew(r,i,e,l.id)}catch(u){se(e.logger,{severity:N.LogSeverity.Error,message:u})}}Mq(e,r,l),sm(r,e,N.FioriElementsVersion.v4,Tq),ow(r,l,N.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[N.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[N.DefinitionName.GenericColumnsOP],delete r.definitions[N.DefinitionName.GenericSections],delete r.definitions[N.DefinitionName.GenericSubSections],delete r.definitions[N.DefinitionName.ObjectPageChart],delete r.definitions[N.DefinitionName.ObjectPageSectionAddress],delete r.definitions[N.DefinitionName.ObjectPageSectionChart],delete r.definitions[N.DefinitionName.ObjectPageSectionContact],delete r.definitions[N.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[N.DefinitionName.ObjectPageSectionForm],delete r.definitions[N.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[N.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[N.DefinitionName.ObjectPageSubSections],delete r.definitions[N.DefinitionName.ObjectPageTable],delete r.definitions[N.DefinitionName.ObjectPageToolBar],delete r.definitions[N.DefinitionName.ObjectPageToolBarAction],delete r.definitions[N.DefinitionName.ObjectPageToolBarActions],delete r.definitions[N.DefinitionName.QuickVariantSelectionV4OP],Fo(r,uq),r}o(Sp,"generateObjectPageSchemaV4");function _S(e,t){return JSON.parse(JSON.stringify(t))}o(_S,"generateFreestyleSchemaV4");var Kr=ie(le());function VS(e,t,n,i,r,a,s,l,u){let p=Oo(n,r),{entitySet:g,entityType:m}=Mc(p,s,t,r),y={templateType:Kr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Sp(y,e,s,l)}o(VS,"generateObjectPageInterfaceV4");function xy(e,t,n,i,r,a,s){nn();let l=Oo(i,r),{entitySet:u,entityType:p}=Mc(l,s,n,r),g={templateType:e,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Kr.TemplateType.ListReportObjectPageV4?Kr.v4.FE_TEMPLATE_V4_LIST_REPORT:Kr.v4.FE_TEMPLATE_V4_ALP;return Qu(g,t,m,s)}o(xy,"generateListReportInterfaceV4");function wS(e,t,n,i,r,a){let s=Oo(n,a),l={templateType:e,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return _S(l,t)}o(wS,"generateFreestyleInterfaceV4");function MS(e,t,n,i,r,a,s){let l={};if(qs(a,Kr.Features.BuildingBlocks)){let u=Oo(r,s),p=Uo(i||[],t,n,s);l=p!=null&&p.file.fileContent?wc(e,p,u,s):{}}return l}o(MS,"generateFPMCustomPageInterfaceV4");var jc=require("@sap-ux/vocabularies-types/vocabularies/UI"),dw=ie(le());var kc=ie(le());var uw=new Map([[kc.PageTypeV2.ListReport,kc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[kc.PageTypeV2.ObjectPage,kc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),lw=o((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),fw=o(e=>{var t;for(let[n,i]of uw)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),Uq=o((e,t)=>{let n="";for(let[r,a]of uw)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),pw={manifest:{path:o(()=>`sap.ui5/extends/extensions/${kc.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=fw(n);i&&(t[i]={},lw(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=Uq(s,i);e[l]||(e[l]={}),lw(r[s],e[l])}for(let s in e){let l=fw(s);l&&!r[l]&&delete e[s]}},"export")}};var ht=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Ny=o(e=>ht(e)+"/views/paths","getSettingsPathForLRViewsPaths"),Ly=o(e=>ht(e)+"/content/header","getSettingsPathForHeaderOP"),$q=o(e=>ht(e)+"/content/footer","getSettingsPathForFooterOP"),Qr=o(e=>ht(e)+"/controlConfiguration","getControlConfigurationPath"),Ry=o((e,t,n)=>Qr(e)+`/@${jc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),Fy=o(e=>Qr(e)+`/@${jc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),bs=o((e,t,n,i)=>Qr(e)+`/@${jc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),kS=o((e,t,n,i)=>Fy(e)+`/filterFields/${i}`,"getFilterFieldPath"),br=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Qr(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),Ji=o((e,t,n,i,r)=>r?br(e,t,n,i,r):Qr(e)+`/@${jc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),Dy=o((e,t,n,i,r)=>Ji(e,t,n,i,r)+dw.QUICKVARPATH,"getQuickVariantPath"),Zi=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Qr(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),ki=o((e,t,n,i,r)=>r?Zi(e,t,n,i,r):Qr(e)+`/@${jc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),qr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Qr(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Er=o((e,t,n,i,r)=>r?qr(e,t,n,i,r):Qr(e)+`/@${jc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),er=o((e,t,n,i)=>Qr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=o((e,t,n,i)=>Qr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),li=o((e,t,n,i)=>Ly(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),jS=o((e,t,n,i)=>ht(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),mo=o((e,t,n,i)=>$q(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),jn=o((e,t,n)=>Qr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),sf=o((e,t,n,i)=>{let r=ht(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Es=o((e,t,n,i)=>ht(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Ar=o((e,t,n,i)=>{let r=ht(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),cf=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=ht(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),Oy=class Oy{};o(Oy,"ApplicationV4"),h([jt("settings")],Oy.prototype,"settings",2);var Iy=Oy,Xr=class Xr{};o(Xr,"AppSettings"),h([T({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"title",2),h([T({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"description",2),h([T({manifest:{path:o(()=>"sap.fiori","path")}})],Xr.prototype,"cloudDevAdaptationStatus",2),h([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),C({since:"1.78.0"})],Xr.prototype,"flexibleColumnLayout",2),h([T({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"})],Xr.prototype,"flexEnabled",2),h([T({manifest:{path:o(()=>"sap.ui5","path")}})],Xr.prototype,"dependencies",2),h([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Xr.prototype,"viewType",2),h([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Xr.prototype,"viewPath",2),h([T(pw)],Xr.prototype,"controllerExtensions",2);var af=Xr;var he=ie(le());function At(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace("/","::");for(let g in n.properties){let m=Yn(e,g);if(m!=null&&m.manifest){let y=m.manifest.path([i],t,p,...r);l=No(t,y,a,p,!0),l&&Object.keys(l).length>0&&(ml(m,l,g,e,a,r),Wg(u,l,y,s))}}}o(At,"importSettingsOfObject");var RC={};Ws(RC,{ALPChart:()=>HP,ALPTable:()=>hf,ActionAfterExecutionConfiguration:()=>dC,ActionAfterExecutionConfigurationFooter:()=>aP,ActionAfterExecutionConfigurationForm:()=>fP,ActionAfterExecutionConfigurationOP:()=>Hp,ActionAfterExecutionConfigurationObjectPageHeader:()=>bP,ActionAfterExecutionConfigurationToolBarLR:()=>PC,Actions:()=>bC,AdditionalSemanticObject:()=>uC,CommonHeaderFacetSettings:()=>Ls,CommonViewSettings:()=>mf,CustomActionPosition:()=>IC,CustomActionPositionOP:()=>lC,CustomFilterField:()=>HS,CustomFilterFieldPosition:()=>BS,CustomFooterActionOP:()=>lP,CustomFooterActionPositionOP:()=>cP,CustomFormActionOP:()=>hP,CustomHeaderAction:()=>QS,CustomHeaderActionOP:()=>SP,CustomHeaderActionPosition:()=>Op,CustomHeaderActionPositionOP:()=>AP,CustomSectionActionOP:()=>tP,CustomSectionActionPositionOP:()=>eP,CustomTableAction:()=>OC,CustomTableActionOP:()=>fC,FilterBar:()=>US,FlexSettings:()=>CP,FooterActionV4:()=>sP,FormAction:()=>uP,Header:()=>WS,HeaderActions:()=>GS,HeaderSections:()=>RP,LRChartView:()=>GP,LRTableView:()=>WP,MultiTableModeV4:()=>XP,ObjectPageCustomHeaderSectionFlexSettings:()=>qS,ObjectPageCustomHeaderSectionFragment:()=>zS,ObjectPageCustomSectionActions:()=>YS,ObjectPageCustomSectionFragment:()=>lf,ObjectPageCustomSubSectionFragment:()=>JS,ObjectPageFooter:()=>iP,ObjectPageFooterActions:()=>nP,ObjectPageForm:()=>dP,ObjectPageFormActions:()=>pP,ObjectPageHeader:()=>vP,ObjectPageHeaderAction:()=>EP,ObjectPageHeaderActions:()=>yP,ObjectPageHeaderSectionAddress:()=>LP,ObjectPageHeaderSectionChart:()=>IP,ObjectPageHeaderSectionContact:()=>NP,ObjectPageHeaderSectionDataPoint:()=>OP,ObjectPageHeaderSectionForm:()=>xP,ObjectPageLayout:()=>kP,ObjectPageTable:()=>jp,ObjectPageTableColumn:()=>Tf,ObjectPageTableColumnAction:()=>rC,ObjectPageToolBarAction:()=>cC,PersonalizationType:()=>UP,PersonalizationTypeOP:()=>nC,Position:()=>hC,PositionOP:()=>oC,QuickVariantSelectionV4:()=>BP,QuickVariantSelectionV4OP:()=>iC,RelatedApps:()=>pC,Table:()=>QP,TableColumn:()=>Ky,TableColumnAction:()=>gC,TableCreationModeOP:()=>tC,TableCustomColumn:()=>vC,TableCustomColumnOP:()=>aC,TableSettings:()=>Uy,TableViewExtension:()=>KP,TableViewSettings:()=>Mp,ToolBar:()=>EC,ToolBarAction:()=>CC,ViewCustomActionPosition:()=>NC,ViewPersonalizationType:()=>$P,ViewPosition:()=>yC,ViewTableColumn:()=>Xy,ViewTableColumnAction:()=>mC,ViewTableCustomAction:()=>LC,ViewTableCustomColumn:()=>TC,ViewToolBarAction:()=>xC,VisualFilter:()=>$S,checkViewOrder:()=>zP,deleteCreationModeCreateAtEnd:()=>eC,deleteCreationModeName:()=>YP,deletePersonalizationProperty:()=>To,exportCreationModeCreateAtEnd:()=>ZP,exportCreationModeName:()=>qP,exportPersonalization:()=>Wq,exportPersonalizationProperty:()=>vo});function Bq(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(Bq,"exportVisualFilterValueList");var Pp=class Pp{};o(Pp,"FilterBar"),h([T({manifest:{path:Fy}}),C({since:"1.93.0"}),Le("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Pp.prototype,"initialLayout",2),h([T({manifest:{path:Fy}}),C({since:"1.93.0"}),Le("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Pp.prototype,"layout",2);var US=Pp,Cp=class Cp{};o(Cp,"VisualFilter"),h([T({manifest:{path:kS}}),C({since:"1.93.0"}),Le("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Cp.prototype,"availability",2),h([T({manifest:{path:kS,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:Bq,key:"visualFilter"}}),C({since:"1.93.0"})],Cp.prototype,"visualFilterValueList",2);var $S=Cp,xp=class xp{};o(xp,"CustomFilterFieldPosition"),h([T({manifest:{path:o((t,n,i,r)=>bs(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],xp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>bs(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],xp.prototype,"placement",2);var BS=xp,As=class As{};o(As,"CustomFilterField"),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],As.prototype,"label",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],As.prototype,"property",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],As.prototype,"template",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],As.prototype,"required",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],As.prototype,"position",2);var HS=As;var KS=class KS{};o(KS,"HeaderActions");var GS=KS,XS=class XS{};o(XS,"Header");var WS=XS;var Ip=class Ip{};o(Ip,"CustomHeaderActionPosition"),h([T({manifest:{path:o((t,n,i,r)=>li(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Ip.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>li(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Ip.prototype,"placement",2);var Op=Ip,Ss=class Ss{};o(Ss,"CustomHeaderAction"),h([T({manifest:{path:li}}),C({since:"1.84.0"})],Ss.prototype,"text",2),h([T({manifest:{path:li}}),C({since:"1.84.0"})],Ss.prototype,"position",2),h([T({manifest:{path:li}}),C({since:"1.84.0"})],Ss.prototype,"press",2),h([T({manifest:{path:li},generate:zn}),C({since:"1.84.0"})],Ss.prototype,"visible",2),h([T({manifest:{path:li},generate:zn}),C({since:"1.84.0"})],Ss.prototype,"enabled",2);var QS=Ss;var _y=class _y{};o(_y,"ObjectPageCustomHeaderSectionFlexSettings"),h([T({manifest:{path:o((t,n,i)=>Ar(t,n,i,"flexSettings"),"path")}}),C({since:"1.81.0"})],_y.prototype,"designtime",2);var qS=_y,tr=class tr{};o(tr,"ObjectPageCustomHeaderSectionFragment"),h([T({manifest:{path:o((t,n,i)=>Ar(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],tr.prototype,"relatedFacet",2),h([T({manifest:{path:o((t,n,i)=>Ar(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],tr.prototype,"relativePosition",2),h([T({manifest:{path:Ar},generate:ri}),C({since:"1.84.0"})],tr.prototype,"visible",2),h([T({manifest:{path:Ar}}),C({since:"1.77.0"})],tr.prototype,"title",2),h([T({manifest:{path:Ar}}),C({since:"1.77.0"})],tr.prototype,"subTitle",2),h([T({manifest:{path:Ar,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],tr.prototype,"fragmentName",2),h([T({manifest:{path:Ar,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),C({since:"1.86.0"})],tr.prototype,"templateEdit",2),h([T({manifest:{path:Ar}}),C({since:"1.81.0"})],tr.prototype,"stashed",2),h([T({manifest:{path:Ar}}),C({since:"1.81.0"})],tr.prototype,"flexSettings",2),h([T({manifest:{path:Ar}}),C({since:"1.81.0"})],tr.prototype,"requestGroupId",2),h([T({manifest:{path:Ar,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],tr.prototype,"controls",2);var zS=tr;var ZS=class ZS{};o(ZS,"ObjectPageCustomSectionActions");var YS=ZS,Ps=class Ps{};o(Ps,"ObjectPageCustomSectionFragment"),h([T({manifest:{path:o((t,n,i)=>sf(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],Ps.prototype,"relatedFacet",2),h([T({manifest:{path:o((t,n,i)=>sf(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],Ps.prototype,"relativePosition",2),h([T({manifest:{path:sf}}),C({since:"1.77.0"})],Ps.prototype,"title",2),h([T({manifest:{path:sf,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],Ps.prototype,"fragmentName",2),h([T({manifest:{path:sf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],Ps.prototype,"controls",2);var lf=Ps,Cs=class Cs extends lf{};o(Cs,"ObjectPageCustomSubSectionFragment"),h([T({manifest:{path:o((...t)=>`${cf.apply({},t)}/position`,"path"),key:"anchor"}}),C({since:"1.77.0"})],Cs.prototype,"relatedFacet",2),h([T({manifest:{path:o((...t)=>`${cf.apply({},t)}/position`,"path"),key:"placement"}}),C({since:"1.77.0"})],Cs.prototype,"relativePosition",2),h([T({manifest:{path:cf}}),C({since:"1.77.0"})],Cs.prototype,"title",2),h([T({manifest:{path:cf,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],Cs.prototype,"fragmentName",2),h([T({manifest:{path:cf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],Cs.prototype,"controls",2);var JS=Cs;var Np=class Np{};o(Np,"CustomSectionActionPositionOP"),h([T({manifest:{path:o((t,n,i,r)=>Es(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Np.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>Es(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Np.prototype,"placement",2);var eP=Np,xs=class xs{};o(xs,"CustomSectionActionOP"),h([T({manifest:{path:Es}}),C({since:"1.84.0"})],xs.prototype,"text",2),h([T({manifest:{path:Es}}),C({since:"1.84.0"})],xs.prototype,"position",2),h([T({manifest:{path:Es}}),C({since:"1.84.0"})],xs.prototype,"press",2),h([T({manifest:{path:Es},generate:ri}),C({since:"1.84.0"})],xs.prototype,"visible",2),h([T({manifest:{path:Es},generate:ri}),C({since:"1.84.0"})],xs.prototype,"enabled",2);var tP=xs;var rP=class rP{};o(rP,"ObjectPageFooterActions");var nP=rP,oP=class oP{};o(oP,"ObjectPageFooter");var iP=oP;var Lp=class Lp{};o(Lp,"ActionAfterExecutionConfigurationFooter"),h([T({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/afterExecution","path")}}),Le("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Lp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/afterExecution","path")}})],Lp.prototype,"enableAutoScroll",2);var aP=Lp,Vy=class Vy{};o(Vy,"FooterActionV4"),h([T({manifest:{path:mo}}),C({since:"1.84.0"})],Vy.prototype,"afterExecution",2);var sP=Vy,Rp=class Rp{};o(Rp,"CustomFooterActionPositionOP"),h([T({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Rp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Rp.prototype,"placement",2);var cP=Rp,Is=class Is{};o(Is,"CustomFooterActionOP"),h([T({manifest:{path:mo}}),C({since:"1.84.0"})],Is.prototype,"text",2),h([T({manifest:{path:mo}}),C({since:"1.84.0"})],Is.prototype,"position",2),h([T({manifest:{path:mo}}),C({since:"1.84.0"})],Is.prototype,"press",2),h([T({manifest:{path:mo},generate:ri}),C({since:"1.84.0"})],Is.prototype,"visible",2),h([T({manifest:{path:mo},generate:ri}),C({since:"1.84.0"})],Is.prototype,"enabled",2);var lP=Is;var Fp=class Fp{};o(Fp,"ActionAfterExecutionConfigurationForm"),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}}),Le("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Fp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}})],Fp.prototype,"enableAutoScroll",2);var fP=Fp,wy=class wy{};o(wy,"FormAction"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],wy.prototype,"afterExecution",2);var uP=wy,gP=class gP{};o(gP,"ObjectPageFormActions");var pP=gP,mP=class mP{};o(mP,"ObjectPageForm");var dP=mP;var Os=class Os{};o(Os,"CustomFormActionOP"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Os.prototype,"text",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Os.prototype,"position",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Os.prototype,"press",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Os.prototype,"visible",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Os.prototype,"enabled",2);var hP=Os;var TP=class TP{};o(TP,"ObjectPageHeaderActions");var yP=TP,ff=class ff{};o(ff,"ObjectPageHeader"),h([T({manifest:{path:o(t=>ht(t),"path")}}),C({since:"1.84.0"})],ff.prototype,"editableHeaderContent",2),h([T({manifest:{path:Ly}}),C({since:"1.84.0"})],ff.prototype,"visible",2),h([T({manifest:{path:Ly}}),C({since:"1.84.0"})],ff.prototype,"anchorBarVisible",2);var vP=ff;var Dp=class Dp{};o(Dp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([T({manifest:{path:o((t,n,i,r)=>li(t,n,i,r)+"/afterExecution","path")}}),Le("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Dp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>li(t,n,i,r)+"/afterExecution","path")}})],Dp.prototype,"enableAutoScroll",2);var bP=Dp,My=class My{};o(My,"ObjectPageHeaderAction"),h([T({manifest:{path:li}}),C({since:"1.84.0"})],My.prototype,"afterExecution",2);var EP=My,PP=class PP extends Op{};o(PP,"CustomHeaderActionPositionOP");var AP=PP,Ns=class Ns{};o(Ns,"CustomHeaderActionOP"),h([T({manifest:{path:li}}),C({since:"1.84.0"})],Ns.prototype,"text",2),h([T({manifest:{path:li}}),C({since:"1.84.0"})],Ns.prototype,"position",2),h([T({manifest:{path:li}}),C({since:"1.84.0"})],Ns.prototype,"press",2),h([T({manifest:{path:li},generate:ri}),C({since:"1.84.0"})],Ns.prototype,"visible",2),h([T({manifest:{path:li},generate:ri}),C({since:"1.84.0"})],Ns.prototype,"enabled",2);var SP=Ns;var ky=class ky{};o(ky,"FlexSettings"),h([T({manifest:{path:o((t,n,i)=>Ry(t,n,i)+"/flexSettings","path")}}),C({since:"1.81.0"}),Le("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],ky.prototype,"designtime",2);var CP=ky,_p=class _p{};o(_p,"CommonHeaderFacetSettings"),h([T({manifest:{path:Ry}}),C({since:"1.81.0"})],_p.prototype,"stashed",2),h([T({manifest:{path:Ry}}),C({since:"1.81.0"})],_p.prototype,"flexSettings",2);var Ls=_p,FP=class FP extends Ls{};o(FP,"ObjectPageHeaderSectionForm");var xP=FP,DP=class DP extends Ls{};o(DP,"ObjectPageHeaderSectionChart");var IP=DP,_P=class _P extends Ls{};o(_P,"ObjectPageHeaderSectionDataPoint");var OP=_P,VP=class VP extends Ls{};o(VP,"ObjectPageHeaderSectionContact");var NP=VP,wP=class wP extends Ls{};o(wP,"ObjectPageHeaderSectionAddress");var LP=wP,MP=class MP{};o(MP,"HeaderSections");var RP=MP;var jy=class jy{};o(jy,"ObjectPageLayout"),h([T({manifest:{path:o(t=>ht(t),"path")}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],jy.prototype,"sectionLayout",2);var kP=jy;var Gy=ie(le());var jP=ie(le());var Hq=o((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function yo(e,t,n,i,r,a){let s=Ny(e),l=Hq(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[jP.SchemaTag.key]===(a==null?void 0:a.key)||g[jP.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(yo,"getSettingsPathForLRViewsPath");function qP(e,t,n,i){typeof e.creationMode=="string"&&(e.creationMode={}),e.creationMode[i]=t[n]}o(qP,"exportCreationModeName");function Gq(e,t,n,i,r,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let u of l){let p=Number(u),g=e[u];t===g.key?s[n]=g:p>=i&&p<=r?s[Math.max(0,p+a)]=g:s[u]=g}return s}o(Gq,"fillNewlyOrderedViews");function zP(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=Gq(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(zP,"checkViewOrder");function Wq(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(Wq,"exportPersonalization");function vo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(vo,"exportPersonalizationProperty");function YP(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}o(YP,"deleteCreationModeName");function To(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}o(To,"deletePersonalizationProperty");function JP(e,t,n,i,r,a){var l;let s;if(!t||Object.keys(t).length===0){let u=e;Object.keys(u).forEach(p=>{u[p]&&u[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let u=(l=a.table)==null?void 0:l.views;for(let p in u)u[p].index>s&&u[p].index--}}o(JP,"deleteView");function ZP(e,t,n,i){typeof e.creationMode=="object"?e.creationMode[i]=t[n]:typeof e.creationMode=="string"&&(e.creationMode={name:t.name,[i]:t[n]})}o(ZP,"exportCreationModeCreateAtEnd");function eC(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0&&delete e.creationMode[t]}o(eC,"deleteCreationModeCreateAtEnd");function gw(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(gw,"importPersonalization");function mw(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(mw,"determineIndexOfView");var uf=class uf{};o(uf,"PersonalizationType"),h([T({manifest:{path:Ji,export:vo,delete:To}})],uf.prototype,"column",2),h([T({manifest:{path:Ji,export:vo,delete:To}})],uf.prototype,"sort",2),h([T({manifest:{path:Ji,export:vo,delete:To}})],uf.prototype,"filter",2);var UP=uf,pf=class pf{};o(pf,"ViewPersonalizationType"),h([T({manifest:{path:br,export:vo,delete:To}})],pf.prototype,"column",2),h([T({manifest:{path:br,export:vo,delete:To}})],pf.prototype,"sort",2),h([T({manifest:{path:Ji,export:vo,delete:To}})],pf.prototype,"filter",2);var $P=pf,df=class df{};o(df,"QuickVariantSelectionV4"),h([T({manifest:{path:Dy}})],df.prototype,"paths",2),h([T({manifest:{path:Dy}})],df.prototype,"hideTableTitle",2),h([T({manifest:{path:Dy}})],df.prototype,"showCounts",2);var BP=df,ho=class ho{};o(ho,"TableSettings"),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ho.prototype,"type",2),h([T({manifest:{path:Ji,import:gw}}),C({since:"1.86.0"})],ho.prototype,"personalization",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],ho.prototype,"selectionMode",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],ho.prototype,"selectAll",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],ho.prototype,"selectionLimit",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],ho.prototype,"enableExport",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],ho.prototype,"quickVariantSelection",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],ho.prototype,"condensedTableLayout",2);var Uy=ho,$y=class $y{};o($y,"ALPChart"),h([T({manifest:{path:o(t=>ht(t)+"/views/paths/0/primary/0","path"),delete:JP}})],$y.prototype,"annotationPath",2);var HP=$y,Uc=class Uc{};o(Uc,"CommonViewSettings"),h([T({manifest:{path:yo,delete:zs}})],Uc.prototype,"key",2),h([T({manifest:{path:Ny,import:mw,export:o((t,n)=>{zP(t,n)},"export"),delete:JP}})],Uc.prototype,"index",2),h([T({manifest:{path:yo,delete:zs}})],Uc.prototype,"annotationPath",2),h([T({manifest:{path:yo}})],Uc.prototype,"entitySet",2);var mf=Uc,zr=class zr extends mf{};o(zr,"TableViewSettings"),h([T({manifest:{path:br}}),C({since:"1.84.0"})],zr.prototype,"type",2),h([T({manifest:{path:br,import:gw}}),C({since:"1.86.0"})],zr.prototype,"personalization",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],zr.prototype,"selectionMode",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],zr.prototype,"selectAll",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],zr.prototype,"selectionLimit",2),h([T({manifest:{path:br}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],zr.prototype,"enableExport",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],zr.prototype,"quickVariantSelection",2),h([T({manifest:{path:br}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],zr.prototype,"condensedTableLayout",2),h([T({manifest:{path:br}}),C({since:"1.117.0"}),Le("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],zr.prototype,"hierarchyQualifier",2);var Mp=zr;function Kq(e){return Mp}o(Kq,"getTableViewSettings");var Vp=class Vp extends Mp{};o(Vp,"ALPTable"),h([T({manifest:{path:o(t=>ht(t)+"/views/paths/0/secondary/0","path"),delete:zs}})],Vp.prototype,"annotationPath",2),h([T({manifest:{path:o(t=>ht(t),"path")}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Vp.prototype,"initialLoad",2);var hf=Vp,By=class By extends mf{};o(By,"LRChartView"),h([T({manifest:{path:yo},generate:zn})],By.prototype,"visible",2);var GP=By,gf=class gf extends Kq(mf){};o(gf,"LRTableView"),h([T({manifest:{path:yo}})],gf.prototype,"keepPreviousPersonalization",2),h([T({manifest:{path:yo}})],gf.prototype,"entitySet",2),h([T({manifest:{path:yo},generate:zn})],gf.prototype,"visible",2);var WP=gf,Rs=class Rs{};o(Rs,"TableViewExtension"),h([T({manifest:{path:yo}})],Rs.prototype,"key",2),h([T({manifest:{path:Ny,import:mw,export:o((t,n)=>{zP(t,n)},"export"),delete:JP}})],Rs.prototype,"index",2),h([T({manifest:{path:yo}})],Rs.prototype,"label",2),h([T({manifest:{path:yo}})],Rs.prototype,"template",2),h([T({manifest:{path:yo},generate:zn})],Rs.prototype,"visible",2);var KP=Rs,Hy=class Hy{};o(Hy,"MultiTableModeV4"),h([T({manifest:{path:o(t=>ht(t)+"/views","path")}})],Hy.prototype,"showCounts",2);var XP=Hy,wp=class wp extends Uy{};o(wp,"Table"),h([T({manifest:{path:o(t=>ht(t)+"/views/paths/0/secondary/0","path"),delete:zs}})],wp.prototype,"annotationPath",2),h([T({manifest:{path:o(t=>ht(t),"path")}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],wp.prototype,"initialLoad",2);var QP=wp;var kp=class kp{};o(kp,"TableCreationModeOP"),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i),"path"),export:o((t,n,i,r)=>{qP(t,n,i,r)},"export"),delete:o((t,n,i,r)=>{YP(t,r)},"delete")}})],kp.prototype,"name",2),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i),"path"),export:o((t,n,i,r)=>{ZP(t,n,i,r)},"export"),delete:o((t,n,i,r)=>{eC(t,r)},"delete")}})],kp.prototype,"createAtEnd",2);var tC=kp,yf=class yf{};o(yf,"PersonalizationTypeOP"),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i),"path"),export:vo,delete:To}})],yf.prototype,"column",2),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i),"path"),export:vo,delete:To}})],yf.prototype,"sort",2),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i),"path"),export:vo,delete:To}})],yf.prototype,"filter",2);var nC=yf,vf=class vf{};o(vf,"QuickVariantSelectionV4OP"),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i)+Gy.QUICKVARPATH,"path")}})],vf.prototype,"paths",2),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i)+Gy.QUICKVARPATH,"path")}})],vf.prototype,"hideTableTitle",2),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i)+Gy.QUICKVARPATH,"path")}})],vf.prototype,"showCounts",2);var iC=vf,nr=class nr{};o(nr,"ObjectPageTable"),h([T({manifest:{path:jn}}),C({since:"1.84.0"})],nr.prototype,"type",2),h([T({manifest:{path:jn,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),C({since:"1.84.0"})],nr.prototype,"creationMode",2),h([T({manifest:{path:jn,import:o(t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},"import")}}),C({since:"1.86.0"})],nr.prototype,"personalization",2),h([T({manifest:{path:jn}}),C({since:"1.84.0"})],nr.prototype,"selectionMode",2),h([T({manifest:{path:jn}}),C({since:"1.84.0"})],nr.prototype,"selectAll",2),h([T({manifest:{path:jn}}),C({since:"1.84.0"})],nr.prototype,"selectionLimit",2),h([T({manifest:{path:jn}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],nr.prototype,"enableExport",2),h([T({manifest:{path:jn}}),C({since:"1.84.0"})],nr.prototype,"quickVariantSelection",2),h([T({manifest:{path:jn}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],nr.prototype,"condensedTableLayout",2),h([T({manifest:{path:jn}}),C({since:"1.86.0"})],nr.prototype,"enableFullScreen",2),h([T({manifest:{path:jn}}),C({since:"1.84.0"})],nr.prototype,"enablePaste",2);var jp=nr;var Up=class Up{};o(Up,"ActionAfterExecutionConfigurationOP"),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/afterExecution","path")}}),Le("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Up.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/afterExecution","path")}})],Up.prototype,"enableAutoScroll",2);var Hp=Up,$p=class $p{};o($p,"ObjectPageTableColumn"),h([T({manifest:{path:er}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/api/sap.ui.core.CSSSize")],$p.prototype,"width",2),h([T({manifest:{path:er}}),C({since:"1.85.0"})],$p.prototype,"availability",2);var Tf=$p,sC=class sC extends Tf{};o(sC,"ObjectPageTableColumnAction");var rC=sC,Bp=class Bp{};o(Bp,"PositionOP"),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Bp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Bp.prototype,"placement",2);var oC=Bp,Wo=class Wo{};o(Wo,"TableCustomColumnOP"),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Wo.prototype,"position",2),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Wo.prototype,"header",2),h([T({manifest:{path:er}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Wo.prototype,"width",2),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Wo.prototype,"template",2),h([T({manifest:{path:er}}),C({since:"1.86.0"})],Wo.prototype,"horizontalAlign",2),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Wo.prototype,"availability",2),h([T({manifest:{path:er}}),C({since:"1.85.0"})],Wo.prototype,"properties",2);var aC=Wo;var Wy=class Wy{};o(Wy,"ObjectPageToolBarAction"),h([T({manifest:{path:kn}})],Wy.prototype,"enableOnSelect",2);var cC=Wy,Gp=class Gp{};o(Gp,"CustomActionPositionOP"),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Gp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Gp.prototype,"placement",2);var lC=Gp,Ia=class Ia{};o(Ia,"CustomTableActionOP"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ia.prototype,"text",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ia.prototype,"position",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ia.prototype,"press",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ia.prototype,"requiresSelection",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Ia.prototype,"visible",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Ia.prototype,"enabled",2);var fC=Ia;var Wp=class Wp{};o(Wp,"AdditionalSemanticObject"),h([T({manifest:{path:jS}}),Le("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],Wp.prototype,"unavailableActions",2),h([T({manifest:{path:jS}}),Le("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],Wp.prototype,"mapping",2);var uC=Wp,Kp=class Kp{};o(Kp,"RelatedApps"),h([T({manifest:{path:o(t=>ht(t),"path")}}),C({since:"1.84.0"})],Kp.prototype,"showRelatedApps",2),h([T({manifest:{path:ht}})],Kp.prototype,"additionalSemanticObjects",2);var pC=Kp;var Xp=class Xp{};o(Xp,"ActionAfterExecutionConfiguration"),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/afterExecution","path")}}),Le("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Xp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/afterExecution","path")}})],Xp.prototype,"enableAutoScroll",2);var dC=Xp,Qp=class Qp{};o(Qp,"TableColumn"),h([T({manifest:{path:ki}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Qp.prototype,"width",2),h([T({manifest:{path:ki}}),C({since:"1.85.0"})],Qp.prototype,"availability",2);var Ky=Qp,qp=class qp{};o(qp,"ViewTableColumn"),h([T({manifest:{path:Zi}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/api/sap.ui.core.CSSSize")],qp.prototype,"width",2),h([T({manifest:{path:Zi}}),C({since:"1.85.0"})],qp.prototype,"availability",2);var Xy=qp,Qy=class Qy extends Ky{};o(Qy,"TableColumnAction"),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Qy.prototype,"afterExecution",2);var gC=Qy,qy=class qy extends Xy{};o(qy,"ViewTableColumnAction"),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],qy.prototype,"afterExecution",2);var mC=qy,zp=class zp{};o(zp,"Position"),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],zp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],zp.prototype,"placement",2);var hC=zp,Yp=class Yp{};o(Yp,"ViewPosition"),h([T({manifest:{path:o((t,n,i,r,a)=>Zi(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Yp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>Zi(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Yp.prototype,"placement",2);var yC=Yp,Ko=class Ko{};o(Ko,"TableCustomColumn"),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Ko.prototype,"position",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Ko.prototype,"header",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ko.prototype,"width",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Ko.prototype,"template",2),h([T({manifest:{path:ki}}),C({since:"1.86.0"})],Ko.prototype,"horizontalAlign",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Ko.prototype,"availability",2),h([T({manifest:{path:ki}}),C({since:"1.85.0"})],Ko.prototype,"properties",2);var vC=Ko,Xo=class Xo{};o(Xo,"ViewTableCustomColumn"),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Xo.prototype,"position",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Xo.prototype,"header",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Xo.prototype,"width",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Xo.prototype,"template",2),h([T({manifest:{path:Zi}}),C({since:"1.86.0"})],Xo.prototype,"horizontalAlign",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Xo.prototype,"availability",2),h([T({manifest:{path:Zi}}),C({since:"1.85.0"})],Xo.prototype,"properties",2);var TC=Xo;var AC=class AC{};o(AC,"Actions");var bC=AC,SC=class SC{};o(SC,"ToolBar");var EC=SC;var Jp=class Jp{};o(Jp,"ActionAfterExecutionConfigurationToolBarLR"),h([T({manifest:{path:o((t,n,i,r,a)=>Er(t,n,i,r,a)+"/afterExecution","path")}}),Le("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Jp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r,a)=>Er(t,n,i,r,a)+"/afterExecution","path")}})],Jp.prototype,"enableAutoScroll",2);var PC=Jp,Zp=class Zp{};o(Zp,"ToolBarAction"),h([T({manifest:{path:Er}})],Zp.prototype,"enableOnSelect",2),h([T({manifest:{path:Er}})],Zp.prototype,"afterExecution",2);var CC=Zp,ed=class ed{};o(ed,"ViewToolBarAction"),h([T({manifest:{path:qr}})],ed.prototype,"enableOnSelect",2),h([T({manifest:{path:qr}})],ed.prototype,"afterExecution",2);var xC=ed,td=class td{};o(td,"CustomActionPosition"),h([T({manifest:{path:o((t,n,i,r,a)=>Er(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],td.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>Er(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],td.prototype,"placement",2);var IC=td,Oa=class Oa{};o(Oa,"CustomTableAction"),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],Oa.prototype,"text",2),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],Oa.prototype,"position",2),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],Oa.prototype,"press",2),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],Oa.prototype,"requiresSelection",2),h([T({manifest:{path:Er},generate:zn}),C({since:"1.84.0"})],Oa.prototype,"visible",2),h([T({manifest:{path:Er},generate:zn}),C({since:"1.84.0"})],Oa.prototype,"enabled",2);var OC=Oa,nd=class nd{};o(nd,"ViewCustomActionPosition"),h([T({manifest:{path:o((t,n,i,r,a)=>qr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],nd.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>qr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],nd.prototype,"placement",2);var NC=nd,Na=class Na{};o(Na,"ViewTableCustomAction"),h([T({manifest:{path:qr}}),C({since:"1.84.0"})],Na.prototype,"text",2),h([T({manifest:{path:qr}}),C({since:"1.84.0"})],Na.prototype,"position",2),h([T({manifest:{path:qr}}),C({since:"1.84.0"})],Na.prototype,"press",2),h([T({manifest:{path:qr}}),C({since:"1.84.0"})],Na.prototype,"requiresSelection",2),h([T({manifest:{path:qr},generate:zn}),C({since:"1.84.0"})],Na.prototype,"visible",2),h([T({manifest:{path:qr},generate:zn}),C({since:"1.84.0"})],Na.prototype,"enabled",2);var LC=Na;var VC={};Ws(VC,{FreestylePage:()=>DC,ListReport:()=>Sr,ObjectPage:()=>bo});function Xq(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(a=>delete e[a])}o(Xq,"deleteAllALPViews");function Qq(){}o(Qq,"doNotExport");function qq(){}o(qq,"doNotImport");var Sr=class{};o(Sr,"ListReport"),h([T({manifest:{path:o(t=>ht(t)+"/views","path"),import:qq,export:Qq,delete:Xq}})],Sr.prototype,"chart",2),h([T({manifest:{path:o(t=>ht(t),"path")}}),C({since:"1.84.0"})],Sr.prototype,"variantManagement",2),h([T({manifest:{path:o(t=>ht(t)+"/views/paths/[]/0","path")}}),Le("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Sr.prototype,"defaultPath",2),h([T({manifest:{path:o(t=>ht(t),"path")}})],Sr.prototype,"defaultTemplateAnnotationPath",2),h([jt("header")],Sr.prototype,"header",2),h([jt("fe::FilterBar")],Sr.prototype,"filterBar",2),Sr=h([Vr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Sr);var FC=ie(le());var bo=class{};o(bo,"ObjectPage"),h([jt("header")],bo.prototype,"header",2),h([jt("layout")],bo.prototype,"layout",2),h([T({manifest:{path:o(t=>ht(t),"path")}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],bo.prototype,"variantManagement",2),h([jt("sections")],bo.prototype,"sections",2),bo=h([Vr({id:`${FC.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:FC.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],bo);var _C=class _C{};o(_C,"FreestylePage");var DC=_C;var zy=ie(le());var zq={ALPTableView:hf},Yq={ALPTableView:hf},Jq={Table:jp,TableColumn:Tf,ObjectPageCustomSectionView:lf,ActionAfterExecutionConfiguration:Hp},Zq={[zy.PageTypeV4.AnalyticalListPage]:zq,[zy.PageTypeV4.ListReport]:Yq,[zy.PageTypeV4.ObjectPage]:Jq},wC=class wC extends jl{constructor(){super(RC,VC,Zq)}};o(wC,"MetadataInstanceFactoryV4");var La=wC;var MC=require("@sap-ux/vocabularies-types/vocabularies/UI");function kC(e,t,n,i,r,a,s){var g,m,y,A,b,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${MC.UIAnnotationTerms.LineItem}`?a:he.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let D in p.properties){let G=l[u].properties[D].$ref.split(U)[1].split("<")[0];e.columns[D]=n.createInstance(i,G);let B=s||a;At(e.columns[D],t.manifest,l[G],r,[D,B],B,t.logger),Do(e.columns,D)}Do(e,"columns")}else{let D=(O=(b=(A=(y=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:y[r])==null?void 0:A.options)==null?void 0:b.settings)==null?void 0:O.views;(!D||D.paths.length<1)&&se(t.logger,{severity:he.LogSeverity.Error,message:q.t("NOLINEITEMS")})}}o(kC,"transferColumns");function e9(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[he.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let u=s.properties[l];if(typeof u=="object"&&u.$ref){let p=hn(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),At(t.visualFilters[l],e.manifest,a[p],r,[l])}}Do(t,"visualFilters")}}o(e9,"importVisualFilters");function t9(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[he.DefinitionName.LineItems,`${he.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${MC.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${he.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let g in p.properties){let m=p.properties[g];if(typeof m=="object"&&m.$ref){let y=hn(m.$ref),A=y.split("<")[0];t.toolBar.actions[g]=n.createInstance(i,A),At(t.toolBar.actions[g],e.manifest,l[y],r,[g,u]),Do(t.toolBar.actions,g)}}}o(t9,"importActions");function jC(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,At(u.toolBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.ToolBarLR],r,[]),t9(e,u,n,i,r,a,s),Do(u.toolBar,"actions"),Do(u,"toolBar")}o(jC,"transferToolBar");function hw(e,t){var r;let n=(r=e[t])==null?void 0:r[he.SchemaTag.annotationPath];return n==null?void 0:n.substr(n.lastIndexOf("@"))}o(hw,"determineTargetAnnotationOfView");function n9(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,he.DefinitionName.ALPChart);let s=a[he.DefinitionName.ALPChart],l=s[he.SchemaTag.annotationPath];At(t.chart,e.manifest,s,r,[s[he.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),At(t.chart.toolBar,e.manifest,a[he.DefinitionName.ViewChartToolBar],r,[]);let u=a[he.DefinitionName.ALPTable][he.SchemaTag.annotationPath];if(u){let p=a[he.DefinitionName.ALPTable],g=t.table=n.createInstance(i,he.DefinitionName.ALPTable);jC(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));At(g,e.manifest,p,r,[p[he.SchemaTag.key],m]),kC(g,e,n,i,r,void 0,m)}}o(n9,"importALPViews");function i9(e){let t;return e.indexOf(he.DefinitionName.LRTableView)>-1?t=he.DefinitionName.LRTableView:e.indexOf(he.DefinitionName.LRChartView)>-1?t=he.DefinitionName.LRChartView:e===he.DefinitionName.TableViewExtension&&(t=he.DefinitionName.TableViewExtension),t}o(i9,"getViewTypeByDefinition");function r9(e,t,n,i,r){let a=t.table.views=n.createInstance(i,he.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;At(a,e.manifest,s[he.DefinitionName.MultiTableModeV4],r,[]);let l=s[he.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][he.SchemaTag.propertyIndex]-g[1][he.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split(U)[1],m=i9(g),y=a[p[0]]=n.createInstance(i,m),A=hw(s,g);if(!s[g].entitySet&&(At(y,e.manifest,s[g],r,[p[0],A]),m===he.DefinitionName.LRTableView)){let b=`${he.DefinitionName.LineItemsOfView}::${p[0]}`;jC(e,y,n,i,r,b,A),kC(y,e,n,i,r,b,A)}Object.keys(y).length===0&&delete a[p[0]]}Do(t.table,"views")}o(r9,"importLRViews");function o9(e,t,n,i,r){let a=he.DefinitionName.HeaderActions,s=he.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let u in l.properties){let p=l.properties[u];if(typeof p=="object"&&p.$ref){let g=hn(p.$ref),m=e.definitions[g],y=hn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(he.PageTypeV4.ObjectPage,y),At(t[s].actions[u],i,e.definitions[y],r,[u.replace("/","??")]),Do(t.header,"actions"),Do(t,"header")}}}}o(o9,"transferHeaderActions");function a9(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[he.DefinitionName.SelectionFields,he.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==U+he.DefinitionName.CustomFilterField)continue;let u=n.createInstance(he.PageTypeV4.ListReport,he.DefinitionName.CustomFilterField),p=l.$ref.split(U)[1];At(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(a9,"importCustomFilterFields");function s9(e,t,n,i,r,a){if(At(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,he.DefinitionName.Header),At(t.header,e.manifest,e.jsonSchema.definitions[he.DefinitionName.Header],r,[]),o9(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,he.DefinitionName.FilterBar),At(t.filterBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.FilterBar],r,[]),e9(e,t.filterBar,n,i,r),a9(e,t.filterBar,n,r),a===he.SchemaType.ListReport){let s=he.DefinitionName.Table,l=e.jsonSchema.definitions[s],u;l.$ref&&(s=l.$ref.split(U)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split(U)[1]),t.table=n.createInstance(i,he.DefinitionName.Table);let p=hw(e.jsonSchema.definitions,s);At(t.table,e.manifest,l,r,[s,p]),jC(e,t,n,i,r,u),kC(t.table,e,n,i,r,u,p),r9(e,t,n,i,r)}else a===he.SchemaType.AnalyticalListPage&&n9(e,t,n,i,r)}o(s9,"addSettings");function $c(e,t){if(nn(),!e.jsonSchema)return;if(!e.manifest[he.ManifestSection.ui5]||!e.manifest[he.ManifestSection.ui5].routing){se(e.logger,{severity:he.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let n=e.manifest[he.ManifestSection.ui5].routing.targets;if(!n){se(e.logger,{severity:he.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let i=new La,r=i.createPageInstance(he.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=sb(s);if("name"in s&&(l===he.PageTypeV4.ListReport||l===he.PageTypeV4.AnalyticalListPage)){s9(e,r,i,he.PageTypeV4.ListReport,a,t);break}}return r}o($c,"createListReportConfig");var ve=ie(le()),Bc=require("@sap-ux/vocabularies-types/vocabularies/UI");function c9(e,t){var i;let n="boolean";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?e==="true"||e==="false":!1}o(c9,"isBoolean");function l9(e,t){var i;let n="number";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?!isNaN(parseFloat(e.toString())):!1}o(l9,"isNumber");function f9(e,t){let n=e.toString();return c9(n,t)?n==="true":l9(n,t)?parseFloat(n):e}o(f9,"convertValue");function u9(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=f9(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(u9,"importProperty");function yw(e,t,n){let i,r=rf(e.file,!1,n);if(r){let a=Ay(r);i={},Vc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},u9)}return i}o(yw,"convertXmlFileToConfig");function Yy(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=Uo(t||[],r,n,a),l;return s&&(l=yw(s,i,e.logger)),l}o(Yy,"createCustomPageConfig");function id(e,t){var y;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=of(t),u=(y=r.definitions)==null?void 0:y[l];if(!r||!u)return;let p=xc(i,a),g=Ic(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=yw(g,A,s)}return m}o(id,"createCustomFragmentConfig");function UC(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(UC,"getManifestId");function rd(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(rd,"getDefinitionId");function p9(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[rd(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(ve.DefinitionName.CustomColumnOP)>-1?s=ve.DefinitionName.CustomColumnOP:s=ve.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(ve.PageTypeV4.ObjectPage,s);At(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(p9,"fillTableColumnsInConfig");function bw(e,t,n,i,r,a=n){if(typeof t=="object")for(let s in t.properties){let l=t.properties[s];if(typeof l=="object"&&l.$ref){let u=hn(l.$ref),p=u.split("<")[0],g;p.includes(ve.DefinitionName.CustomSectionActionOP)?g=i.actions:g=i[n].table.toolBar.actions,g[s]=r.createInstance(ve.PageTypeV4.ObjectPage,p),At(g[s],e.manifest,e.jsonSchema.definitions[u],e.routingId,[s],a),Object.keys(g[s]).length===0&&delete g[s]}}}o(bw,"fillSectionActionsInConfig");function d9(e,t,n,i,r,a=n){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageSectionForm}<${rd(a)}>`].properties.form.$ref.split(U)[1],g=e.jsonSchema.definitions[l].properties.actions.$ref.split(U)[1],m=e.jsonSchema.definitions[g];for(let y in m.properties){let A=m.properties[y],b=hn(A.$ref),O=e.jsonSchema.definitions[b];if(O.annotationType===Bc.UIAnnotationTypes.DataFieldForAction||O.description==="Custom Action"){let D=hn(O.$ref)||b.split("<")[0];i[n].form.actions[y]=r.createInstance(ve.PageTypeV4.ObjectPage,D),At(i[n].form.actions[y],e.manifest,e.jsonSchema.definitions[D],e.routingId,[y.replace("/","??")],a),Object.keys(i[n].form.actions[y]).length===0&&delete i[n].form.actions[y]}}}}o(d9,"fillFormActionsInConfig");function vw(e,t,n,i,r,a){var u;let s=a||UC(i,!1,Bc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageTable);let p=`${ve.DefinitionName.ObjectPageTable}<${a?rd(a):i.replace("#","::")}>`;At(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${ve.DefinitionName.Actions}<${rd(s)}>`];bw(e,g,i,n,r,s),p9(e,l,n,i,r,s)}}o(vw,"fillTableInConfig");function g9(e,t,n,i,r){var l;let a=UC(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageForm,{actions:{}}),d9(e,s,i,n,r,a))}o(g9,"fillFormInConfig");function m9(e,t,n,i,r,a){let s=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(U)[1];if(At(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=id(e,s.fragmentName);s.controls=u}n[i]=s}o(m9,"fillCustomSubSectionInConfig");function Ew(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let y=t[m],A=m;if(m.includes(Bc.UIAnnotationTerms.PresentationVariant)&&((s=y.$ref)!=null&&s.startsWith(U+ve.DefinitionName.ObjectPageSectionTableV4))){let b=y.$ref.split(U)[1];A=b?UC(b,!0,Bc.UIAnnotationTerms.LineItem):m,vw(e,n,i,m,r,A)}else(l=y.$ref)!=null&&l.startsWith(U+ve.DefinitionName.ObjectPageSectionTableV4)?vw(e,n,i,m,r):y.properties&&y.properties.subsections?(i[m]={subsections:{}},Ew(e,y.properties.subsections.properties,n,i[m].subsections,r,m)):(u=y.$ref)!=null&&u.startsWith(U+ve.DefinitionName.ObjectPageSectionForm)&&((p=y.$ref)!=null&&p.includes(`@${Bc.UIAnnotationTerms.FieldGroup}::`))?g9(e,n,i,m,r):(g=y.$ref)!=null&&g.startsWith(U+ve.DefinitionName.ObjectPageCustomSubSectionFragment)&&m9(e,y,i,m,r,a)}}o(Ew,"fillSectionsInConfig");function h9(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionFragment);if(At(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageCustomSectionActions}<${rd(l)}>`];bw(e,m,l,p,i,l)}let g=u.template;if(g){let m=id(e,g);p.controls=m}n.sections[l]=p}}o(h9,"fillCustomSectionsInConfig");function y9(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomHeaderSectionFragment);At(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let y=id(e,g);p.controls=y}let m=u.templateEdit;if(m){let y=id(e,m);p.controlsEditMode=y}n.header.sections[l]=p}}o(y9,"fillCustomHeaderSectionsInConfig");function v9(e,t,n,i,r){var s,l;let a=e.definitions[ve.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split(U)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(ve.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=g?n.createInstance(ve.PageTypeV4.ObjectPage,g):{},At(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ve.FACETTITLEPREFIX)[1]))}}}o(v9,"fillHeaderFacets");function T9(e,t,n,i,r,a,s){let l=hn(e.$ref),u=t.definitions[l],p=hn(u.$ref||e.$ref),g=n.createInstance(ve.PageTypeV4.ObjectPage,p);if(g){let m=i[r]=g;At(m,a,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}o(T9,"importActionSettingsOfReference");function Tw(e,t,n,i,r,a,s){let l=e.definitions[a];if(typeof l=="object"){let u=t[s].actions={};for(let p in l.properties){let g=l.properties[p];typeof g=="object"&&g.$ref&&T9(g,e,n,u,p,i,r)}}}o(Tw,"fillHeaderFooterActions");function b9(e,t,n){var a,s;let i=n.createPageInstance(ve.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageHeader),At(i.header,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageFooter),At(i.footer,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageLayout),At(i.layout,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageLayout],e.routingId,[]),At(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[ve.DefinitionName.Sections]&&(i.sections={},Ew(e,e.jsonSchema.definitions[ve.DefinitionName.Sections].properties,r,i.sections,n)),h9(e,r,i,n),v9(e.jsonSchema,i,n,e.manifest,e.routingId),y9(e,r,i,n),Tw(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.ObjectPageHeaderActions,ve.PropertyName.header),Tw(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.FooterActions,ve.PropertyName.footer)),i}o(b9,"fillObjectPageConfig");function Jy(e){if(nn(),!e.manifest[ve.ManifestSection.ui5]||!e.manifest[ve.ManifestSection.ui5].routing){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let t=e.manifest[ve.ManifestSection.ui5].routing.targets;if(!t){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let i=new La;return b9(e,n,i)}o(Jy,"createObjectPageConfigV4");var Ge=ie(le());var $C=[],Zy={};function E9(e,t){let n=e.target,i=t.target,r=Array.isArray(n),a=Array.isArray(i);return r&&a?n.length-i.length:!r&&!a?0:r?1:-1}o(E9,"routesSorter");function BC(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}o(BC,"resolveTarget");function A9(e){let t={};e=e.concat().sort(E9);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=BC(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(A9,"populateAssociations");function S9(e,t,n){let i;return e.name?e.name===Ge.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ge.PageTypeV4.FPMCustomPage:e.name.endsWith(Ge.PageTypeV4.ListReport)||e.name.endsWith(Ge.PageTypeV4.AnalyticalListPage)?i=Ge.PageTypeV4.ListReport:e.name.endsWith(Ge.PageTypeV4.ObjectPage)?i=Ge.PageTypeV4.ObjectPage:i=Ge.PageTypeV4.CustomPage:"viewId"in e?i=Ge.PageTypeV4.CustomPage:(se(t,{severity:Ge.LogSeverity.Error,message:q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ge.MANIFESTPATH,range:[`${Ge.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ge.ViewTypes&&"viewName"in e&&(i=Ge.PageTypeV4.CustomPage)),i}o(S9,"determinePageType");function P9(e){let t=e.target.viewId||e.target.id,n=Dt(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ge.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===Ge.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=Jy(r)}else if(e.page.pageType===Ge.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=Yy(r)}else if(e.templateType===Ge.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=$c(r,Ge.SchemaType.ListReport)}else if(e.templateType===Ge.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=$c(r,Ge.SchemaType.AnalyticalListPage)}else if(e.templateType===Ge.TemplateType.FreestylePageV4&&e.page.pageType===Ge.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=eu(e.target)===Ge.TemplateType.AnalyticalListPageV4?Ge.SchemaType.AnalyticalListPage:Ge.SchemaType.ListReport;e.page.config=$c(r,s)}}}o(P9,"convertSettingsToConfig");function C9(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");$C.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");$C.push(t[t.length-1])}}o(C9,"updateUnhandledControllers");function x9(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}o(x9,"setVariantManagmentAndNavigation");function I9(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=Mc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(I9,"setEntitySetEntityTypeContextPath");function O9(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.path&&{viewPath:e.path},...e.viewPath&&{viewPath:e.viewPath}};else if([Ge.PageTypeV4.CustomPage,Ge.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName,s=e.name;!a&&n===Ge.PageTypeV4.CustomPage&&(a=s,s=void 0),t.view={...e.id&&{id:e.id},...a&&{name:a},...s&&{template:s},...e.viewType&&{viewType:e.viewType}}}}o(O9,"evaluateCustomPageSettings");function N9(e,t,n,i){let r=e.targets[t],a=S9(r,i.logger,t),s={pageType:a};if(I9(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),Zy[t]&&Zy[t].indexOf(".")!==-1){let p=Zy[t].split(".");s.navigationProperty=p[p.length-1]}O9(r,s,a),x9(r,s),C9(r);let l=e.routes.find(p=>(p==null?void 0:p.target)&&p.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};P9(u)}o(N9,"getSinglePageAndConfig");function Aw(e){let t={},n=e.manifest[Ge.ManifestSection.ui5].routing;if(!n||!n.routes){let i=q.t("NOROUTING");return se(e.logger,{severity:Ge.LogSeverity.Error,message:i,location:{path:Ge.MANIFESTPATH,range:[Ge.ManifestSection.ui5]}}),t}Zy=A9(n.routes||[]);for(let i in n.targets)N9(n,i,t,e);return t}o(Aw,"getPagesAndConfigs");function Sw(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return BC(t?t.target:e.routes[0].target)}else return}o(Sw,"getHome");function Pw(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.path&&{viewPath:t.path},...t.viewPath&&{viewPath:t.viewPath}}:{}}o(Pw,"getSettings");function Ef(e,t){let n=e[Ge.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];a.name===t&&(i[r]=a)}return i}o(Ef,"getPages");var HC=class HC extends qa{constructor(t){nn();let n=new af,i=Dt(Ge.SchemaType.Application),r=t.appSchemas[i.filename];At(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,Sw(t.manifest[Ge.ManifestSection.ui5].routing),Aw(t),{...Pw(t.manifest[Ge.ManifestSection.ui5].routing),...n}),this.unhandledControllers=$C}};o(HC,"V4AppProvider");var bf=HC;var Cw=require("fs"),Hc=require("path"),xw=ie(le()),od=ie(le());var Iw=o((e,t,n=__dirname)=>{let i;switch(t){case od.SchemaType.Application:{i=`${od.SchemaType.Application}${e.toUpperCase()}.json`;break}case od.SchemaType.FPMCustomPage:{i=`${od.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,Hc.join)(n,"schemas",e,i);if(n.endsWith((0,Hc.join)("specification","packages","specification")))return(0,Hc.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Hc.join)("src","specification")))return(0,Hc.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,Hc.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),L9=o(async e=>new Promise((t,n)=>{(0,Cw.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),ev=o(async(e,t)=>{try{let n=Iw(e||xw.FioriElementsVersion.v4,t,__dirname);return await L9(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function R9(e,t){let n={},i=[];switch(i=[fe.SchemaType.Application],e){case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.AnalyticalListPageV4:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.FreestylePageV4:i.push(fe.SchemaType.FreestylePage),t===fe.FioriElementsVersion.v4&&i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.ListReportObjectPageV2:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage);break;case fe.TemplateType.AnalyticalListPageV2:i.push(fe.SchemaType.AnalyticalListPage,fe.SchemaType.ObjectPage);break;case fe.TemplateType.OverviewPageV2:i.push(fe.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Dt(r);n[a.filename]=await ev(t,r)}return n}o(R9,"getGenericSchemas");function Nw(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ii(fe.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(Nw,"getAnnotationsForUi");function ad(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(ad,"getEntitySetByEntitySetName");function F9(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let a=2;a<e.objectPath.length;a++){let s=e.objectPath[a];if(i&&s._type==="NavigationProperty"){let l=s.containsTarget?`${s.name}/${s.partner}`:s.name,u=(r=i.navigationPropertyBinding)==null?void 0:r[l];i=t.entitySets.find(p=>p.name===(u==null?void 0:u.name))}}return{entityType:n,entitySet:i}}o(F9,"resolveNavigationProperty");function Mc(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(u=r.target)==null?void 0:u.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=F9(r,e):se(i,{severity:fe.LogSeverity.Error,message:q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:fe.MANIFESTPATH}}),n&&!a&&se(i,{severity:fe.LogSeverity.Error,message:q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(Mc,"getEntityTypeEntitySetFromContextPath");function Ow(e,t,n){let i=Wu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=ad(a,e.serviceAVT);s||se(e.logger,{severity:fe.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Dt(fe.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=Dt(fe.SchemaType.ObjectPage);n[l.filename]=sd(e,t[u.filename])}}o(Ow,"generateObjectPageSchemasV2");function D9(e,t,n){var l,u;let i=Ef(e.manifest,fe.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Ef(e.manifest,fe.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:y,entityType:A}=Mc(s,m,g,e.logger);e.entityType=A,e.entitySet=y;let b=Dt(fe.SchemaType.ListReport,p),O=Dt(fe.SchemaType.ListReport);e.templateType===fe.TemplateType.FreestylePageV4&&(e.templateType=eu(a[p])),n[b.filename]=Qu(e,t[O.filename],a[p].name,m)}}o(D9,"generateListReportSchemasV4");function _9(e,t,n){var r;let i=Wu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=ad(s,e.serviceAVT);let l=Dt(fe.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Dt(fe.SchemaType.ListReport);t[l.filename]=cd(e,n[u.filename])}}o(_9,"generateAppSchemaV2LR");function V9(e,t,n){var a,s;let i=Ef(e.manifest,fe.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=Mc(r,p,u);e.entitySet=m,e.entityType=g;let y=Dt(fe.SchemaType.ObjectPage,l),A=Dt(fe.SchemaType.ObjectPage),b=Dt(fe.SchemaType.FPMCustomPage);n[y.filename]=Sp(e,t[A.filename],p,t[b.filename])}}o(V9,"generateObjectPageSchemasV4");function w9(e,t,n,i){var a;let r={};if(i===fe.TemplateType.ListReportObjectPageV2&&n)_9(e,r,t),Ow(e,t,r);else if(i===fe.TemplateType.AnalyticalListPageV2&&n){let s=Wu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=ad(u,e.serviceAVT);let p=Dt(fe.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=Dt(fe.SchemaType.AnalyticalListPage);r[p.filename]=ld(e,t[g.filename])}Ow(e,t,r)}else if(i===fe.TemplateType.OverviewPageV2){let s=Dt(fe.SchemaType.OverviewPage),l=Dt(fe.SchemaType.OverviewPage);r[s.filename]=fd(t[l.filename],e.manifest)}return{...t,...r}}o(w9,"generateAppSchemasV2");function M9(e,t,n){if(!qs(e.featureToggles,fe.Features.BuildingBlocks))return;let i=Ef(e.manifest,fe.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=Uo(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=Dt(fe.SchemaType.FPMCustomPage,void 0,l),p=Dt(fe.SchemaType.FPMCustomPage);n[u.filename]=wc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(M9,"generateCustomPageSchemasV4");function k9(e,t,n){let i={};return n&&(D9(e,t,i),V9(e,t,i),M9(e,t,i)),{...t,...i}}o(k9,"generateAppSchemasV4");async function Lw(e,t,n){let i=await R9(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===fe.FioriElementsVersion.v4?k9(e,i,t):w9(e,i,t,n)}o(Lw,"generateAppSchemas");function j9(e){let t,n=[];switch(e.templateType){case fe.TemplateType.ListReportObjectPageV2:case fe.TemplateType.AnalyticalListPageV2:t=new Ch(e);break;case fe.TemplateType.AnalyticalListPageV4:case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.FreestylePageV4:t=new bf(e);break;case fe.TemplateType.OverviewPageV2:t=new Oh(e);break;default:t=new bf(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(j9,"importConfigs");function Rw(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===fe.SchemaType.Application?r=`${fe.DirName.Schemas}/${fe.FileName.App[0].toUpperCase()}${fe.FileName.App.slice(1)}`:r=`${fe.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(Rw,"getFileList");async function GC(e){var b,O;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new iu().doesUi5VersionFitDistTags((O=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:O.minUI5Version,i);let u=pb(t),p=Oo(n,i),g=Nw(p),m=db(t,u,i),A=await Lw({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return Rw(A)}o(GC,"importProjectSchema");async function WC(e){var G,B;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new iu().doesUi5VersionFitDistTags((B=(G=t["sap.ui5"])==null?void 0:G.dependencies)==null?void 0:B.minUI5Version,i);let p=pb(t),g=jF(t),m=Oo(n,i),y=db(t,p,i),A={templateType:y,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=Nw(m),O=await Lw(A,b,y),j=j9({manifest:t,flexChanges:s,appSchemas:O,templateType:y,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return Rw(O,j)}o(WC,"importProjectSchemaAndConfig");var U9=["header","sections","footer"];function $9(e,t,n,i){t.properties[n][oe.SchemaTag.artifactType]=oe.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=oe.ControlType.Section;break;case"ObjectPageSubSectionV2":r=oe.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=oe.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=oe.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=oe.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=oe.ControlType.ObjectPageHeaderSection;break}r&&(gt(e,t,n),t.properties[n][oe.SchemaTag.controlType]=r)}o($9,"addFlexChangeForSection");function B9(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Eo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=am(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${pt(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Eo.UIAnnotationTerms.Identification}`,`/@${Eo.UIAnnotationTerms.Identification}`);t.definitions[g][oe.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][oe.SchemaTag.actionType]=oe.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][oe.SchemaTag.keys]=[{name:oe.SchemaKeyName.action,value:s}],u&&(t.definitions[g][oe.SchemaTag.target]=u),i.properties[l]={$ref:`${U}${g}`}}})}o(B9,"addHeaderActionCallBackV2");function H9(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Eo.UIAnnotationTypes.DataFieldForAction){let a=ua(r).split("::").splice(1).join("::"),s=yi(r,e),l=pt(`${oe.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Eo.UIAnnotationTerms.Identification}`,`/@${Eo.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[oe.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${U}${l}`}}})}o(H9,"addFooterActionCallBackV2");function G9(e,t,n,i,r,a,s,l){let u,p;if(a.ID&&a.Label?u=a.ID+a.Label.replace(/\s+/g,""):a.ID?u=a.ID:a.Label&&(u=a.Label.replace(/\s+/g,"")),u?p=`${oe.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${oe.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${oe.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[g]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],y=r==null?void 0:r.entityTypes.find(b=>b.name===i),A=bc(t[oe.ManifestSection.generic].pages,n,m);return yl(e,y,A,t,l,p,g,a.ID),p}o(G9,"ensureCustomColumnDefinitionExists");function pd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&$9(e,t,"visible",n)}o(pd,"addAppSchemaDefinition");function W9(e,t,n){e.properties[t]={$ref:`${U}${n}`}}o(W9,"addSectionReference");function ud(e,t,n,i){let r=pt(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=U+t,i.definitions[r].properties.toolBar.$ref=`${U}ObjectPageToolBar<${t}>`,i.definitions[r][oe.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=oe.FACETTITLEPREFIX+n.ID,i.definitions[r][oe.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=oe.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${U}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${U}QuickVariant<${t}>`,Wa(n.entityType,i,`QuickVariant<${t}>`)}o(ud,"addTableDefinition");function K9(e,t,n,i,r,a){if(i.base!==oe.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=Lo(n,i,t);let u=n.definitions[l];pd(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[oe.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${U}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${U}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${U}ObjectPageAnalyticalTable<${t}>`},{$ref:`${U}ObjectPageGridTable<${t}>`},{$ref:`${U}ObjectPageTreeTable<${t}>`}],u[oe.SchemaTag.annotationPath]=i.annotationPath,la(i,u,t),Ha(i,u,t),ud("ObjectPageResponsiveTableWithMultiSelect",t,i,n),ud("ObjectPageResponsiveTableWithInlineDelete",t,i,n),ud("ObjectPageGridTable",t,i,n),ud("ObjectPageTreeTable",t,i,n),ud("ObjectPageAnalyticalTable",t,i,n);let p,g=A0(i.entityType,e.serviceAVT);g&&(p=G9(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let y=r[m];y.base===oe.FacetBase.LineItem&&(y.ID===s||m.includes(s))&&hl(!0,n,y.target,y.entityType,y.ID||m,p)}}o(K9,"handleLineItem");function X9(e,t,n,i,r,a=!1){e.definitions[t]=Lo(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";pd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(X9,"handleSubSection");function Q9(e,t,n,i,r){e.definitions[t]=Lo(e,n,i);let a=e.definitions[t];pd(e,a,r,"ObjectPageSectionChartV2")}o(Q9,"handleSectionChart");function Fw(e,t,n,i,r,a){e.definitions[t]=Lo(e,n,i);let s=e.definitions[t];pd(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=nc(n==null?void 0:n.target)}o(Fw,"handleHeaderFacet");function q9(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=nc(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}o(q9,"addDataPointHeaderFacetDataType");function z9(e,t,n,i,r){e.definitions[t]=Lo(e,n,i);let a=e.definitions[t];return pd(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o(z9,"handleFormSection");function Y9(e,t,n){let i=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[oe.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[oe.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[oe.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[oe.FacetBase.Form,"ObjectPageHeaderSectionForm"],[oe.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSubSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(Y9,"getSectionType");function J9(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Eo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(J9,"getReferenceKey");function _w(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=Y9(l.base,a,s),p=J9(l,n,u),g=`${u}<${p}>`;switch(W9(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,X9(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let y in l.facets)_w(e,l.facets,y,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{K9(e,p,r,l,t,u),Tl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{Q9(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=z9(r,g,l,p,u);om(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{nu(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{nu(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{Fw(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{Fw(r,g,l,p,u),q9(r,g,l);break}default:i.properties[n]=Lo(r,l,p)}}o(_w,"addSection");function Dw(e,t,n,i,r,a=!1){if(e)for(let s in t)_w(i,t,s,n,r,!1,a)}o(Dw,"addSectionsFromFacets");function Vw(e,t,n){var g,m,y,A,b,O;let i=t.definitions[oe.DefinitionName.Sections];i[oe.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Eo.UIAnnotationTerms.Facets}`);let r=t.definitions[oe.DefinitionName.HeaderSections];if(r[oe.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Eo.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Mg((y=e.entitySet)==null?void 0:y.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=wg((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let D in n){let j=n[D];(O=(b=e.entitySet)==null?void 0:b.name)!=null&&O.includes(j.entitySet)?(Dw(l,a,i,e,t),Dw(u,s,r,e,t,!0)):Vw(e,t,j.pages)}let p=t.definitions.CustomSections;for(let D in p.properties)i.properties[D]=p.properties[D]}o(Vw,"addSections");function Z9(e,t,n){lm(e,n),cm(e,n,t,B9,void 0,!0)}o(Z9,"addHeader");function ez(e,t,n,i){let r=$F(t,n,i,void 0,!0);r&&C0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(ez,"addRelatedFacetKeysType");function sd(e,t){var s;nn();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[oe.PropertyName.sections]={$ref:U+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[oe.ManifestSection.generic].pages;return a?(Z9(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Vw(e,n,a),ez(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[oe.SchemaTag.isViewNode]=!0):delete n.properties[oe.PropertyName.sections]),sm(n,e,oe.FioriElementsVersion.v2,H9,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,Fo(n,U9),n):(se(e.logger,{severity:oe.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:oe.MANIFESTPATH,range:[oe.ManifestSection.generic]}}),n)}o(sd,"generateObjectPageSchemaV2");var fi=ie(le());var Af=require("@sap-ux/vocabularies-types/vocabularies/UI");var nz=["filterBar","table","footer"],iz=fi.UIVOCABULARYALPHADOT.substring(1);function KC(e,t,n,i){Wa(e,n,"QuickVariant"),S0(n,"QuickVariantX",t),P0(i,n,"QuickVariantX")}o(KC,"addEnumForVariantPaths");function rz(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Af.UIAnnotationTerms.SelectionPresentationVariant,Af.UIAnnotationTerms.SelectionVariant,Af.UIAnnotationTerms.PresentationVariant];um(e,r,i)}o(rz,"addEnumForFilterBarAnnotationPath");function oz(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(Af.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(Af.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(iz,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(se(n,{severity:fi.LogSeverity.Warning,message:q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(oz,"getPresentationVariantForLineItem");function az(e,t,n){if(tm(t,"annotationPath",n))return;let i=oz(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=tu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||se(n,{severity:fi.LogSeverity.Warning,message:q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(az,"getLineItemAnnotation");function cd(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:U+fi.DefinitionName.LineItems},r=U+fi.DefinitionName.ToolBarLR;Tb.forEach((u,p)=>{n.properties.table.anyOf[p.toString()].$ref=U+u;let g=u.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[g]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[u]=m});let{entityType:a,uIAnnotations:s}=em(e);if(s){let u=[],p=Vl(e.manifest[fi.ManifestSection.generic].pages,u);vl(n);let g=az(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let y=pr(a.fullyQualifiedName,g.term,g.qualifier);Tb.forEach(A=>{n.definitions[A][fi.SchemaTag.annotationPath]=y})}hl(!1,n,g,a);let m=s.SelectionFields;if(Jg(n,m,a),Tl(n,a),!p)return se(e.logger,{severity:fi.LogSeverity.Error,message:q.t("NOLR"),location:{path:fi.MANIFESTPATH,range:[fi.ManifestSection.generic]}}),n;yl(n,a,p,e.manifest,e.fragments),KC(a,e.entitySet,n,e.serviceAVT),rz(a,n,fi.DefinitionName.ListReportFilterBar),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return Fo(n,nz),n}o(cd,"generateListReportSchemaV2");var Zt=ie(le());var sz=["filterBar","keyPerformanceIndicators","chart","table","footer"];function cz(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(tm(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(O){let D=O+(r?"#"+r:"");return t[D]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return se(n,{severity:Zt.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||tu("LineItem",O),g=g||tu("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],y=t[g],A=(m||i.quickVariantSelectionX?0:1)+(y?0:2);if(A>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],D=q.t(O);se(n,{severity:Zt.LogSeverity.Warning,message:D})}return{lineItemAnnotation:m,chartAnnotation:y}}o(cz,"getLineItemAndChartAnnotation");function lz(e,t){let n=e.definitions[Zt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Zt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(lz,"addChart");function ld(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[Zt.PropertyName.table].anyOf[0].$ref=U+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${U}${Zt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${U}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Zt.PropertyName.table].anyOf[1].$ref=`${U}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${U}${Zt.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${U}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[Zt.PropertyName.table].anyOf[2].$ref=`${U}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${U}${Zt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${U}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,h0(n.definitions.TableColumnExtensionTypeV2.enum,[Zt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=em(e);if(s){vl(n);let l=[],u=kl(e.manifest[Zt.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=cz(u,s,e.logger);p&&f0.forEach(y=>{n.definitions[y][Zt.SchemaTag.annotationPath]=pr(a.fullyQualifiedName,p.term,p.qualifier)}),hl(!1,n,p,a),g&&lz(n,g);let m=s.SelectionFields;if(Jg(n,m,a),Tl(n,a),!u)return se(e.logger,{severity:Zt.LogSeverity.Error,message:q.t("NOLR"),location:{path:Zt.MANIFESTPATH,range:[Zt.ManifestSection.generic]}}),n;yl(n,a,u,e.manifest,e.fragments),KC(a,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return Fo(n,sz),n}o(ld,"generateAnalyticalListReportSchemaV2");function fz(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}o(fz,"getCardDefinitionNames");function uz(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},pa(a,s.CardModel);let l=fz(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=U+"CardModel"}}o(uz,"addModelsEnum");function ww(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},uz(n,t),n}o(ww,"generateOverviewPageSchemaV2");var Fs=ie(le());function XC(e,t,n,i,r,a){nn();let s=Oo(e,t),l={templateType:a,fioriElementsVersion:Fs.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=ad(r,l.serviceAVT),l.entitySet||se(l.logger,{severity:Fs.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(XC,"prepareGenerationV2");function QC(e,t,n,i,r,a){let s=XC(n,a,i,r,t,Fs.TemplateType.ListReportObjectPageV2);return sd(s,e)}o(QC,"generateObjectPageInterfaceV2");function qC(e,t,n,i,r,a){let s=XC(n,a,i,r,t,Fs.TemplateType.ListReportObjectPageV2);return cd(s,e)}o(qC,"generateListReportInterfaceV2");function zC(e,t,n,i,r,a){let s=XC(n,a,i,r,t,Fs.TemplateType.AnalyticalListPageV2);return ld(s,e)}o(zC,"generateAnalyticalListPageInterfaceV2");function fd(e,t){return ww(e,t)}o(fd,"generateOVPInterfaceV2");var we=ie(le());var dd=o(e=>({flexChanges:[],manifest:{[we.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:we.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:we.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function Mw(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===we.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o(Mw,"getClassesForSingleSection");function kw(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Mw(n,i,t),kw(n,t)}}o(kw,"getSubsectionClasses");function pz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],Mw(i,r,n),kw(i,n)}o(pz,"getExportClassesForSections");function dz(e,t){let n=Vl(t.manifest[we.ManifestSection.generic].pages,e);if(!n){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(dz,"findV2Page");function YC(e,t){let n=Hg(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(YC,"calculateBaseId");function jw(e,t,n=!1){let i=dd(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=dz(a,e),l=new Ri,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:YC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ps(p,u,[],[],e.jsonSchema)}return i}o(jw,"exportListReportPage");function Uw(e,t,n=!1){let i=e.page.config,r=dd(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=kl(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Ri,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:YC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ps(p,u,[],[],e.jsonSchema)}return r}o(Uw,"exportAnalyticalListPage");function $w(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=dd(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=bc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return se(e.logger,{severity:we.LogSeverity.Error,message:q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new Ri,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&pz(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:YC(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ps(g,p,[],[],e.jsonSchema)}}return a}o($w,"exportObjectPage");var Bw=o(e=>{let t=dd();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Ri,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Ku(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),gz=o((e,t,n)=>{var s;let i=dd();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new mm,e);r.settings=Object.assign(new za,e.settings);for(let l in n.definitions.AppSettings.properties){let u=Yn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=Bn(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],Ga(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&xb(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Hw(e,t){if(e[we.SchemaType.ListReport])return jw(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return $w(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return Bw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return gz(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return Uw(e[we.SchemaType.AnalyticalListPage],t)}o(Hw,"exportPageV2");function JC(e,t,n=!1){if(e[we.SchemaType.ListReport])return jw(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return $w(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return Bw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return Uw(e[we.SchemaType.AnalyticalListPage],t,n)}o(JC,"exportConfigEntityByPathV2");var Sf=ie(le()),Ww=require("@sap-ux/vocabularies-types/vocabularies/UI");function Gw(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}o(Gw,"updateDependencyLib");function tv(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}o(tv,"extractLastIdPart");function Kw(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return se(i,{severity:Sf.LogSeverity.Error,message:q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(Sf.PropertyName.sections),s=a>-1?tv(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${Ww.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},g={customExtension:Sf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return ZC(g),!0}o(Kw,"createNewCustomColumn");var Ra=ie(le());var Qw=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),Xw=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function mz(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(mz,"initializeRouting");function hz(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(hz,"setTargetOptions");function yz(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Ra.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(yz,"calculateQueryPattern");function qw(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(u=>n[s].navigation[u].route===i);l&&(t=l,a=n[s])}if(a){qw(e,t,n,s);return}}}o(qw,"fillNavigationParts");function vz(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(vz,"fillParentKeys");function Tz(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(hz(n,a,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=l==null?void 0:l.routePattern;if(!u){let p=[];qw(p,a,t,r,l==null?void 0:l.contextPath);let g=vz(e.routePattern);u=yz(p,l,g)}i.routes.push(Qw(u,s.route,s.route))}}}o(Tz,"handlePageNavigation");function bz(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(bz,"removeDeletedPages");function Ez(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=Xw({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=Xw({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(Ez,"transferEntitySetandContextPath");function Az(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(Az,"updateRouteLayout");function Sz(e,t,n,i){var r;return e.pageType&&![Ra.PageTypeV4.CustomPage,Ra.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,viewPath:e.view.viewPath,viewType:e.view.viewType}:e.view&&(e.pageType!==Ra.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Ra.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(r=t==null?void 0:t.options)==null?void 0:r.settings,viewName:e.view.name}}}),t}o(Sz,"fillTarget");function zw(e,t,n){var r,a;let i=mz(n[Ra.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(Qw(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=Sz(u,l,s,t),Ez(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),Tz(u,t,l,i,s),Az(i,s,u),i.targets[s]=l}return bz(i,t),i}o(zw,"transformRoutingV4");var Pi=ie(le());var Yw=[Pi.FlexibleColumnLayoutAggregations.BeginColumnPages,Pi.FlexibleColumnLayoutAggregations.MidColumnPages,Pi.FlexibleColumnLayoutAggregations.EndColumnPages],Jw=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(g=>g.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:Yw[r]?s.controlAggregation=Yw[r]:s.controlAggregation=Pi.FlexibleColumnLayoutAggregations.EndColumnPages;let u=a.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let g in l.navigation)Jw(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),Pz=o((e,t)=>{e.routing.config.routerClass=Pi.v4.FIORI_FCL_ROUTER_CLASS,Jw(e,t,t.home);let n={viewName:Pi.FIORI_FCL_ROOT_VIEW_NAME,type:Pi.ViewTypes.XML,async:!0,id:Pi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,Gw(e,Pi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),Cz=o(e=>{var t;e.rootView&&e.rootView.viewName===Pi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Pi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),Zw=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?Pz(e,t):Cz(e)},"updateFcl");var ne=ie(le()),gd=require("@sap-ux/vocabularies-types/vocabularies/UI");var eM=ie(Xs()),nv=ie(le());function xz(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(xz,"isExportValueEquals");function Iz(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===nv.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(Iz,"deleteProperty");function tM(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),Vc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},tM)}else xz((u=s.attributes)==null?void 0:u[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(Iz(e,i),l=!0);return l}o(tM,"exportProperty");function iv(e,t,n,i,r,a){let s=rf(e.file,!1,a);if(s){let l=Ay(s);if(Vc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},tM)){let p=(0,eM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:nv.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(iv,"getExtensionExportResult");var nM=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},u;return r&&Object.keys(r).length>0&&(u=Uo(n||[],a.name,i,s)),u&&iv(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),iM=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=xc(u,s[0]);p=Ic(a,m,u,g,t)}if(p){let m=of(t),A={...i.definitions[m],definitions:i.definitions};iv(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var rM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],Oz=[...rM,"views","initialLoad","template"],rv=o(e=>{let t=ne.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function Nz(e,t,n){var s,l,u,p;let i=`@${gd.UIAnnotationTerms.LineItem}`,r=`@${gd.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ne.DefinitionName.TableSPV])==null?void 0:s[ne.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ne.DefinitionName.ALPTable])==null?void 0:u[ne.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ne.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(Nz,"determineTargetAnnotationOfTable");function Lz(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ne.DefinitionName.ALPChart])==null?void 0:a[ne.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(Lz,"determineTargetAnnotationOfChart");function Rz(e,t,n,i,r){var a;if(e.length===3)t=n=i[ne.SchemaTag.annotationPath]&&i[ne.SchemaTag.annotationPath].substr(i[ne.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split(U)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ne.SchemaTag.annotationPath])&&l[ne.SchemaTag.annotationPath].substr(l[ne.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(Rz,"determineTargetAnnotationBasedOnParentView");function Fz(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=Rz(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ne.SchemaTag.annotationPath]&&l[ne.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ne.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ne.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(Fz,"determineTargetAnnotationOfView");function Dz(e,t,n){let i,r;return e[2].split(`@${ne.UIVOCABULARY}`)[1]?n&&n.indexOf(ne.FACETTITLEPREFIX)>-1?i=r=n.split(ne.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(Dz,"determineTargetAnnotationOfHeaderSections");function _z(e,t){let n=e[1].split(`@${ne.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=tv(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(_z,"determineTargetAnnotationOfSections");function Vz(e,t,n){let i,r,a=!1;return e[0]===ne.PropertyName.table&&e[1]!==ne.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=Nz(e,t,n):e[0]===ne.PropertyName.chart&&t.templateType===ne.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=Lz(e,t,n):e[0]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=_z(e,a):e[1]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=Dz(e,a,t.title):e[1]===ne.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=Fz(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(Vz,"determineTargetAnnotation");function wz(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ne.PropertyName.actions,ne.PropertyName.columns,ne.PropertyName.views,ne.PropertyName.visualFilters,ne.PropertyName.selectionFields].includes(ne.PropertyName[r])){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(wz,"determineKeyForSyncRule");function Mz(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}o(Mz,"createNewObjectInManifest");function oM(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(Mz(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}o(oM,"transferPropertyToManifest");function kz(e,t,n,i,r,a,s){var p,g,m;let l=!1,u=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((g=n.config.table)!=null&&g.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&rM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&Oz.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let y=t.syncRule.manifest.delete;typeof y=="function"&&(y(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return Ga(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(kz,"deleteFromManifest");function jz(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:u,custom:p}=Vz(e,n.transferParameters,n.configObject),g=wz(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),y=No(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(y){let A={syncRule:t,manifestSection:y,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:g};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&pl([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=kz(e,A,n.transferParameters,y,m,u,l):r=oM(A,n.propertyDefinition,i)}return r}o(jz,"exportManifestChange");function Uz(e,t,n){let i=Yn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);iM(e.transferParameters,r,n.configObject)}else i.manifest&&jz(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ne.ChangeIndicator.Updated)}o(Uz,"evaluateExportRule");function $z(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,tx(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o($z,"transferSubObject");function Bz(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=ht(e.pageNameArray)+"/views",a=No(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(Bz,"createALPTableView");function Hz(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=ht(e.transferParameters.pageNameArray)+"/views",r=No(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||gd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(Hz,"createALPChartView");function Gz(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ht(e.pageNameArray),r=No(e.exportResults.manifest,i),a=`@${gd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].filterFields;Object.keys(t).forEach(l=>{let u=t[l];s[l]={};for(let p in u)p==="visualFilterValueList"?s[l].visualFilter={valueList:u[p]}:s[l][p]=u[p]})}return n}o(Gz,"createVisualFilters");function Wz(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ht(t.pageNameArray)+"/views",s=No(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let u=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(u===-1)s.paths.push(l),r=!0;else if(u!==i.index){let p=JSON.parse(JSON.stringify(s.paths[u]));s.paths.splice(u,1),s.paths.splice(e,0,p),r=!0}}return r}o(Wz,"createLRTableView");function Kz(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ne.DefinitionName.CustomColumn))i=Kw(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ne.DefinitionName.ALPChartView&&e.key===ne.PropertyName.chart&&e.configObject)return Hz(e);if(t===ne.DefinitionName.ALPTableView&&e.key===ne.PropertyName.table&&e.configObject)return Bz(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ne.DefinitionName.LRTableView)||t.startsWith(ne.DefinitionName.LRChartView))?i=Wz(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ne.DefinitionName.VisualFilters)&&(i=Gz(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(Kz,"createNewElement");function Xz(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(Xz,"isDefinitionTraversable");function ex(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Bg(e.configObject,e.key),s=Ro(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=Kz(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split(U)[1],i),p=a?[...t,a]:[...t,e.key];if(l||Uz(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||Xz(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;$z(e,s,r,p,m)}}o(ex,"transferSortedListEntry");function Qz(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,u)=>l[1]&&l[1].index-u[1].index),s.forEach(l=>{var u;(u=n.properties)!=null&&u[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],ex(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,ex(e,i,r),a=!0)}),e.index++})}return a}o(Qz,"transferConfigEntriesWithAnyOfDefinitions");function qz(e,t,n,i){let r=gb(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(qz,"mergeEntriesForInsert");function zz(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ne.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ne.SchemaTag.propertyIndex]-r[1][ne.SchemaTag.propertyIndex])),t}o(zz,"sortProperties");function Yz(e,t,n,i,r,a){var l,u;let s=!1;if(e){let p=e.anyOf;if(!p){let g=(l=e.$ref)==null?void 0:l.split(U)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=Qz(n,p,i,r,a)}return s}o(Yz,"checkIfAnyOfDefinition");function tx(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=a.additionalProperties,p=Yz(u,e,l,a,n,i),g=zz(a.properties);u!=null&&u.$ref&&qz(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!pl(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,ex(l,n,i,p),m[1].$ref&&s++)})}o(tx,"transferManifestEntriesAndFlexChange");function aM(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ne.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(aM,"getClassesForSingleSection");function sM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],aM(n,i,t),sM(n,t)}}o(sM,"getSubsectionClasses");function Jz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],aM(e,r,n),sM(i,n)}o(Jz,"getExportClassesForSections");function cM(e,t){let n=Hg(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(cM,"calculateBaseId");var lM=o((e,t,n=!1)=>{var l;let i=rv(e.manifest),r=new La,a=r.createPageInstance(ne.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ne.PropertyName.sections]&&Jz(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:cM(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ne.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ne.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return tx(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),Zz=o((e,t,n,i,r,a,s=!1)=>{var b,O;let l=rv(e.manifest),u=e.jsonSchema,p=(b=n.table)!=null&&b[ne.PropertyName.annotationPath]?ne.DefinitionName.ALPTableView:ne.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ne.DefinitionName.LineItems;u.definitions[ne.DefinitionName.TableSPV]&&(m=u.definitions[ne.DefinitionName.TableSPV].properties.columns.$ref.split(U)[1]);let y=u.definitions[`${ne.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&y)for(let D in y.properties)g.toolBar.actions[D]=t.createInstance(i,ne.DefinitionName.ToolBarAction,g.toolBar.actions[D]);let A={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:cM(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ne.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return tx(A,n,[],[],[],u),l},"exportListPage"),nx=o((e,t,n,i=!1)=>{let r=new La,a=r.createPageInstance(ne.PageTypeV2.ListReport,e.page.config);return Zz(e,r,a,ne.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),fM=o((e,t,n=!1)=>nx(e,t,ne.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),eY=o((e,t,n,i,r,a)=>{let s=No(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=cb());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];oM(u,p,{}),!l&&Object.keys(s).length&&kF(r,t,s)},"applyExportRule"),tY=o((e,t,n)=>{var a;let i=rv(t),r=Object.assign(new Iy,e);r.settings=Object.assign(new af,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Yn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)eY(l,u,s,e,i.manifest,n);else{let p=No(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],Ga(i.manifest,u,!1))}}}return i.manifest[ne.ManifestSection.ui5].routing=zw(e.home,e.pages,i.manifest),Zw(i.manifest[ne.ManifestSection.ui5],e),i},"exportApplicationV4"),uM=o((e,t)=>{if(e[ne.SchemaType.ListReport])return nx(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4);if(e[ne.SchemaType.ObjectPage])return lM(e[ne.SchemaType.ObjectPage],t);if(e[ne.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ne.SchemaType.Application];return tY(n,i,r)}else{if(e[ne.SchemaType.AnalyticalListPage])return fM(e[ne.SchemaType.AnalyticalListPage],t);if(e[ne.SchemaType.FPMCustomPage])return nM(e[ne.SchemaType.FPMCustomPage],ne.defaultExportResult)}},"exportPageV4"),nY=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=rv(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Uo(n||[],i.name,r,e.logger)),l&&iv(l,s,i.config,t,"view",a),s},"exportCustomPage"),ix=o((e,t,n=!1)=>{if(e[ne.SchemaType.ListReport])return nx(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4,n);if(e[ne.SchemaType.ObjectPage])return lM(e[ne.SchemaType.ObjectPage],t,n);if(e[ne.SchemaType.AnalyticalListPage])return fM(e[ne.SchemaType.AnalyticalListPage],t,n);if(e[ne.SchemaType.FPMCustomPage])return nY(e[ne.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Bt=require("@sap-ux/fe-fpm-writer");var iY=new Map([[pe.CustomExtensionType.CustomPage,Bt.generateCustomPage],[pe.CustomExtensionType.CustomColumn,Bt.generateCustomColumn],[pe.CustomExtensionType.CustomSection,Bt.generateCustomSection],[pe.CustomExtensionType.ObjectPage,Bt.generateObjectPage],[pe.CustomExtensionType.ListReport,Bt.generateListReport],[pe.CustomExtensionType.CustomAction,Bt.generateCustomAction],[pe.CustomExtensionType.CustomView,Bt.generateCustomView],[pe.CustomExtensionType.ControllerExtension,Bt.generateControllerExtension],[pe.CustomExtensionType.CustomSubSection,Bt.generateCustomSubSection],[pe.CustomExtensionType.CustomFilterField,Bt.generateCustomFilter],[pe.CustomExtensionType.CustomHeaderSection,Bt.generateCustomHeaderSection]]),rY={api:Bt.PromptsAPI,types:Bt.PromptsType};function oY(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ListReport];t=qC(i,r,a,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ObjectPage];t=QC(i,r,a,s,l,u)}else if(n[pe.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[pe.SchemaType.OverviewPage];t=fd(i,r)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.AnalyticalListPage];t=zC(i,r,a,s,l,u)}}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.ListReport];t=xy(pe.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[pe.SchemaType.ObjectPage];t=VS(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.AnalyticalListPage];t=xy(pe.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[pe.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[pe.SchemaType.FreestylePage];t=wS(pe.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[pe.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[pe.SchemaType.FPMCustomPage];t=MS(i,r,a,s,u,e.featureToggles,l)}}return t}o(oY,"generateSchema");function aY(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=Hw(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=uM(i,n)}return t}o(aY,"exportConfig");function sY(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=JC(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=ix(i,n)}return t}o(sY,"exportConfigEntityByPath");function cY(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=JC(i,n,!0)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=ix(i,n,!0)}return t}o(cY,"deleteConfigEntityByPath");function lY(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];n[pe.SchemaType.ListReport]?t=Eh(n[pe.SchemaType.ListReport]):n[pe.SchemaType.ObjectPage]?t=Ph(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.OverviewPage]?t=Ih(n[pe.SchemaType.OverviewPage]):n[pe.SchemaType.AnalyticalListPage]&&(t=Ah(n[pe.SchemaType.AnalyticalListPage]))}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];n[pe.SchemaType.ListReport]?t=$c(n[pe.SchemaType.ListReport],pe.SchemaType.ListReport):n[pe.SchemaType.ObjectPage]?t=Jy(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.AnalyticalListPage]?t=$c(n[pe.SchemaType.AnalyticalListPage],pe.SchemaType.AnalyticalListPage):n[pe.SchemaType.FPMCustomPage]&&(t=Yy(n[pe.SchemaType.FPMCustomPage]))}return t}o(lY,"importConfig");async function fY(e){return WC(e)}o(fY,"importProject");async function uY(e){return GC(e)}o(uY,"importProjectSchema");function pY(){return{version:"21",fpmWriter:"29",moduleVersion:L0.version}}o(pY,"getApiVersion");function ZC(e){let t=iY.get(e.customExtension);if(t&&typeof t=="function")return(0,Bt.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(ZC,"generateCustomExtension");var Yr=require("path"),Ds=require("fs");var Pf=o(async e=>new Promise((t,n)=>{(0,Ds.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),dY=o(async e=>JSON.parse(await Pf(e)),"readJSON"),rx=o(async e=>new Promise((t,n)=>{(0,Ds.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),gY=o(async e=>new Promise(t=>{(0,Ds.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),dM=o(async e=>new Promise(t=>{(0,Ds.exists)(e,n=>{t(n)})}),"resourceExists"),mY=o(async e=>dY((0,Yr.join)(e,"manifest.json")),"getManifest"),gM=o(async e=>{let t=[],n=(0,Yr.join)(e,"changes");if(!await dM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await rx(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Pf((0,Yr.join)(n,a)));return t},"getChanges"),pM=o(async(e,t="fragments")=>{let n=[],i=(0,Yr.join)(e,"ext",t);if(!await dM(i))return n;let r=await rx(i);for(let a of r){let s=(0,Yr.join)(i,a),l=await Pf(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),hY=o(async(e,t)=>{var r,a,s,l,u,p,g,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let y=(0,Yr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:y,fileContent:await Pf(y)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let y of i.mainService.settings.annotations)if((g=(p=i[y])==null?void 0:p.settings)!=null&&g.localUri){let A=(0,Yr.join)(t,i[y].settings.localUri);n.push({dataSourceUri:A,fileContent:await Pf(A)})}}if(n.length===0)for(let y in i){let A=i[y];if((A==null?void 0:A.type)==="ODataAnnotation"&&((m=A==null?void 0:A.settings)!=null&&m.localUri)){let b=(0,Yr.join)(t,A.settings.localUri);n.push({dataSourceUri:b,fileContent:await Pf(b)})}}return n},"getAnnotations"),yY=o(async e=>{let t=(0,Yr.basename)(e),n=(0,Yr.join)(e,"webapp"),i=await mY(n),r=await hY(i,n),a=await gM(n),s=await pM(n),l=await pM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");Ks(Di,ie(le()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
294
+ `}),E1(q)}o(nn,"initI18n");var $t=ie(le());function bc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(ca((r=s.component)==null?void 0:r.name)===$t.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=bc(s.pages,t,n),i))return n.unshift(a),i}}o(bc,"findObjectPageV2");function Vl(e,t){var n;for(let i in e){let r=e[i];if(ca((n=r.component)==null?void 0:n.name)===$t.PageTypeV2.ListReport)return t.push(i),r}}o(Vl,"findListReportPageV2");function wl(e){if(!e.manifest[$t.ManifestSection.generic]){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOFE"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}let t=e.manifest[$t.ManifestSection.generic].pages;if(!t){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}return t}o(wl,"getV2Pages");function Ml(e,t,n){var i;if(!e){se(t,{severity:$t.LogSeverity.Error,message:q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;se(t,{severity:$t.LogSeverity.Error,message:q.t("NOENTITYSET",{pageName:r}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}}o(Ml,"checkV2Page");function kl(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),ca((i=a.component)==null?void 0:i.name)===$t.PageTypeV2.AnalyticalListPage)return a}se(n,{severity:$t.LogSeverity.Error,message:q.t("NOALP"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}o(kl,"findAnalyticalListPage");function yA(e,t){let n=e.split("|");return $t.v2.SectionPosition[n[0]]&&n[1]===t}o(yA,"isAssociatedCustomSection");function S1(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${$t.v2.SAPUI5_VIEW_EXTENSION}/${$t.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)yA(r,t)&&(i[r]=n[r]);return i}o(S1,"findCustomSectionExtensions");function E3(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(E3,"removeEmptySettingsOfFooter");function A3(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(A3,"removeEmptySettingsOfFilterBar");function S3(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(S3,"removeEmptySettingsOfToolBar");function Th(e){S3(e),A3(e),E3(e)}o(Th,"removeEmptySettings");var TA={};Ws(TA,{AnalyticalListPage:()=>$r,ListReport:()=>lo,ObjectPage:()=>oi,OverviewPage:()=>Yt,exportFilterSettings:()=>x1,importDateSettingsOVP:()=>P1,importFilterSettings:()=>C1});var bh=ie(le());var $r=class{};o($r,"AnalyticalListPage"),h([T({flex:{controlId:$g,controlType:o(()=>bh.ControlType.DynamicPage,"controlType")}})],$r.prototype,"fitContent",2),h([jt("table")],$r.prototype,"table",2),h([jt("template::SmartFilterBar")],$r.prototype,"filterBar",2),h([jt("analyticalListPageChart")],$r.prototype,"chart",2),h([jt("analyticalListFooter")],$r.prototype,"footer",2),$r=h([Vr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:bh.v2.FE_TEMPLATE_V2_ALP})],$r);var Hu=ie(le());var lo=class{};o(lo,"ListReport"),h([T({flex:{controlId:$g,controlType:o(()=>Hu.ControlType.DynamicPage,"controlType")}})],lo.prototype,"fitContent",2),h([jt("listReportFilter")],lo.prototype,"filterBar",2),h([jt("listReport")],lo.prototype,"table",2),h([jt("listReportFooter")],lo.prototype,"footer",2),lo=h([Vr({id:Hu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Hu.v2.FE_TEMPLATE_V2_LIST_REPORT})],lo);var vA=ie(le());var oi=class{};o(oi,"ObjectPage"),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.52.0"})],oi.prototype,"showConfirmationOnDraftActivate",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.52.1"})],oi.prototype,"hideChevronForUnauthorizedExtNav",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.48.0"})],oi.prototype,"allowDeepLinking",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.52.0"})],oi.prototype,"navToListOnSave",2),h([jt("header")],oi.prototype,"header",2),h([jt("sections")],oi.prototype,"sections",2),h([jt("layout")],oi.prototype,"layout",2),h([T({manifest:{path:o(t=>ym(t),"path")}}),C({since:"1.77.0"})],oi.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([T({manifest:{path:o(t=>Ni(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),C({since:"1.78.0"})],oi.prototype,"globalChartSettings",2),h([T({manifest:{path:o(t=>Ni(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:zs}}),C({since:"1.71.0"})],oi.prototype,"globalTableSettings",2),oi=h([Vr({id:vA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:vA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],oi);function P3(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(P3,"importDateSettingsFieldsOVP");function P1(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&P3(e,t),t}o(P1,"importDateSettingsOVP");function C1(e){let t={};return t.dateSettings=P1(e.filterSettings),t}o(C1,"importFilterSettings");function C3(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(C3,"exportFilterFields");function x1(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&C3(t,n,e))}o(x1,"exportFilterSettings");var Yt=class{};o(Yt,"OverviewPage"),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"globalFilterModel",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"globalFilterEntityType",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"globalFilterEntitySet",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"showBasicSearch",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"disableErrorPage",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"smartVariantRequired",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"bHeaderExpanded",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"containerLayout",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"showDateInRelativeFormat",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"disableTableCardFlexibility",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"enableLiveFilter",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"enableLazyRendering",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"refreshStrategyOnAppRestore",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"considerAnalyticalParameters",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"refreshIntervalInMinutes",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"useDateRangeType",2),h([T({manifest:{path:o(()=>bn(),"path"),import:C1,export:x1}}),C({since:"1.80.0"})],Yt.prototype,"filterSettings",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"dataLoadSettings",2),h([T({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"resizableLayout",2),Yt=h([Vr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Yt);var bA=class bA{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(bA,"MetadataFactory");var jl=bA;var Zn=ie(le());var x3={},I3={Table:cc,ResponsiveTableWithMultiSelect:cc,ResponsiveTableWithInlineDelete:cc},O3={[Zn.v2.CardSettingsType.listCardSettings]:Cl,[Zn.v2.CardSettingsType.listCardSettingsv4]:Cl,[Zn.v2.CardSettingsType.analyticalCardSettings]:xl,[Zn.v2.CardSettingsType.analyticalCardSettingsv4]:xl,[Zn.v2.CardSettingsType.stackCardSettings]:uu,[Zn.v2.CardSettingsType.linkListCardSettings]:pu,[Zn.v2.CardSettingsType.tableCardSettings]:Il,[Zn.v2.CardSettingsType.tableCardSettingsv4]:Il},N3={[Zn.SAPUI5_VIEW_CLASS]:Mu,[Zn.SAPUI5_FRAGMENT_CLASS]:wu,Table:Tc,ObjectPageResponsiveTableWithMultiSelect:Tc,ObjectPageResponsiveTableWithInlineDelete:Tc},L3={[Zn.PageTypeV2.AnalyticalListPage]:x3,[Zn.PageTypeV2.ListReport]:I3,[Zn.PageTypeV2.ObjectPage]:N3,[Zn.PageTypeV2.OverviewPage]:O3},EA=class EA extends jl{constructor(){super(dA,TA,L3)}};o(EA,"MetadataInstanceFactoryV2");var Ri=EA;function R3(e,t,n,i,r){if(e.filterBar=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar),Dn(e.filterBar,n.manifest,i[Qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),Dn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(R3,"importFilterBar");function AA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=io(s),u={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(g=l.content)!=null&&g.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};gh(n.table,u,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&mh(e,n,s)}o(AA,"importFlexChangesOfTableAndColumns");function F3(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Qg]&&t[qg]&&(a=JSON.parse(JSON.stringify(t[Qg])),a.properties={...a.properties,...t[qg].properties}),Dn(n.table,i.manifest,a,r,i.logger),AA(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&se(i.logger,{severity:Qt.LogSeverity.Error,message:q.t("NOLINEITEMS")})}o(F3,"importTable");function D3(e,t,n,i){let r=e.jsonSchema.definitions,a=yh(e.manifest,i);if(t.table=n.createInstance(Qt.PageTypeV2.ListReport,a,t.table),vh(t,n,r),F3(a,r,t,e,i),t.table.toolBar=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,r[Qt.DefinitionName.ToolBarLR],i,e.logger),r[Qt.DefinitionName.ActionsLR])for(let l in r[Qt.DefinitionName.ActionsLR].properties){let u=us(l);t.table.toolBar.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.Action),Dn(t.table.toolBar.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}R3(t,n,e,r,i),t.footer={actions:{}};let s=r[Qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=us(l);t.footer.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.FooterAction),Dn(t.footer.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}}o(D3,"addSettings");function Eh(e){if(nn(),!wl(e))return;let n=new Ri,i=n.createPageInstance(Qt.PageTypeV2.ListReport),r=[],a=Vl(e.manifest[Qt.ManifestSection.generic].pages,r);if(Ml(a,e.logger,a==null?void 0:a.entitySet),!!a)return D3(e,i,n,r[0]),e.flex.forEach(s=>{io(s)&&hh(i,s,e.jsonSchema,e.logger)}),_l(i,e,a,Qt.PageTypeV2.ListReport),Th(i),i}o(Eh,"createListReportConfig");var Ct=ie(le());function _3(e,t,n,i){var p,g;let r=yh(e.manifest,i),a=e.jsonSchema.definitions;vh(t,n,a),t.table=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(Dn(t.table,e.manifest,s,i,e.logger),AA(e,s,t),t.table.toolBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,a[Ct.DefinitionName.ToolBar],i,e.logger),a[Ct.DefinitionName.ActionsLR])for(let m in a[Ct.DefinitionName.ActionsLR].properties){let y=us(m);t.table.toolBar.actions[y]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.Action),Dn(t.table.toolBar.actions[y],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Dn(t.filterBar,e.manifest,a[Ct.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[Ct.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[Ct.DefinitionName.SelectionFields].properties;for(let y in m){let A=y;t.filterBar.selectionFields[A]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),Dn(t.filterBar.selectionFields[A],e.manifest,a.SelectionFieldDateSettings,i,e.logger,A)}}t.chart=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Dn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[Ct.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let y=us(m);t.footer.actions[y]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.FooterAction),Dn(t.footer.actions[y],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[Ct.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:g.keyPerformanceIndicators;u&&Object.keys(u).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Dn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(_3,"addSettings");function Ah(e){if(nn(),!wl(e))return;let n=new Ri,i=n.createPageInstance(Ct.PageTypeV2.AnalyticalListPage),r=[],a=kl(e.manifest[Ct.ManifestSection.generic].pages,r,e.logger);if(Ml(a,e.logger,a==null?void 0:a.entitySet),!!a)return _3(e,i,n,r[0]),e.flex.forEach(s=>{io(s)&&hh(i,s,e.jsonSchema,e.logger)}),_l(i,e,a,Ct.PageTypeV2.AnalyticalListPage),Th(i),i}o(Ah,"createAnalyticalListPageConfig");var be=ie(le());var Gu=require("@sap-ux/vocabularies-types/vocabularies/UI");var w3=[be.ControlType.Avatar,be.ControlType.ObjectPageLayout,be.ControlType.DynamicPage];function M3(e,t){let n=e[0].split("--"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Gu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${be.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Gu.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}o(M3,"getSingleSelectorIdPart");function k3(e){let t,n=e.split(":::");if(n.length===1)t=M3(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Gu.UIAnnotationTerms.LineItem}`,`/@${Gu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(k3,"getFacetID");function j3(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=io(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(be.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let y=m[1].replace(/:3a:3a/g,"::");r.exec(y)!==null&&(y=y.split("template:::TableColumn:::")[1]);let A=k3(y);y=mA(y).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${y}::${g.content.property}`]={controlId:y,propertyId:g.content.property,facetId:A,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){se(n,{severity:be.LogSeverity.Error,message:q.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}o(j3,"prepareFlexChanges");var U3=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(U,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace(U,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function $3(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&gA(i,t,r)}o($3,"addFlexChangeToColumns");function I1(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,be.VOCWITHSLASH)];for(let u in e){let p=e[u],g=p.propertyId===t,m=t==="columns"&&p.controlType===be.ControlType.TableColumn;(g||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?$3(a,p,r.properties,n):gh(n,p,r))}}o(I1,"importFlexChangesOfTable");function B3(e,t){return e.facetId==="template"&&t}o(B3,"isStandardActionFlexChange");var O1=o((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function H3(e,t,n,i,r,a){var O;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===be.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(be.ACTIONTITLEPREFIX))&&!r&&s,m=r&&O1(u,r.split("::"))&&s,y=e.title&&O1(u,e.title.split("::"),!0),A=!t.facetId&&w3.includes(t.controlType),b=B3(t,l);return p||g||m||y||A||b}o(H3,"matchSelector");function G3(e,t,n,i,r,a){var u;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let g=n[p];if(g.propertyId!==i||g.controlType!==((u=e.properties[g.propertyId])==null?void 0:u[be.SchemaTag.controlType]))continue;H3(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(G3,"importFlexChanges");function W3(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(se(n.logger,{severity:be.LogSeverity.Warning,message:Gg(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(W3,"checkDeprecatedProperties");function K3(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=Bn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u));let g=e.manifest.import;if(g&&typeof g=="function"){let m=g(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return W3(p,a,n,u),p}o(K3,"importManifestSetting");function Fi(e,t,n,i,r,a){var u,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let g in n.properties||n){let m=Yn(t,g);if(g==="columns"||m!=null&&m.flex)if((u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSectionTableV2")||(p=r==null?void 0:r.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(g==="columns"){let y=n.properties[g].$ref.split(U)[1],A=e.jsonSchema.definitions[y];I1(i.flexChanges,g,t,r,A,l)}else I1(i.flexChanges,g,t,r,n);else{let y=(r==null?void 0:r.title)||(r==null?void 0:r.id);G3(n,t,i.flexChanges,g,y,a)}else m!=null&&m.manifest&&K3(m,i.pageKeys,e,t,g,s,r)}}o(Fi,"transferSettingsAndFlexChanges");function L1(e,t,n,i){let r=Ki(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${u0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${zg}${r}`;break}}return r.replace(/@/g,"")}o(L1,"getActionId");function X3(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split(U)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=L1(s,a,"","");e.actions[a]=i.factory.createInstance(be.PageTypeV2.ObjectPage,l,{}),Fi(n,e[be.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(X3,"fillStandardActions");function Sh(e,t,n,i,r,a){var l;n[be.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};a&&(u.id=a);for(let p in t){let g=us(p),m=L1(s,g,r,a);m&&(n[be.PropertyName.actions][g]=i.factory.createInstance(be.PageTypeV2.ObjectPage,s),Fi(e,n[be.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[be.PropertyName.actions])!=null&&l[g]&&Object.keys(n[be.PropertyName.actions][g]).length===0&&delete n[be.PropertyName.actions][g]}}X3(n,t,e,i),Object.keys(n[be.PropertyName.actions]).length===0&&delete n[be.PropertyName.actions]}o(Sh,"fillActions");function Q3(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(be.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(be.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Fi(e,i[t.id].form.fields[l],e.jsonSchema.definitions[be.DefinitionName.Field],r,{},u),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(Q3,"fillFields");function q3(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}o(q3,"prepareTableSchema");function z3(e,t,n,i,r){var l,u;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",g=r.factory.createInstance(be.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(be.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][be.PropertyName.table]=g;let m=e.jsonSchema.definitions,y=q3(p,t,m);Fi(e,i[t.id],t.schema,r,{title:t.title}),Fi(e,i[t.id][be.PropertyName.table],y,r,t);let A=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(A!=null&&A.properties){let b=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");Sh(e,A.properties,i[t.id][be.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][be.PropertyName.table].toolBar).length===0&&delete i[t.id][be.PropertyName.table].toolBar}}o(z3,"fillTableInConfig");function Y3(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Kg(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};_l(n[t],e,i,be.PageTypeV2.ObjectPage,l,r)}}o(Y3,"fillCustomColumnsInConfig");function J3(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(be.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][be.PropertyName.chart]=r.factory.createInstance(be.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(Fi(e,i[t.id],t.schema,r,{title:t.title}),Fi(e,i[t.id][be.PropertyName.chart],e.jsonSchema.definitions[be.DefinitionName.ObjectPageChart],r,t))}o(J3,"fillChartSection");function Z3(e,t,n,i){n[t.id]=i.factory.createInstance(be.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Fi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(Z3,"fillHeaderSection");function eX(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(be.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Fi(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&Sh(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&Q3(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}o(eX,"fillFormSection");function N1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(be.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Fi(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,SA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(N1,"fillSubSection");function SA(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:U3(t[l]),schema:t[l],title:vb(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],z3(e,p,n,i,r),Y3(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],J3(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],eX(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],N1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],Z3(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],N1(e,p,n,i,r))}}o(SA,"fillSectionsInConfig");function tX(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(be.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(be.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Fi(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(tX,"fillCustomSectionsInConfig");function nX(e,t){var g,m;let n=t.factory.createPageInstance(be.PageTypeV2.ObjectPage);Fi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(be.PageTypeV2.ObjectPage,be.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Fi(e,n.globalTableSettings,i[be.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(be.PageTypeV2.ObjectPage,be.DefinitionName.ObjectPageHeader);let r=i[be.DefinitionName.ObjectPageHeader]?i[be.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Fi(e,n.header,r,t);let a=i[be.DefinitionName.ObjectPageHeaderActions];a&&Sh(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[be.DefinitionName.FooterActions];s&&Sh(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(be.PageTypeV2.ObjectPage,"ObjectPageLayout"),Fi(e,n.layout,i[be.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[be.DefinitionName.HeaderSections];if(l){let y=(g=t.v2Page.component)==null?void 0:g.settings;SA(e,l.properties,y,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[be.DefinitionName.Sections];if(u){let y=(m=t.v2Page.component)==null?void 0:m.settings;SA(e,u.properties,y,n.sections,t)}let p=S1(e.manifest,e.entitySet);return tX(p,n,t,i,e),n}o(nX,"fillConfig");function Ph(e){nn();let t=wl(e);if(!t)return;let n=e.entitySet,i=[],r=bc(t,e.entitySet,i);if(Ml(r,e.logger,n),!r)return;let a=j3(e.flex,n),s=new Ri;return nX(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(Ph,"createObjectPageConfigV2");function xh(e,t){var n,i;return(n=e.component)!=null&&n.name?kg(ca((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(xh,"generateId");function iX(e,t,n,i){e.navigation={};let r=R1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=xh(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(iX,"getPageConfigsAndNavigations");function R1(e,t){var i;let n={};for(let r in e){let a=e[r],s=xh(a,r);if(!s)continue;let l={pageType:ca((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let u=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(u)if(l.pageType===_n.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Eh(p)}else if(l.pageType===_n.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Ah(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=Ph(p)}a.pages&&iX(l,a,t,n)}return n}o(R1,"getPagesAndConfigs");var PA=class PA extends qa{constructor(t){nn();let n;t.manifest[_n.ManifestSection.generic]?n=t.manifest[_n.ManifestSection.generic].pages:se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOFE"),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}}),n||se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&xh(n[i],i),a=new za,s=Dt(_n.SchemaType.Application),l=t.appSchemas[s.filename];Dn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,R1(n,t),a)}};o(PA,"V2AppProvider");var Ch=PA;function Wu(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||se(n,{severity:_n.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:_n.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=xh(l,s);i[u]=l}if(t===_n.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Wu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(Wu,"getPages");var Ac=ie(le());var ko=ie(le());var xA=ie(UT());var _t=ie(le());var rX=["colorPalette","tabs"];function oX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(oX,"createCard");function F1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),F1(e,n.join("|"))}return t}o(F1,"findAvailableId");function Ku(e,t,n,i,r,a,s){i!=null&&i.properties&&CA(e,t,n,i.properties,r,a,s)}o(Ku,"transferManifestEntriesOVP");function Ec(e,t,n,i){return e.createInstance(_t.PageTypeV2.OverviewPage,i,n,t)}o(Ec,"assignReflectMetadataRules");function aX(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split(U),r=e.appSchema.definitions[i[1]];t=Ec(e.factory,i[1],t,"CustomCard"),Ku(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(aX,"processAnyOfDefinitionsOfOVP");function sX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!rX.includes(i)?t[i]=(0,xA.default)(t[i]||{},r||{},{arrayMerge:mb}):t[i]=r}o(sX,"checkSyncRuleForExport");function cX(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in _t.v2.CardSettingsType||n==="settings")l.settings=(0,xA.default)(l.settings||{},r||{},{arrayMerge:mb});else if(r!==void 0){let u=e.manifest.export;sX(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(cX,"transferToManifest");function lX(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(_t.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=Ec(e.factory,i[0],e.currentObject[t],"CustomCard"),oX(t,e.exportResults.manifest[_t.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,Ku(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[_t.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[_t.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated)})}o(lX,"transferCards");function fX(e,t){if(t==="cards")lX(e);else{let n=Ro(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,_t.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(U);e.currentObject=Ec(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Ku(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],CA(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],CA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(fX,"exportOfObject");function CA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!pl(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=Yn(e,l),g={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(g.currentObject=e[a[a.length-2]],u=aX(g)):u&&typeof u=="object"&&i[l]&&fX(g,l),p!=null&&p.manifest&&cX(p,a,l,t,u,e)}}o(CA,"processProperties");function uX(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=s0(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=c0(p,g);e.exportResults.flexChanges.find(A=>{let b=!1,O=JSON.parse(A);O={content:O.content,selector:O.selector};let D=JSON.parse(m);return D={content:D.content,selector:D.selector},JSON.stringify(O)===JSON.stringify(D)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(uX,"evaluateFlexRule");function pX(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated}}o(pX,"exportConfigValueToManifest");function dX(e,t,n,i,r){let a=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)pX(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,Ga(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(dX,"evaluateManifestRule");function gX(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(_t.FACETTITLEPREFIX)?r.split(_t.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(gX,"getManifestPathOfSections");function mX(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o(mX,"getManifestPathOfTable");function hX(e,t,n,i,r){let a;return t[0]===_t.PropertyName.sections?a=gX(t,a,n,e,r):t[0]===_t.PropertyName.table?a=mX(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(hX,"getManifestPath");function yX(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)uX(e,i,t,r,a,n,s);else if(t.manifest){let u=hX(e,i,t,n,a);dX(e,u,t,s,n)}}o(yX,"evaluateExportRule");function vX(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(Om(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(_t.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(_t.ViewTemplateType.ResponsiveTableColumnsExtension,_t.ViewTemplateType.ResponsiveTableCellsExtension);Om(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(vX,"deleteObsoleteColumn");function TX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=D0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,vX(r,e,n))}o(TX,"deleteObsoleteColumnsFromFragment");function bX(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:u}=Nm(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(bX,"clusterConfigColumnsByPath");function D1(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in _t.v2.TableColumnExtensionTypeV2){let{path:u}=Nm(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{TX(p)}catch(g){e.logger.error(g.message)}}if(t){let l=bX(t,n,e.v2Page,s,r);for(let u in l)nE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(D1,"transferColumnExtensions");function EX(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=F1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(A=>{var b;return(b=A.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split(U),y=e.appSchema.definitions[m[m.length-1]];ps(e,t[p],i,[...r,s[p]],y)}let u=Bn(e.exportResults.manifest,Ib());for(let p in u)yA(p,l)&&!s.includes(p)&&delete u[p]}o(EX,"transferManifestExtensions");function AX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===_t.PropertyName.table){n=e[i-1];break}return qn(n,t)}o(AX,"getSectionId");function SX(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Ro(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);ps(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(SX,"transferIndexTable");function PX(e,t,n,i,r,a){let s,l=Kg(e.$ref);l&&(s={target:l,key:AX(t,n)}),D1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(PX,"transferCustomColumns");function CX(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Ro(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&ps(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(CX,"handleAnyOfDefinitions");function xX(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")EX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){PX(l,t,s,e,n,a);return}else a?ps(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&CX(l,e,s,n==null?void 0:n[r],r,i,t)}o(xX,"transferComplexProperty");function ps(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!pl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Bg(t,l),p=u?[...n,u]:n,g=Yn(t,l),m=e.propertyDefinition=r.properties[l],y=e.nextDefinition=Ro(e.appSchema,a,s,m,l,e.factory,e.pageType);if(yX(e,g,t,[...i],p,a,l),SX(s,e,a,l,p,i),s===void 0||typeof s=="object")xX(e,i,t,p,l,y,a);else if((m==null?void 0:m.$ref)===U+"TableCustomColumns"){D1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(ps,"transferManifestEntriesAndFlexChange");function _1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Ec(r,i,n[i],s),a.push(i),IA(r,n[i],e,l.properties,a)}o(_1,"transferSettingsOfRef");function IX(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(U);_1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${U}${ko.v2.cardTemplateSettingsMap[e.template]}`.split(U);_1(i,l,e,t,r,a)}}o(IX,"processPropertiesOfObject");function OX(e,t,n,i,r,a){let s=Yn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=Bn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{ml(s,u,t,e)}catch(p){se(i.logger,{severity:ko.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:jg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&IX(e,t,r,i,a,n)}o(OX,"processOvpProperty");function IA(e,t,n,i,r){for(let a in i)OX(t,a,r,n,i,e)}o(IA,"processOvpProperties");function NX(e,t,n){IA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[ko.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[ko.ManifestSection.ovp].cards[i].template,a=ko.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Ec(n,a,{},"CustomCard"),e.cards=Ec(n,a,e.cards,"CustomCard"),IA(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(NX,"addSettings");function Ih(e){let t=new Ri,n=t.createPageInstance(ko.PageTypeV2.OverviewPage);return e.jsonSchema&&NX(n,e,t),n}o(Ih,"createOverviewPageConfig");var OA=class OA extends qa{constructor(t){let n={},i=t.manifest[Ac.ManifestSection.ovp],r=new za,a=Dt(Ac.SchemaType.Application);Dn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Ac.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Ac.PageTypeV2.OverviewPage,config:Ih(l),entitySet:i.globalFilterEntitySet},p=kg(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(OA,"V2OvpProvider");var Oh=OA;var jo=require("@sap-ux/vocabularies-types/vocabularies/UI");var te=ie(le()),V1=require("path");function LX(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(LX,"sortByPropertyIndex");function Xu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(LX())}o(Xu,"sortPropertiesRecords");function RX(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}o(RX,"getExtensionText");function NA(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||te.v4.Placement.After)===te.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(NA,"addExtensionToSortedArray");function FX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var u,p,g;return((u=l.position)==null?void 0:u.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((g=n.position)==null?void 0:g.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}o(FX,"addRemainingTargetByBefore");function w1(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=RX(e);return{$ref:`${U}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(w1,"getExtensionDetails");function LA(e,t,n,i,r=!1){var l,u;let a=Object.entries(e).length;for(let p of Object.keys(e)){let g=e[p],m=w1(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let y=n.findIndex(A=>A[0]===g.position.anchor);y>-1?(NA(g,n,y,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(se(i,{severity:Di.LogSeverity.Error,message:q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&FX(e,p,g,n,m)}else r&&(NA(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?LA(e,t,n,i):s>0&&LA(e,t,n,i,!0)}o(LA,"adjustCustomExtReferringToCustomExt");function DX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||te.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===te.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(DX,"getExtensionAnchor");function _X(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o(_X,"getLocalExtensionsToSkip");function VX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||te.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let y=t[m[0]];if(g(y))break;p++}return p},"findNextIndex"),s=0;return i===te.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==te.v4.Placement.Before))}),s>-1?s:0}o(VX,"getExtensionIndexByMergedApproach");function wX(e,t,n,i,r=!1){return r?VX(e,t,n):n.findIndex(a=>a[0]===i)}o(wX,"getExtensionIndex");function MX(e,t,n,i,r){se(e,{severity:Di.LogSeverity.Error,message:q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(MX,"handleInvalidExtension");function va(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=_X(l,s);if(!l)return[];for(let p of Object.keys(l)){let g=l[p];if(u!=null&&u.includes(p))continue;let m=w1(g,n,p,te.ActionType.Custom);if(typeof g!="object"){MX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let y=DX(g,s);if(y){let A=wX(g,e,t,y,a);A>-1&&(NA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&LA(l,n,t,r),t}o(va,"addExtensionToArray");function RA(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(RA,"addEnumForProperties");function kX(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];RA(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(kX,"addColumnPropertyIndexAndEnum");function Sc(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var y,A,b,O;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Xu(l),p=a?a.replace(/::/g,"/"):`@${jo.UIAnnotationTerms.LineItem}`,g=(O=(b=(A=(y=t.options)==null?void 0:y.settings)==null?void 0:A.controlConfiguration)==null?void 0:b[p])==null?void 0:O.columns;g&&(u=va(g,u,i,void 0,n)),kX(u,e,l,i);let m={};u.forEach(([D,j])=>m[D]=j),e.definitions[s].properties=m}o(Sc,"addCustomColumnDefinition");function jX(e){let t;return e.lineItemId.startsWith(te.DefinitionName.LineItemsOfView)?t=te.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(te.DefinitionName.LineItems)?t=te.DefinitionName.ToolBarAction:t=te.DefinitionName.ObjectPageToolBarAction,t}o(jX,"determineActionDefinitionName");function UX(e,t,n){e[te.SchemaTag.keys]=[],t[te.SchemaKeyName.semanticObject]&&e[te.SchemaTag.keys].push({name:te.SchemaKeyName.semanticObject,value:t[te.SchemaKeyName.semanticObject]});let{key:i,ns:r}=ec(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(UX,"addTargetAndKeysOfAction");function $X(e,t,n,i,r,a=!0){if(i.Determining===!0)return;let s=jX(e),l=yi(i,e.entityType),u=i.$Type.split(`${te.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=Xg(p),m=t.properties[`${u}::${g}`]={description:l};if(a?m.$ref=vi(s,pt(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[te.SchemaTag.propertyIndex]=r,m[te.SchemaTag.dataType]=ro(i),UX(m,i,p),m[te.SchemaTag.annotationType]=i.$Type,a){let y=bt(s,pt(g),e.appSchema);y[te.SchemaTag.annotationPath]=`${n}/${r}`}else m[te.SchemaTag.annotationPath]=`${n}/${r}`}o($X,"addActionRecordToSchema");function BX(e,t,n,i,r){var u;let a=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ii(te.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=ua(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[a]);let g=p.properties,m={description:yi(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=U+n,m[te.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[te.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[te.SchemaTag.propertyIndex]=i,m[te.SchemaTag.dataType]=ro(s),g[l]=m,rm(s,g,l)}}o(BX,"addLineItemRecordToSchema");function FA(e,t,n,i,r=te.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===jo.UIAnnotationTypes.DataFieldForAction||s.$Type===jo.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))$X(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===jo.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;BX(e,l,u,a,i)}a++})}o(FA,"appendLineItemsToSchema");function Pc(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=nm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);FA(e,r,a,void 0,t)}o(Pc,"addLineItemsTypeToSchema");function Cc(e,t,n,i=te.DefinitionName.Position,r){var p,g,m,y,A;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==te.DefinitionName.LineItems?r:`@${jo.UIAnnotationTerms.LineItem}`,u=(A=(y=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:y[l])==null?void 0:A.columns;if(u)for(let b in u)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;pa(s,b)}}o(Cc,"addFragmentEnumForAnchor");function fo(e,t,n=te.DefinitionName.CustomActionPosition){Xa(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(fo,"addEnumForActionAnchor");function Nh(e,t,n,i){var a,s,l,u;let r;for(let p in e)if((i&&((s=(a=e[p].options)==null?void 0:a.settings)==null?void 0:s.contextPath)===i||((u=(l=e[p].options)==null?void 0:l.settings)==null?void 0:u.entitySet)===(n==null?void 0:n.name))&&(e[p].name===t||t===te.v4.FE_TEMPLATE_V4_ALP&&e[p].name===te.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[p];break}return r}o(Nh,"findPageV4");function M1(e,t){let n,i=e.properties[te.PropertyName.table];return t.templateType===te.TemplateType.AnalyticalListPageV4?(n=te.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${U}${te.DefinitionName.ALPTableView}`,delete e.definitions[te.DefinitionName.Table],delete e.definitions[te.DefinitionName.LRChartView],delete e.definitions[te.DefinitionName.LRTableView],delete e.definitions[te.DefinitionName.MultiTableModeV4]):t.templateType===te.TemplateType.ListReportObjectPageV4&&(n=te.DefinitionName.Table,delete i.anyOf,i.$ref=`${U}${te.DefinitionName.Table}`,e.definitions[n].properties[te.PropertyName.annotationPath][te.SchemaTag.hidden]=!0,delete e.definitions[te.DefinitionName.ALPTableView],e.properties[te.PropertyName.defaultPath][te.SchemaTag.hidden]=!0),n}o(M1,"alignSchemaWithTemplateType");function Ta(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var g,m,y,A,b,O,D,j,G,B;let s=e.definitions[r];if(!s)return;let l=Xu(s),u;a?i.indexOf(te.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===te.DefinitionName.CustomFormActionOP?u=`@${jo.UIAnnotationTerms.FieldGroup}`:u=`@${jo.UIAnnotationTerms.LineItem}`;let p;if(r.includes(te.DefinitionName.ObjectPageCustomSectionActions)?p=(O=(b=(A=(y=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:y.body)==null?void 0:A.sections)==null?void 0:b[u])==null?void 0:O.actions:p=(B=(G=(j=(D=t.options)==null?void 0:D.settings)==null?void 0:j.controlConfiguration)==null?void 0:G[u])==null?void 0:B.actions,p&&(l=va(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][te.SchemaTag.propertyIndex]=Z;let ae={};l.forEach(([Z,re])=>ae[Z]=re),e.definitions[r].properties=ae}}o(Ta,"addCustomActionDefinition");function Lh(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,y,A,b,O,D;let a=e.definitions[r];if(!a)return;let s=Xu(a),l;[te.DefinitionName.CustomHeaderAction,te.DefinitionName.CustomHeaderActionOP].includes(i)?l=(y=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:y.actions:l=(D=(O=(b=(A=t.options)==null?void 0:A.settings)==null?void 0:b.content)==null?void 0:O.footer)==null?void 0:D.actions,l&&(s=va(l,s,i,"press",n));let u={};if(s){for(let j=0;j<s.length;j++)s[j][1][te.SchemaTag.propertyIndex]=j;s.forEach(([j,G])=>u[j]=G)}e.definitions[r].properties=u}o(Lh,"addHeaderFooterCustomActionDefinition");function xc(e,t,n){let i=Ug(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){se(n,{severity:Di.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Ug(i,[t]);if(!r){se(n,{severity:Di.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(xc,"getManifestPage");function Ic(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,V1.join)(...p,g),y=e.find(A=>A.dataSourceUri.endsWith(m));if(y){let A=(s=t.options)==null?void 0:s.settings;return{file:y,relativeFilePath:m,connection:{contextPath:A==null?void 0:A.contextPath,entitySet:A==null?void 0:A.entitySet}}}}}o(Ic,"getPageCustomExtensionFile");function Uo(e,t,n,i){let r=xc(n,t,i),a=Ug(r,["options","settings","viewName"]);return r&&typeof a=="string"?Ic(e,r,n,"view",a):void 0}o(Uo,"getPageCustomViewFile");function k1(e,t,n,i,r,a,s){var g,m,y,A,b,O,D,j,G,B,ae,Z;let l=Xu(t),u=new Map;if(l=l.map(re=>{let Se=gm(e,re[1],re[0],{keyProperties:[te.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Se.const,re[0]),[Se.const,re[1]]}),a){let re=(b=(A=(y=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:y.body)==null?void 0:A.sections)==null?void 0:b[a];re&&"subSections"in re&&(l=va(re.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let re=(j=(D=(O=n.options)==null?void 0:O.settings)==null?void 0:D.content)==null?void 0:j.header;re&&"facets"in re&&(l=va(re.facets,l,i,"template",s,r))}else{let re=(Z=(ae=(B=(G=n.options)==null?void 0:G.settings)==null?void 0:B.content)==null?void 0:ae.body)==null?void 0:Z.sections;re&&(l=va(re,l,i,"template",s,r))}for(let re=0;re<l.length;re++)l[re][1][te.SchemaTag.propertyIndex]=re;let p={};l.forEach(([re,Se])=>{re=u.get(re)||re,p[re]=Se}),t.properties=p}o(k1,"addCustomSectionDefinition");function j1(e,t,n){var l,u,p;let i=Xu(t),r=new Map;i=i.map(g=>{let m=gm(e,g[1],g[0],{keyProperties:[te.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${jo.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=va(a.filterFields,i,te.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][te.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(j1,"addCustomFilterFieldDefinition");var F=ie(le()),Oc=require("@sap-ux/vocabularies-types/vocabularies/UI");var HX=["header","filterBar","chart","table"],DA="@UI.LineItem";function _A(e,t,n,i,r){if(i||(i=t.definitions[F.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[F.SchemaTag.annotationPath]=pr(e.fullyQualifiedName,Oc.UIAnnotationTerms.SelectionFields,r)),n){let a=0;n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+pt(s.value);s.type==="PropertyPath"&&(l=Vg(s,e)),i.properties[u]={$ref:U+u},i.properties[u][F.SchemaTag.propertyIndex]=a;let p=ro(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][F.SchemaTag.isViewNode]=!0,t.definitions[u][F.SchemaTag.keys]=[{name:F.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][F.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][F.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][F.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][F.SchemaTag.annotationPath]=`${i[F.SchemaTag.annotationPath]}/${a}`,a++})}return i}o(_A,"addSelectionFields");function GX(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Oc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(GX,"getVisualFilters");function WX(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}o(WX,"getPropertiesIndex");function KX(e,t,n,i){var s,l,u,p,g,m;let r=WX(i,e),a=t.definitions[F.DefinitionName.VisualFilters];a.properties={};for(let y in n){let A=n[y];if(!A.template){let b=a.properties[y]={$ref:vi(F.DefinitionName.VisualFilter,y)},O=r.indexOf(y);O!==-1&&(b[F.SchemaTag.propertyIndex]=O);let D=bt(F.DefinitionName.VisualFilter,y,t);(s=A.visualFilter)!=null&&s.valueList&&(D[F.SchemaTag.annotationPath]=`${y}/@${A.visualFilter.valueList}`);let j=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(G=>G.name===y))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();D.description=j||y,D[F.SchemaTag.keys]=[{name:F.SchemaKeyName.value,value:y}]}}}o(KX,"addVisualFilters");function XX(e,t,n){t.additionalProperties={$ref:`#/definitions/${F.DefinitionName.CustomFilterField}`},j1(e,t,n);let i=e.definitions[F.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&Xa(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[F.SchemaKeyName.value,F.SchemaKeyName.key],descriptionAsFallback:!0})}o(XX,"applyCustomFilterFields");function QX(e,t,n,i){var l,u;let r=GX(n),a=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[F.DefinitionName.SelectionFields][F.SchemaTag.hidden]=!0,t.definitions[F.DefinitionName.SelectionFields].properties={},s=t.definitions[F.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},KX(e,t,r,a);else{let p=t.definitions[F.DefinitionName.FilterBar];p.properties.initialLayout[F.SchemaTag.hidden]=!0,p.properties.layout[F.SchemaTag.hidden]=!0,t.definitions[F.DefinitionName.CompactFilters][F.SchemaTag.hidden]=!0,t.definitions[F.DefinitionName.VisualFilters][F.SchemaTag.hidden]=!0}s=_A(e,t,a,s),XX(t,s,n)}o(QX,"addFilterBar");function $1(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${F.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=pt(`${F.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=yi(u,r),m=u.$Type.split(`${F.UIVOCABULARY}.`)[1],y=a.properties[`${m}::${u.Action}`]={$ref:U+p,description:g};y[F.SchemaTag.propertyIndex]=l,y[F.SchemaTag.annotationType]=u.$Type,y[F.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[F.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][F.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}o($1,"defineActions");function B1(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(u=>u.value.indexOf(F.FacetBase.LineItem)>-1):i?a=e.find(u=>u.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?gl(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",F.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(B1,"findTheRightVisualization");function qX(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(qX,"analyzeChartAnnotation");function zX(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=B1((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(se(r,{severity:F.LogSeverity.Error,message:q.t("NOVISUALIZATIONS")}),s=DA,l=`/${t}/`+s.replace("UI",F.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(zX,"analyzeSPVforView");function Ul(e,t,n,i,r,a){let s,l,u=e==null?void 0:e.split(`${F.UIVOCABULARY}.`)[1],p=u&&t[u];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(F.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=B1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return zX(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=DA,m=`/${s}/@${Oc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=DA;p.qualifier&&(g+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("Chart")){let{visualization:g,targetAnnotation:m,chartTitle:y}=qX(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:y}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(Ul,"analyzeViewAnnotation");function YX(e,t,n,i){let r=e.definitions[F.DefinitionName.ALPChartView];if(e.definitions[F.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[F.DefinitionName.ALPChart][F.SchemaTag.isViewNode],n&&(e.definitions[F.DefinitionName.ALPChart][F.SchemaTag.annotationPath]=n),e.definitions[F.DefinitionName.ALPChart].properties.annotationPath[F.SchemaTag.hidden]=!0,r.properties.annotationPath[F.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${U}${F.DefinitionName.ALPChart}`,t){let a=t.split(F.UIVOCABULARYDOT)[1],s=i[a].fullyQualifiedName.split("@");r[F.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}r[F.SchemaTag.artifactType]=F.ArtifactType.Manifest,r[F.SchemaTag.key]="primary",r[F.SchemaTag.keys]=[{name:F.SchemaKeyName.key,value:"primary"}]}o(YX,"addALPChartView");function JX(e,t,n,i,r,a){var j,G,B,ae,Z,re,Se,_;let s=(j=n.entityType)==null?void 0:j.annotations.UI,l=(ae=(B=(G=t==null?void 0:t[0])==null?void 0:G.primary)==null?void 0:B[0])==null?void 0:ae[F.SchemaTag.annotationPath],{targetAnnotation:u}=Ul(l,s,n.serviceAVT,"primary",void 0,n.logger);YX(e,l,u,s);let p="Actions<ALPChart>";e.definitions[F.DefinitionName.ViewChartToolBar].properties.actions.$ref=U+p,$1(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=Ul((Se=(re=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:re[0])==null?void 0:Se[F.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),y=e.definitions[a];g||i?(y.properties.toolBar.$ref=`${U}${F.DefinitionName.ToolBarLR}`,y.properties.columns={$ref:U+F.DefinitionName.LineItems},y.properties.annotationPath[F.SchemaTag.hidden]=!0):y.properties={};let A=e.definitions[F.DefinitionName.ALPTableView];e.definitions[F.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(A)),delete e.definitions[F.DefinitionName.ALPTable][F.SchemaTag.isViewNode],A.additionalProperties=!1,A.description="Table (key: secondary)",A.title="Table",g?(delete A.properties,A.$ref=`${U}${F.DefinitionName.ALPTable}`):i||(A.properties={}),A[F.SchemaTag.artifactType]=F.ArtifactType.Manifest;let b,O;if(g&&g.indexOf(F.FacetBase.LineItem)>-1?(b=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(F.UIVOCABULARYDOT)[1]):i&&(b=O=i.split(F.UIVOCABULARYDOT)[1]),b){let ft={isObjectPage:!1,appSchema:e,lineItemAnnotation:(_=n.entityType)==null?void 0:_.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:F.DefinitionName.LineItems};Pc(ft,F.DefinitionName.ViewTableColumn),m&&(e.definitions[F.DefinitionName.ALPTable][F.SchemaTag.annotationPath]=m);let yt=s[O].fullyQualifiedName.split("@");A[F.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,A[F.SchemaTag.key]="secondary",A[F.SchemaTag.keys]=[{name:F.SchemaKeyName.key,value:"secondary"}]}Sc(e,r,n.logger);let D=`${F.DefinitionName.Actions}<${pt(F.DefinitionName.LineItems)}>`;Ta(e,r,n.logger,void 0,D),fo(e,D,F.DefinitionName.CustomActionPosition)}o(JX,"addALPViews");function ZX(e,t){let n=`${F.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[F.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][F.SchemaTag.isViewNode],e.appSchema.definitions[n][F.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${F.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[F.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${U}${i}`;let r=`${F.DefinitionName.Actions}<${e.viewKey}>`;return $1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[F.PropertyName.actions].$ref=`${U}${r}`,n}o(ZX,"addViewChartDefinitions");function e7(e,t,n,i,r,a){let s=ZX(e,t);n.definitions[s].properties.annotationPath[F.SchemaTag.hidden]=!0,n.definitions[s].properties.index[F.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[F.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${U}${s}`,description:a||l,title:l}}o(e7,"addViewChart");function t7(e,t,n,i,r){var y;let a=`${F.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${F.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=bt(F.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[F.SchemaTag.isViewNode],l[F.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),Ka(l.properties.toolBar,F.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${U}${a}`,description:e.title||u,title:u},Ka(l.properties.columns,s),l.properties.annotationPath[F.SchemaTag.hidden]=!0,l.properties.index[F.SchemaTag.hidden]=!0,l.properties.entitySet[F.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(F.UIVOCABULARYDOT)[1],g={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(y=e.targetEntityType)==null?void 0:y.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s,entitySet:l.entitySet},m=F.DefinitionName.ViewTableColumn;if(l.entitySet!==void 0){let{definitions:A}=e.appSchema;m=F.DefinitionName.ViewTableColumnBasic;let b=A[F.DefinitionName.ViewTableColumn];A[m]=U1(b);let O=F.DefinitionName.ViewTableColumnBasicAction,D=`${F.DefinitionName.ViewTableColumnAction}`;A[O]=U1(A[D])}Pc(g,m,l.entitySet?void 0:F.DefinitionName.ViewCustomColumn,l.entitySet?void 0:F.DefinitionName.ViewCustomAction)}o(t7,"addViewLineItems");function n7(e,t,n,i){e.properties[t][F.SchemaTag.isViewNode]=!0,e.properties[t][F.SchemaTag.annotationPath]=n?`/${n}/@${i[F.SchemaTag.annotationPath]}`:void 0,e.properties[t][F.SchemaTag.artifactType]=F.ArtifactType.Manifest,e.properties[t][F.SchemaTag.key]=t,e.properties[t][F.SchemaTag.keys]=[{name:F.SchemaKeyName.key,value:t}]}o(n7,"addTagsToView");function i7(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(i7,"getTargetEntityType");function r7(e,t,n,i){let r=`${F.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.navPropName?`${e.navPropName}/`:""}@${Oc.UIAnnotationTerms.LineItem}${n.split(F.Visualization.LineItem)[1]}`,l=bt(F.DefinitionName.ViewCustomColumn,r,e.appSchema);Ka(l.properties.position,F.DefinitionName.ViewPosition,r),bt(F.DefinitionName.ViewPosition,r,e.appSchema),Sc(e.appSchema,i,t.logger,`${F.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Cc(e.appSchema,r,i,`${F.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let u=`${F.DefinitionName.Actions}<${r}>`,p=`${F.DefinitionName.ViewCustomAction}<${r}>`;Ta(e.appSchema,i,t.logger,p,u,s),bt(F.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${F.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${U}${g}`,fo(e.appSchema,u,g)}o(r7,"addViewCustomExtensions");function o7(e,t){let{properties:n}=e;if(n)for(let i in n)n[i].artifactType===F.ArtifactType.Manifest&&t.indexOf(i)===-1&&delete n[i]}o(o7,"handleViewProperties");function U1(e){return typeof e=="object"?{...e,properties:{}}:{properties:{}}}o(U1,"createEmptyProperties");function a7(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(F.Visualization.LineItem))>-1)t7(n,t,e,n.targetAnnotation,i),s.entitySet===void 0?r7(n,i,e,r):o7(n.appSchema.definitions[`${F.DefinitionName.LRTableView}<${s.key}>`],["visible"]);else if((e==null?void 0:e.indexOf("Chart"))>-1)e7(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${U}${F.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${U}${F.DefinitionName.LRTableView}`}}}o(a7,"addLRViewParts");function s7(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let u of t){if(!u[F.SchemaTag.key])continue;let p,g=i7(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:y,targetAnnotation:A,namespace:b,title:O}=Ul(u==null?void 0:u[F.SchemaTag.annotationPath],m,n.serviceAVT,u[F.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(G=>G.targetTypeName===b))==null?void 0:l.name);let D=pt(u[F.SchemaTag.key]),j={viewKey:D,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};a7(y,s,j,n,i,m,u),n7(s,D,b,u)}}o(s7,"addLRViews");function c7(e,t,n,i,r,a){var g,m,y,A,b,O,D,j,G,B,ae,Z,re;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=Ul(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,F.Visualization.LineItem,t.logger);if(l){let Se=l.split(".")[1],_=`${F.DefinitionName.LineItems}OfSPV::${pt(Se)}`,ft=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ft[F.SchemaTag.isViewNode],Ka(ft.properties.toolBar,F.DefinitionName.ToolBar,_),ft[F.SchemaTag.annotationPath]=u,ft.properties.columns={},Ka(ft.properties.columns,_),delete s.properties,Ka(s,`${a}SPV`),s[F.SchemaTag.annotationPath]=`/${p}/@${n}`;let yt=(m=t.entityType)==null?void 0:m.annotations.UI[Se];yt||se(t.logger,{severity:F.LogSeverity.Error,message:q.t("NOTARGET",{target:Se})});let Ue={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_};Pc(Ue,F.DefinitionName.TableColumn,F.DefinitionName.CustomColumn,F.DefinitionName.CustomTableAction);let an=(y=Se.split("#"))==null?void 0:y[1],Wn=an?`@${Oc.UIAnnotationTerms.LineItem}#${an}`:`@${Oc.UIAnnotationTerms.LineItem}`;Sc(e,i,t.logger,void 0,_,Wn),Cc(e,_,i,void 0,Wn);let en=`${F.DefinitionName.Actions}<${_}>`,Lt=fm(e,_,F.DefinitionName.CustomTableAction);Ta(e,i,t.logger,hn(Lt),en,Wn),fo(e,en,F.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${U}${F.DefinitionName.ToolBarLR}`,Ka(s.properties.columns,F.DefinitionName.LineItems);let Se=(O=(b=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:b[r])==null?void 0:O.LineItem;!Se&&!((G=(j=(D=i.options)==null?void 0:D.settings)==null?void 0:j.views)!=null&&G.paths)&&se(t.logger,{severity:F.LogSeverity.Error,message:q.t("NOLINEITEMS")});let _={isObjectPage:!1,appSchema:e,lineItemAnnotation:Se,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:F.DefinitionName.LineItems};Pc(_,F.DefinitionName.TableColumn,F.DefinitionName.CustomColumn,F.DefinitionName.CustomTableAction),Sc(e,i,t.logger),Cc(e,F.DefinitionName.LineItems,i),Se&&!((Z=(ae=(B=i.options)==null?void 0:B.settings)==null?void 0:ae.views)!=null&&Z.paths)&&(s[F.SchemaTag.annotationPath]=pr((re=t.entityType)==null?void 0:re.fullyQualifiedName,Se.term,Se.qualifier));let ft=`${F.DefinitionName.Actions}<${pt(F.DefinitionName.LineItems)}>`;Ta(e,i,t.logger,void 0,ft),fo(e,ft,F.DefinitionName.CustomActionPosition)}}o(c7,"adaptTableDefinition");function l7(e,t,n){var i,r,a,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===F.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===F.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(u=t==null?void 0:t.annotations.UI)==null?void 0:u.PresentationVariant)==null?void 0:p.term)}}o(l7,"getDefaultAnnotationPath");function f7(e,t,n,i){var u,p,g,m,y;let r=(g=(p=(u=t.options)==null?void 0:u.settings)==null?void 0:p.views)==null?void 0:g.paths,a=n.entityType,s=l7(t,n.entityType,n.templateType),l=M1(e,n);QX(a,e,t,i),n.templateType===F.TemplateType.ListReportObjectPageV4?(c7(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],s7(e,r,n,t,l)):(y=(m=t.options)==null?void 0:m.settings)!=null&&y.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[F.PropertyName.chart][F.SchemaTag.hidden]=!0):n.templateType===F.TemplateType.AnalyticalListPageV4&&(JX(e,r,n,s,t,l),Cc(e,F.DefinitionName.LineItems,t))}o(f7,"addTableAndViews");function u7(e,t,n){let i=F.DefinitionName.HeaderActions,r=e.definitions[i];r[F.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=F.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[F.SchemaTag.isViewNode]=!0,s.description="Custom Action",Lh(e,t,n,a,i);let l=F.DefinitionName.CustomHeaderActionPosition;bt(l,l,e,!1),s.properties.position.$ref=`${U}${l}`,fo(e,i,l)}o(u7,"addHeaderActions");function Qu(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ii(F.UIVOCABULARY,e.serviceAVT);if(r.properties[F.PropertyName.defaultTemplateAnnotationPath][F.SchemaTag.hidden]=!0,Wa(a,r,F.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[F.ManifestSection.ui5].routing.targets;if(!l)return se(e.logger,{severity:F.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.generic]}}),r;let u=Nh(l,n,e.entitySet,i);if(!u)return r;u7(r,u,e.logger),f7(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Fo(r,HX),r}o(Qu,"generateListReportSchemaV4");var Tr=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=ie(le());var _V=ie(Xs()),VV=ie(DV()),wV=ie(yS());var MV=ie(le()),kV=ie(le());function M6(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o(M6,"findElementByXMLPath");function jV(e,t){return e[t]?!1:(e[t]={},!0)}o(jV,"ensureObjectExists");function k6(e,t){let n={},i=hn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(k6,"getPropertiesFromRef");function j6(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=jV(l,i),m=l[i];return Vc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(j6,"traverseDefaultAggregation");function U6(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}o(U6,"isDefaultAggregationAppliable");function Vc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=k6(s,n.$ref));for(let y in u){let A=u[y],b=typeof A=="object";if(b&&(p==null?void 0:p.defaultAggregation)===y&&U6(u,p)&&(l=j6(e,t,p)||l,b=!1),!!b)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let O=A.metadata.path,D=O.slice(r.length),j=M6(i,D);l=jV(a,y)||l;let G=a[y];l=Vc({fullSchema:e.fullSchema,schema:A,element:j,contextPath:O,config:G,parent:e},t)||l}else l=t(e,A,a,y)||l}return l}o(Vc,"traverseSchema");function rf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,wV.parse)(e.fileContent),s=(0,VV.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,_V.xml2js)(e.fileContent)}catch(r){se(n,{severity:kV.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:jg(r)}),location:{path:e.dataSourceUri}})}return i}o(rf,"parseXML");function of(e){return`${MV.DefinitionName.CustomExtensionFragment}<${e}>`}o(of,"getCustomExtensionFragmentDefinitionKey");function Ay(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(Ay,"getRootElement");var OS=ie(le()),NS=ie(le());var Ep=ie(le());function Ts(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(Ts,"getAttribute");function UV(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(UV,"getNodeByName");function $6(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}o($6,"resolveMetaPath");function SS(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=Ts(t,"contextPath")||i.contextPath,a=Ts(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let O=$6(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,y=a.split("#");y.length&&(m=y[1]);let A;if(a){let O=a.split(".");O.length&&(A=O[O.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:A}:void 0}o(SS,"getEntityTypeResolution");function $V(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o($V,"applyAnnotationPath");function B6(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=Ul(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=fb(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(B6,"getTableLineItemAnnotationData");var BV={"sap.fe.macros.Chart":o(e=>{let t=SS(e);$V(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=SS(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ii(Ep.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);_A(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=SS(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=ii(Ep.UIVOCABULARY,n);if($V(t,r),t.annotationPath){let u=B6(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:Ep.DefinitionName.LineItems};FA(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var HV=ie(le());var H6=new Map([["filterFields","SelectionField::"]]),G6=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Ap={anchor:"anchor",placement:"placement",key:"key"};function W6(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[hn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return Ap.anchor in r&&Ap.placement in r}return!1}o(W6,"isCustomExtensionSchema");function GV(e){let t=H6.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=G6.get(e),t&&(n.prefix=t)),n}o(GV,"getAnnotationPrefix");function K6(e,t,n,i){let r=t.properties[n],a=GV(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=Ts(l,Ap.key)||n,p=Ts(l,Ap.anchor),g=Ts(l,Ap.placement)||HV.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,y={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:y}}o(K6,"getExtensionData");function X6(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=K6(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}va(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],u=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in a&&(u=t.properties[a[l]]),u&&(u.propertyIndex=s)}}o(X6,"updatePropertyIndices");function Q6(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=Ts(e.subElements[s],"key")||r}return r}o(Q6,"getCorrectedAnchorEnumKey");function q6(e,t,n,i){var a,s;let r=GV(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;Xa(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let g=((s=(a=p.properties)==null?void 0:a[u])==null?void 0:s.oneOf)||[];for(let m of g)typeof m=="object"&&typeof m.const=="string"&&(m.const=Q6(e,m.const,r,t.properties[m.const]))}}o(q6,"applyEnumsForAnchors");function WV(e,t,n,i){W6(t,n)&&(i=i||e.name,X6(e,t,i),q6(e,t,n,i))}o(WV,"handleExtensions");var ci=[];for(let e=0;e<256;++e)ci.push((e+256).toString(16).slice(1));function KV(e,t=0){return(ci[e[t+0]]+ci[e[t+1]]+ci[e[t+2]]+ci[e[t+3]]+"-"+ci[e[t+4]]+ci[e[t+5]]+"-"+ci[e[t+6]]+ci[e[t+7]]+"-"+ci[e[t+8]]+ci[e[t+9]]+"-"+ci[e[t+10]]+ci[e[t+11]]+ci[e[t+12]]+ci[e[t+13]]+ci[e[t+14]]+ci[e[t+15]]).toLowerCase()}o(KV,"unsafeStringify");var XV=require("crypto");var Py=new Uint8Array(256),Sy=Py.length;function PS(){return Sy>Py.length-16&&((0,XV.randomFillSync)(Py),Sy=0),Py.slice(Sy,Sy+=16)}o(PS,"rng");var QV=require("crypto"),CS={randomUUID:QV.randomUUID};function z6(e,t,n){var r;if(CS.randomUUID&&!t&&!e)return CS.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??PS();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=i[a];return t}return KV(i)}o(z6,"v4");var xS=z6;var IS="sap.fe.macros",Y6=["id","key","title","text","label","header"];function qV(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(qV,"getElementName");function J6(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(J6,"isElementWithNamespace");function Z6(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(Z6,"getDependencies");function eq(e,t){let n="",i=e.attributes||[];for(let r of Y6){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(eq,"getViewNodeDescription");function tq(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(tq,"findAvailableName");function zV(e,t){if(e.properties={},e.$ref){let n=hn(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(zV,"prepareSchemaProperties");function nq(e,t,n){t.properties||zV(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(nq,"handleAttributes");function iq(e){e.type===NS.MacrosPropertyType.Control&&(e.internalId=xS())}o(iq,"applyIdForMacros");function rq(e,t,n){var i,r;try{(r=(i=BV)[e])==null||r.call(i,t)}catch{se(n,{severity:OS.LogSeverity.Error,message:q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(rq,"callAnnotationHandler");function oq(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===NS.MacrosPropertyType.Control&&(e.controlName=n)}o(oq,"updateMetadataByReference");function aq(e,t,n,i){var y,A,b,O,D;let r=n.schema;t.properties||zV(t,r);let a=t.properties[i],s=(y=a==null?void 0:a.metadata)==null?void 0:y.type,l=(A=a==null?void 0:a.metadata)==null?void 0:A.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&O.length?tq(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(hn(a.$ref)):g=[`${IS}.${i}`,`${IS}.table.${i}`,`${IS}.filterBar.${i}`];let m=!1;for(let j of g){let G=(D=r.definitions)==null?void 0:D[j];if(typeof G!="object")continue;oq(u,G,j);let B=eq(e,i),ae={$ref:BF(j),description:B,propertyIndex:n.index,metadata:u};nq(e,ae,r),t.properties[p]=ae,m=!0,rq(j,{...n,node:e,schema:ae,rootSchema:n.schema},n.logger);break}if(iq(u),!m)if(!(a!=null&&a.properties)||!(p in t.properties)){let j={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=j}else a.metadata=u;return p}o(aq,"addControlToSchema");function YV(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split(U)[1];a&&t.indexOf(a)===-1&&t.push(a)}YV(r,t)}}o(YV,"populateUsedDefinitionKeys");function sq(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let i=t.additionalProperties.$ref.split(".");if(i[i.length-1]===e.name)return!0}return!1}o(sq,"isElementAddableToSchema");function cq(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!UV(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(cq,"getDefaultAggregation");function lq(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,JV(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:qV(s),index:a}]},i)}}o(lq,"handleSubElementsOfXMLNode");function JV(e,t,n,i){var g,m,y;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[hn(t.$ref)]:t;if(J6(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(y=t.metadata)==null?void 0:y.defaultAggregation;A&&sq(e,t.properties[A])&&(t=t.properties[A]);let b=e.name.split(":"),O=aq(e,t,n,b[b.length-1]);if(t.properties[O])t=t.properties[O];else return}let{subElements:l=[]}=e,u=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&u&&n.schema.definitions[u]&&i.indexOf(u)===-1&&(i.push(u),YV(t,i));let p=cq(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),lq(l,t,n,i),r.push({node:e,schema:t});for(let A of r)WV(A.node,A.schema,n.schema,A.name)}o(JV,"handleXMLNode");function fq(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}o(fq,"getMacrosPrefixes");function wc(e,t,n,i){let r=rf(t.file,!0,i),a=[];if(!r)return;nn();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){se(i,{severity:OS.LogSeverity.Error,message:q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=Z6(l),p=fq(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let y=l.subElements[m],A=!g[y.name];g[y.name]=!0,JV(y,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:qV(y),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(wc,"generateMacrosSchemaDefinition");function ZV(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&ZV(i.subSections,t)}}o(ZV,"populateTemplates");function ew(e,t,n,i){var s,l,u;let r=xc(n.manifest,i),a=[];ZV(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=of(p);e.definitions[m]=g;let y=Ic(n.fragments,r,n.manifest,"fragment",p);if(y){g.metadata.filePath=y.relativeFilePath;let{properties:A={},definitions:b={}}=wc(t,y,n.serviceAVT,n.logger)||{};g.properties=A;for(let O in b)e.definitions[O]||(e.definitions[O]=b[O])}}return t}o(ew,"resolveFragments");var uq=["header","layout","sections","footer"],pq=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],LS="Custom Action";function RS(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=am(t.item,e),p=ua(t.item),g=t.item.fullyQualifiedName.replace(`@${Tr.UIAnnotationTerms.Identification}`,`/@${Tr.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${pt(p)}>`,y=i.definitions[m]={type:"object",$ref:`${U}${N.DefinitionName.ObjectPageHeaderAction}`,description:yi(t.item,r)};y[N.SchemaTag.isViewNode]=!0,y[N.SchemaTag.dataType]=ro(t.item),y[N.SchemaTag.propertyIndex]=s,y[N.SchemaTag.keys]=[],t.item[N.SchemaKeyName.semanticObject]&&y[N.SchemaTag.keys].push({name:N.SchemaKeyName.semanticObject,value:t.item[N.SchemaKeyName.semanticObject]}),y[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:l}),u&&(i.definitions[m][N.SchemaTag.target]=u),y[N.SchemaTag.actionType]=n,y[N.SchemaTag.annotationPath]=`/${g}`,a.properties[p]={$ref:`${U}${m}`},a.properties[p][N.SchemaTag.propertyIndex]=s}o(RS,"addSingleHeaderActionV4");function tw(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[N.SchemaTag.isViewNode]=!0,s[N.SchemaTag.propertyIndex]=i,s[N.SchemaTag.keys]=[],s[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:e}),s[N.SchemaTag.actionType]=N.ActionType.Standard,n.properties[r]={$ref:`${U}${a}`},n.properties[r][N.SchemaTag.propertyIndex]=i,s}o(tw,"addStandardHeaderAction");function nw(e,t,n,i,r,a){let s=ua(e.item),l=yi(e.item,n),u=pt(`${N.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Tr.UIAnnotationTerms.Identification}`,`/@${Tr.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${U}${N.DefinitionName.FooterActionV4}`,description:l};g[N.SchemaTag.isViewNode]=!0,g[N.SchemaTag.actionType]=t,g[N.SchemaTag.propertyIndex]=a,g[N.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${U}${u}`}}o(nw,"addSingleFooterAction");function dq(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Tr.UIAnnotationTypes.DataFieldForAction||i.$Type===Tr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(pq.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(dq,"groupByCriticality");function gq(e,t,n,i,r){for(let a=0;a<e.length;a++)RS(t,e[a],N.ActionType.Criticality,n,i,r,a)}o(gq,"addCriticalActions");function mq(e,t,n,i,r,a){let s=e.findIndex(l=>{var u,p;return((p=(u=l.item.annotations)==null?void 0:u.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(RS(t,e[s],N.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(mq,"addCopyAction");function hq(e,t,n,i,r,a){for(let s of e)RS(t,s,N.ActionType.Annotation,n,i,r,a),a++}o(hq,"addUncriticalActions");function yq(e){let t="RelatedApps",n=e.properties[t]={$ref:`${U}${t}`,description:"Related Apps"};n[N.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[N.SchemaTag.artifactType]=N.ArtifactType.Manifest,n[N.SchemaTag.actionType]=N.ActionType.Standard,n[N.SchemaTag.isViewNode]=!0,n[N.SchemaTag.keys]=[{name:N.SchemaKeyName.action,value:t}]}o(yq,"addRelatedAppsButton");function iw(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[N.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`:e[N.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`}o(iw,"setAnnotationPathFromEntitySetOrEntityType");function vq(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?dq(n):{};if(gq(s,r.serviceAVT,t,e,i),r.entitySet){let p=y0(r.entitySet),g=v0(r.entitySet);if(Zg(r.entitySet)&&g){let m=tw("Edit",t,i,s.length);iw(m,r.entitySet,e,"UpdateHidden")}if(p){let m=tw("Delete",t,i,s.length+1);iw(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;mq(l,r.serviceAVT,t,e,i,u),hq(l,r.serviceAVT,t,e,i,u),ow(t,a,N.DefinitionName.CustomHeaderActionOP,r.logger),yq(i)}o(vq,"addHeaderActionCallBackV4");function Tq(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Tr.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];nw(l,N.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];nw(l,N.ActionType.Annotation,e,t,n,r.length+s)}}o(Tq,"addFooterActionCallBackV4");function bq(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Tr.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomColumnOP}<${n}>`:N.DefinitionName.CustomColumnOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${N.DefinitionName.CustomColumnOP}<${n}>`;Sc(e,t,r,u,n,i);let p=a?n:N.DefinitionName.PositionOP;bt(N.DefinitionName.PositionOP,p,e,a);let g=a?`${N.DefinitionName.PositionOP}<${n}>`:N.DefinitionName.PositionOP;l.properties.position.$ref=`${U}${g}`,Cc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&RA(m,l)}o(bq,"addCustomColumnsOP");function Eq(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Tr.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomTableActionOP}<${n}>`:N.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description=LS;let u=`${N.DefinitionName.CustomTableActionOP}<${n}>`,p=`${N.DefinitionName.Actions}<${pt(n)}>`;Ta(e,t,r,u,p,i);let g=a?n:N.DefinitionName.CustomActionPositionOP;bt(N.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${N.DefinitionName.CustomActionPositionOP}<${n}>`:N.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${U}${m}`,fo(e,p,m)}o(Eq,"addTableCustomActionsOP");function ow(e,t,n,i){let r=e.definitions[n];r[N.SchemaTag.isViewNode]=!0,r.description=LS;let a=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.ObjectPageHeaderActions:N.DefinitionName.FooterActions;Lh(e,t,i,n,a);let s=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.CustomHeaderActionPositionOP:N.DefinitionName.CustomFooterActionPositionOP;bt(s,s,e,!1),r.properties.position.$ref=`${U}${s}`,fo(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${U}${n}`})}o(ow,"addHeaderFooterCustomActionsOP");function Aq(e,t,n,i,r){let a=`${N.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[N.SchemaTag.isViewNode]=!0,s.description=LS;let l=`${N.DefinitionName.CustomFormActionOP}<${n}>`,u=`${N.DefinitionName.SectionActions}<${pt(n)}>`;Ta(e,t,r,l,u,i),bt(N.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${N.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${U}${p}`,fo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${U}${a}`})}o(Aq,"addFormCustomActionsOP");function Sq(e,t,n,i,r,a,s){let l=tc(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=bt(N.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${U}${l}`},g.properties.toolBar.$ref=vi(N.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=vi(N.DefinitionName.QuickVariantSelectionV4OP,t);let m=bt(N.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=vi(N.DefinitionName.AnnotationPathAsObject,t),bt(N.DefinitionName.AnnotationPathAsObject,t,n),Wa(e.entityType,n,`${N.DefinitionName.AnnotationPathAsObject}<${l}>`);let y={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Pc(y,N.DefinitionName.ObjectPageTableColumn,N.DefinitionName.CustomColumnOP,N.DefinitionName.CustomTableActionOP),bq(n,a,l,t,s),Eq(n,a,l,t,s),g}o(Sq,"handleLineItem");function aw(e,t,n,i,r,a,s){s&&Cy(s,t,N.DefinitionName.ObjectPageSectionTableV4);let l=bt(N.DefinitionName.ObjectPageSectionTableV4,t,n);la(e,l,tc(t)),Ha(e,l,tc(t)),l[N.SchemaTag.annotationPath]=e.annotationPath,l[N.SchemaTag.target]=e.namespace,l.properties.table.$ref=vi(N.DefinitionName.ObjectPageTable,t);let u=Sq(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(aw,"handleSectionTable");function Pq(e,t,n,i,r,a,s){let l;a===N.SectionType.Section?l=N.DefinitionName.ObjectPageSectionForm:a===N.SectionType.HeaderSection&&(l=N.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:vi(l,n)};let u=bt(l,n,r);e.ID||(u.properties={}),la(e,u,n),Ha(e,u,n),u[N.SchemaTag.annotationPath]=e.annotationPath,u[N.SchemaTag.target]=e.namespace,u[N.SchemaTag.isViewNode]=!0;let p=om(a,e,u,r,N.FioriElementsVersion.v4,n);if(e.base===N.FacetBase.Form){let g=tc(n);bt(N.DefinitionName.CustomFormActionOP,p,r),Aq(r,t,p,g,s)}}o(Pq,"handleFormIdentification");function rw(e,t,n,i,r){n.properties[t]={$ref:`${U}${r}`};let a=bt(N.DefinitionName.CommonHeaderFacetSettings,r,i,!1);dl(e,a,t),a[N.SchemaTag.annotationPath]=e.annotationPath,a[N.SchemaTag.target]=e.namespace,a[N.SchemaTag.dataType]=nc(e==null?void 0:e.target),a[N.SchemaTag.isViewNode]=!0}o(rw,"handleHeaderFacet");function Cq(e,t,n,i){let r=bt(N.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,u=yi(l,i),p=l.$Type.split(N.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:vi(N.DefinitionName.ObjectPageToolBarAction,g),description:u};m[N.SchemaTag.propertyIndex]=a,m[N.SchemaTag.annotationType]=l.$Type;let y=bt(N.DefinitionName.ObjectPageToolBarAction,pt(g),n);y[N.SchemaTag.annotationPath]=dm(l),y[N.SchemaTag.dataType]=ro(l),y.properties={},a++})}return r}o(Cq,"handleChartActions");function xq(e,t,n,i){let r=bt(N.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[N.SchemaTag.annotationPath]=dm(e),r[N.SchemaTag.dataType]=nc(e.target||e),r[N.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=vi(N.DefinitionName.ObjectPageToolBar,t);let a=bt(N.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=vi(N.DefinitionName.ObjectPageToolBarActions,t);let s=Cq(e,t,n,i);return{chart:r,chartActions:s}}o(xq,"handleChart");function sw(e,t,n,i,r=e.entityType,a=!1,s){let l=a?N.DefinitionName.CommonHeaderFacetSettings:N.DefinitionName.ObjectPageSectionChart,u=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart;i&&Cy(i,t,l);let p=pm(u,t),g=bt(l,p,n,!1);if(dl(e,g,t),a)return delete g.properties.chart,{parentChartRef:g};g[N.SchemaTag.annotationPath]=dm(e),g.properties.chart.$ref=vi(N.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:y}=xq(e.target||e,t,n,r);return m[N.SchemaTag.target]=s,{parentChartRef:g,chart:m,chartActions:y}}o(sw,"handleSectionChart");function Iq(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${Ab(r,n.serviceAVT)}`,l=s.split(N.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(Iq,"getVisualizationKeyAndType");function Oq(e,t,n){var r,a;return(a=(r=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:r.annotations)==null?void 0:a.UI[n]}o(Oq,"getTargetFromNavigation");function Nq(e,t,n){let i=e.target[N.FacetBase.PresentationVariant]?e.target[N.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:u}=Iq(!!r,a,n),p=r?a:Oq(n,s,u),g=e.target[N.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:u,target:p,namespace:g,navigationPath:s}}o(Nq,"getVisualizationProps");function Cy(e,t,n,i){e.properties[t]={$ref:vi(n,i||t)}}o(Cy,"addPropertyRef");function cw(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(cw,"getSectionPropertyRef");function Lq(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:u}=cw(t,r);Cy(i,l,N.DefinitionName.ObjectPageSectionTableV4,u);let{sectionTable:p,table:g}=aw(e,u,n,{target:r.target,entityType:e.entityType},a,s);p[N.SchemaTag.annotationPath]=e.annotationPath,dl(e,p,t),delete p[N.SchemaTag.isViewNode],g[N.SchemaTag.annotationPath]=`/${r.namespace}/${r.key}`,g[N.SchemaTag.target]=r.namespace}o(Lq,"addPVLineItemSection");function Rq(e,t,n,i,r,a=!1){let s=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:u}=cw(t,r);Cy(i,l,s,u);let{parentChartRef:p}=sw(r.target,u,n,void 0,e.entityType,a,r.namespace);p[N.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(la(e,p,t),UF(e,p)):dl(e,p,t)}o(Rq,"addPVChartSection");function Fq(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){se(a.logger,{severity:N.LogSeverity.Error,message:q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=Nq(e,t,a),u=r===N.SectionType.HeaderSection;l&&(l.type.startsWith(N.Visualization.Chart)?Rq(e,t,n,i,l,u):l.type.startsWith(N.Visualization.LineItem)&&Lq(e,t,n,i,l,a,s))}o(Fq,"handleSectionPresentationVariant");function Dq(e){let t=e.facets||{};for(let n in t)if(t[n].base===N.FacetBase.CollectionFacet)return!0;return!1}o(Dq,"containsCollectionFacet");function _q(e,t,n){var a;let i=`${N.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[N.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};qs(n,N.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(_q,"createCustomSubSectionReference");function Vq(e,t,n,i){var a,s,l,u;let r=(u=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:u.sections;if(r)for(let p in r){let g=bt(n,p,e),m=bt(N.DefinitionName.ObjectPageCustomSectionActions,p,e),y=bt(N.DefinitionName.CustomSectionActionOP,p,e),A=`${N.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${U}${A}`};let b=`${N.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${U}${b}`},bt(N.DefinitionName.CustomSectionActionPositionOP,p,e);let O=`${N.DefinitionName.CustomSectionActionPositionOP}<${p}>`;y.properties.position.$ref=`${U}${O}`,y[N.SchemaTag.isViewNode]=!0,Ta(e,t,i,b,A,p),fo(e,A,O)}}o(Vq,"applyCustomActionsToCustomSections");function FS(e,t,n,i,r,a,s){var m,y,A,b,O;let l=!1,u;a&&s?(l=!Dq(a),u=_q(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${U}${u}`},k1(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&Xa(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[N.SchemaKeyName.id,N.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(N.DefinitionName.ObjectPageCustomSectionFragment)){let D=t.definitions[N.DefinitionName.ObjectPageCustomSectionActions];D.properties={},Vq(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(N.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let D=(O=(b=(A=(y=(m=i.options)==null?void 0:m.settings)==null?void 0:y.content)==null?void 0:A.body)==null?void 0:b.sections)==null?void 0:O[s],j=D&&"subSections"in D?D.subSections:{};for(let G=g.oneOf.length-1;G>=0;G--){let B=g.oneOf[G];j[B.const]||(B.hidden=!0)}}}o(FS,"applyCustomSections");function wq(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=Lo(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[N.SchemaTag.annotationPath]=e.annotationPath,g[N.SchemaTag.target]=e.namespace,g[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}],g[N.SchemaTag.isViewNode]=!0;let m=l+1;for(let y in e.facets)DS(a,e.facets,y,g,n,r,s,m);u&&FS(g,n,a,s,N.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(wq,"handleCollection");function DS(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${tc(n)}>`;switch(u.base){case N.FacetBase.PresentationVariant:case N.FacetBase.SelectionPresentationVariant:{Fq(u,n,r,i,a,e,s);break}case N.FacetBase.CollectionFacet:{wq(u,n,r,i,a,e,s,l);break}case N.FacetBase.LineItem:{if(a===N.SectionType.Section){let g=t[n];aw(u,n,r,g,e,s,i)}break}case N.FacetBase.Form:case N.FacetBase.Identification:{Pq(u,s,n,i,r,a,e.logger);break}case N.FacetBase.DataPoint:{rw(u,n,i,r,p);break}case N.FacetBase.Chart:{a===N.SectionType.HeaderSection?rw(u,n,i,r,p):a===N.SectionType.Section&&sw(u,n,r,i);break}case N.FacetBase.Address:case N.FacetBase.Contact:{nu(u,n,i,r,a);break}default:i.properties[n]=Lo(r,u,n)}}o(DS,"addSection");function Mq(e,t,n){let i=Mg(e.entityType,e.serviceAVT,N.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[N.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[N.DefinitionName.Sections];for(let a in i)DS(e,i,a,r,t,N.SectionType.Section,n);FS(r,t,e,n,N.DefinitionName.ObjectPageCustomSectionFragment)}o(Mq,"addSections");function kq(e,t,n,i){let r=wg(n,e.serviceAVT,N.FioriElementsVersion.v4,e.logger),a=t.definitions[N.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)DS(e,r,s,a,t,N.SectionType.HeaderSection,i);FS(a,t,e,i,N.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionAddress]}}o(kq,"addHeaderSections");function jq(e,t,n){let i=e.entityType;lm(t,i),cm(t,i,e,vq,n),i&&(t.definitions[N.DefinitionName.HeaderSections][N.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Tr.UIAnnotationTerms.HeaderFacets}`),kq(e,t,i,n)}o(jq,"addHeader");function Sp(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${U}${N.DefinitionName.Sections}`},!e.manifest[N.ManifestSection.ui5].routing||!e.manifest[N.ManifestSection.ui5].routing.targets)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:N.MANIFESTPATH}}),r;let a=r.definitions[N.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:N.DefinitionName.Sections};if(a[N.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[N.ManifestSection.ui5].routing.targets;if(!s)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}}),r;let l=Nh(s,N.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(jq(e,r,l),a[N.SchemaTag.isViewNode]=!0,e.entityType&&(a[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Tr.UIAnnotationTerms.Facets}`),qs(e.featureToggles,N.Features.BuildingBlocks)&&i){r.definitions[N.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{ew(r,i,e,l.id)}catch(u){se(e.logger,{severity:N.LogSeverity.Error,message:u})}}Mq(e,r,l),sm(r,e,N.FioriElementsVersion.v4,Tq),ow(r,l,N.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[N.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[N.DefinitionName.GenericColumnsOP],delete r.definitions[N.DefinitionName.GenericSections],delete r.definitions[N.DefinitionName.GenericSubSections],delete r.definitions[N.DefinitionName.ObjectPageChart],delete r.definitions[N.DefinitionName.ObjectPageSectionAddress],delete r.definitions[N.DefinitionName.ObjectPageSectionChart],delete r.definitions[N.DefinitionName.ObjectPageSectionContact],delete r.definitions[N.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[N.DefinitionName.ObjectPageSectionForm],delete r.definitions[N.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[N.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[N.DefinitionName.ObjectPageSubSections],delete r.definitions[N.DefinitionName.ObjectPageTable],delete r.definitions[N.DefinitionName.ObjectPageToolBar],delete r.definitions[N.DefinitionName.ObjectPageToolBarAction],delete r.definitions[N.DefinitionName.ObjectPageToolBarActions],delete r.definitions[N.DefinitionName.QuickVariantSelectionV4OP],Fo(r,uq),r}o(Sp,"generateObjectPageSchemaV4");function _S(e,t){return JSON.parse(JSON.stringify(t))}o(_S,"generateFreestyleSchemaV4");var Kr=ie(le());function VS(e,t,n,i,r,a,s,l,u){let p=Oo(n,r),{entitySet:g,entityType:m}=Mc(p,s,t,r),y={templateType:Kr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Sp(y,e,s,l)}o(VS,"generateObjectPageInterfaceV4");function xy(e,t,n,i,r,a,s){nn();let l=Oo(i,r),{entitySet:u,entityType:p}=Mc(l,s,n,r),g={templateType:e,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Kr.TemplateType.ListReportObjectPageV4?Kr.v4.FE_TEMPLATE_V4_LIST_REPORT:Kr.v4.FE_TEMPLATE_V4_ALP;return Qu(g,t,m,s)}o(xy,"generateListReportInterfaceV4");function wS(e,t,n,i,r,a){let s=Oo(n,a),l={templateType:e,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return _S(l,t)}o(wS,"generateFreestyleInterfaceV4");function MS(e,t,n,i,r,a,s){let l={};if(qs(a,Kr.Features.BuildingBlocks)){let u=Oo(r,s),p=Uo(i||[],t,n,s);l=p!=null&&p.file.fileContent?wc(e,p,u,s):{}}return l}o(MS,"generateFPMCustomPageInterfaceV4");var jc=require("@sap-ux/vocabularies-types/vocabularies/UI"),dw=ie(le());var kc=ie(le());var uw=new Map([[kc.PageTypeV2.ListReport,kc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[kc.PageTypeV2.ObjectPage,kc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),lw=o((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),fw=o(e=>{var t;for(let[n,i]of uw)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),Uq=o((e,t)=>{let n="";for(let[r,a]of uw)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),pw={manifest:{path:o(()=>`sap.ui5/extends/extensions/${kc.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=fw(n);i&&(t[i]={},lw(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=Uq(s,i);e[l]||(e[l]={}),lw(r[s],e[l])}for(let s in e){let l=fw(s);l&&!r[l]&&delete e[s]}},"export")}};var ht=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Ny=o(e=>ht(e)+"/views/paths","getSettingsPathForLRViewsPaths"),Ly=o(e=>ht(e)+"/content/header","getSettingsPathForHeaderOP"),$q=o(e=>ht(e)+"/content/footer","getSettingsPathForFooterOP"),Qr=o(e=>ht(e)+"/controlConfiguration","getControlConfigurationPath"),Ry=o((e,t,n)=>Qr(e)+`/@${jc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),Fy=o(e=>Qr(e)+`/@${jc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),bs=o((e,t,n,i)=>Qr(e)+`/@${jc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),kS=o((e,t,n,i)=>Fy(e)+`/filterFields/${i}`,"getFilterFieldPath"),br=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Qr(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),Ji=o((e,t,n,i,r)=>r?br(e,t,n,i,r):Qr(e)+`/@${jc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),Dy=o((e,t,n,i,r)=>Ji(e,t,n,i,r)+dw.QUICKVARPATH,"getQuickVariantPath"),Zi=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Qr(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),ki=o((e,t,n,i,r)=>r?Zi(e,t,n,i,r):Qr(e)+`/@${jc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),qr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Qr(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Er=o((e,t,n,i,r)=>r?qr(e,t,n,i,r):Qr(e)+`/@${jc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),er=o((e,t,n,i)=>Qr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=o((e,t,n,i)=>Qr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),li=o((e,t,n,i)=>Ly(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),jS=o((e,t,n,i)=>ht(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),mo=o((e,t,n,i)=>$q(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),jn=o((e,t,n)=>Qr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),sf=o((e,t,n,i)=>{let r=ht(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Es=o((e,t,n,i)=>ht(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Ar=o((e,t,n,i)=>{let r=ht(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),cf=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=ht(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),Oy=class Oy{};o(Oy,"ApplicationV4"),h([jt("settings")],Oy.prototype,"settings",2);var Iy=Oy,Xr=class Xr{};o(Xr,"AppSettings"),h([T({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"title",2),h([T({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"description",2),h([T({manifest:{path:o(()=>"sap.fiori","path")}})],Xr.prototype,"cloudDevAdaptationStatus",2),h([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),C({since:"1.78.0"})],Xr.prototype,"flexibleColumnLayout",2),h([T({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"})],Xr.prototype,"flexEnabled",2),h([T({manifest:{path:o(()=>"sap.ui5","path")}})],Xr.prototype,"dependencies",2),h([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Xr.prototype,"viewType",2),h([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Xr.prototype,"viewPath",2),h([T(pw)],Xr.prototype,"controllerExtensions",2);var af=Xr;var he=ie(le());function At(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace("/","::");for(let g in n.properties){let m=Yn(e,g);if(m!=null&&m.manifest){let y=m.manifest.path([i],t,p,...r);l=No(t,y,a,p,!0),l&&Object.keys(l).length>0&&(ml(m,l,g,e,a,r),Wg(u,l,y,s))}}}o(At,"importSettingsOfObject");var RC={};Ws(RC,{ALPChart:()=>HP,ALPTable:()=>hf,ActionAfterExecutionConfiguration:()=>dC,ActionAfterExecutionConfigurationFooter:()=>aP,ActionAfterExecutionConfigurationForm:()=>fP,ActionAfterExecutionConfigurationOP:()=>Hp,ActionAfterExecutionConfigurationObjectPageHeader:()=>bP,ActionAfterExecutionConfigurationToolBarLR:()=>PC,Actions:()=>bC,AdditionalSemanticObject:()=>uC,CommonHeaderFacetSettings:()=>Ls,CommonViewSettings:()=>mf,CustomActionPosition:()=>IC,CustomActionPositionOP:()=>lC,CustomFilterField:()=>HS,CustomFilterFieldPosition:()=>BS,CustomFooterActionOP:()=>lP,CustomFooterActionPositionOP:()=>cP,CustomFormActionOP:()=>hP,CustomHeaderAction:()=>QS,CustomHeaderActionOP:()=>SP,CustomHeaderActionPosition:()=>Op,CustomHeaderActionPositionOP:()=>AP,CustomSectionActionOP:()=>tP,CustomSectionActionPositionOP:()=>eP,CustomTableAction:()=>OC,CustomTableActionOP:()=>fC,FilterBar:()=>US,FlexSettings:()=>CP,FooterActionV4:()=>sP,FormAction:()=>uP,Header:()=>WS,HeaderActions:()=>GS,HeaderSections:()=>RP,LRChartView:()=>GP,LRTableView:()=>WP,MultiTableModeV4:()=>XP,ObjectPageCustomHeaderSectionFlexSettings:()=>qS,ObjectPageCustomHeaderSectionFragment:()=>zS,ObjectPageCustomSectionActions:()=>YS,ObjectPageCustomSectionFragment:()=>lf,ObjectPageCustomSubSectionFragment:()=>JS,ObjectPageFooter:()=>iP,ObjectPageFooterActions:()=>nP,ObjectPageForm:()=>dP,ObjectPageFormActions:()=>pP,ObjectPageHeader:()=>vP,ObjectPageHeaderAction:()=>EP,ObjectPageHeaderActions:()=>yP,ObjectPageHeaderSectionAddress:()=>LP,ObjectPageHeaderSectionChart:()=>IP,ObjectPageHeaderSectionContact:()=>NP,ObjectPageHeaderSectionDataPoint:()=>OP,ObjectPageHeaderSectionForm:()=>xP,ObjectPageLayout:()=>kP,ObjectPageTable:()=>jp,ObjectPageTableColumn:()=>Tf,ObjectPageTableColumnAction:()=>rC,ObjectPageToolBarAction:()=>cC,PersonalizationType:()=>UP,PersonalizationTypeOP:()=>nC,Position:()=>hC,PositionOP:()=>oC,QuickVariantSelectionV4:()=>BP,QuickVariantSelectionV4OP:()=>iC,RelatedApps:()=>pC,Table:()=>QP,TableColumn:()=>Ky,TableColumnAction:()=>gC,TableCreationModeOP:()=>tC,TableCustomColumn:()=>vC,TableCustomColumnOP:()=>aC,TableSettings:()=>Uy,TableViewExtension:()=>KP,TableViewSettings:()=>Mp,ToolBar:()=>EC,ToolBarAction:()=>CC,ViewCustomActionPosition:()=>NC,ViewPersonalizationType:()=>$P,ViewPosition:()=>yC,ViewTableColumn:()=>Xy,ViewTableColumnAction:()=>mC,ViewTableCustomAction:()=>LC,ViewTableCustomColumn:()=>TC,ViewToolBarAction:()=>xC,VisualFilter:()=>$S,checkViewOrder:()=>zP,deleteCreationModeCreateAtEnd:()=>eC,deleteCreationModeName:()=>YP,deletePersonalizationProperty:()=>To,exportCreationModeCreateAtEnd:()=>ZP,exportCreationModeName:()=>qP,exportPersonalization:()=>Wq,exportPersonalizationProperty:()=>vo});function Bq(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(Bq,"exportVisualFilterValueList");var Pp=class Pp{};o(Pp,"FilterBar"),h([T({manifest:{path:Fy}}),C({since:"1.93.0"}),Le("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Pp.prototype,"initialLayout",2),h([T({manifest:{path:Fy}}),C({since:"1.93.0"}),Le("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Pp.prototype,"layout",2);var US=Pp,Cp=class Cp{};o(Cp,"VisualFilter"),h([T({manifest:{path:kS}}),C({since:"1.93.0"}),Le("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Cp.prototype,"availability",2),h([T({manifest:{path:kS,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:Bq,key:"visualFilter"}}),C({since:"1.93.0"})],Cp.prototype,"visualFilterValueList",2);var $S=Cp,xp=class xp{};o(xp,"CustomFilterFieldPosition"),h([T({manifest:{path:o((t,n,i,r)=>bs(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],xp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>bs(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],xp.prototype,"placement",2);var BS=xp,As=class As{};o(As,"CustomFilterField"),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],As.prototype,"label",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],As.prototype,"property",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],As.prototype,"template",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],As.prototype,"required",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],As.prototype,"position",2);var HS=As;var KS=class KS{};o(KS,"HeaderActions");var GS=KS,XS=class XS{};o(XS,"Header");var WS=XS;var Ip=class Ip{};o(Ip,"CustomHeaderActionPosition"),h([T({manifest:{path:o((t,n,i,r)=>li(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Ip.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>li(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Ip.prototype,"placement",2);var Op=Ip,Ss=class Ss{};o(Ss,"CustomHeaderAction"),h([T({manifest:{path:li}}),C({since:"1.84.0"})],Ss.prototype,"text",2),h([T({manifest:{path:li}}),C({since:"1.84.0"})],Ss.prototype,"position",2),h([T({manifest:{path:li}}),C({since:"1.84.0"})],Ss.prototype,"press",2),h([T({manifest:{path:li},generate:zn}),C({since:"1.84.0"})],Ss.prototype,"visible",2),h([T({manifest:{path:li},generate:zn}),C({since:"1.84.0"})],Ss.prototype,"enabled",2);var QS=Ss;var _y=class _y{};o(_y,"ObjectPageCustomHeaderSectionFlexSettings"),h([T({manifest:{path:o((t,n,i)=>Ar(t,n,i,"flexSettings"),"path")}}),C({since:"1.81.0"})],_y.prototype,"designtime",2);var qS=_y,tr=class tr{};o(tr,"ObjectPageCustomHeaderSectionFragment"),h([T({manifest:{path:o((t,n,i)=>Ar(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],tr.prototype,"relatedFacet",2),h([T({manifest:{path:o((t,n,i)=>Ar(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],tr.prototype,"relativePosition",2),h([T({manifest:{path:Ar},generate:ri}),C({since:"1.84.0"})],tr.prototype,"visible",2),h([T({manifest:{path:Ar}}),C({since:"1.77.0"})],tr.prototype,"title",2),h([T({manifest:{path:Ar}}),C({since:"1.77.0"})],tr.prototype,"subTitle",2),h([T({manifest:{path:Ar,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],tr.prototype,"fragmentName",2),h([T({manifest:{path:Ar,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),C({since:"1.86.0"})],tr.prototype,"templateEdit",2),h([T({manifest:{path:Ar}}),C({since:"1.81.0"})],tr.prototype,"stashed",2),h([T({manifest:{path:Ar}}),C({since:"1.81.0"})],tr.prototype,"flexSettings",2),h([T({manifest:{path:Ar}}),C({since:"1.81.0"})],tr.prototype,"requestGroupId",2),h([T({manifest:{path:Ar,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],tr.prototype,"controls",2);var zS=tr;var ZS=class ZS{};o(ZS,"ObjectPageCustomSectionActions");var YS=ZS,Ps=class Ps{};o(Ps,"ObjectPageCustomSectionFragment"),h([T({manifest:{path:o((t,n,i)=>sf(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],Ps.prototype,"relatedFacet",2),h([T({manifest:{path:o((t,n,i)=>sf(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],Ps.prototype,"relativePosition",2),h([T({manifest:{path:sf}}),C({since:"1.77.0"})],Ps.prototype,"title",2),h([T({manifest:{path:sf,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],Ps.prototype,"fragmentName",2),h([T({manifest:{path:sf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],Ps.prototype,"controls",2);var lf=Ps,Cs=class Cs extends lf{};o(Cs,"ObjectPageCustomSubSectionFragment"),h([T({manifest:{path:o((...t)=>`${cf.apply({},t)}/position`,"path"),key:"anchor"}}),C({since:"1.77.0"})],Cs.prototype,"relatedFacet",2),h([T({manifest:{path:o((...t)=>`${cf.apply({},t)}/position`,"path"),key:"placement"}}),C({since:"1.77.0"})],Cs.prototype,"relativePosition",2),h([T({manifest:{path:cf}}),C({since:"1.77.0"})],Cs.prototype,"title",2),h([T({manifest:{path:cf,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],Cs.prototype,"fragmentName",2),h([T({manifest:{path:cf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],Cs.prototype,"controls",2);var JS=Cs;var Np=class Np{};o(Np,"CustomSectionActionPositionOP"),h([T({manifest:{path:o((t,n,i,r)=>Es(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Np.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>Es(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Np.prototype,"placement",2);var eP=Np,xs=class xs{};o(xs,"CustomSectionActionOP"),h([T({manifest:{path:Es}}),C({since:"1.84.0"})],xs.prototype,"text",2),h([T({manifest:{path:Es}}),C({since:"1.84.0"})],xs.prototype,"position",2),h([T({manifest:{path:Es}}),C({since:"1.84.0"})],xs.prototype,"press",2),h([T({manifest:{path:Es},generate:ri}),C({since:"1.84.0"})],xs.prototype,"visible",2),h([T({manifest:{path:Es},generate:ri}),C({since:"1.84.0"})],xs.prototype,"enabled",2);var tP=xs;var rP=class rP{};o(rP,"ObjectPageFooterActions");var nP=rP,oP=class oP{};o(oP,"ObjectPageFooter");var iP=oP;var Lp=class Lp{};o(Lp,"ActionAfterExecutionConfigurationFooter"),h([T({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/afterExecution","path")}}),Le("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Lp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/afterExecution","path")}})],Lp.prototype,"enableAutoScroll",2);var aP=Lp,Vy=class Vy{};o(Vy,"FooterActionV4"),h([T({manifest:{path:mo}}),C({since:"1.84.0"})],Vy.prototype,"afterExecution",2);var sP=Vy,Rp=class Rp{};o(Rp,"CustomFooterActionPositionOP"),h([T({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Rp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Rp.prototype,"placement",2);var cP=Rp,Is=class Is{};o(Is,"CustomFooterActionOP"),h([T({manifest:{path:mo}}),C({since:"1.84.0"})],Is.prototype,"text",2),h([T({manifest:{path:mo}}),C({since:"1.84.0"})],Is.prototype,"position",2),h([T({manifest:{path:mo}}),C({since:"1.84.0"})],Is.prototype,"press",2),h([T({manifest:{path:mo},generate:ri}),C({since:"1.84.0"})],Is.prototype,"visible",2),h([T({manifest:{path:mo},generate:ri}),C({since:"1.84.0"})],Is.prototype,"enabled",2);var lP=Is;var Fp=class Fp{};o(Fp,"ActionAfterExecutionConfigurationForm"),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}}),Le("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Fp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}})],Fp.prototype,"enableAutoScroll",2);var fP=Fp,wy=class wy{};o(wy,"FormAction"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],wy.prototype,"afterExecution",2);var uP=wy,gP=class gP{};o(gP,"ObjectPageFormActions");var pP=gP,mP=class mP{};o(mP,"ObjectPageForm");var dP=mP;var Os=class Os{};o(Os,"CustomFormActionOP"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Os.prototype,"text",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Os.prototype,"position",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Os.prototype,"press",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Os.prototype,"visible",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Os.prototype,"enabled",2);var hP=Os;var TP=class TP{};o(TP,"ObjectPageHeaderActions");var yP=TP,ff=class ff{};o(ff,"ObjectPageHeader"),h([T({manifest:{path:o(t=>ht(t),"path")}}),C({since:"1.84.0"})],ff.prototype,"editableHeaderContent",2),h([T({manifest:{path:Ly}}),C({since:"1.84.0"})],ff.prototype,"visible",2),h([T({manifest:{path:Ly}}),C({since:"1.84.0"})],ff.prototype,"anchorBarVisible",2);var vP=ff;var Dp=class Dp{};o(Dp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([T({manifest:{path:o((t,n,i,r)=>li(t,n,i,r)+"/afterExecution","path")}}),Le("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Dp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>li(t,n,i,r)+"/afterExecution","path")}})],Dp.prototype,"enableAutoScroll",2);var bP=Dp,My=class My{};o(My,"ObjectPageHeaderAction"),h([T({manifest:{path:li}}),C({since:"1.84.0"})],My.prototype,"afterExecution",2);var EP=My,PP=class PP extends Op{};o(PP,"CustomHeaderActionPositionOP");var AP=PP,Ns=class Ns{};o(Ns,"CustomHeaderActionOP"),h([T({manifest:{path:li}}),C({since:"1.84.0"})],Ns.prototype,"text",2),h([T({manifest:{path:li}}),C({since:"1.84.0"})],Ns.prototype,"position",2),h([T({manifest:{path:li}}),C({since:"1.84.0"})],Ns.prototype,"press",2),h([T({manifest:{path:li},generate:ri}),C({since:"1.84.0"})],Ns.prototype,"visible",2),h([T({manifest:{path:li},generate:ri}),C({since:"1.84.0"})],Ns.prototype,"enabled",2);var SP=Ns;var ky=class ky{};o(ky,"FlexSettings"),h([T({manifest:{path:o((t,n,i)=>Ry(t,n,i)+"/flexSettings","path")}}),C({since:"1.81.0"}),Le("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],ky.prototype,"designtime",2);var CP=ky,_p=class _p{};o(_p,"CommonHeaderFacetSettings"),h([T({manifest:{path:Ry}}),C({since:"1.81.0"})],_p.prototype,"stashed",2),h([T({manifest:{path:Ry}}),C({since:"1.81.0"})],_p.prototype,"flexSettings",2);var Ls=_p,FP=class FP extends Ls{};o(FP,"ObjectPageHeaderSectionForm");var xP=FP,DP=class DP extends Ls{};o(DP,"ObjectPageHeaderSectionChart");var IP=DP,_P=class _P extends Ls{};o(_P,"ObjectPageHeaderSectionDataPoint");var OP=_P,VP=class VP extends Ls{};o(VP,"ObjectPageHeaderSectionContact");var NP=VP,wP=class wP extends Ls{};o(wP,"ObjectPageHeaderSectionAddress");var LP=wP,MP=class MP{};o(MP,"HeaderSections");var RP=MP;var jy=class jy{};o(jy,"ObjectPageLayout"),h([T({manifest:{path:o(t=>ht(t),"path")}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],jy.prototype,"sectionLayout",2);var kP=jy;var Gy=ie(le());var jP=ie(le());var Hq=o((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function yo(e,t,n,i,r,a){let s=Ny(e),l=Hq(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[jP.SchemaTag.key]===(a==null?void 0:a.key)||g[jP.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(yo,"getSettingsPathForLRViewsPath");function qP(e,t,n,i){typeof e.creationMode=="string"&&(e.creationMode={}),e.creationMode[i]=t[n]}o(qP,"exportCreationModeName");function Gq(e,t,n,i,r,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let u of l){let p=Number(u),g=e[u];t===g.key?s[n]=g:p>=i&&p<=r?s[Math.max(0,p+a)]=g:s[u]=g}return s}o(Gq,"fillNewlyOrderedViews");function zP(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=Gq(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(zP,"checkViewOrder");function Wq(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(Wq,"exportPersonalization");function vo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(vo,"exportPersonalizationProperty");function YP(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}o(YP,"deleteCreationModeName");function To(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}o(To,"deletePersonalizationProperty");function JP(e,t,n,i,r,a){var l;let s;if(!t||Object.keys(t).length===0){let u=e;Object.keys(u).forEach(p=>{u[p]&&u[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let u=(l=a.table)==null?void 0:l.views;for(let p in u)u[p].index>s&&u[p].index--}}o(JP,"deleteView");function ZP(e,t,n,i){typeof e.creationMode=="object"?e.creationMode[i]=t[n]:typeof e.creationMode=="string"&&(e.creationMode={name:t.name,[i]:t[n]})}o(ZP,"exportCreationModeCreateAtEnd");function eC(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0&&delete e.creationMode[t]}o(eC,"deleteCreationModeCreateAtEnd");function gw(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(gw,"importPersonalization");function mw(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(mw,"determineIndexOfView");var uf=class uf{};o(uf,"PersonalizationType"),h([T({manifest:{path:Ji,export:vo,delete:To}})],uf.prototype,"column",2),h([T({manifest:{path:Ji,export:vo,delete:To}})],uf.prototype,"sort",2),h([T({manifest:{path:Ji,export:vo,delete:To}})],uf.prototype,"filter",2);var UP=uf,pf=class pf{};o(pf,"ViewPersonalizationType"),h([T({manifest:{path:br,export:vo,delete:To}})],pf.prototype,"column",2),h([T({manifest:{path:br,export:vo,delete:To}})],pf.prototype,"sort",2),h([T({manifest:{path:Ji,export:vo,delete:To}})],pf.prototype,"filter",2);var $P=pf,df=class df{};o(df,"QuickVariantSelectionV4"),h([T({manifest:{path:Dy}})],df.prototype,"paths",2),h([T({manifest:{path:Dy}})],df.prototype,"hideTableTitle",2),h([T({manifest:{path:Dy}})],df.prototype,"showCounts",2);var BP=df,ho=class ho{};o(ho,"TableSettings"),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ho.prototype,"type",2),h([T({manifest:{path:Ji,import:gw}}),C({since:"1.86.0"})],ho.prototype,"personalization",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],ho.prototype,"selectionMode",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],ho.prototype,"selectAll",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],ho.prototype,"selectionLimit",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],ho.prototype,"enableExport",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],ho.prototype,"quickVariantSelection",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],ho.prototype,"condensedTableLayout",2);var Uy=ho,$y=class $y{};o($y,"ALPChart"),h([T({manifest:{path:o(t=>ht(t)+"/views/paths/0/primary/0","path"),delete:JP}})],$y.prototype,"annotationPath",2);var HP=$y,Uc=class Uc{};o(Uc,"CommonViewSettings"),h([T({manifest:{path:yo,delete:zs}})],Uc.prototype,"key",2),h([T({manifest:{path:Ny,import:mw,export:o((t,n)=>{zP(t,n)},"export"),delete:JP}})],Uc.prototype,"index",2),h([T({manifest:{path:yo,delete:zs}})],Uc.prototype,"annotationPath",2),h([T({manifest:{path:yo}})],Uc.prototype,"entitySet",2);var mf=Uc,zr=class zr extends mf{};o(zr,"TableViewSettings"),h([T({manifest:{path:br}}),C({since:"1.84.0"})],zr.prototype,"type",2),h([T({manifest:{path:br,import:gw}}),C({since:"1.86.0"})],zr.prototype,"personalization",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],zr.prototype,"selectionMode",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],zr.prototype,"selectAll",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],zr.prototype,"selectionLimit",2),h([T({manifest:{path:br}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],zr.prototype,"enableExport",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],zr.prototype,"quickVariantSelection",2),h([T({manifest:{path:br}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],zr.prototype,"condensedTableLayout",2),h([T({manifest:{path:br}}),C({since:"1.117.0"}),Le("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],zr.prototype,"hierarchyQualifier",2);var Mp=zr;function Kq(e){return Mp}o(Kq,"getTableViewSettings");var Vp=class Vp extends Mp{};o(Vp,"ALPTable"),h([T({manifest:{path:o(t=>ht(t)+"/views/paths/0/secondary/0","path"),delete:zs}})],Vp.prototype,"annotationPath",2),h([T({manifest:{path:o(t=>ht(t),"path")}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Vp.prototype,"initialLoad",2);var hf=Vp,By=class By extends mf{};o(By,"LRChartView"),h([T({manifest:{path:yo},generate:zn})],By.prototype,"visible",2);var GP=By,gf=class gf extends Kq(mf){};o(gf,"LRTableView"),h([T({manifest:{path:yo}})],gf.prototype,"keepPreviousPersonalization",2),h([T({manifest:{path:yo}})],gf.prototype,"entitySet",2),h([T({manifest:{path:yo},generate:zn})],gf.prototype,"visible",2);var WP=gf,Rs=class Rs{};o(Rs,"TableViewExtension"),h([T({manifest:{path:yo}})],Rs.prototype,"key",2),h([T({manifest:{path:Ny,import:mw,export:o((t,n)=>{zP(t,n)},"export"),delete:JP}})],Rs.prototype,"index",2),h([T({manifest:{path:yo}})],Rs.prototype,"label",2),h([T({manifest:{path:yo}})],Rs.prototype,"template",2),h([T({manifest:{path:yo},generate:zn})],Rs.prototype,"visible",2);var KP=Rs,Hy=class Hy{};o(Hy,"MultiTableModeV4"),h([T({manifest:{path:o(t=>ht(t)+"/views","path")}})],Hy.prototype,"showCounts",2);var XP=Hy,wp=class wp extends Uy{};o(wp,"Table"),h([T({manifest:{path:o(t=>ht(t)+"/views/paths/0/secondary/0","path"),delete:zs}})],wp.prototype,"annotationPath",2),h([T({manifest:{path:o(t=>ht(t),"path")}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],wp.prototype,"initialLoad",2);var QP=wp;var kp=class kp{};o(kp,"TableCreationModeOP"),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i),"path"),export:o((t,n,i,r)=>{qP(t,n,i,r)},"export"),delete:o((t,n,i,r)=>{YP(t,r)},"delete")}})],kp.prototype,"name",2),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i),"path"),export:o((t,n,i,r)=>{ZP(t,n,i,r)},"export"),delete:o((t,n,i,r)=>{eC(t,r)},"delete")}})],kp.prototype,"createAtEnd",2);var tC=kp,yf=class yf{};o(yf,"PersonalizationTypeOP"),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i),"path"),export:vo,delete:To}})],yf.prototype,"column",2),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i),"path"),export:vo,delete:To}})],yf.prototype,"sort",2),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i),"path"),export:vo,delete:To}})],yf.prototype,"filter",2);var nC=yf,vf=class vf{};o(vf,"QuickVariantSelectionV4OP"),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i)+Gy.QUICKVARPATH,"path")}})],vf.prototype,"paths",2),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i)+Gy.QUICKVARPATH,"path")}})],vf.prototype,"hideTableTitle",2),h([T({manifest:{path:o((t,n,i)=>jn(t,n,i)+Gy.QUICKVARPATH,"path")}})],vf.prototype,"showCounts",2);var iC=vf,nr=class nr{};o(nr,"ObjectPageTable"),h([T({manifest:{path:jn}}),C({since:"1.84.0"})],nr.prototype,"type",2),h([T({manifest:{path:jn,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),C({since:"1.84.0"})],nr.prototype,"creationMode",2),h([T({manifest:{path:jn,import:o(t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},"import")}}),C({since:"1.86.0"})],nr.prototype,"personalization",2),h([T({manifest:{path:jn}}),C({since:"1.84.0"})],nr.prototype,"selectionMode",2),h([T({manifest:{path:jn}}),C({since:"1.84.0"})],nr.prototype,"selectAll",2),h([T({manifest:{path:jn}}),C({since:"1.84.0"})],nr.prototype,"selectionLimit",2),h([T({manifest:{path:jn}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],nr.prototype,"enableExport",2),h([T({manifest:{path:jn}}),C({since:"1.84.0"})],nr.prototype,"quickVariantSelection",2),h([T({manifest:{path:jn}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],nr.prototype,"condensedTableLayout",2),h([T({manifest:{path:jn}}),C({since:"1.86.0"})],nr.prototype,"enableFullScreen",2),h([T({manifest:{path:jn}}),C({since:"1.84.0"})],nr.prototype,"enablePaste",2);var jp=nr;var Up=class Up{};o(Up,"ActionAfterExecutionConfigurationOP"),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/afterExecution","path")}}),Le("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Up.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/afterExecution","path")}})],Up.prototype,"enableAutoScroll",2);var Hp=Up,$p=class $p{};o($p,"ObjectPageTableColumn"),h([T({manifest:{path:er}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/api/sap.ui.core.CSSSize")],$p.prototype,"width",2),h([T({manifest:{path:er}}),C({since:"1.85.0"})],$p.prototype,"availability",2);var Tf=$p,sC=class sC extends Tf{};o(sC,"ObjectPageTableColumnAction");var rC=sC,Bp=class Bp{};o(Bp,"PositionOP"),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Bp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Bp.prototype,"placement",2);var oC=Bp,Wo=class Wo{};o(Wo,"TableCustomColumnOP"),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Wo.prototype,"position",2),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Wo.prototype,"header",2),h([T({manifest:{path:er}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Wo.prototype,"width",2),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Wo.prototype,"template",2),h([T({manifest:{path:er}}),C({since:"1.86.0"})],Wo.prototype,"horizontalAlign",2),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Wo.prototype,"availability",2),h([T({manifest:{path:er}}),C({since:"1.85.0"})],Wo.prototype,"properties",2);var aC=Wo;var Wy=class Wy{};o(Wy,"ObjectPageToolBarAction"),h([T({manifest:{path:kn}})],Wy.prototype,"enableOnSelect",2);var cC=Wy,Gp=class Gp{};o(Gp,"CustomActionPositionOP"),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Gp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Gp.prototype,"placement",2);var lC=Gp,Ia=class Ia{};o(Ia,"CustomTableActionOP"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ia.prototype,"text",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ia.prototype,"position",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ia.prototype,"press",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ia.prototype,"requiresSelection",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Ia.prototype,"visible",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Ia.prototype,"enabled",2);var fC=Ia;var Wp=class Wp{};o(Wp,"AdditionalSemanticObject"),h([T({manifest:{path:jS}}),Le("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],Wp.prototype,"unavailableActions",2),h([T({manifest:{path:jS}}),Le("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],Wp.prototype,"mapping",2);var uC=Wp,Kp=class Kp{};o(Kp,"RelatedApps"),h([T({manifest:{path:o(t=>ht(t),"path")}}),C({since:"1.84.0"})],Kp.prototype,"showRelatedApps",2),h([T({manifest:{path:ht}})],Kp.prototype,"additionalSemanticObjects",2);var pC=Kp;var Xp=class Xp{};o(Xp,"ActionAfterExecutionConfiguration"),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/afterExecution","path")}}),Le("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Xp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/afterExecution","path")}})],Xp.prototype,"enableAutoScroll",2);var dC=Xp,Qp=class Qp{};o(Qp,"TableColumn"),h([T({manifest:{path:ki}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Qp.prototype,"width",2),h([T({manifest:{path:ki}}),C({since:"1.85.0"})],Qp.prototype,"availability",2);var Ky=Qp,qp=class qp{};o(qp,"ViewTableColumn"),h([T({manifest:{path:Zi}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/api/sap.ui.core.CSSSize")],qp.prototype,"width",2),h([T({manifest:{path:Zi}}),C({since:"1.85.0"})],qp.prototype,"availability",2);var Xy=qp,Qy=class Qy extends Ky{};o(Qy,"TableColumnAction"),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Qy.prototype,"afterExecution",2);var gC=Qy,qy=class qy extends Xy{};o(qy,"ViewTableColumnAction"),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],qy.prototype,"afterExecution",2);var mC=qy,zp=class zp{};o(zp,"Position"),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],zp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],zp.prototype,"placement",2);var hC=zp,Yp=class Yp{};o(Yp,"ViewPosition"),h([T({manifest:{path:o((t,n,i,r,a)=>Zi(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Yp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>Zi(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Yp.prototype,"placement",2);var yC=Yp,Ko=class Ko{};o(Ko,"TableCustomColumn"),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Ko.prototype,"position",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Ko.prototype,"header",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ko.prototype,"width",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Ko.prototype,"template",2),h([T({manifest:{path:ki}}),C({since:"1.86.0"})],Ko.prototype,"horizontalAlign",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Ko.prototype,"availability",2),h([T({manifest:{path:ki}}),C({since:"1.85.0"})],Ko.prototype,"properties",2);var vC=Ko,Xo=class Xo{};o(Xo,"ViewTableCustomColumn"),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Xo.prototype,"position",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Xo.prototype,"header",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Xo.prototype,"width",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Xo.prototype,"template",2),h([T({manifest:{path:Zi}}),C({since:"1.86.0"})],Xo.prototype,"horizontalAlign",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Xo.prototype,"availability",2),h([T({manifest:{path:Zi}}),C({since:"1.85.0"})],Xo.prototype,"properties",2);var TC=Xo;var AC=class AC{};o(AC,"Actions");var bC=AC,SC=class SC{};o(SC,"ToolBar");var EC=SC;var Jp=class Jp{};o(Jp,"ActionAfterExecutionConfigurationToolBarLR"),h([T({manifest:{path:o((t,n,i,r,a)=>Er(t,n,i,r,a)+"/afterExecution","path")}}),Le("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Jp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r,a)=>Er(t,n,i,r,a)+"/afterExecution","path")}})],Jp.prototype,"enableAutoScroll",2);var PC=Jp,Zp=class Zp{};o(Zp,"ToolBarAction"),h([T({manifest:{path:Er}})],Zp.prototype,"enableOnSelect",2),h([T({manifest:{path:Er}})],Zp.prototype,"afterExecution",2);var CC=Zp,ed=class ed{};o(ed,"ViewToolBarAction"),h([T({manifest:{path:qr}})],ed.prototype,"enableOnSelect",2),h([T({manifest:{path:qr}})],ed.prototype,"afterExecution",2);var xC=ed,td=class td{};o(td,"CustomActionPosition"),h([T({manifest:{path:o((t,n,i,r,a)=>Er(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],td.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>Er(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],td.prototype,"placement",2);var IC=td,Oa=class Oa{};o(Oa,"CustomTableAction"),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],Oa.prototype,"text",2),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],Oa.prototype,"position",2),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],Oa.prototype,"press",2),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],Oa.prototype,"requiresSelection",2),h([T({manifest:{path:Er},generate:zn}),C({since:"1.84.0"})],Oa.prototype,"visible",2),h([T({manifest:{path:Er},generate:zn}),C({since:"1.84.0"})],Oa.prototype,"enabled",2);var OC=Oa,nd=class nd{};o(nd,"ViewCustomActionPosition"),h([T({manifest:{path:o((t,n,i,r,a)=>qr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],nd.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>qr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],nd.prototype,"placement",2);var NC=nd,Na=class Na{};o(Na,"ViewTableCustomAction"),h([T({manifest:{path:qr}}),C({since:"1.84.0"})],Na.prototype,"text",2),h([T({manifest:{path:qr}}),C({since:"1.84.0"})],Na.prototype,"position",2),h([T({manifest:{path:qr}}),C({since:"1.84.0"})],Na.prototype,"press",2),h([T({manifest:{path:qr}}),C({since:"1.84.0"})],Na.prototype,"requiresSelection",2),h([T({manifest:{path:qr},generate:zn}),C({since:"1.84.0"})],Na.prototype,"visible",2),h([T({manifest:{path:qr},generate:zn}),C({since:"1.84.0"})],Na.prototype,"enabled",2);var LC=Na;var VC={};Ws(VC,{FreestylePage:()=>DC,ListReport:()=>Sr,ObjectPage:()=>bo});function Xq(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(a=>delete e[a])}o(Xq,"deleteAllALPViews");function Qq(){}o(Qq,"doNotExport");function qq(){}o(qq,"doNotImport");var Sr=class{};o(Sr,"ListReport"),h([T({manifest:{path:o(t=>ht(t)+"/views","path"),import:qq,export:Qq,delete:Xq}})],Sr.prototype,"chart",2),h([T({manifest:{path:o(t=>ht(t),"path")}}),C({since:"1.84.0"})],Sr.prototype,"variantManagement",2),h([T({manifest:{path:o(t=>ht(t)+"/views/paths/[]/0","path")}}),Le("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Sr.prototype,"defaultPath",2),h([T({manifest:{path:o(t=>ht(t),"path")}})],Sr.prototype,"defaultTemplateAnnotationPath",2),h([jt("header")],Sr.prototype,"header",2),h([jt("fe::FilterBar")],Sr.prototype,"filterBar",2),Sr=h([Vr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Sr);var FC=ie(le());var bo=class{};o(bo,"ObjectPage"),h([jt("header")],bo.prototype,"header",2),h([jt("layout")],bo.prototype,"layout",2),h([T({manifest:{path:o(t=>ht(t),"path")}}),C({since:"1.84.0"}),Le("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],bo.prototype,"variantManagement",2),h([jt("sections")],bo.prototype,"sections",2),bo=h([Vr({id:`${FC.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:FC.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],bo);var _C=class _C{};o(_C,"FreestylePage");var DC=_C;var zy=ie(le());var zq={ALPTableView:hf},Yq={ALPTableView:hf},Jq={Table:jp,TableColumn:Tf,ObjectPageCustomSectionView:lf,ActionAfterExecutionConfiguration:Hp},Zq={[zy.PageTypeV4.AnalyticalListPage]:zq,[zy.PageTypeV4.ListReport]:Yq,[zy.PageTypeV4.ObjectPage]:Jq},wC=class wC extends jl{constructor(){super(RC,VC,Zq)}};o(wC,"MetadataInstanceFactoryV4");var La=wC;var MC=require("@sap-ux/vocabularies-types/vocabularies/UI");function kC(e,t,n,i,r,a,s){var g,m,y,A,b,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${MC.UIAnnotationTerms.LineItem}`?a:he.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let D in p.properties){let G=l[u].properties[D].$ref.split(U)[1].split("<")[0];e.columns[D]=n.createInstance(i,G);let B=s||a;At(e.columns[D],t.manifest,l[G],r,[D,B],B,t.logger),Do(e.columns,D)}Do(e,"columns")}else{let D=(O=(b=(A=(y=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:y[r])==null?void 0:A.options)==null?void 0:b.settings)==null?void 0:O.views;(!D||D.paths.length<1)&&se(t.logger,{severity:he.LogSeverity.Error,message:q.t("NOLINEITEMS")})}}o(kC,"transferColumns");function e9(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[he.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let u=s.properties[l];if(typeof u=="object"&&u.$ref){let p=hn(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),At(t.visualFilters[l],e.manifest,a[p],r,[l])}}Do(t,"visualFilters")}}o(e9,"importVisualFilters");function t9(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[he.DefinitionName.LineItems,`${he.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${MC.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${he.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let g in p.properties){let m=p.properties[g];if(typeof m=="object"&&m.$ref){let y=hn(m.$ref),A=y.split("<")[0];t.toolBar.actions[g]=n.createInstance(i,A),At(t.toolBar.actions[g],e.manifest,l[y],r,[g,u]),Do(t.toolBar.actions,g)}}}o(t9,"importActions");function jC(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,At(u.toolBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.ToolBarLR],r,[]),t9(e,u,n,i,r,a,s),Do(u.toolBar,"actions"),Do(u,"toolBar")}o(jC,"transferToolBar");function hw(e,t){var r;let n=(r=e[t])==null?void 0:r[he.SchemaTag.annotationPath];return n==null?void 0:n.substr(n.lastIndexOf("@"))}o(hw,"determineTargetAnnotationOfView");function n9(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,he.DefinitionName.ALPChart);let s=a[he.DefinitionName.ALPChart],l=s[he.SchemaTag.annotationPath];At(t.chart,e.manifest,s,r,[s[he.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),At(t.chart.toolBar,e.manifest,a[he.DefinitionName.ViewChartToolBar],r,[]);let u=a[he.DefinitionName.ALPTable][he.SchemaTag.annotationPath];if(u){let p=a[he.DefinitionName.ALPTable],g=t.table=n.createInstance(i,he.DefinitionName.ALPTable);jC(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));At(g,e.manifest,p,r,[p[he.SchemaTag.key],m]),kC(g,e,n,i,r,void 0,m)}}o(n9,"importALPViews");function i9(e){let t;return e.indexOf(he.DefinitionName.LRTableView)>-1?t=he.DefinitionName.LRTableView:e.indexOf(he.DefinitionName.LRChartView)>-1?t=he.DefinitionName.LRChartView:e===he.DefinitionName.TableViewExtension&&(t=he.DefinitionName.TableViewExtension),t}o(i9,"getViewTypeByDefinition");function r9(e,t,n,i,r){let a=t.table.views=n.createInstance(i,he.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;At(a,e.manifest,s[he.DefinitionName.MultiTableModeV4],r,[]);let l=s[he.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][he.SchemaTag.propertyIndex]-g[1][he.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split(U)[1],m=i9(g),y=a[p[0]]=n.createInstance(i,m),A=hw(s,g);if(!s[g].entitySet&&(At(y,e.manifest,s[g],r,[p[0],A]),m===he.DefinitionName.LRTableView)){let b=`${he.DefinitionName.LineItemsOfView}::${p[0]}`;jC(e,y,n,i,r,b,A),kC(y,e,n,i,r,b,A)}Object.keys(y).length===0&&delete a[p[0]]}Do(t.table,"views")}o(r9,"importLRViews");function o9(e,t,n,i,r){let a=he.DefinitionName.HeaderActions,s=he.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let u in l.properties){let p=l.properties[u];if(typeof p=="object"&&p.$ref){let g=hn(p.$ref),m=e.definitions[g],y=hn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(he.PageTypeV4.ObjectPage,y),At(t[s].actions[u],i,e.definitions[y],r,[u.replace("/","??")]),Do(t.header,"actions"),Do(t,"header")}}}}o(o9,"transferHeaderActions");function a9(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[he.DefinitionName.SelectionFields,he.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==U+he.DefinitionName.CustomFilterField)continue;let u=n.createInstance(he.PageTypeV4.ListReport,he.DefinitionName.CustomFilterField),p=l.$ref.split(U)[1];At(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(a9,"importCustomFilterFields");function s9(e,t,n,i,r,a){if(At(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,he.DefinitionName.Header),At(t.header,e.manifest,e.jsonSchema.definitions[he.DefinitionName.Header],r,[]),o9(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,he.DefinitionName.FilterBar),At(t.filterBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.FilterBar],r,[]),e9(e,t.filterBar,n,i,r),a9(e,t.filterBar,n,r),a===he.SchemaType.ListReport){let s=he.DefinitionName.Table,l=e.jsonSchema.definitions[s],u;l.$ref&&(s=l.$ref.split(U)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split(U)[1]),t.table=n.createInstance(i,he.DefinitionName.Table);let p=hw(e.jsonSchema.definitions,s);At(t.table,e.manifest,l,r,[s,p]),jC(e,t,n,i,r,u),kC(t.table,e,n,i,r,u,p),r9(e,t,n,i,r)}else a===he.SchemaType.AnalyticalListPage&&n9(e,t,n,i,r)}o(s9,"addSettings");function $c(e,t){if(nn(),!e.jsonSchema)return;if(!e.manifest[he.ManifestSection.ui5]||!e.manifest[he.ManifestSection.ui5].routing){se(e.logger,{severity:he.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let n=e.manifest[he.ManifestSection.ui5].routing.targets;if(!n){se(e.logger,{severity:he.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let i=new La,r=i.createPageInstance(he.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=sb(s);if("name"in s&&(l===he.PageTypeV4.ListReport||l===he.PageTypeV4.AnalyticalListPage)){s9(e,r,i,he.PageTypeV4.ListReport,a,t);break}}return r}o($c,"createListReportConfig");var ve=ie(le()),Bc=require("@sap-ux/vocabularies-types/vocabularies/UI");function c9(e,t){var i;let n="boolean";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?e==="true"||e==="false":!1}o(c9,"isBoolean");function l9(e,t){var i;let n="number";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?!isNaN(parseFloat(e.toString())):!1}o(l9,"isNumber");function f9(e,t){let n=e.toString();return c9(n,t)?n==="true":l9(n,t)?parseFloat(n):e}o(f9,"convertValue");function u9(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=f9(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(u9,"importProperty");function yw(e,t,n){let i,r=rf(e.file,!1,n);if(r){let a=Ay(r);i={},Vc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},u9)}return i}o(yw,"convertXmlFileToConfig");function Yy(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=Uo(t||[],r,n,a),l;return s&&(l=yw(s,i,e.logger)),l}o(Yy,"createCustomPageConfig");function id(e,t){var y;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=of(t),u=(y=r.definitions)==null?void 0:y[l];if(!r||!u)return;let p=xc(i,a),g=Ic(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=yw(g,A,s)}return m}o(id,"createCustomFragmentConfig");function UC(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(UC,"getManifestId");function rd(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(rd,"getDefinitionId");function p9(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[rd(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(ve.DefinitionName.CustomColumnOP)>-1?s=ve.DefinitionName.CustomColumnOP:s=ve.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(ve.PageTypeV4.ObjectPage,s);At(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(p9,"fillTableColumnsInConfig");function bw(e,t,n,i,r,a=n){if(typeof t=="object")for(let s in t.properties){let l=t.properties[s];if(typeof l=="object"&&l.$ref){let u=hn(l.$ref),p=u.split("<")[0],g;p.includes(ve.DefinitionName.CustomSectionActionOP)?g=i.actions:g=i[n].table.toolBar.actions,g[s]=r.createInstance(ve.PageTypeV4.ObjectPage,p),At(g[s],e.manifest,e.jsonSchema.definitions[u],e.routingId,[s],a),Object.keys(g[s]).length===0&&delete g[s]}}}o(bw,"fillSectionActionsInConfig");function d9(e,t,n,i,r,a=n){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageSectionForm}<${rd(a)}>`].properties.form.$ref.split(U)[1],g=e.jsonSchema.definitions[l].properties.actions.$ref.split(U)[1],m=e.jsonSchema.definitions[g];for(let y in m.properties){let A=m.properties[y],b=hn(A.$ref),O=e.jsonSchema.definitions[b];if(O.annotationType===Bc.UIAnnotationTypes.DataFieldForAction||O.description==="Custom Action"){let D=hn(O.$ref)||b.split("<")[0];i[n].form.actions[y]=r.createInstance(ve.PageTypeV4.ObjectPage,D),At(i[n].form.actions[y],e.manifest,e.jsonSchema.definitions[D],e.routingId,[y.replace("/","??")],a),Object.keys(i[n].form.actions[y]).length===0&&delete i[n].form.actions[y]}}}}o(d9,"fillFormActionsInConfig");function vw(e,t,n,i,r,a){var u;let s=a||UC(i,!1,Bc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageTable);let p=`${ve.DefinitionName.ObjectPageTable}<${a?rd(a):i.replace("#","::")}>`;At(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${ve.DefinitionName.Actions}<${rd(s)}>`];bw(e,g,i,n,r,s),p9(e,l,n,i,r,s)}}o(vw,"fillTableInConfig");function g9(e,t,n,i,r){var l;let a=UC(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageForm,{actions:{}}),d9(e,s,i,n,r,a))}o(g9,"fillFormInConfig");function m9(e,t,n,i,r,a){let s=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(U)[1];if(At(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=id(e,s.fragmentName);s.controls=u}n[i]=s}o(m9,"fillCustomSubSectionInConfig");function Ew(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let y=t[m],A=m;if(m.includes(Bc.UIAnnotationTerms.PresentationVariant)&&((s=y.$ref)!=null&&s.startsWith(U+ve.DefinitionName.ObjectPageSectionTableV4))){let b=y.$ref.split(U)[1];A=b?UC(b,!0,Bc.UIAnnotationTerms.LineItem):m,vw(e,n,i,m,r,A)}else(l=y.$ref)!=null&&l.startsWith(U+ve.DefinitionName.ObjectPageSectionTableV4)?vw(e,n,i,m,r):y.properties&&y.properties.subsections?(i[m]={subsections:{}},Ew(e,y.properties.subsections.properties,n,i[m].subsections,r,m)):(u=y.$ref)!=null&&u.startsWith(U+ve.DefinitionName.ObjectPageSectionForm)&&((p=y.$ref)!=null&&p.includes(`@${Bc.UIAnnotationTerms.FieldGroup}::`))?g9(e,n,i,m,r):(g=y.$ref)!=null&&g.startsWith(U+ve.DefinitionName.ObjectPageCustomSubSectionFragment)&&m9(e,y,i,m,r,a)}}o(Ew,"fillSectionsInConfig");function h9(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionFragment);if(At(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageCustomSectionActions}<${rd(l)}>`];bw(e,m,l,p,i,l)}let g=u.template;if(g){let m=id(e,g);p.controls=m}n.sections[l]=p}}o(h9,"fillCustomSectionsInConfig");function y9(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomHeaderSectionFragment);At(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let y=id(e,g);p.controls=y}let m=u.templateEdit;if(m){let y=id(e,m);p.controlsEditMode=y}n.header.sections[l]=p}}o(y9,"fillCustomHeaderSectionsInConfig");function v9(e,t,n,i,r){var s,l;let a=e.definitions[ve.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split(U)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(ve.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=g?n.createInstance(ve.PageTypeV4.ObjectPage,g):{},At(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ve.FACETTITLEPREFIX)[1]))}}}o(v9,"fillHeaderFacets");function T9(e,t,n,i,r,a,s){let l=hn(e.$ref),u=t.definitions[l],p=hn(u.$ref||e.$ref),g=n.createInstance(ve.PageTypeV4.ObjectPage,p);if(g){let m=i[r]=g;At(m,a,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}o(T9,"importActionSettingsOfReference");function Tw(e,t,n,i,r,a,s){let l=e.definitions[a];if(typeof l=="object"){let u=t[s].actions={};for(let p in l.properties){let g=l.properties[p];typeof g=="object"&&g.$ref&&T9(g,e,n,u,p,i,r)}}}o(Tw,"fillHeaderFooterActions");function b9(e,t,n){var a,s;let i=n.createPageInstance(ve.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageHeader),At(i.header,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageFooter),At(i.footer,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageLayout),At(i.layout,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageLayout],e.routingId,[]),At(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[ve.DefinitionName.Sections]&&(i.sections={},Ew(e,e.jsonSchema.definitions[ve.DefinitionName.Sections].properties,r,i.sections,n)),h9(e,r,i,n),v9(e.jsonSchema,i,n,e.manifest,e.routingId),y9(e,r,i,n),Tw(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.ObjectPageHeaderActions,ve.PropertyName.header),Tw(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.FooterActions,ve.PropertyName.footer)),i}o(b9,"fillObjectPageConfig");function Jy(e){if(nn(),!e.manifest[ve.ManifestSection.ui5]||!e.manifest[ve.ManifestSection.ui5].routing){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let t=e.manifest[ve.ManifestSection.ui5].routing.targets;if(!t){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let i=new La;return b9(e,n,i)}o(Jy,"createObjectPageConfigV4");var Ge=ie(le());var $C=[],Zy={};function E9(e,t){let n=e.target,i=t.target,r=Array.isArray(n),a=Array.isArray(i);return r&&a?n.length-i.length:!r&&!a?0:r?1:-1}o(E9,"routesSorter");function BC(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}o(BC,"resolveTarget");function A9(e){let t={};e=e.concat().sort(E9);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=BC(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(A9,"populateAssociations");function S9(e,t,n){let i;return e.name?e.name===Ge.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ge.PageTypeV4.FPMCustomPage:e.name.endsWith(Ge.PageTypeV4.ListReport)||e.name.endsWith(Ge.PageTypeV4.AnalyticalListPage)?i=Ge.PageTypeV4.ListReport:e.name.endsWith(Ge.PageTypeV4.ObjectPage)?i=Ge.PageTypeV4.ObjectPage:i=Ge.PageTypeV4.CustomPage:"viewId"in e?i=Ge.PageTypeV4.CustomPage:(se(t,{severity:Ge.LogSeverity.Error,message:q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ge.MANIFESTPATH,range:[`${Ge.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ge.ViewTypes&&"viewName"in e&&(i=Ge.PageTypeV4.CustomPage)),i}o(S9,"determinePageType");function P9(e){let t=e.target.viewId||e.target.id,n=Dt(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ge.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===Ge.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=Jy(r)}else if(e.page.pageType===Ge.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=Yy(r)}else if(e.templateType===Ge.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=$c(r,Ge.SchemaType.ListReport)}else if(e.templateType===Ge.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=$c(r,Ge.SchemaType.AnalyticalListPage)}else if(e.templateType===Ge.TemplateType.FreestylePageV4&&e.page.pageType===Ge.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=eu(e.target)===Ge.TemplateType.AnalyticalListPageV4?Ge.SchemaType.AnalyticalListPage:Ge.SchemaType.ListReport;e.page.config=$c(r,s)}}}o(P9,"convertSettingsToConfig");function C9(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");$C.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");$C.push(t[t.length-1])}}o(C9,"updateUnhandledControllers");function x9(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}o(x9,"setVariantManagmentAndNavigation");function I9(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=Mc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(I9,"setEntitySetEntityTypeContextPath");function O9(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.path&&{viewPath:e.path},...e.viewPath&&{viewPath:e.viewPath}};else if([Ge.PageTypeV4.CustomPage,Ge.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName,s=e.name;!a&&n===Ge.PageTypeV4.CustomPage&&(a=s,s=void 0),t.view={...e.id&&{id:e.id},...a&&{name:a},...s&&{template:s},...e.viewType&&{viewType:e.viewType}}}}o(O9,"evaluateCustomPageSettings");function N9(e,t,n,i){let r=e.targets[t],a=S9(r,i.logger,t),s={pageType:a};if(I9(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),Zy[t]&&Zy[t].indexOf(".")!==-1){let p=Zy[t].split(".");s.navigationProperty=p[p.length-1]}O9(r,s,a),x9(r,s),C9(r);let l=e.routes.find(p=>(p==null?void 0:p.target)&&p.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};P9(u)}o(N9,"getSinglePageAndConfig");function Aw(e){let t={},n=e.manifest[Ge.ManifestSection.ui5].routing;if(!n||!n.routes){let i=q.t("NOROUTING");return se(e.logger,{severity:Ge.LogSeverity.Error,message:i,location:{path:Ge.MANIFESTPATH,range:[Ge.ManifestSection.ui5]}}),t}Zy=A9(n.routes||[]);for(let i in n.targets)N9(n,i,t,e);return t}o(Aw,"getPagesAndConfigs");function Sw(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return BC(t?t.target:e.routes[0].target)}else return}o(Sw,"getHome");function Pw(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.path&&{viewPath:t.path},...t.viewPath&&{viewPath:t.viewPath}}:{}}o(Pw,"getSettings");function Ef(e,t){let n=e[Ge.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];a.name===t&&(i[r]=a)}return i}o(Ef,"getPages");var HC=class HC extends qa{constructor(t){nn();let n=new af,i=Dt(Ge.SchemaType.Application),r=t.appSchemas[i.filename];At(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,Sw(t.manifest[Ge.ManifestSection.ui5].routing),Aw(t),{...Pw(t.manifest[Ge.ManifestSection.ui5].routing),...n}),this.unhandledControllers=$C}};o(HC,"V4AppProvider");var bf=HC;var Cw=require("fs"),Hc=require("path"),xw=ie(le()),od=ie(le());var Iw=o((e,t,n=__dirname)=>{let i;switch(t){case od.SchemaType.Application:{i=`${od.SchemaType.Application}${e.toUpperCase()}.json`;break}case od.SchemaType.FPMCustomPage:{i=`${od.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,Hc.join)(n,"schemas",e,i);if(n.endsWith((0,Hc.join)("specification","packages","specification")))return(0,Hc.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Hc.join)("src","specification")))return(0,Hc.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,Hc.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),L9=o(async e=>new Promise((t,n)=>{(0,Cw.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),ev=o(async(e,t)=>{try{let n=Iw(e||xw.FioriElementsVersion.v4,t,__dirname);return await L9(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function R9(e,t){let n={},i=[];switch(i=[fe.SchemaType.Application],e){case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.AnalyticalListPageV4:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.FreestylePageV4:i.push(fe.SchemaType.FreestylePage),t===fe.FioriElementsVersion.v4&&i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.ListReportObjectPageV2:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage);break;case fe.TemplateType.AnalyticalListPageV2:i.push(fe.SchemaType.AnalyticalListPage,fe.SchemaType.ObjectPage);break;case fe.TemplateType.OverviewPageV2:i.push(fe.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Dt(r);n[a.filename]=await ev(t,r)}return n}o(R9,"getGenericSchemas");function Nw(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ii(fe.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(Nw,"getAnnotationsForUi");function ad(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(ad,"getEntitySetByEntitySetName");function F9(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let a=2;a<e.objectPath.length;a++){let s=e.objectPath[a];if(i&&s._type==="NavigationProperty"){let l=s.containsTarget?`${s.name}/${s.partner}`:s.name,u=(r=i.navigationPropertyBinding)==null?void 0:r[l];i=t.entitySets.find(p=>p.name===(u==null?void 0:u.name))}}return{entityType:n,entitySet:i}}o(F9,"resolveNavigationProperty");function Mc(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(u=r.target)==null?void 0:u.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=F9(r,e):se(i,{severity:fe.LogSeverity.Error,message:q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:fe.MANIFESTPATH}}),n&&!a&&se(i,{severity:fe.LogSeverity.Error,message:q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(Mc,"getEntityTypeEntitySetFromContextPath");function Ow(e,t,n){let i=Wu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=ad(a,e.serviceAVT);s||se(e.logger,{severity:fe.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Dt(fe.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=Dt(fe.SchemaType.ObjectPage);n[l.filename]=sd(e,t[u.filename])}}o(Ow,"generateObjectPageSchemasV2");function D9(e,t,n){var l,u;let i=Ef(e.manifest,fe.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Ef(e.manifest,fe.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:y,entityType:A}=Mc(s,m,g,e.logger);e.entityType=A,e.entitySet=y;let b=Dt(fe.SchemaType.ListReport,p),O=Dt(fe.SchemaType.ListReport);e.templateType===fe.TemplateType.FreestylePageV4&&(e.templateType=eu(a[p])),n[b.filename]=Qu(e,t[O.filename],a[p].name,m)}}o(D9,"generateListReportSchemasV4");function _9(e,t,n){var r;let i=Wu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=ad(s,e.serviceAVT);let l=Dt(fe.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Dt(fe.SchemaType.ListReport);t[l.filename]=cd(e,n[u.filename])}}o(_9,"generateAppSchemaV2LR");function V9(e,t,n){var a,s;let i=Ef(e.manifest,fe.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=Mc(r,p,u);e.entitySet=m,e.entityType=g;let y=Dt(fe.SchemaType.ObjectPage,l),A=Dt(fe.SchemaType.ObjectPage),b=Dt(fe.SchemaType.FPMCustomPage);n[y.filename]=Sp(e,t[A.filename],p,t[b.filename])}}o(V9,"generateObjectPageSchemasV4");function w9(e,t,n,i){var a;let r={};if(i===fe.TemplateType.ListReportObjectPageV2&&n)_9(e,r,t),Ow(e,t,r);else if(i===fe.TemplateType.AnalyticalListPageV2&&n){let s=Wu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=ad(u,e.serviceAVT);let p=Dt(fe.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=Dt(fe.SchemaType.AnalyticalListPage);r[p.filename]=ld(e,t[g.filename])}Ow(e,t,r)}else if(i===fe.TemplateType.OverviewPageV2){let s=Dt(fe.SchemaType.OverviewPage),l=Dt(fe.SchemaType.OverviewPage);r[s.filename]=fd(t[l.filename],e.manifest)}return{...t,...r}}o(w9,"generateAppSchemasV2");function M9(e,t,n){if(!qs(e.featureToggles,fe.Features.BuildingBlocks))return;let i=Ef(e.manifest,fe.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=Uo(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=Dt(fe.SchemaType.FPMCustomPage,void 0,l),p=Dt(fe.SchemaType.FPMCustomPage);n[u.filename]=wc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(M9,"generateCustomPageSchemasV4");function k9(e,t,n){let i={};return n&&(D9(e,t,i),V9(e,t,i),M9(e,t,i)),{...t,...i}}o(k9,"generateAppSchemasV4");async function Lw(e,t,n){let i=await R9(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===fe.FioriElementsVersion.v4?k9(e,i,t):w9(e,i,t,n)}o(Lw,"generateAppSchemas");function j9(e){let t,n=[];switch(e.templateType){case fe.TemplateType.ListReportObjectPageV2:case fe.TemplateType.AnalyticalListPageV2:t=new Ch(e);break;case fe.TemplateType.AnalyticalListPageV4:case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.FreestylePageV4:t=new bf(e);break;case fe.TemplateType.OverviewPageV2:t=new Oh(e);break;default:t=new bf(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(j9,"importConfigs");function Rw(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===fe.SchemaType.Application?r=`${fe.DirName.Schemas}/${fe.FileName.App[0].toUpperCase()}${fe.FileName.App.slice(1)}`:r=`${fe.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(Rw,"getFileList");async function GC(e){var b,O;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new iu().doesUi5VersionFitDistTags((O=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:O.minUI5Version,i);let u=pb(t),p=Oo(n,i),g=Nw(p),m=db(t,u,i),A=await Lw({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return Rw(A)}o(GC,"importProjectSchema");async function WC(e){var G,B;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new iu().doesUi5VersionFitDistTags((B=(G=t["sap.ui5"])==null?void 0:G.dependencies)==null?void 0:B.minUI5Version,i);let p=pb(t),g=jF(t),m=Oo(n,i),y=db(t,p,i),A={templateType:y,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=Nw(m),O=await Lw(A,b,y),j=j9({manifest:t,flexChanges:s,appSchemas:O,templateType:y,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return Rw(O,j)}o(WC,"importProjectSchemaAndConfig");var U9=["header","sections","footer"];function $9(e,t,n,i){t.properties[n][oe.SchemaTag.artifactType]=oe.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=oe.ControlType.Section;break;case"ObjectPageSubSectionV2":r=oe.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=oe.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=oe.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=oe.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=oe.ControlType.ObjectPageHeaderSection;break}r&&(gt(e,t,n),t.properties[n][oe.SchemaTag.controlType]=r)}o($9,"addFlexChangeForSection");function B9(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Eo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=am(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${pt(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Eo.UIAnnotationTerms.Identification}`,`/@${Eo.UIAnnotationTerms.Identification}`);t.definitions[g][oe.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][oe.SchemaTag.actionType]=oe.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][oe.SchemaTag.keys]=[{name:oe.SchemaKeyName.action,value:s}],u&&(t.definitions[g][oe.SchemaTag.target]=u),i.properties[l]={$ref:`${U}${g}`}}})}o(B9,"addHeaderActionCallBackV2");function H9(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Eo.UIAnnotationTypes.DataFieldForAction){let a=ua(r).split("::").splice(1).join("::"),s=yi(r,e),l=pt(`${oe.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Eo.UIAnnotationTerms.Identification}`,`/@${Eo.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[oe.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${U}${l}`}}})}o(H9,"addFooterActionCallBackV2");function G9(e,t,n,i,r,a,s,l){let u,p;if(a.ID&&a.Label?u=a.ID+a.Label.replace(/\s+/g,""):a.ID?u=a.ID:a.Label&&(u=a.Label.replace(/\s+/g,"")),u?p=`${oe.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${oe.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${oe.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[g]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],y=r==null?void 0:r.entityTypes.find(b=>b.name===i),A=bc(t[oe.ManifestSection.generic].pages,n,m);return yl(e,y,A,t,l,p,g,a.ID),p}o(G9,"ensureCustomColumnDefinitionExists");function pd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&$9(e,t,"visible",n)}o(pd,"addAppSchemaDefinition");function W9(e,t,n){e.properties[t]={$ref:`${U}${n}`}}o(W9,"addSectionReference");function ud(e,t,n,i){let r=pt(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=U+t,i.definitions[r].properties.toolBar.$ref=`${U}ObjectPageToolBar<${t}>`,i.definitions[r][oe.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=oe.FACETTITLEPREFIX+n.ID,i.definitions[r][oe.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=oe.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${U}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${U}QuickVariant<${t}>`,Wa(n.entityType,i,`QuickVariant<${t}>`)}o(ud,"addTableDefinition");function K9(e,t,n,i,r,a){if(i.base!==oe.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=Lo(n,i,t);let u=n.definitions[l];pd(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[oe.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${U}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${U}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${U}ObjectPageAnalyticalTable<${t}>`},{$ref:`${U}ObjectPageGridTable<${t}>`},{$ref:`${U}ObjectPageTreeTable<${t}>`}],u[oe.SchemaTag.annotationPath]=i.annotationPath,la(i,u,t),Ha(i,u,t),ud("ObjectPageResponsiveTableWithMultiSelect",t,i,n),ud("ObjectPageResponsiveTableWithInlineDelete",t,i,n),ud("ObjectPageGridTable",t,i,n),ud("ObjectPageTreeTable",t,i,n),ud("ObjectPageAnalyticalTable",t,i,n);let p,g=A0(i.entityType,e.serviceAVT);g&&(p=G9(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let y=r[m];y.base===oe.FacetBase.LineItem&&(y.ID===s||m.includes(s))&&hl(!0,n,y.target,y.entityType,y.ID||m,p)}}o(K9,"handleLineItem");function X9(e,t,n,i,r,a=!1){e.definitions[t]=Lo(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";pd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(X9,"handleSubSection");function Q9(e,t,n,i,r){e.definitions[t]=Lo(e,n,i);let a=e.definitions[t];pd(e,a,r,"ObjectPageSectionChartV2")}o(Q9,"handleSectionChart");function Fw(e,t,n,i,r,a){e.definitions[t]=Lo(e,n,i);let s=e.definitions[t];pd(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=nc(n==null?void 0:n.target)}o(Fw,"handleHeaderFacet");function q9(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=nc(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}o(q9,"addDataPointHeaderFacetDataType");function z9(e,t,n,i,r){e.definitions[t]=Lo(e,n,i);let a=e.definitions[t];return pd(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o(z9,"handleFormSection");function Y9(e,t,n){let i=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[oe.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[oe.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[oe.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[oe.FacetBase.Form,"ObjectPageHeaderSectionForm"],[oe.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSubSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(Y9,"getSectionType");function J9(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Eo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(J9,"getReferenceKey");function _w(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=Y9(l.base,a,s),p=J9(l,n,u),g=`${u}<${p}>`;switch(W9(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,X9(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let y in l.facets)_w(e,l.facets,y,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{K9(e,p,r,l,t,u),Tl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{Q9(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=z9(r,g,l,p,u);om(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{nu(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{nu(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{Fw(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{Fw(r,g,l,p,u),q9(r,g,l);break}default:i.properties[n]=Lo(r,l,p)}}o(_w,"addSection");function Dw(e,t,n,i,r,a=!1){if(e)for(let s in t)_w(i,t,s,n,r,!1,a)}o(Dw,"addSectionsFromFacets");function Vw(e,t,n){var g,m,y,A,b,O;let i=t.definitions[oe.DefinitionName.Sections];i[oe.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Eo.UIAnnotationTerms.Facets}`);let r=t.definitions[oe.DefinitionName.HeaderSections];if(r[oe.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Eo.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Mg((y=e.entitySet)==null?void 0:y.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=wg((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let D in n){let j=n[D];(O=(b=e.entitySet)==null?void 0:b.name)!=null&&O.includes(j.entitySet)?(Dw(l,a,i,e,t),Dw(u,s,r,e,t,!0)):Vw(e,t,j.pages)}let p=t.definitions.CustomSections;for(let D in p.properties)i.properties[D]=p.properties[D]}o(Vw,"addSections");function Z9(e,t,n){lm(e,n),cm(e,n,t,B9,void 0,!0)}o(Z9,"addHeader");function ez(e,t,n,i){let r=$F(t,n,i,void 0,!0);r&&C0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(ez,"addRelatedFacetKeysType");function sd(e,t){var s;nn();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[oe.PropertyName.sections]={$ref:U+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[oe.ManifestSection.generic].pages;return a?(Z9(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Vw(e,n,a),ez(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[oe.SchemaTag.isViewNode]=!0):delete n.properties[oe.PropertyName.sections]),sm(n,e,oe.FioriElementsVersion.v2,H9,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,Fo(n,U9),n):(se(e.logger,{severity:oe.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:oe.MANIFESTPATH,range:[oe.ManifestSection.generic]}}),n)}o(sd,"generateObjectPageSchemaV2");var fi=ie(le());var Af=require("@sap-ux/vocabularies-types/vocabularies/UI");var nz=["filterBar","table","footer"],iz=fi.UIVOCABULARYALPHADOT.substring(1);function KC(e,t,n,i){Wa(e,n,"QuickVariant"),S0(n,"QuickVariantX",t),P0(i,n,"QuickVariantX")}o(KC,"addEnumForVariantPaths");function rz(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Af.UIAnnotationTerms.SelectionPresentationVariant,Af.UIAnnotationTerms.SelectionVariant,Af.UIAnnotationTerms.PresentationVariant];um(e,r,i)}o(rz,"addEnumForFilterBarAnnotationPath");function oz(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(Af.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(Af.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(iz,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(se(n,{severity:fi.LogSeverity.Warning,message:q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(oz,"getPresentationVariantForLineItem");function az(e,t,n){if(tm(t,"annotationPath",n))return;let i=oz(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=tu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||se(n,{severity:fi.LogSeverity.Warning,message:q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(az,"getLineItemAnnotation");function cd(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:U+fi.DefinitionName.LineItems},r=U+fi.DefinitionName.ToolBarLR;Tb.forEach((u,p)=>{n.properties.table.anyOf[p.toString()].$ref=U+u;let g=u.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[g]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[u]=m});let{entityType:a,uIAnnotations:s}=em(e);if(s){let u=[],p=Vl(e.manifest[fi.ManifestSection.generic].pages,u);vl(n);let g=az(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let y=pr(a.fullyQualifiedName,g.term,g.qualifier);Tb.forEach(A=>{n.definitions[A][fi.SchemaTag.annotationPath]=y})}hl(!1,n,g,a);let m=s.SelectionFields;if(Jg(n,m,a),Tl(n,a),!p)return se(e.logger,{severity:fi.LogSeverity.Error,message:q.t("NOLR"),location:{path:fi.MANIFESTPATH,range:[fi.ManifestSection.generic]}}),n;yl(n,a,p,e.manifest,e.fragments),KC(a,e.entitySet,n,e.serviceAVT),rz(a,n,fi.DefinitionName.ListReportFilterBar),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return Fo(n,nz),n}o(cd,"generateListReportSchemaV2");var Zt=ie(le());var sz=["filterBar","keyPerformanceIndicators","chart","table","footer"];function cz(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(tm(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(O){let D=O+(r?"#"+r:"");return t[D]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return se(n,{severity:Zt.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||tu("LineItem",O),g=g||tu("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],y=t[g],A=(m||i.quickVariantSelectionX?0:1)+(y?0:2);if(A>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],D=q.t(O);se(n,{severity:Zt.LogSeverity.Warning,message:D})}return{lineItemAnnotation:m,chartAnnotation:y}}o(cz,"getLineItemAndChartAnnotation");function lz(e,t){let n=e.definitions[Zt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Zt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(lz,"addChart");function ld(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[Zt.PropertyName.table].anyOf[0].$ref=U+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${U}${Zt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${U}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Zt.PropertyName.table].anyOf[1].$ref=`${U}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${U}${Zt.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${U}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[Zt.PropertyName.table].anyOf[2].$ref=`${U}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${U}${Zt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${U}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,h0(n.definitions.TableColumnExtensionTypeV2.enum,[Zt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=em(e);if(s){vl(n);let l=[],u=kl(e.manifest[Zt.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=cz(u,s,e.logger);p&&f0.forEach(y=>{n.definitions[y][Zt.SchemaTag.annotationPath]=pr(a.fullyQualifiedName,p.term,p.qualifier)}),hl(!1,n,p,a),g&&lz(n,g);let m=s.SelectionFields;if(Jg(n,m,a),Tl(n,a),!u)return se(e.logger,{severity:Zt.LogSeverity.Error,message:q.t("NOLR"),location:{path:Zt.MANIFESTPATH,range:[Zt.ManifestSection.generic]}}),n;yl(n,a,u,e.manifest,e.fragments),KC(a,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return Fo(n,sz),n}o(ld,"generateAnalyticalListReportSchemaV2");function fz(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}o(fz,"getCardDefinitionNames");function uz(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},pa(a,s.CardModel);let l=fz(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=U+"CardModel"}}o(uz,"addModelsEnum");function ww(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},uz(n,t),n}o(ww,"generateOverviewPageSchemaV2");var Fs=ie(le());function XC(e,t,n,i,r,a){nn();let s=Oo(e,t),l={templateType:a,fioriElementsVersion:Fs.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=ad(r,l.serviceAVT),l.entitySet||se(l.logger,{severity:Fs.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(XC,"prepareGenerationV2");function QC(e,t,n,i,r,a){let s=XC(n,a,i,r,t,Fs.TemplateType.ListReportObjectPageV2);return sd(s,e)}o(QC,"generateObjectPageInterfaceV2");function qC(e,t,n,i,r,a){let s=XC(n,a,i,r,t,Fs.TemplateType.ListReportObjectPageV2);return cd(s,e)}o(qC,"generateListReportInterfaceV2");function zC(e,t,n,i,r,a){let s=XC(n,a,i,r,t,Fs.TemplateType.AnalyticalListPageV2);return ld(s,e)}o(zC,"generateAnalyticalListPageInterfaceV2");function fd(e,t){return ww(e,t)}o(fd,"generateOVPInterfaceV2");var we=ie(le());var dd=o(e=>({flexChanges:[],manifest:{[we.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:we.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:we.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function Mw(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===we.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o(Mw,"getClassesForSingleSection");function kw(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Mw(n,i,t),kw(n,t)}}o(kw,"getSubsectionClasses");function pz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],Mw(i,r,n),kw(i,n)}o(pz,"getExportClassesForSections");function dz(e,t){let n=Vl(t.manifest[we.ManifestSection.generic].pages,e);if(!n){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(dz,"findV2Page");function YC(e,t){let n=Hg(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(YC,"calculateBaseId");function jw(e,t,n=!1){let i=dd(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=dz(a,e),l=new Ri,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:YC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ps(p,u,[],[],e.jsonSchema)}return i}o(jw,"exportListReportPage");function Uw(e,t,n=!1){let i=e.page.config,r=dd(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=kl(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Ri,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:YC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ps(p,u,[],[],e.jsonSchema)}return r}o(Uw,"exportAnalyticalListPage");function $w(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=dd(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=bc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return se(e.logger,{severity:we.LogSeverity.Error,message:q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new Ri,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&pz(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:YC(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ps(g,p,[],[],e.jsonSchema)}}return a}o($w,"exportObjectPage");var Bw=o(e=>{let t=dd();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Ri,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Ku(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),gz=o((e,t,n)=>{var s;let i=dd();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new mm,e);r.settings=Object.assign(new za,e.settings);for(let l in n.definitions.AppSettings.properties){let u=Yn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=Bn(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],Ga(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&xb(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Hw(e,t){if(e[we.SchemaType.ListReport])return jw(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return $w(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return Bw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return gz(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return Uw(e[we.SchemaType.AnalyticalListPage],t)}o(Hw,"exportPageV2");function JC(e,t,n=!1){if(e[we.SchemaType.ListReport])return jw(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return $w(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return Bw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return Uw(e[we.SchemaType.AnalyticalListPage],t,n)}o(JC,"exportConfigEntityByPathV2");var Sf=ie(le()),Ww=require("@sap-ux/vocabularies-types/vocabularies/UI");function Gw(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}o(Gw,"updateDependencyLib");function tv(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}o(tv,"extractLastIdPart");function Kw(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return se(i,{severity:Sf.LogSeverity.Error,message:q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(Sf.PropertyName.sections),s=a>-1?tv(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${Ww.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},g={customExtension:Sf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return ZC(g),!0}o(Kw,"createNewCustomColumn");var Ra=ie(le());var Qw=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),Xw=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function mz(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(mz,"initializeRouting");function hz(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(hz,"setTargetOptions");function yz(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Ra.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(yz,"calculateQueryPattern");function qw(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(u=>n[s].navigation[u].route===i);l&&(t=l,a=n[s])}if(a){qw(e,t,n,s);return}}}o(qw,"fillNavigationParts");function vz(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(vz,"fillParentKeys");function Tz(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(hz(n,a,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=l==null?void 0:l.routePattern;if(!u){let p=[];qw(p,a,t,r,l==null?void 0:l.contextPath);let g=vz(e.routePattern);u=yz(p,l,g)}i.routes.push(Qw(u,s.route,s.route))}}}o(Tz,"handlePageNavigation");function bz(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(bz,"removeDeletedPages");function Ez(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=Xw({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=Xw({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(Ez,"transferEntitySetandContextPath");function Az(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(Az,"updateRouteLayout");function Sz(e,t,n,i){var r;return e.pageType&&![Ra.PageTypeV4.CustomPage,Ra.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,viewPath:e.view.viewPath,viewType:e.view.viewType}:e.view&&(e.pageType!==Ra.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Ra.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(r=t==null?void 0:t.options)==null?void 0:r.settings,viewName:e.view.name}}}),t}o(Sz,"fillTarget");function zw(e,t,n){var r,a;let i=mz(n[Ra.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(Qw(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=Sz(u,l,s,t),Ez(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),Tz(u,t,l,i,s),Az(i,s,u),i.targets[s]=l}return bz(i,t),i}o(zw,"transformRoutingV4");var Pi=ie(le());var Yw=[Pi.FlexibleColumnLayoutAggregations.BeginColumnPages,Pi.FlexibleColumnLayoutAggregations.MidColumnPages,Pi.FlexibleColumnLayoutAggregations.EndColumnPages],Jw=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(g=>g.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:Yw[r]?s.controlAggregation=Yw[r]:s.controlAggregation=Pi.FlexibleColumnLayoutAggregations.EndColumnPages;let u=a.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let g in l.navigation)Jw(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),Pz=o((e,t)=>{e.routing.config.routerClass=Pi.v4.FIORI_FCL_ROUTER_CLASS,Jw(e,t,t.home);let n={viewName:Pi.FIORI_FCL_ROOT_VIEW_NAME,type:Pi.ViewTypes.XML,async:!0,id:Pi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,Gw(e,Pi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),Cz=o(e=>{var t;e.rootView&&e.rootView.viewName===Pi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Pi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),Zw=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?Pz(e,t):Cz(e)},"updateFcl");var ne=ie(le()),gd=require("@sap-ux/vocabularies-types/vocabularies/UI");var eM=ie(Xs()),nv=ie(le());function xz(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(xz,"isExportValueEquals");function Iz(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===nv.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(Iz,"deleteProperty");function tM(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),Vc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},tM)}else xz((u=s.attributes)==null?void 0:u[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(Iz(e,i),l=!0);return l}o(tM,"exportProperty");function iv(e,t,n,i,r,a){let s=rf(e.file,!1,a);if(s){let l=Ay(s);if(Vc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},tM)){let p=(0,eM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:nv.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(iv,"getExtensionExportResult");var nM=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},u;return r&&Object.keys(r).length>0&&(u=Uo(n||[],a.name,i,s)),u&&iv(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),iM=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=xc(u,s[0]);p=Ic(a,m,u,g,t)}if(p){let m=of(t),A={...i.definitions[m],definitions:i.definitions};iv(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var rM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],Oz=[...rM,"views","initialLoad","template"],rv=o(e=>{let t=ne.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function Nz(e,t,n){var s,l,u,p;let i=`@${gd.UIAnnotationTerms.LineItem}`,r=`@${gd.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ne.DefinitionName.TableSPV])==null?void 0:s[ne.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ne.DefinitionName.ALPTable])==null?void 0:u[ne.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ne.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(Nz,"determineTargetAnnotationOfTable");function Lz(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ne.DefinitionName.ALPChart])==null?void 0:a[ne.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(Lz,"determineTargetAnnotationOfChart");function Rz(e,t,n,i,r){var a;if(e.length===3)t=n=i[ne.SchemaTag.annotationPath]&&i[ne.SchemaTag.annotationPath].substr(i[ne.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split(U)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ne.SchemaTag.annotationPath])&&l[ne.SchemaTag.annotationPath].substr(l[ne.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(Rz,"determineTargetAnnotationBasedOnParentView");function Fz(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=Rz(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ne.SchemaTag.annotationPath]&&l[ne.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ne.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ne.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(Fz,"determineTargetAnnotationOfView");function Dz(e,t,n){let i,r;return e[2].split(`@${ne.UIVOCABULARY}`)[1]?n&&n.indexOf(ne.FACETTITLEPREFIX)>-1?i=r=n.split(ne.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(Dz,"determineTargetAnnotationOfHeaderSections");function _z(e,t){let n=e[1].split(`@${ne.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=tv(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(_z,"determineTargetAnnotationOfSections");function Vz(e,t,n){let i,r,a=!1;return e[0]===ne.PropertyName.table&&e[1]!==ne.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=Nz(e,t,n):e[0]===ne.PropertyName.chart&&t.templateType===ne.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=Lz(e,t,n):e[0]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=_z(e,a):e[1]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=Dz(e,a,t.title):e[1]===ne.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=Fz(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(Vz,"determineTargetAnnotation");function wz(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ne.PropertyName.actions,ne.PropertyName.columns,ne.PropertyName.views,ne.PropertyName.visualFilters,ne.PropertyName.selectionFields].includes(ne.PropertyName[r])){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(wz,"determineKeyForSyncRule");function Mz(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}o(Mz,"createNewObjectInManifest");function oM(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(Mz(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}o(oM,"transferPropertyToManifest");function kz(e,t,n,i,r,a,s){var p,g,m;let l=!1,u=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((g=n.config.table)!=null&&g.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&rM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&Oz.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let y=t.syncRule.manifest.delete;typeof y=="function"&&(y(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return Ga(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(kz,"deleteFromManifest");function jz(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:u,custom:p}=Vz(e,n.transferParameters,n.configObject),g=wz(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),y=No(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(y){let A={syncRule:t,manifestSection:y,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:g};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&pl([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=kz(e,A,n.transferParameters,y,m,u,l):r=oM(A,n.propertyDefinition,i)}return r}o(jz,"exportManifestChange");function Uz(e,t,n){let i=Yn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);iM(e.transferParameters,r,n.configObject)}else i.manifest&&jz(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ne.ChangeIndicator.Updated)}o(Uz,"evaluateExportRule");function $z(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,tx(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o($z,"transferSubObject");function Bz(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=ht(e.pageNameArray)+"/views",a=No(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(Bz,"createALPTableView");function Hz(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=ht(e.transferParameters.pageNameArray)+"/views",r=No(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||gd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(Hz,"createALPChartView");function Gz(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ht(e.pageNameArray),r=No(e.exportResults.manifest,i),a=`@${gd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].filterFields;Object.keys(t).forEach(l=>{let u=t[l];s[l]={};for(let p in u)p==="visualFilterValueList"?s[l].visualFilter={valueList:u[p]}:s[l][p]=u[p]})}return n}o(Gz,"createVisualFilters");function Wz(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ht(t.pageNameArray)+"/views",s=No(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let u=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(u===-1)s.paths.push(l),r=!0;else if(u!==i.index){let p=JSON.parse(JSON.stringify(s.paths[u]));s.paths.splice(u,1),s.paths.splice(e,0,p),r=!0}}return r}o(Wz,"createLRTableView");function Kz(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ne.DefinitionName.CustomColumn))i=Kw(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ne.DefinitionName.ALPChartView&&e.key===ne.PropertyName.chart&&e.configObject)return Hz(e);if(t===ne.DefinitionName.ALPTableView&&e.key===ne.PropertyName.table&&e.configObject)return Bz(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ne.DefinitionName.LRTableView)||t.startsWith(ne.DefinitionName.LRChartView))?i=Wz(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ne.DefinitionName.VisualFilters)&&(i=Gz(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(Kz,"createNewElement");function Xz(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(Xz,"isDefinitionTraversable");function ex(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Bg(e.configObject,e.key),s=Ro(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=Kz(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split(U)[1],i),p=a?[...t,a]:[...t,e.key];if(l||Uz(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||Xz(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;$z(e,s,r,p,m)}}o(ex,"transferSortedListEntry");function Qz(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,u)=>l[1]&&l[1].index-u[1].index),s.forEach(l=>{var u;(u=n.properties)!=null&&u[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],ex(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,ex(e,i,r),a=!0)}),e.index++})}return a}o(Qz,"transferConfigEntriesWithAnyOfDefinitions");function qz(e,t,n,i){let r=gb(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(qz,"mergeEntriesForInsert");function zz(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ne.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ne.SchemaTag.propertyIndex]-r[1][ne.SchemaTag.propertyIndex])),t}o(zz,"sortProperties");function Yz(e,t,n,i,r,a){var l,u;let s=!1;if(e){let p=e.anyOf;if(!p){let g=(l=e.$ref)==null?void 0:l.split(U)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=Qz(n,p,i,r,a)}return s}o(Yz,"checkIfAnyOfDefinition");function tx(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=a.additionalProperties,p=Yz(u,e,l,a,n,i),g=zz(a.properties);u!=null&&u.$ref&&qz(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!pl(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,ex(l,n,i,p),m[1].$ref&&s++)})}o(tx,"transferManifestEntriesAndFlexChange");function aM(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ne.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(aM,"getClassesForSingleSection");function sM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],aM(n,i,t),sM(n,t)}}o(sM,"getSubsectionClasses");function Jz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],aM(e,r,n),sM(i,n)}o(Jz,"getExportClassesForSections");function cM(e,t){let n=Hg(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(cM,"calculateBaseId");var lM=o((e,t,n=!1)=>{var l;let i=rv(e.manifest),r=new La,a=r.createPageInstance(ne.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ne.PropertyName.sections]&&Jz(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:cM(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ne.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ne.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return tx(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),Zz=o((e,t,n,i,r,a,s=!1)=>{var b,O;let l=rv(e.manifest),u=e.jsonSchema,p=(b=n.table)!=null&&b[ne.PropertyName.annotationPath]?ne.DefinitionName.ALPTableView:ne.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ne.DefinitionName.LineItems;u.definitions[ne.DefinitionName.TableSPV]&&(m=u.definitions[ne.DefinitionName.TableSPV].properties.columns.$ref.split(U)[1]);let y=u.definitions[`${ne.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&y)for(let D in y.properties)g.toolBar.actions[D]=t.createInstance(i,ne.DefinitionName.ToolBarAction,g.toolBar.actions[D]);let A={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:cM(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ne.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return tx(A,n,[],[],[],u),l},"exportListPage"),nx=o((e,t,n,i=!1)=>{let r=new La,a=r.createPageInstance(ne.PageTypeV2.ListReport,e.page.config);return Zz(e,r,a,ne.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),fM=o((e,t,n=!1)=>nx(e,t,ne.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),eY=o((e,t,n,i,r,a)=>{let s=No(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=cb());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];oM(u,p,{}),!l&&Object.keys(s).length&&kF(r,t,s)},"applyExportRule"),tY=o((e,t,n)=>{var a;let i=rv(t),r=Object.assign(new Iy,e);r.settings=Object.assign(new af,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Yn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)eY(l,u,s,e,i.manifest,n);else{let p=No(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],Ga(i.manifest,u,!1))}}}return i.manifest[ne.ManifestSection.ui5].routing=zw(e.home,e.pages,i.manifest),Zw(i.manifest[ne.ManifestSection.ui5],e),i},"exportApplicationV4"),uM=o((e,t)=>{if(e[ne.SchemaType.ListReport])return nx(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4);if(e[ne.SchemaType.ObjectPage])return lM(e[ne.SchemaType.ObjectPage],t);if(e[ne.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ne.SchemaType.Application];return tY(n,i,r)}else{if(e[ne.SchemaType.AnalyticalListPage])return fM(e[ne.SchemaType.AnalyticalListPage],t);if(e[ne.SchemaType.FPMCustomPage])return nM(e[ne.SchemaType.FPMCustomPage],ne.defaultExportResult)}},"exportPageV4"),nY=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=rv(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Uo(n||[],i.name,r,e.logger)),l&&iv(l,s,i.config,t,"view",a),s},"exportCustomPage"),ix=o((e,t,n=!1)=>{if(e[ne.SchemaType.ListReport])return nx(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4,n);if(e[ne.SchemaType.ObjectPage])return lM(e[ne.SchemaType.ObjectPage],t,n);if(e[ne.SchemaType.AnalyticalListPage])return fM(e[ne.SchemaType.AnalyticalListPage],t,n);if(e[ne.SchemaType.FPMCustomPage])return nY(e[ne.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Bt=require("@sap-ux/fe-fpm-writer");var iY=new Map([[pe.CustomExtensionType.CustomPage,Bt.generateCustomPage],[pe.CustomExtensionType.CustomColumn,Bt.generateCustomColumn],[pe.CustomExtensionType.CustomSection,Bt.generateCustomSection],[pe.CustomExtensionType.ObjectPage,Bt.generateObjectPage],[pe.CustomExtensionType.ListReport,Bt.generateListReport],[pe.CustomExtensionType.CustomAction,Bt.generateCustomAction],[pe.CustomExtensionType.CustomView,Bt.generateCustomView],[pe.CustomExtensionType.ControllerExtension,Bt.generateControllerExtension],[pe.CustomExtensionType.CustomSubSection,Bt.generateCustomSubSection],[pe.CustomExtensionType.CustomFilterField,Bt.generateCustomFilter],[pe.CustomExtensionType.CustomHeaderSection,Bt.generateCustomHeaderSection]]),rY={api:Bt.PromptsAPI,types:Bt.PromptsType};function oY(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ListReport];t=qC(i,r,a,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ObjectPage];t=QC(i,r,a,s,l,u)}else if(n[pe.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[pe.SchemaType.OverviewPage];t=fd(i,r)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.AnalyticalListPage];t=zC(i,r,a,s,l,u)}}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.ListReport];t=xy(pe.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[pe.SchemaType.ObjectPage];t=VS(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.AnalyticalListPage];t=xy(pe.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[pe.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[pe.SchemaType.FreestylePage];t=wS(pe.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[pe.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[pe.SchemaType.FPMCustomPage];t=MS(i,r,a,s,u,e.featureToggles,l)}}return t}o(oY,"generateSchema");function aY(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=Hw(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=uM(i,n)}return t}o(aY,"exportConfig");function sY(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=JC(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=ix(i,n)}return t}o(sY,"exportConfigEntityByPath");function cY(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=JC(i,n,!0)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=ix(i,n,!0)}return t}o(cY,"deleteConfigEntityByPath");function lY(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];n[pe.SchemaType.ListReport]?t=Eh(n[pe.SchemaType.ListReport]):n[pe.SchemaType.ObjectPage]?t=Ph(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.OverviewPage]?t=Ih(n[pe.SchemaType.OverviewPage]):n[pe.SchemaType.AnalyticalListPage]&&(t=Ah(n[pe.SchemaType.AnalyticalListPage]))}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];n[pe.SchemaType.ListReport]?t=$c(n[pe.SchemaType.ListReport],pe.SchemaType.ListReport):n[pe.SchemaType.ObjectPage]?t=Jy(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.AnalyticalListPage]?t=$c(n[pe.SchemaType.AnalyticalListPage],pe.SchemaType.AnalyticalListPage):n[pe.SchemaType.FPMCustomPage]&&(t=Yy(n[pe.SchemaType.FPMCustomPage]))}return t}o(lY,"importConfig");async function fY(e){return WC(e)}o(fY,"importProject");async function uY(e){return GC(e)}o(uY,"importProjectSchema");function pY(){return{version:"21",fpmWriter:"29",moduleVersion:L0.version}}o(pY,"getApiVersion");function ZC(e){let t=iY.get(e.customExtension);if(t&&typeof t=="function")return(0,Bt.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(ZC,"generateCustomExtension");var Yr=require("path"),Ds=require("fs");var Pf=o(async e=>new Promise((t,n)=>{(0,Ds.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),dY=o(async e=>JSON.parse(await Pf(e)),"readJSON"),rx=o(async e=>new Promise((t,n)=>{(0,Ds.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),gY=o(async e=>new Promise(t=>{(0,Ds.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),dM=o(async e=>new Promise(t=>{(0,Ds.exists)(e,n=>{t(n)})}),"resourceExists"),mY=o(async e=>dY((0,Yr.join)(e,"manifest.json")),"getManifest"),gM=o(async e=>{let t=[],n=(0,Yr.join)(e,"changes");if(!await dM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await rx(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Pf((0,Yr.join)(n,a)));return t},"getChanges"),pM=o(async(e,t="fragments")=>{let n=[],i=(0,Yr.join)(e,"ext",t);if(!await dM(i))return n;let r=await rx(i);for(let a of r){let s=(0,Yr.join)(i,a),l=await Pf(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),hY=o(async(e,t)=>{var r,a,s,l,u,p,g,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let y=(0,Yr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:y,fileContent:await Pf(y)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let y of i.mainService.settings.annotations)if((g=(p=i[y])==null?void 0:p.settings)!=null&&g.localUri){let A=(0,Yr.join)(t,i[y].settings.localUri);n.push({dataSourceUri:A,fileContent:await Pf(A)})}}if(n.length===0)for(let y in i){let A=i[y];if((A==null?void 0:A.type)==="ODataAnnotation"&&((m=A==null?void 0:A.settings)!=null&&m.localUri)){let b=(0,Yr.join)(t,A.settings.localUri);n.push({dataSourceUri:b,fileContent:await Pf(b)})}}return n},"getAnnotations"),yY=o(async e=>{let t=(0,Yr.basename)(e),n=(0,Yr.join)(e,"webapp"),i=await mY(n),r=await hY(i,n),a=await gM(n),s=await pM(n),l=await pM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");Ks(Di,ie(le()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
295
295
  /*! Bundled license information:
296
296
 
297
297
  sax/lib/sax.js: