@sap/ux-specification 1.120.43 → 1.120.44
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/CHANGELOG.md +16 -0
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ListReportNew.html +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
- package/dist/documentation/v4/v4-FreestylePage.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +3 -3
- package/dist/index-min.js.map +4 -4
- package/dist/specification/package.json +7 -7
- package/package.json +7 -7
package/dist/index-min.js
CHANGED
|
@@ -16,7 +16,7 @@ Hint: If possible, try to maintain the Type property for each Record.
|
|
|
16
16
|
<Annotation Term="${t}">
|
|
17
17
|
<Record>...</Record>
|
|
18
18
|
</Annotation>
|
|
19
|
-
</Annotations>`),r}o(CD,"inferTypeFromTerm");function P8(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(P8,"isDataFieldWithForAction");function x8(e,t,n,i,r){let a;return!r.type&&t?a=CD(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(x8,"parseRecordType");function wb(e,t,n,i,r,a,s){let l={$Type:x8(e,t,n,i,a),fullyQualifiedName:s,[uo]:n,__source:r};for(let u of a.propertyValues)(0,Ee.lazy)(l,u.name,()=>xD(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Ee.lazy)(l,"annotations",RD(e,a,l)),P8(l)&&(0,Ee.lazy)(l,"ActionTarget",()=>{var u,p;let g=e.unalias((u=l.Action)===null||u===void 0?void 0:u.toString()),m=n.actions[g];return m||(m=(p=e.getConvertedActionImport(g))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(g),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${g}')`),m}),l}o(wb,"parseRecord");function C8(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(C8,"getOrInferCollectionType");function ID(e,t,n,i,r,a,s){switch(C8(a)){case"PropertyPath":return a.map((u,p)=>ED(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>yr(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>AD(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>PD(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>wb(e,n,t,i,r,u,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(u=>u);case"String":return a.map(u=>typeof u=="string"||u===void 0?u:u.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(ID,"parseCollection");function I8(e){return!!e.targetTypeName}o(I8,"isV4NavigationProperty");function O8(e,t,n){var i;let r;if(n.record)r=wb(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=xD(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=ID(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[uo]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,qg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Ee.lazy)(r,"annotations",RD(e,n,r))}catch{}return r}o(O8,"convertAnnotation");var Mb=class Mb{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Ee.mergeAnnotations)(this.rawMetadata.references,...i)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,LD)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,Ee.addGetByValue)(i,"name"),(0,Ee.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Ee.alias)(qg.VocabularyReferences,t);return(0,Ee.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Ee.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(Mb,"Converter");var _b=Mb;function Pu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(Pu,"resolveEntityType");function OD(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Ee.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(OD,"resolveNavigationPropertyBindings");function ga(e,t){let n=t.annotations;return()=>Yg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(ga,"resolveAnnotations");function RD(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[uo]=n[uo],a.fullyQualifiedName=`${i}@${a.term}`}),Yg(e,n,r??[])}}o(RD,"resolveAnnotationsOnAnnotation");function Yg(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,Ee.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>O8(u,t,p))),i},{})}o(Yg,"createAnnotationsObject");function LD(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ga(e,t)),(0,Ee.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,ND)),(0,Ee.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,FD)),(0,Ee.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,_D)),n}o(LD,"convertEntityContainer");function FD(e,t){let n=t;(0,Ee.lazy)(n,"entityType",Pu(e,t.entityTypeName)),(0,Ee.lazy)(n,"annotations",ga(e,n));let i=t.navigationPropertyBinding;return(0,Ee.lazy)(n,"navigationPropertyBinding",OD(e,i)),n}o(FD,"convertSingleton");function ND(e,t){let n=t;(0,Ee.lazy)(n,"entityType",Pu(e,t.entityTypeName)),(0,Ee.lazy)(n,"annotations",ga(e,n));let i=t.navigationPropertyBinding;return(0,Ee.lazy)(n,"navigationPropertyBinding",OD(e,i)),n}o(ND,"convertEntitySet");function R8(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Ee.lazy)(n,"annotations",ga(e,t)),(0,Ee.lazy)(n,"keys",e.convert(t.keys,Vb)),(0,Ee.lazy)(n,"entityProperties",e.convert(t.entityProperties,Vb)),(0,Ee.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,DD)),(0,Ee.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=yr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(R8,"convertEntityType");function Vb(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ga(e,t)),(0,Ee.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(Vb,"convertProperty");function DD(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!I8(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,Ee.lazy)(a,"targetType",Pu(e,t.targetTypeName)),(0,Ee.lazy)(a,"annotations",ga(e,t)),a}o(DD,"convertNavigationProperty");function _D(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ga(e,t)),(0,Ee.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(_D,"convertActionImport");function L8(e,t){let n=t;return n.sourceType&&(0,Ee.lazy)(n,"sourceEntityType",Pu(e,t.sourceType)),n.returnType&&(0,Ee.lazy)(n,"returnEntityType",Pu(e,t.returnType)),(0,Ee.lazy)(n,"parameters",e.convert(t.parameters,F8)),(0,Ee.lazy)(n,"annotations",()=>{let i=(0,Ee.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Yg(e,t,a)}),n}o(L8,"convertAction");function F8(e,t){let n=t;return(0,Ee.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Ee.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Yg(e,t,a)}),n}o(F8,"convertActionParameter");function N8(e,t){let n=t;return(0,Ee.lazy)(n,"properties",e.convert(t.properties,Vb)),(0,Ee.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,DD)),(0,Ee.lazy)(n,"annotations",ga(e,t)),n}o(N8,"convertComplexType");function D8(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ga(e,t)),n}o(D8,"convertTypeDefinition");function _8(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:qg.VocabularyReferences,diagnostics:[]},n=new _b(e,t);return(0,Ee.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,LD)),(0,Ee.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,ND)),(0,Ee.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,FD)),(0,Ee.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,R8)),(0,Ee.lazy)(t,"actions",n.convert(n.rawSchema.actions,L8)),(0,Ee.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,N8)),(0,Ee.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,_D)),(0,Ee.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,D8)),t.resolvePath=o(function(r){let a=yr(n,void 0,r);return a.target&&da(a.objectPath,a.target),a},"resolvePath"),t}o(_8,"convert");zg.convert=_8});var jD=Ze(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0});Zg.revertTermToGenericType=void 0;var kb=Qg();function V8(e,t){var n,i,r,a,s,l,u;let p;if(Array.isArray(t)){let g=t[0],m=!1;if(g&&typeof g=="string"){let v=g.valueOf().split(".");v.length>1&&e.find(S=>S.alias===v[0])&&(m=kb.EnumIsFlag[(0,kb.substringBeforeFirst)(g,"/")])}m?p={type:"EnumMember",EnumMember:t.map(v=>v.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(v=>Jg(e,v))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let g=t.valueOf().split(".");g.length>1&&e.find(m=>m.alias===g[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((u=t.isBoolean)===null||u===void 0)&&u.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:Jg(e,t)});return p}o(V8,"revertObjectToRawType");function wD(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=V8(e,t);break}return n}o(wD,"revertValueToRawType");var w8=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function MD(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=kD(e,t[i][r]);if(!a.term){let s=(0,kb.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(MD,"revertAnnotationsToRawType");function Jg(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(w8.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:wD(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],MD(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(Jg,"revertCollectionItemToRawType");function kD(e,t){let n={term:t.term,qualifier:t.qualifier};return Array.isArray(t)?(t.hasOwnProperty("annotations")&&Object.keys(t.annotations).length>0&&(n.annotations=[],MD(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Jg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Jg(e,t)}:{...n,value:wD(e,t)}}o(kD,"revertTermToGenericType");Zg.revertTermToGenericType=kD});var UD=Ze(ma=>{"use strict";var M8=ma&&ma.__createBinding||(Object.create?(function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}):(function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]})),jb=ma&&ma.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&M8(t,e,n)};Object.defineProperty(ma,"__esModule",{value:!0});jb(VD(),ma);jb(Qg(),ma);jb(jD(),ma)});var Gb=Ze(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.MergedRawMetadata=is.RawMetadataInstance=is.ensureArray=void 0;function k8(e){return e==null?[]:Array.isArray(e)?e:[e]}o(k8,"ensureArray");is.ensureArray=k8;var Bb=class Bb{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(Bb,"RawMetadataInstance");var Ub=Bb;is.RawMetadataInstance=Ub;var Hb=class Hb{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o(Hb,"MergedRawMetadata");var $b=Hb;is.MergedRawMetadata=$b});var $D=Ze(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});em.merge=void 0;var j8=Gb();function U8(...e){let t=new j8.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(U8,"merge");em.merge=U8});var BD=Ze(tm=>{(function(e){e.parser=function(O,A){return new n(O,A)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(O,A){if(!(this instanceof n))return new n(O,A);var Y=this;r(Y),Y.q=Y.c="",Y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Y.opt=A||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!O,Y.noscript=!!(O||Y.opt.noscript),Y.state=D.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(b)),Y.opt.unquotedAttributeValues===void 0&&(Y.opt.unquotedAttributeValues=!O),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),$e(Y,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(O){function A(){}o(A,"F"),A.prototype=O;var Y=new A;return Y}),Object.keys||(Object.keys=function(O){var A=[];for(var Y in O)O.hasOwnProperty(Y)&&A.push(Y);return A});function i(O){for(var A=Math.max(e.MAX_BUFFER_LENGTH,10),Y=0,V=0,_e=t.length;V<_e;V++){var Ft=O[t[V]].length;if(Ft>A)switch(t[V]){case"textNode":rn(O);break;case"cdata":qe(O,"oncdata",O.cdata),O.cdata="";break;case"script":qe(O,"onscript",O.script),O.script="";break;default:Et(O,"Max buffer length exceeded: "+t[V])}Y=Math.max(Y,Ft)}var ze=e.MAX_BUFFER_LENGTH-Y;O.bufferCheckPosition=ze+O.position}o(i,"checkBufferLength");function r(O){for(var A=0,Y=t.length;A<Y;A++)O[t[A]]=""}o(r,"clearBuffers");function a(O){rn(O),O.cdata!==""&&(qe(O,"oncdata",O.cdata),O.cdata=""),O.script!==""&&(qe(O,"onscript",O.script),O.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Yt(this)},"end"),write:tt,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(O){return O!=="error"&&O!=="end"});function u(O,A){return new p(O,A)}o(u,"createStream");function p(O,A){if(!(this instanceof p))return new p(O,A);s.apply(this),this._parser=new n(O,A),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(V){Y.emit("error",V),Y._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(Y,"on"+V,{get:o(function(){return Y._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return Y.removeAllListeners(V),Y._parser["on"+V]=_e,_e;Y.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(O){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(O)){if(!this._decoder){var A=require("string_decoder").StringDecoder;this._decoder=new A("utf8")}O=this._decoder.write(O)}return this._parser.write(O.toString()),this.emit("data",O),!0},p.prototype.end=function(O){return O&&O.length&&this.write(O),this._parser.end(),!0},p.prototype.on=function(O,A){var Y=this;return!Y._parser["on"+O]&&l.indexOf(O)!==-1&&(Y._parser["on"+O]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,O),Y.emit.apply(Y,V)}),s.prototype.on.call(Y,O,A)};var g="[CDATA[",m="DOCTYPE",v="http://www.w3.org/XML/1998/namespace",S="http://www.w3.org/2000/xmlns/",b={xml:v,xmlns:S},I=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,F=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,W=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function U(O){return O===" "||O===`
|
|
19
|
+
</Annotations>`),r}o(CD,"inferTypeFromTerm");function P8(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(P8,"isDataFieldWithForAction");function x8(e,t,n,i,r){let a;return!r.type&&t?a=CD(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(x8,"parseRecordType");function wb(e,t,n,i,r,a,s){let l={$Type:x8(e,t,n,i,a),fullyQualifiedName:s,[uo]:n,__source:r};for(let u of a.propertyValues)(0,Ee.lazy)(l,u.name,()=>xD(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Ee.lazy)(l,"annotations",RD(e,a,l)),P8(l)&&(0,Ee.lazy)(l,"ActionTarget",()=>{var u,p;let g=e.unalias((u=l.Action)===null||u===void 0?void 0:u.toString()),m=n.actions[g];return m||(m=(p=e.getConvertedActionImport(g))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(g),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${g}')`),m}),l}o(wb,"parseRecord");function C8(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(C8,"getOrInferCollectionType");function ID(e,t,n,i,r,a,s){switch(C8(a)){case"PropertyPath":return a.map((u,p)=>ED(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>yr(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>AD(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>PD(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>wb(e,n,t,i,r,u,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(u=>u);case"String":return a.map(u=>typeof u=="string"||u===void 0?u:u.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(ID,"parseCollection");function I8(e){return!!e.targetTypeName}o(I8,"isV4NavigationProperty");function O8(e,t,n){var i;let r;if(n.record)r=wb(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=xD(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=ID(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[uo]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,qg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Ee.lazy)(r,"annotations",RD(e,n,r))}catch{}return r}o(O8,"convertAnnotation");var Mb=class Mb{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Ee.mergeAnnotations)(this.rawMetadata.references,...i)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,LD)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,Ee.addGetByValue)(i,"name"),(0,Ee.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Ee.alias)(qg.VocabularyReferences,t);return(0,Ee.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Ee.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(Mb,"Converter");var _b=Mb;function Pu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(Pu,"resolveEntityType");function OD(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Ee.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(OD,"resolveNavigationPropertyBindings");function ga(e,t){let n=t.annotations;return()=>Yg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(ga,"resolveAnnotations");function RD(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[uo]=n[uo],a.fullyQualifiedName=`${i}@${a.term}`}),Yg(e,n,r??[])}}o(RD,"resolveAnnotationsOnAnnotation");function Yg(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={_keys:[]}),i[a].hasOwnProperty(l)||(i[a]._keys.push(l),(0,Ee.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>O8(u,t,p)))),i},{})}o(Yg,"createAnnotationsObject");function LD(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ga(e,t)),(0,Ee.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,ND)),(0,Ee.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,FD)),(0,Ee.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,_D)),n}o(LD,"convertEntityContainer");function FD(e,t){let n=t;(0,Ee.lazy)(n,"entityType",Pu(e,t.entityTypeName)),(0,Ee.lazy)(n,"annotations",ga(e,n));let i=t.navigationPropertyBinding;return(0,Ee.lazy)(n,"navigationPropertyBinding",OD(e,i)),n}o(FD,"convertSingleton");function ND(e,t){let n=t;(0,Ee.lazy)(n,"entityType",Pu(e,t.entityTypeName)),(0,Ee.lazy)(n,"annotations",ga(e,n));let i=t.navigationPropertyBinding;return(0,Ee.lazy)(n,"navigationPropertyBinding",OD(e,i)),n}o(ND,"convertEntitySet");function R8(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Ee.lazy)(n,"annotations",ga(e,t)),(0,Ee.lazy)(n,"keys",e.convert(t.keys,Vb)),(0,Ee.lazy)(n,"entityProperties",e.convert(t.entityProperties,Vb)),(0,Ee.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,DD)),(0,Ee.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=yr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(R8,"convertEntityType");function Vb(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ga(e,t)),(0,Ee.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(Vb,"convertProperty");function DD(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!I8(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,Ee.lazy)(a,"targetType",Pu(e,t.targetTypeName)),(0,Ee.lazy)(a,"annotations",ga(e,t)),a}o(DD,"convertNavigationProperty");function _D(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ga(e,t)),(0,Ee.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName+"("));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(_D,"convertActionImport");function L8(e,t){let n=t;return n.sourceType&&(0,Ee.lazy)(n,"sourceEntityType",Pu(e,t.sourceType)),n.returnType&&(0,Ee.lazy)(n,"returnEntityType",Pu(e,t.returnType)),(0,Ee.lazy)(n,"parameters",e.convert(t.parameters,F8)),(0,Ee.lazy)(n,"annotations",()=>{let i=(0,Ee.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Yg(e,t,a)}),n}o(L8,"convertAction");function F8(e,t){let n=t;return(0,Ee.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Ee.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Yg(e,t,a)}),n}o(F8,"convertActionParameter");function N8(e,t){let n=t;return(0,Ee.lazy)(n,"properties",e.convert(t.properties,Vb)),(0,Ee.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,DD)),(0,Ee.lazy)(n,"annotations",ga(e,t)),n}o(N8,"convertComplexType");function D8(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",ga(e,t)),n}o(D8,"convertTypeDefinition");function _8(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:qg.VocabularyReferences,diagnostics:[]},n=new _b(e,t);return(0,Ee.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,LD)),(0,Ee.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,ND)),(0,Ee.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,FD)),(0,Ee.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,R8)),(0,Ee.lazy)(t,"actions",n.convert(n.rawSchema.actions,L8)),(0,Ee.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,N8)),(0,Ee.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,_D)),(0,Ee.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,D8)),t.resolvePath=o(function(r){let a=yr(n,void 0,r);return a.target&&da(a.objectPath,a.target),a},"resolvePath"),t}o(_8,"convert");zg.convert=_8});var jD=Ze(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0});Zg.revertTermToGenericType=void 0;var kb=Qg();function V8(e,t){var n,i,r,a,s,l,u;let p;if(Array.isArray(t)){let g=t[0],m=!1;if(g&&typeof g=="string"){let v=g.valueOf().split(".");v.length>1&&e.find(S=>S.alias===v[0])&&(m=kb.EnumIsFlag[(0,kb.substringBeforeFirst)(g,"/")])}m?p={type:"EnumMember",EnumMember:t.map(v=>v.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(v=>Jg(e,v))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let g=t.valueOf().split(".");g.length>1&&e.find(m=>m.alias===g[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((u=t.isBoolean)===null||u===void 0)&&u.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:Jg(e,t)});return p}o(V8,"revertObjectToRawType");function wD(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=V8(e,t);break}return n}o(wD,"revertValueToRawType");var w8=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function MD(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).filter(r=>r!=="_keys").forEach(r=>{let a=kD(e,t[i][r]);if(!a.term){let s=(0,kb.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(MD,"revertAnnotationsToRawType");function Jg(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(w8.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:wD(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],MD(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(Jg,"revertCollectionItemToRawType");function kD(e,t){let n={term:t.term,qualifier:t.qualifier};return Array.isArray(t)?(t.hasOwnProperty("annotations")&&Object.keys(t.annotations).length>0&&(n.annotations=[],MD(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Jg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Jg(e,t)}:{...n,value:wD(e,t)}}o(kD,"revertTermToGenericType");Zg.revertTermToGenericType=kD});var UD=Ze(ma=>{"use strict";var M8=ma&&ma.__createBinding||(Object.create?(function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}):(function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]})),jb=ma&&ma.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&M8(t,e,n)};Object.defineProperty(ma,"__esModule",{value:!0});jb(VD(),ma);jb(Qg(),ma);jb(jD(),ma)});var Gb=Ze(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.MergedRawMetadata=is.RawMetadataInstance=is.ensureArray=void 0;function k8(e){return e==null?[]:Array.isArray(e)?e:[e]}o(k8,"ensureArray");is.ensureArray=k8;var Bb=class Bb{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(Bb,"RawMetadataInstance");var Ub=Bb;is.RawMetadataInstance=Ub;var Hb=class Hb{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o(Hb,"MergedRawMetadata");var $b=Hb;is.MergedRawMetadata=$b});var $D=Ze(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});em.merge=void 0;var j8=Gb();function U8(...e){let t=new j8.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(U8,"merge");em.merge=U8});var BD=Ze(tm=>{(function(e){e.parser=function(O,A){return new n(O,A)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(O,A){if(!(this instanceof n))return new n(O,A);var Y=this;r(Y),Y.q=Y.c="",Y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Y.opt=A||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!O,Y.noscript=!!(O||Y.opt.noscript),Y.state=D.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(b)),Y.opt.unquotedAttributeValues===void 0&&(Y.opt.unquotedAttributeValues=!O),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),$e(Y,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(O){function A(){}o(A,"F"),A.prototype=O;var Y=new A;return Y}),Object.keys||(Object.keys=function(O){var A=[];for(var Y in O)O.hasOwnProperty(Y)&&A.push(Y);return A});function i(O){for(var A=Math.max(e.MAX_BUFFER_LENGTH,10),Y=0,V=0,_e=t.length;V<_e;V++){var Ft=O[t[V]].length;if(Ft>A)switch(t[V]){case"textNode":rn(O);break;case"cdata":qe(O,"oncdata",O.cdata),O.cdata="";break;case"script":qe(O,"onscript",O.script),O.script="";break;default:Et(O,"Max buffer length exceeded: "+t[V])}Y=Math.max(Y,Ft)}var ze=e.MAX_BUFFER_LENGTH-Y;O.bufferCheckPosition=ze+O.position}o(i,"checkBufferLength");function r(O){for(var A=0,Y=t.length;A<Y;A++)O[t[A]]=""}o(r,"clearBuffers");function a(O){rn(O),O.cdata!==""&&(qe(O,"oncdata",O.cdata),O.cdata=""),O.script!==""&&(qe(O,"onscript",O.script),O.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Yt(this)},"end"),write:tt,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(O){return O!=="error"&&O!=="end"});function u(O,A){return new p(O,A)}o(u,"createStream");function p(O,A){if(!(this instanceof p))return new p(O,A);s.apply(this),this._parser=new n(O,A),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(V){Y.emit("error",V),Y._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(Y,"on"+V,{get:o(function(){return Y._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return Y.removeAllListeners(V),Y._parser["on"+V]=_e,_e;Y.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(O){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(O)){if(!this._decoder){var A=require("string_decoder").StringDecoder;this._decoder=new A("utf8")}O=this._decoder.write(O)}return this._parser.write(O.toString()),this.emit("data",O),!0},p.prototype.end=function(O){return O&&O.length&&this.write(O),this._parser.end(),!0},p.prototype.on=function(O,A){var Y=this;return!Y._parser["on"+O]&&l.indexOf(O)!==-1&&(Y._parser["on"+O]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,O),Y.emit.apply(Y,V)}),s.prototype.on.call(Y,O,A)};var g="[CDATA[",m="DOCTYPE",v="http://www.w3.org/XML/1998/namespace",S="http://www.w3.org/2000/xmlns/",b={xml:v,xmlns:S},I=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,F=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,W=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function U(O){return O===" "||O===`
|
|
20
20
|
`||O==="\r"||O===" "}o(U,"isWhitespace");function se(O){return O==='"'||O==="'"}o(se,"isQuote");function te(O){return O===">"||U(O)}o(te,"isAttribEnd");function le(O,A){return O.test(A)}o(le,"isMatch");function Le(O,A){return!le(O,A)}o(Le,"notMatch");var D=0;e.STATE={BEGIN:D++,BEGIN_WHITESPACE:D++,TEXT:D++,TEXT_ENTITY:D++,OPEN_WAKA:D++,SGML_DECL:D++,SGML_DECL_QUOTED:D++,DOCTYPE:D++,DOCTYPE_QUOTED:D++,DOCTYPE_DTD:D++,DOCTYPE_DTD_QUOTED:D++,COMMENT_STARTING:D++,COMMENT:D++,COMMENT_ENDING:D++,COMMENT_ENDED:D++,CDATA:D++,CDATA_ENDING:D++,CDATA_ENDING_2:D++,PROC_INST:D++,PROC_INST_BODY:D++,PROC_INST_ENDING:D++,OPEN_TAG:D++,OPEN_TAG_SLASH:D++,ATTRIB:D++,ATTRIB_NAME:D++,ATTRIB_NAME_SAW_WHITE:D++,ATTRIB_VALUE:D++,ATTRIB_VALUE_QUOTED:D++,ATTRIB_VALUE_CLOSED:D++,ATTRIB_VALUE_UNQUOTED:D++,ATTRIB_VALUE_ENTITY_Q:D++,ATTRIB_VALUE_ENTITY_U:D++,CLOSE_TAG:D++,CLOSE_TAG_SAW_WHITE:D++,SCRIPT:D++,SCRIPT_ENDING:D++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(O){var A=e.ENTITIES[O],Y=typeof A=="number"?String.fromCharCode(A):A;e.ENTITIES[O]=Y});for(var Ue in e.STATE)e.STATE[e.STATE[Ue]]=Ue;D=e.STATE;function $e(O,A,Y){O[A]&&O[A](Y)}o($e,"emit");function qe(O,A,Y){O.textNode&&rn(O),$e(O,A,Y)}o(qe,"emitNode");function rn(O){O.textNode=Bt(O.opt,O.textNode),O.textNode&&$e(O,"ontext",O.textNode),O.textNode=""}o(rn,"closeText");function Bt(O,A){return O.trim&&(A=A.trim()),O.normalize&&(A=A.replace(/\s+/g," ")),A}o(Bt,"textopts");function Et(O,A){return rn(O),O.trackPosition&&(A+=`
|
|
21
21
|
Line: `+O.line+`
|
|
22
22
|
Column: `+O.column+`
|
|
@@ -26,7 +26,7 @@ Actual: `+O.attribValue);else{var _e=O.tag,Ft=O.tags[O.tags.length-1]||O;_e.ns==
|
|
|
26
26
|
`?(A.line++,A.column=0):A.column++),A.state){case D.BEGIN:if(A.state=D.BEGIN_WHITESPACE,V==="\uFEFF")continue;fn(A,V);continue;case D.BEGIN_WHITESPACE:fn(A,V);continue;case D.TEXT:if(A.sawRoot&&!A.closedRoot){for(var _e=Y-1;V&&V!=="<"&&V!=="&";)V=Fi(O,Y++),V&&A.trackPosition&&(A.position++,V===`
|
|
27
27
|
`?(A.line++,A.column=0):A.column++);A.textNode+=O.substring(_e,Y-1)}V==="<"&&!(A.sawRoot&&A.closedRoot&&!A.strict)?(A.state=D.OPEN_WAKA,A.startTagPosition=A.position):(!U(V)&&(!A.sawRoot||A.closedRoot)&&Fe(A,"Text data outside of root node."),V==="&"?A.state=D.TEXT_ENTITY:A.textNode+=V);continue;case D.SCRIPT:V==="<"?A.state=D.SCRIPT_ENDING:A.script+=V;continue;case D.SCRIPT_ENDING:V==="/"?A.state=D.CLOSE_TAG:(A.script+="<"+V,A.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(V==="!")A.state=D.SGML_DECL,A.sgmlDecl="";else if(!U(V))if(le(I,V))A.state=D.OPEN_TAG,A.tagName=V;else if(V==="/")A.state=D.CLOSE_TAG,A.tagName="";else if(V==="?")A.state=D.PROC_INST,A.procInstName=A.procInstBody="";else{if(Fe(A,"Unencoded <"),A.startTagPosition+1<A.position){var Ft=A.position-A.startTagPosition;V=new Array(Ft).join(" ")+V}A.textNode+="<"+V,A.state=D.TEXT}continue;case D.SGML_DECL:if(A.sgmlDecl+V==="--"){A.state=D.COMMENT,A.comment="",A.sgmlDecl="";continue}A.doctype&&A.doctype!==!0&&A.sgmlDecl?(A.state=D.DOCTYPE_DTD,A.doctype+="<!"+A.sgmlDecl+V,A.sgmlDecl=""):(A.sgmlDecl+V).toUpperCase()===g?(qe(A,"onopencdata"),A.state=D.CDATA,A.sgmlDecl="",A.cdata=""):(A.sgmlDecl+V).toUpperCase()===m?(A.state=D.DOCTYPE,(A.doctype||A.sawRoot)&&Fe(A,"Inappropriately located doctype declaration"),A.doctype="",A.sgmlDecl=""):V===">"?(qe(A,"onsgmldeclaration",A.sgmlDecl),A.sgmlDecl="",A.state=D.TEXT):(se(V)&&(A.state=D.SGML_DECL_QUOTED),A.sgmlDecl+=V);continue;case D.SGML_DECL_QUOTED:V===A.q&&(A.state=D.SGML_DECL,A.q=""),A.sgmlDecl+=V;continue;case D.DOCTYPE:V===">"?(A.state=D.TEXT,qe(A,"ondoctype",A.doctype),A.doctype=!0):(A.doctype+=V,V==="["?A.state=D.DOCTYPE_DTD:se(V)&&(A.state=D.DOCTYPE_QUOTED,A.q=V));continue;case D.DOCTYPE_QUOTED:A.doctype+=V,V===A.q&&(A.q="",A.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:V==="]"?(A.doctype+=V,A.state=D.DOCTYPE):V==="<"?(A.state=D.OPEN_WAKA,A.startTagPosition=A.position):se(V)?(A.doctype+=V,A.state=D.DOCTYPE_DTD_QUOTED,A.q=V):A.doctype+=V;continue;case D.DOCTYPE_DTD_QUOTED:A.doctype+=V,V===A.q&&(A.state=D.DOCTYPE_DTD,A.q="");continue;case D.COMMENT:V==="-"?A.state=D.COMMENT_ENDING:A.comment+=V;continue;case D.COMMENT_ENDING:V==="-"?(A.state=D.COMMENT_ENDED,A.comment=Bt(A.opt,A.comment),A.comment&&qe(A,"oncomment",A.comment),A.comment=""):(A.comment+="-"+V,A.state=D.COMMENT);continue;case D.COMMENT_ENDED:V!==">"?(Fe(A,"Malformed comment"),A.comment+="--"+V,A.state=D.COMMENT):A.doctype&&A.doctype!==!0?A.state=D.DOCTYPE_DTD:A.state=D.TEXT;continue;case D.CDATA:V==="]"?A.state=D.CDATA_ENDING:A.cdata+=V;continue;case D.CDATA_ENDING:V==="]"?A.state=D.CDATA_ENDING_2:(A.cdata+="]"+V,A.state=D.CDATA);continue;case D.CDATA_ENDING_2:V===">"?(A.cdata&&qe(A,"oncdata",A.cdata),qe(A,"onclosecdata"),A.cdata="",A.state=D.TEXT):V==="]"?A.cdata+="]":(A.cdata+="]]"+V,A.state=D.CDATA);continue;case D.PROC_INST:V==="?"?A.state=D.PROC_INST_ENDING:U(V)?A.state=D.PROC_INST_BODY:A.procInstName+=V;continue;case D.PROC_INST_BODY:if(!A.procInstBody&&U(V))continue;V==="?"?A.state=D.PROC_INST_ENDING:A.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(qe(A,"onprocessinginstruction",{name:A.procInstName,body:A.procInstBody}),A.procInstName=A.procInstBody="",A.state=D.TEXT):(A.procInstBody+="?"+V,A.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:le(F,V)?A.tagName+=V:(vn(A),V===">"?Rn(A):V==="/"?A.state=D.OPEN_TAG_SLASH:(U(V)||Fe(A,"Invalid character in tag name"),A.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(Rn(A,!0),an(A)):(Fe(A,"Forward-slash in opening tag not followed by >"),A.state=D.ATTRIB);continue;case D.ATTRIB:if(U(V))continue;V===">"?Rn(A):V==="/"?A.state=D.OPEN_TAG_SLASH:le(I,V)?(A.attribName=V,A.attribValue="",A.state=D.ATTRIB_NAME):Fe(A,"Invalid attribute name");continue;case D.ATTRIB_NAME:V==="="?A.state=D.ATTRIB_VALUE:V===">"?(Fe(A,"Attribute without value"),A.attribValue=A.attribName,on(A),Rn(A)):U(V)?A.state=D.ATTRIB_NAME_SAW_WHITE:le(F,V)?A.attribName+=V:Fe(A,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(V==="=")A.state=D.ATTRIB_VALUE;else{if(U(V))continue;Fe(A,"Attribute without value"),A.tag.attributes[A.attribName]="",A.attribValue="",qe(A,"onattribute",{name:A.attribName,value:""}),A.attribName="",V===">"?Rn(A):le(I,V)?(A.attribName=V,A.state=D.ATTRIB_NAME):(Fe(A,"Invalid attribute name"),A.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(U(V))continue;se(V)?(A.q=V,A.state=D.ATTRIB_VALUE_QUOTED):(A.opt.unquotedAttributeValues||Et(A,"Unquoted attribute value"),A.state=D.ATTRIB_VALUE_UNQUOTED,A.attribValue=V);continue;case D.ATTRIB_VALUE_QUOTED:if(V!==A.q){V==="&"?A.state=D.ATTRIB_VALUE_ENTITY_Q:A.attribValue+=V;continue}on(A),A.q="",A.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:U(V)?A.state=D.ATTRIB:V===">"?Rn(A):V==="/"?A.state=D.OPEN_TAG_SLASH:le(I,V)?(Fe(A,"No whitespace between attributes"),A.attribName=V,A.attribValue="",A.state=D.ATTRIB_NAME):Fe(A,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!te(V)){V==="&"?A.state=D.ATTRIB_VALUE_ENTITY_U:A.attribValue+=V;continue}on(A),V===">"?Rn(A):A.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(A.tagName)V===">"?an(A):le(F,V)?A.tagName+=V:A.script?(A.script+="</"+A.tagName,A.tagName="",A.state=D.SCRIPT):(U(V)||Fe(A,"Invalid tagname in closing tag"),A.state=D.CLOSE_TAG_SAW_WHITE);else{if(U(V))continue;Le(I,V)?A.script?(A.script+="</"+V,A.state=D.SCRIPT):Fe(A,"Invalid tagname in closing tag."):A.tagName=V}continue;case D.CLOSE_TAG_SAW_WHITE:if(U(V))continue;V===">"?an(A):Fe(A,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var ze,kt;switch(A.state){case D.TEXT_ENTITY:ze=D.TEXT,kt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:ze=D.ATTRIB_VALUE_QUOTED,kt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:ze=D.ATTRIB_VALUE_UNQUOTED,kt="attribValue";break}if(V===";"){var Sn=Oe(A);A.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(Sn)?(A.entity="",A.state=ze,A.write(Sn)):(A[kt]+=Sn,A.entity="",A.state=ze)}else le(A.entity.length?W:j,V)?A.entity+=V:(Fe(A,"Invalid character in entity name"),A[kt]+="&"+A.entity+V,A.entity="",A.state=ze);continue;default:throw new Error(A,"Unknown state: "+A.state)}return A.position>=A.bufferCheckPosition&&i(A),A}o(tt,"write");String.fromCodePoint||(function(){var O=String.fromCharCode,A=Math.floor,Y=o(function(){var V=16384,_e=[],Ft,ze,kt=-1,Sn=arguments.length;if(!Sn)return"";for(var un="";++kt<Sn;){var Ht=Number(arguments[kt]);if(!isFinite(Ht)||Ht<0||Ht>1114111||A(Ht)!==Ht)throw RangeError("Invalid code point: "+Ht);Ht<=65535?_e.push(Ht):(Ht-=65536,Ft=(Ht>>10)+55296,ze=Ht%1024+56320,_e.push(Ft,ze)),(kt+1===Sn||_e.length>V)&&(un+=O.apply(null,_e),_e.length=0)}return un},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y})()})(typeof tm>"u"?tm.sax={}:tm)});var nm=Ze((kee,HD)=>{HD.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var im=Ze((Uee,GD)=>{var $8=nm().isArray;GD.exports={copyOptions:o(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:o(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:o(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:o(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!$8(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:o(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:o(function(e,t){return e+"Fn"in t},"checkFnExists")}});var Kb=Ze((Bee,JD)=>{var B8=BD(),H8={on:o(function(){},"on"),parse:o(function(){},"parse")},ot=im(),xl=nm().isArray,H,Wb=!0,He;function G8(e){return H=ot.copyOptions(e),ot.ensureFlagExists("ignoreDeclaration",H),ot.ensureFlagExists("ignoreInstruction",H),ot.ensureFlagExists("ignoreAttributes",H),ot.ensureFlagExists("ignoreText",H),ot.ensureFlagExists("ignoreComment",H),ot.ensureFlagExists("ignoreCdata",H),ot.ensureFlagExists("ignoreDoctype",H),ot.ensureFlagExists("compact",H),ot.ensureFlagExists("alwaysChildren",H),ot.ensureFlagExists("addParent",H),ot.ensureFlagExists("trim",H),ot.ensureFlagExists("nativeType",H),ot.ensureFlagExists("nativeTypeAttributes",H),ot.ensureFlagExists("sanitize",H),ot.ensureFlagExists("instructionHasAttributes",H),ot.ensureFlagExists("captureSpacesBetweenElements",H),ot.ensureAlwaysArrayExists(H),ot.ensureKeyExists("declaration",H),ot.ensureKeyExists("instruction",H),ot.ensureKeyExists("attributes",H),ot.ensureKeyExists("text",H),ot.ensureKeyExists("comment",H),ot.ensureKeyExists("cdata",H),ot.ensureKeyExists("doctype",H),ot.ensureKeyExists("type",H),ot.ensureKeyExists("name",H),ot.ensureKeyExists("elements",H),ot.ensureKeyExists("parent",H),ot.checkFnExists("doctype",H),ot.checkFnExists("instruction",H),ot.checkFnExists("cdata",H),ot.checkFnExists("comment",H),ot.checkFnExists("text",H),ot.checkFnExists("instructionName",H),ot.checkFnExists("elementName",H),ot.checkFnExists("attributeName",H),ot.checkFnExists("attributeValue",H),ot.checkFnExists("attributes",H),H}o(G8,"validateOptions");function YD(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(YD,"nativeType");function xu(e,t){var n;if(H.compact){if(!He[H[e+"Key"]]&&(xl(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&(He[H[e+"Key"]]=[]),He[H[e+"Key"]]&&!xl(He[H[e+"Key"]])&&(He[H[e+"Key"]]=[He[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,He)),e==="instruction"&&("instructionFn"in H||"instructionNameFn"in H)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in H)t[n]=H.instructionFn(t[n],n,He);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,He)]=i}}xl(He[H[e+"Key"]])?He[H[e+"Key"]].push(t):He[H[e+"Key"]]=t}else{He[H.elementsKey]||(He[H.elementsKey]=[]);var r={};if(r[H.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[H.nameKey]="instructionNameFn"in H?H.instructionNameFn(n,t,He):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,He))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,He)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,He)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=He),He[H.elementsKey].push(r)}}o(xu,"addField");function zD(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,He)),(H.trim||"attributeValueFn"in H||"attributeNameFn"in H||H.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(H.trim&&(e[t]=e[t].trim()),H.nativeTypeAttributes&&(e[t]=YD(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,He)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],He)]=n}}return e}o(zD,"manipulateAttributes");function W8(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||H.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=zD(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;He[H.declarationKey]={},Object.keys(t).length&&(He[H.declarationKey][H.attributesKey]=t),H.addParent&&(He[H.declarationKey][H.parentKey]=He)}else{if(H.ignoreInstruction)return;H.trim&&(e.body=e.body.trim());var r={};H.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][H.attributesKey]=t):r[e.name]=e.body,xu("instruction",r)}}o(W8,"onInstruction");function WD(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=zD(t),"elementNameFn"in H&&(e=H.elementNameFn(e,He)),H.compact){if(n={},!H.ignoreAttributes&&t&&Object.keys(t).length){n[H.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[H.attributesKey][i]=t[i])}!(e in He)&&(xl(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&(He[e]=[]),He[e]&&!xl(He[e])&&(He[e]=[He[e]]),xl(He[e])?He[e].push(n):He[e]=n}else He[H.elementsKey]||(He[H.elementsKey]=[]),n={},n[H.typeKey]="element",n[H.nameKey]=e,!H.ignoreAttributes&&t&&Object.keys(t).length&&(n[H.attributesKey]=t),H.alwaysChildren&&(n[H.elementsKey]=[]),He[H.elementsKey].push(n);n[H.parentKey]=He,He=n}o(WD,"onStartElement");function KD(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=YD(e)),H.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),xu("text",e))}o(KD,"onText");function XD(e){H.ignoreComment||(H.trim&&(e=e.trim()),xu("comment",e))}o(XD,"onComment");function QD(e){var t=He[H.parentKey];H.addParent||delete He[H.parentKey],He=t}o(QD,"onEndElement");function K8(e){H.ignoreCdata||(H.trim&&(e=e.trim()),xu("cdata",e))}o(K8,"onCdata");function X8(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),xu("doctype",e))}o(X8,"onDoctype");function qD(e){e.note=e}o(qD,"onError");JD.exports=function(e,t){var n=Wb?B8.parser(!0,{}):n=new H8.Parser("UTF-8"),i={};if(He=i,H=G8(t),Wb?(n.opt={strictEntities:!0},n.onopentag=WD,n.ontext=KD,n.oncomment=XD,n.onclosetag=QD,n.onerror=qD,n.oncdata=K8,n.ondoctype=X8,n.onprocessinginstruction=W8):(n.on("startElement",WD),n.on("text",KD),n.on("comment",XD),n.on("endElement",QD),n.on("error",qD)),Wb)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[H.elementsKey]){var r=i[H.elementsKey];delete i[H.elementsKey],i[H.elementsKey]=r,delete i.text}return i}});var t0=Ze((Gee,e0)=>{var ZD=im(),Q8=Kb();function q8(e){var t=ZD.copyOptions(e);return ZD.ensureSpacesExists(t),t}o(q8,"validateOptions");e0.exports=function(e,t){var n,i,r,a;return n=q8(t),i=Q8(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var Qb=Ze((Kee,f0)=>{var lt=im(),Y8=nm().isArray,Ei,Ai;function z8(e){var t=lt.copyOptions(e);return lt.ensureFlagExists("ignoreDeclaration",t),lt.ensureFlagExists("ignoreInstruction",t),lt.ensureFlagExists("ignoreAttributes",t),lt.ensureFlagExists("ignoreText",t),lt.ensureFlagExists("ignoreComment",t),lt.ensureFlagExists("ignoreCdata",t),lt.ensureFlagExists("ignoreDoctype",t),lt.ensureFlagExists("compact",t),lt.ensureFlagExists("indentText",t),lt.ensureFlagExists("indentCdata",t),lt.ensureFlagExists("indentAttributes",t),lt.ensureFlagExists("indentInstruction",t),lt.ensureFlagExists("fullTagEmptyElement",t),lt.ensureFlagExists("noQuotesForNativeAttributes",t),lt.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),lt.ensureKeyExists("declaration",t),lt.ensureKeyExists("instruction",t),lt.ensureKeyExists("attributes",t),lt.ensureKeyExists("text",t),lt.ensureKeyExists("comment",t),lt.ensureKeyExists("cdata",t),lt.ensureKeyExists("doctype",t),lt.ensureKeyExists("type",t),lt.ensureKeyExists("name",t),lt.ensureKeyExists("elements",t),lt.checkFnExists("doctype",t),lt.checkFnExists("instruction",t),lt.checkFnExists("cdata",t),lt.checkFnExists("comment",t),lt.checkFnExists("text",t),lt.checkFnExists("instructionName",t),lt.checkFnExists("elementName",t),lt.checkFnExists("attributeName",t),lt.checkFnExists("attributeValue",t),lt.checkFnExists("attributes",t),lt.checkFnExists("fullTagEmptyElement",t),t}o(z8,"validateOptions");function Vo(e,t,n){return(!n&&e.spaces?`
|
|
28
28
|
`:"")+Array(t+1).join(e.spaces)}o(Vo,"writeIndentation");function rm(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Ai,Ei));var i,r,a,s,l=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(s=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',r=""+e[i],r=r.replace(/"/g,"""),a="attributeNameFn"in t?t.attributeNameFn(i,r,Ai,Ei):i,l.push(t.spaces&&t.indentAttributes?Vo(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,Ai,Ei):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Vo(t,n,!1)),l.join("")}o(rm,"writeAttributes");function n0(e,t,n){return Ei=e,Ai="xml",t.ignoreDeclaration?"":"<?xml"+rm(e[t.attributesKey],t,n)+"?>"}o(n0,"writeDeclaration");function i0(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var r="instructionNameFn"in t?t.instructionNameFn(i,e[i],Ai,Ei):i;if(typeof e[i]=="object")return Ei=e,Ai=r,"<?"+r+rm(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,Ai,Ei)),"<?"+r+(a?" "+a:"")+"?>"}o(i0,"writeInstruction");function r0(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Ai,Ei):e)+"-->"}o(r0,"writeComment");function o0(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Ai,Ei):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(o0,"writeCdata");function a0(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Ai,Ei):e)+">"}o(a0,"writeDoctype");function Xb(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&/g,"&"),e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in t?t.textFn(e,Ai,Ei):e)}o(Xb,"writeText");function J8(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}o(J8,"hasContent");function Z8(e,t,n){Ei=e,Ai=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(rm(e[t.attributesKey],t,n));var a=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return a||("fullTagEmptyElementFn"in t?a=t.fullTagEmptyElementFn(e.name,e):a=t.fullTagEmptyElement),a?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(s0(e[t.elementsKey],t,n+1)),Ei=e,Ai=e.name),i.push(t.spaces&&J8(e,t)?`
|
|
29
|
-
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(Z8,"writeElement");function s0(e,t,n,i){return e.reduce(function(r,a){var s=Vo(t,n,i&&!r);switch(a.type){case"element":return r+s+Z8(a,t,n);case"comment":return r+s+r0(a[t.commentKey],t);case"doctype":return r+s+a0(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+o0(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+Xb(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+i0(l,t,n)}},"")}o(s0,"writeElements");function c0(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}o(c0,"hasContentCompact");function eK(e,t,n,i,r){Ei=e,Ai=t;var a="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var s=[];if(t){if(s.push("<"+a),typeof e!="object")return s.push(">"+Xb(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(rm(e[n.attributesKey],n,i));var l=c0(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(l||("fullTagEmptyElementFn"in n?l=n.fullTagEmptyElementFn(t,e):l=n.fullTagEmptyElement),l)s.push(">");else return s.push("/>"),s.join("")}return s.push(l0(e,n,i+1,!1)),Ei=e,Ai=t,t&&s.push((r?Vo(n,i,!1):"")+"</"+a+">"),s.join("")}o(eK,"writeElementCompact");function l0(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=Y8(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(n0(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Vo(t,n,i):"")+i0(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Vo(t,n,i):"")+Xb(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Vo(t,n,i):"")+o0(s[r],t));break;case t.doctypeKey:l.push(Vo(t,n,i)+a0(s[r],t));break;case t.commentKey:l.push(Vo(t,n,i)+r0(s[r],t));break;default:l.push(Vo(t,n,i)+eK(s[r],a,t,n,c0(s[r],t)))}i=i&&!l.length}return l.join("")}o(l0,"writeElementsCompact");f0.exports=function(e,t){t=z8(t);var n=[];return Ei=e,Ai="_root_",t.compact?n.push(l0(e,t,0,!0)):(e[t.declarationKey]&&n.push(n0(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(s0(e[t.elementsKey],t,0,!n.length))),n.join("")}});var p0=Ze((Qee,u0)=>{var tK=Qb();u0.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var n=null;if(typeof e=="string")try{n=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else n=e;return tK(n,t)}});var dc=Ze((qee,d0)=>{var nK=Kb(),iK=t0(),rK=Qb(),oK=p0();d0.exports={xml2js:nK,xml2json:iK,js2xml:rK,json2xml:oK}});var v0=Ze(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.convertEntityTypeAnnotations=Ji.convertPropertyAnnotations=Ji.convertNavigationPropertyAnnotations=Ji.convertEntitySetAnnotations=Ji.convertGenericAnnotations=Ji.convertV2Annotations=void 0;function aK(e,t,n){let i=[];switch(t){case"EntitySet":m0(e,i);break;case"EntityType":T0(e,i);break;case"NavigationProperty":h0(e,n,i);break;case"Property":y0(e,n,i);break;case"Singleton":break;default:break}return g0(e,n,i),i}o(aK,"convertV2Annotations");Ji.convertV2Annotations=aK;function g0(e,t,n){function i(r,a){r&&n.push(a)}if(o(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}o(g0,"convertGenericAnnotations");Ji.convertGenericAnnotations=g0;function m0(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}o(m0,"convertEntitySetAnnotations");Ji.convertEntitySetAnnotations=m0;function h0(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}o(h0,"convertNavigationPropertyAnnotations");Ji.convertNavigationPropertyAnnotations=h0;function y0(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}o(y0,"convertPropertyAnnotations");Ji.convertPropertyAnnotations=y0;function T0(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}o(T0,"convertEntityTypeAnnotations");Ji.convertEntityTypeAnnotations=T0});var x0=Ze(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});fm.parse=void 0;var sK=dc(),Ge=Gb(),Cu=v0(),sm=/^Collection\((.+)\)$/;function cK(e){return e.Type!==null&&e.Type!==void 0}o(cK,"isV4NavProperty");function lK(e){return e.map(t=>t._attributes.Name)}o(lK,"getEntityTypeKeys");function E0(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:Cl(a._attributes.Type).type};if(a._attributes.MaxLength&&(s.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(s.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(s.scale=parseInt(a._attributes.Scale,10)),s.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,Cu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(gc(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(E0,"parseProperties");function fK(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(fK,"parseReferentialConstraint");function uK(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,Ge.ensureArray)(i.Principal.PropertyRef),l=(0,Ge.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,Ge.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(uK,"parseV2ReferentialConstraint");function A0(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(cK(s)){let l=s.Type.match(sm),u=l!==null,p=wo(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:u,targetTypeName:p,referentialConstraint:fK((0,Ge.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,Cu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(gc(`${n}/${s.Name}`,g))}return r},[])}o(A0,"parseNavigationProperties");function pK(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,Ge.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(pK,"parseAssociationSets");function dK(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,Ge.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:uK((0,Ge.ensureArray)(n.ReferentialConstraint),r)}})}o(dK,"parseAssociations");function gK(e,t,n){return e.reduce((i,r)=>{let a=r.Key?lK((0,Ge.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=E0((0,Ge.ensureArray)(r.Property),a,s,t),p=A0((0,Ge.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,Cu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(gc(g.fullyQualifiedName,m)),i.push(g),i},[])}o(gK,"parseEntityTypes");function mK(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=E0((0,Ge.ensureArray)(r.Property),[],a,t),l=A0((0,Ge.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(mK,"parseComplexTypes");function hK(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}o(hK,"parseTypeDefinitions");function yK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Ge.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:wo(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,Cu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(gc(l.fullyQualifiedName,u)),l})}o(yK,"parseEntitySets");function TK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Ge.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:wo(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,Cu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(gc(l.fullyQualifiedName,u)),l})}o(TK,"parseSingletons");function b0(e,t,n){return e.map(i=>{let r=(0,Ge.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>Cl(u._attributes.Type).type).join(","):s=a?Cl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Cl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=Cl(u._attributes.Type),m={_type:"ActionParameter",fullyQualifiedName:`${l}/${u._attributes.Name}`,name:`${u._attributes.Name}`,type:g,isCollection:p};return u._attributes.MaxLength&&(m.maxLength=parseInt(u._attributes.MaxLength,10)),u._attributes.Precision&&(m.precision=parseInt(u._attributes.Precision,10)),u._attributes.Scale&&(m.scale=parseInt(u._attributes.Scale,10)),m.nullable=u._attributes.Nullable!=="false",m}),returnType:i.ReturnType?Cl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(sm)!==null:!1}})}o(b0,"parseActions");function vK(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,Ge.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(sm)!==null:!1}})}o(vK,"parseV2FunctionImport");function S0(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:wo(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:wo(r)}})}o(S0,"parseActionImports");function bK(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let u=Object.keys(a).find(g=>g!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=am(s,p,n,!1):u&&(l.value=P0({[u]:a[u]},p,n)),i.Annotation){let g=lm((0,Ge.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(gc(p,g))}}return l})}o(bK,"parsePropertyValues");function cm(e,t,n){let i=lm((0,Ge.ensureArray)(e.Annotation),t,n),r={type:e._attributes?wo(e._attributes.Type):void 0,propertyValues:bK((0,Ge.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(cm,"parseRecord");function ha(e,t){return e[t]!=null}o(ha,"isExpressionOfType");function om(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}o(om,"parseModelPath");function Yb(e,t,n){if(ha(e,"Record")){let i=(0,Ge.ensureArray)(e.Record).map((r,a)=>cm(r,t+"/"+a,n));return i.type="Record",i}else if(ha(e,"PropertyPath")){let i=(0,Ge.ensureArray)(e.PropertyPath).map(r=>om(r,"PropertyPath"));return i.type="PropertyPath",i}else if(ha(e,"NavigationPropertyPath")){let i=(0,Ge.ensureArray)(e.NavigationPropertyPath).map(r=>om(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(ha(e,"String")){let i=(0,Ge.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(ha(e,"AnnotationPath")){let i=(0,Ge.ensureArray)(e.AnnotationPath).map(r=>om(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(ha(e,"Path")){let i=(0,Ge.ensureArray)(e.Path).map(r=>om(r,"Path"));return i.type="Path",i}else if(ha(e,"If")){let i=(0,Ge.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(Yb,"parseCollection");function An(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>am({[i]:r},"",[],!0))):n.push(am({[i]:e[i]},"",[],!0))}),n}o(An,"parseChildren");function P0(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:Yb(e.Collection,t,n)};case"Record":return{type:"Record",Record:cm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:An(e.Apply),$Function:An(e.Function)};case"And":return{type:"And",$And:An(e.And)};case"Or":return{type:"Or",$Or:An(e.Or)};case"Eq":return{type:"Eq",$Eq:An(e.Eq)};case"Gt":return{type:"Gt",$Gt:An(e.Gt)};case"Ge":return{type:"Ge",$Ge:An(e.Ge)};case"Lt":return{type:"Lt",$Lt:An(e.Lt)};case"Le":return{type:"Le",$Le:An(e.Le)};case"If":return{type:"If",$If:An(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(P0,"parseInlineExpression");function am(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:An(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return i?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[a]._text};case"Collection":return{type:"Collection",Collection:Yb(e.Collection,t,n)};case"Record":return{type:"Record",Record:cm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:An(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:An(e.And)};case"Ne":return{type:"Ne",$Ne:An(e.Ne)};case"Not":return{type:"Not",$Not:An(e.Not)[0]};case"Or":return{type:"Or",$Or:An(e.Or)};case"Eq":return{type:"Eq",$Eq:An(e.Eq)};case"If":return{type:"If",$If:An(e.If)};case"Gt":return{type:"Gt",$Gt:An(e.Gt)};case"Ge":return{type:"Ge",$Ge:An(e.Ge)};case"Lt":return{type:"Lt",$Lt:An(e.Lt)};case"Le":return{type:"Le",$Le:An(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(am,"parseExpression");function SK(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:wo(i),qualifier:r},l=`${t}@${wo(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=P0(a,l,n)),e.Annotation){let p=lm((0,Ge.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return ha(e,"Record")?s.record=cm(e.Record,l,n):ha(e,"Collection")?s.collection=Yb(e.Collection,l,n):u.length===1?s.value=am({[u[0]]:e[u[0]]},l,n,!1):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(SK,"parseAnnotation");function lm(e,t,n){return e.map(i=>SK(i,t,n))}o(lm,"parseAnnotations");function gc(e,t){return{target:e,annotations:t}}o(gc,"createAnnotationList");function EK(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(gc(wo(n._attributes.Target),lm((0,Ge.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(EK,"parseAnnotationLists");function AK(e,t,n){let i=e._attributes.Namespace,r=[],a=gK((0,Ge.ensureArray)(e.EntityType),r,i),s=mK((0,Ge.ensureArray)(e.ComplexType),r,i),l=hK((0,Ge.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},v=[],S=[];if(e.EntityContainer)if(u=yK((0,Ge.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=TK((0,Ge.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=pK((0,Ge.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")v=v.concat(vK((0,Ge.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")S=S.concat(S0((0,Ge.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),S=S.concat(S0((0,Ge.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(v=v.concat(b0((0,Ge.ensureArray)(e.Action),i,!1)),v=v.concat(b0((0,Ge.ensureArray)(e.Function),i,!0)));let b=dK((0,Ge.ensureArray)(e.Association),i);EK((0,Ge.ensureArray)(e.Annotations),r);let I={};return I[n]=r,{associations:b,associationSets:g,annotations:I,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:S,entityTypes:a}}o(AK,"parseSchema");function PK(e){return e.reduce((t,n)=>((0,Ge.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(PK,"parseReferences");var qb={};function Cl(e){let t=e.match(sm),n=t?t[1]:e,i=wo(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(Cl,"unaliasType");function wo(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let u=e.substring(r,a);i.push((t=qb[u])!==null&&t!==void 0?t:u),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(wo,"unalias");function xK(e){let t=e.reduce((S,b)=>S.concat(b.associations),[]),n=e.reduce((S,b)=>S.concat(b.associationSets),[]),i=e.reduce((S,b)=>S.concat(b.entitySets),[]),r=e.reduce((S,b)=>S.concat(b.singletons),[]),a=e.reduce((S,b)=>S.concat(b.entityTypes),[]),s=e.reduce((S,b)=>S.concat(b.actions),[]),l=e.reduce((S,b)=>S.concat(b.actionImports),[]),u=e.reduce((S,b)=>S.concat(b.complexTypes),[]),p=e.reduce((S,b)=>S.concat(b.typeDefinitions),[]),g={};e.forEach(S=>{g=Object.assign(g,S.annotations)});let m,v;return e.forEach(S=>{S.entityContainer&&Object.keys(S.entityContainer).length>0&&(m=S.entityContainer,v=S.namespace)}),i.forEach(S=>{let b=a.find(I=>I.fullyQualifiedName===S.entityTypeName);b==null||b.navigationProperties.forEach(I=>{let F=I,j=n.find(W=>W.association===F.relationship);if(j){let W=j.associationEnd.find(U=>U.entitySet!==S.fullyQualifiedName);W&&(S.navigationPropertyBinding[I.name]=W.entitySet)}})}),a.forEach(S=>{S.navigationProperties.forEach(b=>{let I=b,F=t.find(j=>j.fullyQualifiedName===I.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===S.fullyQualifiedName?I.referentialConstraint=F.referentialConstraints:I.referentialConstraint=F.referentialConstraints.map(j=>({sourceTypeName:j.targetTypeName,sourceProperty:j.targetProperty,targetTypeName:j.sourceTypeName,targetProperty:j.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:v,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(xK,"mergeSchemas");function CK(e,t){qb=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{qb[n._attributes.Alias]=n._attributes.Namespace})}o(CK,"createAliasMap");function IK(e,t="serviceFile"){let n=(0,sK.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,Ge.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=PK((0,Ge.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));CK(a,r);let s=r.map(u=>AK(u,i,t));return new Ge.RawMetadataInstance(t,i,xK(s),a)}o(IK,"parse");fm.parse=IK});var C0=Ze(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.parse=Il.merge=void 0;var OK=$D();Object.defineProperty(Il,"merge",{enumerable:!0,get:o(function(){return OK.merge},"get")});var RK=x0();Object.defineProperty(Il,"parse",{enumerable:!0,get:o(function(){return RK.parse},"get")})});var U0=Ze(()=>{var j0;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(u,p){return function(g,m){Object.defineProperty(u,g,{configurable:!0,writable:!0,value:m}),p&&p(g,m)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!l&&!u,g={create:l?function(){return tc(Object.create(null))}:u?function(){return tc({__proto__:null})}:function(){return tc({})},has:p?function(k,B){return i.call(k,B)}:function(k,B){return B in k},get:p?function(k,B){return i.call(k,B)?k[B]:void 0}:function(k,B){return k[B]}},m=Object.getPrototypeOf(Function),v=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Zf(),S=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:eu(),b=typeof WeakMap=="function"?WeakMap:tu(),I=r?Symbol.for("@reflect-metadata:registry"):void 0,F=Ki(),j=Jf(F);function W(k,B,q,ce){if(Oe(q)){if(!Ft(k))throw new TypeError;if(!kt(B))throw new TypeError;return rn(k,B)}else{if(!Ft(k))throw new TypeError;if(!tt(B))throw new TypeError;if(!tt(ce)&&!Oe(ce)&&!fn(ce))throw new TypeError;return fn(ce)&&(ce=void 0),q=_e(q),Bt(k,B,q,ce)}}o(W,"decorate"),t("decorate",W);function U(k,B){function q(ce,Ne){if(!tt(ce))throw new TypeError;if(!Oe(Ne)&&!Sn(Ne))throw new TypeError;bn(k,B,ce,Ne)}return o(q,"decorator"),q}o(U,"metadata"),t("metadata",U);function se(k,B,q,ce){if(!tt(q))throw new TypeError;return Oe(ce)||(ce=_e(ce)),bn(k,B,q,ce)}o(se,"defineMetadata"),t("defineMetadata",se);function te(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),Et(k,B,q)}o(te,"hasMetadata"),t("hasMetadata",te);function le(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),Yt(k,B,q)}o(le,"hasOwnMetadata"),t("hasOwnMetadata",le);function Le(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),Fe(k,B,q)}o(Le,"getMetadata"),t("getMetadata",Le);function D(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),vn(k,B,q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function Ue(k,B){if(!tt(k))throw new TypeError;return Oe(B)||(B=_e(B)),on(k,B)}o(Ue,"getMetadataKeys"),t("getMetadataKeys",Ue);function $e(k,B){if(!tt(k))throw new TypeError;return Oe(B)||(B=_e(B)),Rn(k,B)}o($e,"getOwnMetadataKeys"),t("getOwnMetadataKeys",$e);function qe(k,B,q){if(!tt(B))throw new TypeError;if(Oe(q)||(q=_e(q)),!tt(B))throw new TypeError;Oe(q)||(q=_e(q));var ce=_r(B,q,!1);return Oe(ce)?!1:ce.OrdinaryDeleteMetadata(k,B,q)}o(qe,"deleteMetadata"),t("deleteMetadata",qe);function rn(k,B){for(var q=k.length-1;q>=0;--q){var ce=k[q],Ne=ce(B);if(!Oe(Ne)&&!fn(Ne)){if(!kt(Ne))throw new TypeError;B=Ne}}return B}o(rn,"DecorateConstructor");function Bt(k,B,q,ce){for(var Ne=k.length-1;Ne>=0;--Ne){var yn=k[Ne],Ln=yn(B,q,ce);if(!Oe(Ln)&&!fn(Ln)){if(!tt(Ln))throw new TypeError;ce=Ln}}return ce}o(Bt,"DecorateProperty");function Et(k,B,q){var ce=Yt(k,B,q);if(ce)return!0;var Ne=Gt(B);return fn(Ne)?!1:Et(k,Ne,q)}o(Et,"OrdinaryHasMetadata");function Yt(k,B,q){var ce=_r(B,q,!1);return Oe(ce)?!1:Y(ce.OrdinaryHasOwnMetadata(k,B,q))}o(Yt,"OrdinaryHasOwnMetadata");function Fe(k,B,q){var ce=Yt(k,B,q);if(ce)return vn(k,B,q);var Ne=Gt(B);if(!fn(Ne))return Fe(k,Ne,q)}o(Fe,"OrdinaryGetMetadata");function vn(k,B,q){var ce=_r(B,q,!1);if(!Oe(ce))return ce.OrdinaryGetOwnMetadata(k,B,q)}o(vn,"OrdinaryGetOwnMetadata");function bn(k,B,q,ce){var Ne=_r(q,ce,!0);Ne.OrdinaryDefineOwnMetadata(k,B,q,ce)}o(bn,"OrdinaryDefineOwnMetadata");function on(k,B){var q=Rn(k,B),ce=Gt(k);if(ce===null)return q;var Ne=on(ce,B);if(Ne.length<=0)return q;if(q.length<=0)return Ne;for(var yn=new S,Ln=[],it=0,me=q;it<me.length;it++){var ve=me[it],Pe=yn.has(ve);Pe||(yn.add(ve),Ln.push(ve))}for(var Ie=0,at=Ne;Ie<at.length;Ie++){var ve=at[Ie],Pe=yn.has(ve);Pe||(yn.add(ve),Ln.push(ve))}return Ln}o(on,"OrdinaryMetadataKeys");function Rn(k,B){var q=_r(k,B,!1);return q?q.OrdinaryOwnMetadataKeys(k,B):[]}o(Rn,"OrdinaryOwnMetadataKeys");function an(k){if(k===null)return 1;switch(typeof k){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return k===null?1:6;default:return 6}}o(an,"Type");function Oe(k){return k===void 0}o(Oe,"IsUndefined");function fn(k){return k===null}o(fn,"IsNull");function Fi(k){return typeof k=="symbol"}o(Fi,"IsSymbol");function tt(k){return typeof k=="object"?k!==null:typeof k=="function"}o(tt,"IsObject");function O(k,B){switch(an(k)){case 0:return k;case 1:return k;case 2:return k;case 3:return k;case 4:return k;case 5:return k}var q=B===3?"string":B===5?"number":"default",ce=Ht(k,a);if(ce!==void 0){var Ne=ce.call(k,q);if(tt(Ne))throw new TypeError;return Ne}return A(k,q==="default"?"number":q)}o(O,"ToPrimitive");function A(k,B){if(B==="string"){var q=k.toString;if(ze(q)){var ce=q.call(k);if(!tt(ce))return ce}var Ne=k.valueOf;if(ze(Ne)){var ce=Ne.call(k);if(!tt(ce))return ce}}else{var Ne=k.valueOf;if(ze(Ne)){var ce=Ne.call(k);if(!tt(ce))return ce}var yn=k.toString;if(ze(yn)){var ce=yn.call(k);if(!tt(ce))return ce}}throw new TypeError}o(A,"OrdinaryToPrimitive");function Y(k){return!!k}o(Y,"ToBoolean");function V(k){return""+k}o(V,"ToString");function _e(k){var B=O(k,3);return Fi(B)?B:V(B)}o(_e,"ToPropertyKey");function Ft(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Ft,"IsArray");function ze(k){return typeof k=="function"}o(ze,"IsCallable");function kt(k){return typeof k=="function"}o(kt,"IsConstructor");function Sn(k){switch(an(k)){case 3:return!0;case 4:return!0;default:return!1}}o(Sn,"IsPropertyKey");function un(k,B){return k===B||k!==k&&B!==B}o(un,"SameValueZero");function Ht(k,B){var q=k[B];if(q!=null){if(!ze(q))throw new TypeError;return q}}o(Ht,"GetMethod");function ii(k){var B=Ht(k,s);if(!ze(B))throw new TypeError;var q=B.call(k);if(!tt(q))throw new TypeError;return q}o(ii,"GetIterator");function lr(k){return k.value}o(lr,"IteratorValue");function hn(k){var B=k.next();return B.done?!1:B}o(hn,"IteratorStep");function Ti(k){var B=k.return;B&&B.call(k)}o(Ti,"IteratorClose");function Gt(k){var B=Object.getPrototypeOf(k);if(typeof k!="function"||k===m||B!==m)return B;var q=k.prototype,ce=q&&Object.getPrototypeOf(q);if(ce==null||ce===Object.prototype)return B;var Ne=ce.constructor;return typeof Ne!="function"||Ne===k?B:Ne}o(Gt,"OrdinaryGetPrototypeOf");function ia(){var k;!Oe(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=ec(n.Reflect));var B,q,ce,Ne=new b,yn={registerProvider:Ln,getProvider:me,setProvider:Pe};return yn;function Ln(Ie){if(!Object.isExtensible(yn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Ie:break;case Oe(B):B=Ie;break;case B===Ie:break;case Oe(q):q=Ie;break;case q===Ie:break;default:ce===void 0&&(ce=new S),ce.add(Ie);break}}function it(Ie,at){if(!Oe(B)){if(B.isProviderFor(Ie,at))return B;if(!Oe(q)){if(q.isProviderFor(Ie,at))return B;if(!Oe(ce))for(var Wt=ii(ce);;){var pn=hn(Wt);if(!pn)return;var fr=lr(pn);if(fr.isProviderFor(Ie,at))return Ti(Wt),fr}}}if(!Oe(k)&&k.isProviderFor(Ie,at))return k}function me(Ie,at){var Wt=Ne.get(Ie),pn;return Oe(Wt)||(pn=Wt.get(at)),Oe(pn)&&(pn=it(Ie,at),Oe(pn)||(Oe(Wt)&&(Wt=new v,Ne.set(Ie,Wt)),Wt.set(at,pn))),pn}function ve(Ie){if(Oe(Ie))throw new TypeError;return B===Ie||q===Ie||!Oe(ce)&&ce.has(Ie)}function Pe(Ie,at,Wt){if(!ve(Wt))throw new Error("Metadata provider not registered.");var pn=me(Ie,at);if(pn!==Wt){if(!Oe(pn))return!1;var fr=Ne.get(Ie);Oe(fr)&&(fr=new v,Ne.set(Ie,fr)),fr.set(at,Wt)}return!0}}o(ia,"CreateMetadataRegistry");function Ki(){var k;return!Oe(I)&&tt(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[I]),Oe(k)&&(k=ia()),!Oe(I)&&tt(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Ki,"GetOrCreateMetadataRegistry");function Jf(k){var B=new b,q={isProviderFor:o(function(ve,Pe){var Ie=B.get(ve);return Oe(Ie)?!1:Ie.has(Pe)},"isProviderFor"),OrdinaryDefineOwnMetadata:Ln,OrdinaryHasOwnMetadata:Ne,OrdinaryGetOwnMetadata:yn,OrdinaryOwnMetadataKeys:it,OrdinaryDeleteMetadata:me};return F.registerProvider(q),q;function ce(ve,Pe,Ie){var at=B.get(ve),Wt=!1;if(Oe(at)){if(!Ie)return;at=new v,B.set(ve,at),Wt=!0}var pn=at.get(Pe);if(Oe(pn)){if(!Ie)return;if(pn=new v,at.set(Pe,pn),!k.setProvider(ve,Pe,q))throw at.delete(Pe),Wt&&B.delete(ve),new Error("Wrong provider for target.")}return pn}o(ce,"GetOrCreateMetadataMap");function Ne(ve,Pe,Ie){var at=ce(Pe,Ie,!1);return Oe(at)?!1:Y(at.has(ve))}o(Ne,"OrdinaryHasOwnMetadata");function yn(ve,Pe,Ie){var at=ce(Pe,Ie,!1);if(!Oe(at))return at.get(ve)}o(yn,"OrdinaryGetOwnMetadata");function Ln(ve,Pe,Ie,at){var Wt=ce(Ie,at,!0);Wt.set(ve,Pe)}o(Ln,"OrdinaryDefineOwnMetadata");function it(ve,Pe){var Ie=[],at=ce(ve,Pe,!1);if(Oe(at))return Ie;for(var Wt=at.keys(),pn=ii(Wt),fr=0;;){var qd=hn(pn);if(!qd)return Ie.length=fr,Ie;var zT=lr(qd);try{Ie[fr]=zT}catch(nu){try{Ti(pn)}finally{throw nu}}fr++}}o(it,"OrdinaryOwnMetadataKeys");function me(ve,Pe,Ie){var at=ce(Pe,Ie,!1);if(Oe(at)||!at.delete(ve))return!1;if(at.size===0){var Wt=B.get(Pe);Oe(Wt)||(Wt.delete(Ie),Wt.size===0&&B.delete(Wt))}return!0}o(me,"OrdinaryDeleteMetadata")}o(Jf,"CreateMetadataProvider");function ec(k){var B=k.defineMetadata,q=k.hasOwnMetadata,ce=k.getOwnMetadata,Ne=k.getOwnMetadataKeys,yn=k.deleteMetadata,Ln=new b,it={isProviderFor:o(function(me,ve){var Pe=Ln.get(me);return!Oe(Pe)&&Pe.has(ve)?!0:Ne(me,ve).length?(Oe(Pe)&&(Pe=new S,Ln.set(me,Pe)),Pe.add(ve),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Ne,OrdinaryDeleteMetadata:yn};return it}o(ec,"CreateFallbackProvider");function _r(k,B,q){var ce=F.getProvider(k,B);if(!Oe(ce))return ce;if(q){if(F.setProvider(k,B,j))return j;throw new Error("Illegal state.")}}o(_r,"GetMetadataProvider");function Zf(){var k={},B=[],q=(function(){function it(me,ve,Pe){this._index=0,this._keys=me,this._values=ve,this._selector=Pe}return o(it,"MapIterator"),it.prototype["@@iterator"]=function(){return this},it.prototype[s]=function(){return this},it.prototype.next=function(){var me=this._index;if(me>=0&&me<this._keys.length){var ve=this._selector(this._keys[me],this._values[me]);return me+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:ve,done:!1}}return{value:void 0,done:!0}},it.prototype.throw=function(me){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),me},it.prototype.return=function(me){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:me,done:!0}},it})(),ce=(function(){function it(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(it,"Map"),Object.defineProperty(it.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),it.prototype.has=function(me){return this._find(me,!1)>=0},it.prototype.get=function(me){var ve=this._find(me,!1);return ve>=0?this._values[ve]:void 0},it.prototype.set=function(me,ve){var Pe=this._find(me,!0);return this._values[Pe]=ve,this},it.prototype.delete=function(me){var ve=this._find(me,!1);if(ve>=0){for(var Pe=this._keys.length,Ie=ve+1;Ie<Pe;Ie++)this._keys[Ie-1]=this._keys[Ie],this._values[Ie-1]=this._values[Ie];return this._keys.length--,this._values.length--,un(me,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},it.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},it.prototype.keys=function(){return new q(this._keys,this._values,Ne)},it.prototype.values=function(){return new q(this._keys,this._values,yn)},it.prototype.entries=function(){return new q(this._keys,this._values,Ln)},it.prototype["@@iterator"]=function(){return this.entries()},it.prototype[s]=function(){return this.entries()},it.prototype._find=function(me,ve){if(!un(this._cacheKey,me)){this._cacheIndex=-1;for(var Pe=0;Pe<this._keys.length;Pe++)if(un(this._keys[Pe],me)){this._cacheIndex=Pe;break}}return this._cacheIndex<0&&ve&&(this._cacheIndex=this._keys.length,this._keys.push(me),this._values.push(void 0)),this._cacheIndex},it})();return ce;function Ne(it,me){return it}function yn(it,me){return me}function Ln(it,me){return[it,me]}}o(Zf,"CreateMapPolyfill");function eu(){var k=(function(){function B(){this._map=new v}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(q){return this._map.has(q)},B.prototype.add=function(q){return this._map.set(q,q),this},B.prototype.delete=function(q){return this._map.delete(q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B})();return k}o(eu,"CreateSetPolyfill");function tu(){var k=16,B=g.create(),q=ce();return(function(){function me(){this._key=ce()}return o(me,"WeakMap"),me.prototype.has=function(ve){var Pe=Ne(ve,!1);return Pe!==void 0?g.has(Pe,this._key):!1},me.prototype.get=function(ve){var Pe=Ne(ve,!1);return Pe!==void 0?g.get(Pe,this._key):void 0},me.prototype.set=function(ve,Pe){var Ie=Ne(ve,!0);return Ie[this._key]=Pe,this},me.prototype.delete=function(ve){var Pe=Ne(ve,!1);return Pe!==void 0?delete Pe[this._key]:!1},me.prototype.clear=function(){this._key=ce()},me})();function ce(){var me;do me="@@WeakMap@@"+it();while(g.has(B,me));return B[me]=!0,me}function Ne(me,ve){if(!i.call(me,q)){if(!ve)return;Object.defineProperty(me,q,{value:g.create()})}return me[q]}function yn(me,ve){for(var Pe=0;Pe<ve;++Pe)me[Pe]=Math.random()*255|0;return me}function Ln(me){if(typeof Uint8Array=="function"){var ve=new Uint8Array(me);return typeof crypto<"u"?crypto.getRandomValues(ve):typeof msCrypto<"u"?msCrypto.getRandomValues(ve):yn(ve,me),ve}return yn(new Array(me),me)}function it(){var me=Ln(k);me[6]=me[6]&79|64,me[8]=me[8]&191|128;for(var ve="",Pe=0;Pe<k;++Pe){var Ie=me[Pe];(Pe===4||Pe===6||Pe===8)&&(ve+="-"),Ie<16&&(ve+="0"),ve+=Ie.toString(16).toLowerCase()}return ve}}o(tu,"CreateWeakMapPolyfill");function tc(k){return k.__=void 0,delete k.__,k}o(tc,"MakeDictionary")})})(j0||(j0={}))});var K0=Ze((yte,W0)=>{var nX=0,G0="changeUtils: ";function iX(){return"id-"+new Date().valueOf()+"-"+nX++}o(iX,"uid");function rX(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(rX,"appendComponentToReference");function oX(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return rX(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(oX,"getFlexReference");function aX(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}o(aX,"getAppVersion");function sX(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(sX,"getProjectId");function H0(e){return JSON.stringify({fileName:e.id||iX().replace(/-/g,"_")+"_"+e.type,fileType:"change",changeType:e.type,moduleName:"",reference:e.reference,packageName:"",content:e.content||{},selector:{id:e.controlId,idIsLocal:!1,type:e.controlType},layer:e.isCustomer?"CUSTOMER_BASE":"VENDOR",texts:{},namespace:"apps/"+e.reference.replace(".Component","")+"/changes/",projectId:e.projectId,creation:e.creation||new Date().valueOf(),originalLanguage:"",support:{generator:G0+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}o(H0,"createString");W0.exports={parse:o(function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(G0,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:o(function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=oX(t),e.appVersion=aX(t),e.projectId=sX(t,e.reference),H0(e)},"createChangeString"),toString:o(function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return H0(e)},"toString")}});var Q0=Ze((vte,X0)=>{X0.exports={change:K0()}});var q_=Ze(qr=>{"use strict";var e3=/[|\\{}()[\]^$+*?.]/g,t3=Object.prototype.hasOwnProperty,vE=o(function(e,t){return t3.apply(e,[t])},"hasOwn");qr.escapeRegExpChars=function(e){return e?String(e).replace(e3,"\\$&"):""};var n3={"&":"&","<":"<",">":">",'"':""","'":"'"},i3=/[&<>'"]/g;function r3(e){return n3[e]||e}o(r3,"encode_char");var o3=`var _ENCODE_HTML_RULES = {
|
|
29
|
+
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(Z8,"writeElement");function s0(e,t,n,i){return e.reduce(function(r,a){var s=Vo(t,n,i&&!r);switch(a.type){case"element":return r+s+Z8(a,t,n);case"comment":return r+s+r0(a[t.commentKey],t);case"doctype":return r+s+a0(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+o0(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+Xb(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+i0(l,t,n)}},"")}o(s0,"writeElements");function c0(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}o(c0,"hasContentCompact");function eK(e,t,n,i,r){Ei=e,Ai=t;var a="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var s=[];if(t){if(s.push("<"+a),typeof e!="object")return s.push(">"+Xb(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(rm(e[n.attributesKey],n,i));var l=c0(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(l||("fullTagEmptyElementFn"in n?l=n.fullTagEmptyElementFn(t,e):l=n.fullTagEmptyElement),l)s.push(">");else return s.push("/>"),s.join("")}return s.push(l0(e,n,i+1,!1)),Ei=e,Ai=t,t&&s.push((r?Vo(n,i,!1):"")+"</"+a+">"),s.join("")}o(eK,"writeElementCompact");function l0(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=Y8(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(n0(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Vo(t,n,i):"")+i0(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Vo(t,n,i):"")+Xb(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Vo(t,n,i):"")+o0(s[r],t));break;case t.doctypeKey:l.push(Vo(t,n,i)+a0(s[r],t));break;case t.commentKey:l.push(Vo(t,n,i)+r0(s[r],t));break;default:l.push(Vo(t,n,i)+eK(s[r],a,t,n,c0(s[r],t)))}i=i&&!l.length}return l.join("")}o(l0,"writeElementsCompact");f0.exports=function(e,t){t=z8(t);var n=[];return Ei=e,Ai="_root_",t.compact?n.push(l0(e,t,0,!0)):(e[t.declarationKey]&&n.push(n0(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(s0(e[t.elementsKey],t,0,!n.length))),n.join("")}});var p0=Ze((Qee,u0)=>{var tK=Qb();u0.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var n=null;if(typeof e=="string")try{n=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else n=e;return tK(n,t)}});var dc=Ze((qee,d0)=>{var nK=Kb(),iK=t0(),rK=Qb(),oK=p0();d0.exports={xml2js:nK,xml2json:iK,js2xml:rK,json2xml:oK}});var v0=Ze(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.convertEntityTypeAnnotations=Ji.convertPropertyAnnotations=Ji.convertNavigationPropertyAnnotations=Ji.convertEntitySetAnnotations=Ji.convertGenericAnnotations=Ji.convertV2Annotations=void 0;function aK(e,t,n){let i=[];switch(t){case"EntitySet":m0(e,i);break;case"EntityType":T0(e,i);break;case"NavigationProperty":h0(e,n,i);break;case"Property":y0(e,n,i);break;case"Singleton":break;default:break}return g0(e,n,i),i}o(aK,"convertV2Annotations");Ji.convertV2Annotations=aK;function g0(e,t,n){function i(r,a){r&&n.push(a)}if(o(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}o(g0,"convertGenericAnnotations");Ji.convertGenericAnnotations=g0;function m0(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}o(m0,"convertEntitySetAnnotations");Ji.convertEntitySetAnnotations=m0;function h0(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}o(h0,"convertNavigationPropertyAnnotations");Ji.convertNavigationPropertyAnnotations=h0;function y0(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}o(y0,"convertPropertyAnnotations");Ji.convertPropertyAnnotations=y0;function T0(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}o(T0,"convertEntityTypeAnnotations");Ji.convertEntityTypeAnnotations=T0});var x0=Ze(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});fm.parse=void 0;var sK=dc(),Ge=Gb(),Cu=v0(),sm=/^Collection\((.+)\)$/;function cK(e){return e.Type!==null&&e.Type!==void 0}o(cK,"isV4NavProperty");function lK(e){return e.map(t=>t._attributes.Name)}o(lK,"getEntityTypeKeys");function E0(e,t,n,i){return e.reduce((r,a)=>{var s,l,u,p;let g={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:Cl(a._attributes.Type).type};if(a._attributes.MaxLength&&(g.maxLength=((l=(s=a._attributes.MaxLength)===null||s===void 0?void 0:s.toLowerCase)===null||l===void 0?void 0:l.call(s))==="max"?5e3:parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(g.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(((p=(u=a._attributes.Scale)===null||u===void 0?void 0:u.toLowerCase)===null||p===void 0?void 0:p.call(u))==="variable"?g.scale="variable":g.scale=parseInt(a._attributes.Scale,10)),g.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(g.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":g.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":g.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":g.defaultValue=a._attributes.DefaultValue==="true";break;default:g.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(g),t.indexOf(g.name)!==-1&&r.entityKeys.push(g);let m=(0,Cu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return m.length>0&&i.push(gc(g.fullyQualifiedName,m)),r},{entityProperties:[],entityKeys:[]})}o(E0,"parseProperties");function fK(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(fK,"parseReferentialConstraint");function uK(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,Ge.ensureArray)(i.Principal.PropertyRef),l=(0,Ge.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,Ge.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(uK,"parseV2ReferentialConstraint");function A0(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(cK(s)){let l=s.Type.match(sm),u=l!==null,p=wo(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:u,targetTypeName:p,referentialConstraint:fK((0,Ge.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,Cu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(gc(`${n}/${s.Name}`,g))}return r},[])}o(A0,"parseNavigationProperties");function pK(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,Ge.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(pK,"parseAssociationSets");function dK(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,Ge.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:uK((0,Ge.ensureArray)(n.ReferentialConstraint),r)}})}o(dK,"parseAssociations");function gK(e,t,n){return e.reduce((i,r)=>{let a=r.Key?lK((0,Ge.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=E0((0,Ge.ensureArray)(r.Property),a,s,t),p=A0((0,Ge.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,Cu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(gc(g.fullyQualifiedName,m)),i.push(g),i},[])}o(gK,"parseEntityTypes");function mK(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=E0((0,Ge.ensureArray)(r.Property),[],a,t),l=A0((0,Ge.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(mK,"parseComplexTypes");function hK(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}o(hK,"parseTypeDefinitions");function yK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Ge.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:wo(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,Cu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(gc(l.fullyQualifiedName,u)),l})}o(yK,"parseEntitySets");function TK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Ge.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:wo(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,Cu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(gc(l.fullyQualifiedName,u)),l})}o(TK,"parseSingletons");function b0(e,t,n){return e.map(i=>{let r=(0,Ge.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>Cl(u._attributes.Type).type).join(","):s=a?Cl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Cl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{var p,g,m,v;let{isCollection:S,type:b}=Cl(u._attributes.Type),I={_type:"ActionParameter",fullyQualifiedName:`${l}/${u._attributes.Name}`,name:`${u._attributes.Name}`,type:b,isCollection:S};return u._attributes.MaxLength&&(I.maxLength=((g=(p=u._attributes.MaxLength)===null||p===void 0?void 0:p.toLowerCase)===null||g===void 0?void 0:g.call(p))==="max"?5e3:parseInt(u._attributes.MaxLength,10)),u._attributes.Precision&&(I.precision=parseInt(u._attributes.Precision,10)),u._attributes.Scale&&(((v=(m=u._attributes.Scale)===null||m===void 0?void 0:m.toLowerCase)===null||v===void 0?void 0:v.call(m))==="variable"?I.scale="variable":I.scale=parseInt(u._attributes.Scale,10)),I.nullable=u._attributes.Nullable!=="false",I}),returnType:i.ReturnType?Cl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(sm)!==null:!1}})}o(b0,"parseActions");function vK(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,Ge.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(sm)!==null:!1}})}o(vK,"parseV2FunctionImport");function S0(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:wo(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:wo(r)}})}o(S0,"parseActionImports");function bK(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let u=Object.keys(a).find(g=>g!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=am(s,p,n,!1):u&&(l.value=P0({[u]:a[u]},p,n)),i.Annotation){let g=lm((0,Ge.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(gc(p,g))}}return l})}o(bK,"parsePropertyValues");function cm(e,t,n){let i=lm((0,Ge.ensureArray)(e.Annotation),t,n),r={type:e._attributes?wo(e._attributes.Type):void 0,propertyValues:bK((0,Ge.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(cm,"parseRecord");function ha(e,t){return e[t]!=null}o(ha,"isExpressionOfType");function om(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}o(om,"parseModelPath");function Yb(e,t,n){if(ha(e,"Record")){let i=(0,Ge.ensureArray)(e.Record).map((r,a)=>cm(r,t+"/"+a,n));return i.type="Record",i}else if(ha(e,"PropertyPath")){let i=(0,Ge.ensureArray)(e.PropertyPath).map(r=>om(r,"PropertyPath"));return i.type="PropertyPath",i}else if(ha(e,"NavigationPropertyPath")){let i=(0,Ge.ensureArray)(e.NavigationPropertyPath).map(r=>om(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(ha(e,"String")){let i=(0,Ge.ensureArray)(e.String).map(r=>({type:"String",String:r._text}));return i.type="String",i}else if(ha(e,"AnnotationPath")){let i=(0,Ge.ensureArray)(e.AnnotationPath).map(r=>om(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(ha(e,"Path")){let i=(0,Ge.ensureArray)(e.Path).map(r=>om(r,"Path"));return i.type="Path",i}else if(ha(e,"If")){let i=(0,Ge.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(Yb,"parseCollection");function An(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>am({[i]:r},"",[],!0))):n.push(am({[i]:e[i]},"",[],!0))}),n}o(An,"parseChildren");function P0(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:Yb(e.Collection,t,n)};case"Record":return{type:"Record",Record:cm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:An(e.Apply),$Function:An(e.Function)};case"And":return{type:"And",$And:An(e.And)};case"Or":return{type:"Or",$Or:An(e.Or)};case"Eq":return{type:"Eq",$Eq:An(e.Eq)};case"Gt":return{type:"Gt",$Gt:An(e.Gt)};case"Ge":return{type:"Ge",$Ge:An(e.Ge)};case"Lt":return{type:"Lt",$Lt:An(e.Lt)};case"Le":return{type:"Le",$Le:An(e.Le)};case"If":return{type:"If",$If:An(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(P0,"parseInlineExpression");function am(e,t,n,i){let r=Object.keys(e).filter(s=>s!=="_text");if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:An(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return i?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[a]._text};case"Collection":return{type:"Collection",Collection:Yb(e.Collection,t,n)};case"Record":return{type:"Record",Record:cm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:An(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:An(e.And)};case"Ne":return{type:"Ne",$Ne:An(e.Ne)};case"Not":return{type:"Not",$Not:An(e.Not)[0]};case"Or":return{type:"Or",$Or:An(e.Or)};case"Eq":return{type:"Eq",$Eq:An(e.Eq)};case"If":return{type:"If",$If:An(e.If)};case"Gt":return{type:"Gt",$Gt:An(e.Gt)};case"Ge":return{type:"Ge",$Ge:An(e.Ge)};case"Lt":return{type:"Lt",$Lt:An(e.Lt)};case"Le":return{type:"Le",$Le:An(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(am,"parseExpression");function SK(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:wo(i),qualifier:r},l=`${t}@${wo(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=P0(a,l,n)),e.Annotation){let p=lm((0,Ge.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return ha(e,"Record")?s.record=cm(e.Record,l,n):ha(e,"Collection")?s.collection=Yb(e.Collection,l,n):u.length===1?s.value=am({[u[0]]:e[u[0]]},l,n,!1):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(SK,"parseAnnotation");function lm(e,t,n){return e.map(i=>SK(i,t,n))}o(lm,"parseAnnotations");function gc(e,t){return{target:e,annotations:t}}o(gc,"createAnnotationList");function EK(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(gc(wo(n._attributes.Target),lm((0,Ge.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(EK,"parseAnnotationLists");function AK(e,t,n){let i=e._attributes.Namespace,r=[],a=gK((0,Ge.ensureArray)(e.EntityType),r,i),s=mK((0,Ge.ensureArray)(e.ComplexType),r,i),l=hK((0,Ge.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},v=[],S=[];if(e.EntityContainer)if(u=yK((0,Ge.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=TK((0,Ge.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=pK((0,Ge.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")v=v.concat(vK((0,Ge.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t.startsWith("4."))S=S.concat(S0((0,Ge.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),S=S.concat(S0((0,Ge.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t.startsWith("4.")&&(v=v.concat(b0((0,Ge.ensureArray)(e.Action),i,!1)),v=v.concat(b0((0,Ge.ensureArray)(e.Function),i,!0)));let b=dK((0,Ge.ensureArray)(e.Association),i);EK((0,Ge.ensureArray)(e.Annotations),r);let I={};return I[n]=r,{associations:b,associationSets:g,annotations:I,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:S,entityTypes:a}}o(AK,"parseSchema");function PK(e){return e.reduce((t,n)=>((0,Ge.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(PK,"parseReferences");var qb={};function Cl(e){let t=e.match(sm),n=t?t[1]:e,i=wo(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(Cl,"unaliasType");function wo(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let u=e.substring(r,a);i.push((t=qb[u])!==null&&t!==void 0?t:u),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(wo,"unalias");function xK(e){let t=e.reduce((S,b)=>S.concat(b.associations),[]),n=e.reduce((S,b)=>S.concat(b.associationSets),[]),i=e.reduce((S,b)=>S.concat(b.entitySets),[]),r=e.reduce((S,b)=>S.concat(b.singletons),[]),a=e.reduce((S,b)=>S.concat(b.entityTypes),[]),s=e.reduce((S,b)=>S.concat(b.actions),[]),l=e.reduce((S,b)=>S.concat(b.actionImports),[]),u=e.reduce((S,b)=>S.concat(b.complexTypes),[]),p=e.reduce((S,b)=>S.concat(b.typeDefinitions),[]),g={};e.forEach(S=>{g=Object.assign(g,S.annotations)});let m,v;return e.forEach(S=>{S.entityContainer&&Object.keys(S.entityContainer).length>0&&(m=S.entityContainer,v=S.namespace)}),i.forEach(S=>{let b=a.find(I=>I.fullyQualifiedName===S.entityTypeName);b==null||b.navigationProperties.forEach(I=>{let F=I,j=n.find(W=>W.association===F.relationship);if(j){let W=j.associationEnd.find(U=>U.entitySet!==S.fullyQualifiedName);W&&(S.navigationPropertyBinding[I.name]=W.entitySet)}})}),a.forEach(S=>{S.navigationProperties.forEach(b=>{let I=b,F=t.find(j=>j.fullyQualifiedName===I.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===S.fullyQualifiedName?I.referentialConstraint=F.referentialConstraints:I.referentialConstraint=F.referentialConstraints.map(j=>({sourceTypeName:j.targetTypeName,sourceProperty:j.targetProperty,targetTypeName:j.sourceTypeName,targetProperty:j.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:v,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(xK,"mergeSchemas");function CK(e,t){qb=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{qb[n._attributes.Alias]=n._attributes.Namespace})}o(CK,"createAliasMap");function IK(e,t="serviceFile"){let n=(0,sK.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,Ge.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=PK((0,Ge.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));CK(a,r);let s=r.map(u=>AK(u,i,t));return new Ge.RawMetadataInstance(t,i,xK(s),a)}o(IK,"parse");fm.parse=IK});var C0=Ze(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.parse=Il.merge=void 0;var OK=$D();Object.defineProperty(Il,"merge",{enumerable:!0,get:o(function(){return OK.merge},"get")});var RK=x0();Object.defineProperty(Il,"parse",{enumerable:!0,get:o(function(){return RK.parse},"get")})});var U0=Ze(()=>{var j0;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(u,p){return function(g,m){Object.defineProperty(u,g,{configurable:!0,writable:!0,value:m}),p&&p(g,m)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!l&&!u,g={create:l?function(){return tc(Object.create(null))}:u?function(){return tc({__proto__:null})}:function(){return tc({})},has:p?function(k,B){return i.call(k,B)}:function(k,B){return B in k},get:p?function(k,B){return i.call(k,B)?k[B]:void 0}:function(k,B){return k[B]}},m=Object.getPrototypeOf(Function),v=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Zf(),S=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:eu(),b=typeof WeakMap=="function"?WeakMap:tu(),I=r?Symbol.for("@reflect-metadata:registry"):void 0,F=Ki(),j=Jf(F);function W(k,B,q,ce){if(Oe(q)){if(!Ft(k))throw new TypeError;if(!kt(B))throw new TypeError;return rn(k,B)}else{if(!Ft(k))throw new TypeError;if(!tt(B))throw new TypeError;if(!tt(ce)&&!Oe(ce)&&!fn(ce))throw new TypeError;return fn(ce)&&(ce=void 0),q=_e(q),Bt(k,B,q,ce)}}o(W,"decorate"),t("decorate",W);function U(k,B){function q(ce,Ne){if(!tt(ce))throw new TypeError;if(!Oe(Ne)&&!Sn(Ne))throw new TypeError;bn(k,B,ce,Ne)}return o(q,"decorator"),q}o(U,"metadata"),t("metadata",U);function se(k,B,q,ce){if(!tt(q))throw new TypeError;return Oe(ce)||(ce=_e(ce)),bn(k,B,q,ce)}o(se,"defineMetadata"),t("defineMetadata",se);function te(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),Et(k,B,q)}o(te,"hasMetadata"),t("hasMetadata",te);function le(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),Yt(k,B,q)}o(le,"hasOwnMetadata"),t("hasOwnMetadata",le);function Le(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),Fe(k,B,q)}o(Le,"getMetadata"),t("getMetadata",Le);function D(k,B,q){if(!tt(B))throw new TypeError;return Oe(q)||(q=_e(q)),vn(k,B,q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function Ue(k,B){if(!tt(k))throw new TypeError;return Oe(B)||(B=_e(B)),on(k,B)}o(Ue,"getMetadataKeys"),t("getMetadataKeys",Ue);function $e(k,B){if(!tt(k))throw new TypeError;return Oe(B)||(B=_e(B)),Rn(k,B)}o($e,"getOwnMetadataKeys"),t("getOwnMetadataKeys",$e);function qe(k,B,q){if(!tt(B))throw new TypeError;if(Oe(q)||(q=_e(q)),!tt(B))throw new TypeError;Oe(q)||(q=_e(q));var ce=_r(B,q,!1);return Oe(ce)?!1:ce.OrdinaryDeleteMetadata(k,B,q)}o(qe,"deleteMetadata"),t("deleteMetadata",qe);function rn(k,B){for(var q=k.length-1;q>=0;--q){var ce=k[q],Ne=ce(B);if(!Oe(Ne)&&!fn(Ne)){if(!kt(Ne))throw new TypeError;B=Ne}}return B}o(rn,"DecorateConstructor");function Bt(k,B,q,ce){for(var Ne=k.length-1;Ne>=0;--Ne){var yn=k[Ne],Ln=yn(B,q,ce);if(!Oe(Ln)&&!fn(Ln)){if(!tt(Ln))throw new TypeError;ce=Ln}}return ce}o(Bt,"DecorateProperty");function Et(k,B,q){var ce=Yt(k,B,q);if(ce)return!0;var Ne=Gt(B);return fn(Ne)?!1:Et(k,Ne,q)}o(Et,"OrdinaryHasMetadata");function Yt(k,B,q){var ce=_r(B,q,!1);return Oe(ce)?!1:Y(ce.OrdinaryHasOwnMetadata(k,B,q))}o(Yt,"OrdinaryHasOwnMetadata");function Fe(k,B,q){var ce=Yt(k,B,q);if(ce)return vn(k,B,q);var Ne=Gt(B);if(!fn(Ne))return Fe(k,Ne,q)}o(Fe,"OrdinaryGetMetadata");function vn(k,B,q){var ce=_r(B,q,!1);if(!Oe(ce))return ce.OrdinaryGetOwnMetadata(k,B,q)}o(vn,"OrdinaryGetOwnMetadata");function bn(k,B,q,ce){var Ne=_r(q,ce,!0);Ne.OrdinaryDefineOwnMetadata(k,B,q,ce)}o(bn,"OrdinaryDefineOwnMetadata");function on(k,B){var q=Rn(k,B),ce=Gt(k);if(ce===null)return q;var Ne=on(ce,B);if(Ne.length<=0)return q;if(q.length<=0)return Ne;for(var yn=new S,Ln=[],it=0,me=q;it<me.length;it++){var ve=me[it],Pe=yn.has(ve);Pe||(yn.add(ve),Ln.push(ve))}for(var Ie=0,at=Ne;Ie<at.length;Ie++){var ve=at[Ie],Pe=yn.has(ve);Pe||(yn.add(ve),Ln.push(ve))}return Ln}o(on,"OrdinaryMetadataKeys");function Rn(k,B){var q=_r(k,B,!1);return q?q.OrdinaryOwnMetadataKeys(k,B):[]}o(Rn,"OrdinaryOwnMetadataKeys");function an(k){if(k===null)return 1;switch(typeof k){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return k===null?1:6;default:return 6}}o(an,"Type");function Oe(k){return k===void 0}o(Oe,"IsUndefined");function fn(k){return k===null}o(fn,"IsNull");function Fi(k){return typeof k=="symbol"}o(Fi,"IsSymbol");function tt(k){return typeof k=="object"?k!==null:typeof k=="function"}o(tt,"IsObject");function O(k,B){switch(an(k)){case 0:return k;case 1:return k;case 2:return k;case 3:return k;case 4:return k;case 5:return k}var q=B===3?"string":B===5?"number":"default",ce=Ht(k,a);if(ce!==void 0){var Ne=ce.call(k,q);if(tt(Ne))throw new TypeError;return Ne}return A(k,q==="default"?"number":q)}o(O,"ToPrimitive");function A(k,B){if(B==="string"){var q=k.toString;if(ze(q)){var ce=q.call(k);if(!tt(ce))return ce}var Ne=k.valueOf;if(ze(Ne)){var ce=Ne.call(k);if(!tt(ce))return ce}}else{var Ne=k.valueOf;if(ze(Ne)){var ce=Ne.call(k);if(!tt(ce))return ce}var yn=k.toString;if(ze(yn)){var ce=yn.call(k);if(!tt(ce))return ce}}throw new TypeError}o(A,"OrdinaryToPrimitive");function Y(k){return!!k}o(Y,"ToBoolean");function V(k){return""+k}o(V,"ToString");function _e(k){var B=O(k,3);return Fi(B)?B:V(B)}o(_e,"ToPropertyKey");function Ft(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Ft,"IsArray");function ze(k){return typeof k=="function"}o(ze,"IsCallable");function kt(k){return typeof k=="function"}o(kt,"IsConstructor");function Sn(k){switch(an(k)){case 3:return!0;case 4:return!0;default:return!1}}o(Sn,"IsPropertyKey");function un(k,B){return k===B||k!==k&&B!==B}o(un,"SameValueZero");function Ht(k,B){var q=k[B];if(q!=null){if(!ze(q))throw new TypeError;return q}}o(Ht,"GetMethod");function ii(k){var B=Ht(k,s);if(!ze(B))throw new TypeError;var q=B.call(k);if(!tt(q))throw new TypeError;return q}o(ii,"GetIterator");function lr(k){return k.value}o(lr,"IteratorValue");function hn(k){var B=k.next();return B.done?!1:B}o(hn,"IteratorStep");function Ti(k){var B=k.return;B&&B.call(k)}o(Ti,"IteratorClose");function Gt(k){var B=Object.getPrototypeOf(k);if(typeof k!="function"||k===m||B!==m)return B;var q=k.prototype,ce=q&&Object.getPrototypeOf(q);if(ce==null||ce===Object.prototype)return B;var Ne=ce.constructor;return typeof Ne!="function"||Ne===k?B:Ne}o(Gt,"OrdinaryGetPrototypeOf");function ia(){var k;!Oe(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=ec(n.Reflect));var B,q,ce,Ne=new b,yn={registerProvider:Ln,getProvider:me,setProvider:Pe};return yn;function Ln(Ie){if(!Object.isExtensible(yn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Ie:break;case Oe(B):B=Ie;break;case B===Ie:break;case Oe(q):q=Ie;break;case q===Ie:break;default:ce===void 0&&(ce=new S),ce.add(Ie);break}}function it(Ie,at){if(!Oe(B)){if(B.isProviderFor(Ie,at))return B;if(!Oe(q)){if(q.isProviderFor(Ie,at))return B;if(!Oe(ce))for(var Wt=ii(ce);;){var pn=hn(Wt);if(!pn)return;var fr=lr(pn);if(fr.isProviderFor(Ie,at))return Ti(Wt),fr}}}if(!Oe(k)&&k.isProviderFor(Ie,at))return k}function me(Ie,at){var Wt=Ne.get(Ie),pn;return Oe(Wt)||(pn=Wt.get(at)),Oe(pn)&&(pn=it(Ie,at),Oe(pn)||(Oe(Wt)&&(Wt=new v,Ne.set(Ie,Wt)),Wt.set(at,pn))),pn}function ve(Ie){if(Oe(Ie))throw new TypeError;return B===Ie||q===Ie||!Oe(ce)&&ce.has(Ie)}function Pe(Ie,at,Wt){if(!ve(Wt))throw new Error("Metadata provider not registered.");var pn=me(Ie,at);if(pn!==Wt){if(!Oe(pn))return!1;var fr=Ne.get(Ie);Oe(fr)&&(fr=new v,Ne.set(Ie,fr)),fr.set(at,Wt)}return!0}}o(ia,"CreateMetadataRegistry");function Ki(){var k;return!Oe(I)&&tt(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[I]),Oe(k)&&(k=ia()),!Oe(I)&&tt(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Ki,"GetOrCreateMetadataRegistry");function Jf(k){var B=new b,q={isProviderFor:o(function(ve,Pe){var Ie=B.get(ve);return Oe(Ie)?!1:Ie.has(Pe)},"isProviderFor"),OrdinaryDefineOwnMetadata:Ln,OrdinaryHasOwnMetadata:Ne,OrdinaryGetOwnMetadata:yn,OrdinaryOwnMetadataKeys:it,OrdinaryDeleteMetadata:me};return F.registerProvider(q),q;function ce(ve,Pe,Ie){var at=B.get(ve),Wt=!1;if(Oe(at)){if(!Ie)return;at=new v,B.set(ve,at),Wt=!0}var pn=at.get(Pe);if(Oe(pn)){if(!Ie)return;if(pn=new v,at.set(Pe,pn),!k.setProvider(ve,Pe,q))throw at.delete(Pe),Wt&&B.delete(ve),new Error("Wrong provider for target.")}return pn}o(ce,"GetOrCreateMetadataMap");function Ne(ve,Pe,Ie){var at=ce(Pe,Ie,!1);return Oe(at)?!1:Y(at.has(ve))}o(Ne,"OrdinaryHasOwnMetadata");function yn(ve,Pe,Ie){var at=ce(Pe,Ie,!1);if(!Oe(at))return at.get(ve)}o(yn,"OrdinaryGetOwnMetadata");function Ln(ve,Pe,Ie,at){var Wt=ce(Ie,at,!0);Wt.set(ve,Pe)}o(Ln,"OrdinaryDefineOwnMetadata");function it(ve,Pe){var Ie=[],at=ce(ve,Pe,!1);if(Oe(at))return Ie;for(var Wt=at.keys(),pn=ii(Wt),fr=0;;){var qd=hn(pn);if(!qd)return Ie.length=fr,Ie;var zT=lr(qd);try{Ie[fr]=zT}catch(nu){try{Ti(pn)}finally{throw nu}}fr++}}o(it,"OrdinaryOwnMetadataKeys");function me(ve,Pe,Ie){var at=ce(Pe,Ie,!1);if(Oe(at)||!at.delete(ve))return!1;if(at.size===0){var Wt=B.get(Pe);Oe(Wt)||(Wt.delete(Ie),Wt.size===0&&B.delete(Wt))}return!0}o(me,"OrdinaryDeleteMetadata")}o(Jf,"CreateMetadataProvider");function ec(k){var B=k.defineMetadata,q=k.hasOwnMetadata,ce=k.getOwnMetadata,Ne=k.getOwnMetadataKeys,yn=k.deleteMetadata,Ln=new b,it={isProviderFor:o(function(me,ve){var Pe=Ln.get(me);return!Oe(Pe)&&Pe.has(ve)?!0:Ne(me,ve).length?(Oe(Pe)&&(Pe=new S,Ln.set(me,Pe)),Pe.add(ve),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Ne,OrdinaryDeleteMetadata:yn};return it}o(ec,"CreateFallbackProvider");function _r(k,B,q){var ce=F.getProvider(k,B);if(!Oe(ce))return ce;if(q){if(F.setProvider(k,B,j))return j;throw new Error("Illegal state.")}}o(_r,"GetMetadataProvider");function Zf(){var k={},B=[],q=(function(){function it(me,ve,Pe){this._index=0,this._keys=me,this._values=ve,this._selector=Pe}return o(it,"MapIterator"),it.prototype["@@iterator"]=function(){return this},it.prototype[s]=function(){return this},it.prototype.next=function(){var me=this._index;if(me>=0&&me<this._keys.length){var ve=this._selector(this._keys[me],this._values[me]);return me+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:ve,done:!1}}return{value:void 0,done:!0}},it.prototype.throw=function(me){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),me},it.prototype.return=function(me){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:me,done:!0}},it})(),ce=(function(){function it(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(it,"Map"),Object.defineProperty(it.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),it.prototype.has=function(me){return this._find(me,!1)>=0},it.prototype.get=function(me){var ve=this._find(me,!1);return ve>=0?this._values[ve]:void 0},it.prototype.set=function(me,ve){var Pe=this._find(me,!0);return this._values[Pe]=ve,this},it.prototype.delete=function(me){var ve=this._find(me,!1);if(ve>=0){for(var Pe=this._keys.length,Ie=ve+1;Ie<Pe;Ie++)this._keys[Ie-1]=this._keys[Ie],this._values[Ie-1]=this._values[Ie];return this._keys.length--,this._values.length--,un(me,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},it.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},it.prototype.keys=function(){return new q(this._keys,this._values,Ne)},it.prototype.values=function(){return new q(this._keys,this._values,yn)},it.prototype.entries=function(){return new q(this._keys,this._values,Ln)},it.prototype["@@iterator"]=function(){return this.entries()},it.prototype[s]=function(){return this.entries()},it.prototype._find=function(me,ve){if(!un(this._cacheKey,me)){this._cacheIndex=-1;for(var Pe=0;Pe<this._keys.length;Pe++)if(un(this._keys[Pe],me)){this._cacheIndex=Pe;break}}return this._cacheIndex<0&&ve&&(this._cacheIndex=this._keys.length,this._keys.push(me),this._values.push(void 0)),this._cacheIndex},it})();return ce;function Ne(it,me){return it}function yn(it,me){return me}function Ln(it,me){return[it,me]}}o(Zf,"CreateMapPolyfill");function eu(){var k=(function(){function B(){this._map=new v}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(q){return this._map.has(q)},B.prototype.add=function(q){return this._map.set(q,q),this},B.prototype.delete=function(q){return this._map.delete(q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B})();return k}o(eu,"CreateSetPolyfill");function tu(){var k=16,B=g.create(),q=ce();return(function(){function me(){this._key=ce()}return o(me,"WeakMap"),me.prototype.has=function(ve){var Pe=Ne(ve,!1);return Pe!==void 0?g.has(Pe,this._key):!1},me.prototype.get=function(ve){var Pe=Ne(ve,!1);return Pe!==void 0?g.get(Pe,this._key):void 0},me.prototype.set=function(ve,Pe){var Ie=Ne(ve,!0);return Ie[this._key]=Pe,this},me.prototype.delete=function(ve){var Pe=Ne(ve,!1);return Pe!==void 0?delete Pe[this._key]:!1},me.prototype.clear=function(){this._key=ce()},me})();function ce(){var me;do me="@@WeakMap@@"+it();while(g.has(B,me));return B[me]=!0,me}function Ne(me,ve){if(!i.call(me,q)){if(!ve)return;Object.defineProperty(me,q,{value:g.create()})}return me[q]}function yn(me,ve){for(var Pe=0;Pe<ve;++Pe)me[Pe]=Math.random()*255|0;return me}function Ln(me){if(typeof Uint8Array=="function"){var ve=new Uint8Array(me);return typeof crypto<"u"?crypto.getRandomValues(ve):typeof msCrypto<"u"?msCrypto.getRandomValues(ve):yn(ve,me),ve}return yn(new Array(me),me)}function it(){var me=Ln(k);me[6]=me[6]&79|64,me[8]=me[8]&191|128;for(var ve="",Pe=0;Pe<k;++Pe){var Ie=me[Pe];(Pe===4||Pe===6||Pe===8)&&(ve+="-"),Ie<16&&(ve+="0"),ve+=Ie.toString(16).toLowerCase()}return ve}}o(tu,"CreateWeakMapPolyfill");function tc(k){return k.__=void 0,delete k.__,k}o(tc,"MakeDictionary")})})(j0||(j0={}))});var K0=Ze((yte,W0)=>{var nX=0,G0="changeUtils: ";function iX(){return"id-"+new Date().valueOf()+"-"+nX++}o(iX,"uid");function rX(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(rX,"appendComponentToReference");function oX(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return rX(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(oX,"getFlexReference");function aX(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}o(aX,"getAppVersion");function sX(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(sX,"getProjectId");function H0(e){return JSON.stringify({fileName:e.id||iX().replace(/-/g,"_")+"_"+e.type,fileType:"change",changeType:e.type,moduleName:"",reference:e.reference,packageName:"",content:e.content||{},selector:{id:e.controlId,idIsLocal:!1,type:e.controlType},layer:e.isCustomer?"CUSTOMER_BASE":"VENDOR",texts:{},namespace:"apps/"+e.reference.replace(".Component","")+"/changes/",projectId:e.projectId,creation:e.creation||new Date().valueOf(),originalLanguage:"",support:{generator:G0+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}o(H0,"createString");W0.exports={parse:o(function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(G0,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:o(function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=oX(t),e.appVersion=aX(t),e.projectId=sX(t,e.reference),H0(e)},"createChangeString"),toString:o(function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return H0(e)},"toString")}});var Q0=Ze((vte,X0)=>{X0.exports={change:K0()}});var q_=Ze(qr=>{"use strict";var e3=/[|\\{}()[\]^$+*?.]/g,t3=Object.prototype.hasOwnProperty,vE=o(function(e,t){return t3.apply(e,[t])},"hasOwn");qr.escapeRegExpChars=function(e){return e?String(e).replace(e3,"\\$&"):""};var n3={"&":"&","<":"<",">":">",'"':""","'":"'"},i3=/[&<>'"]/g;function r3(e){return n3[e]||e}o(r3,"encode_char");var o3=`var _ENCODE_HTML_RULES = {
|
|
30
30
|
"&": "&"
|
|
31
31
|
, "<": "<"
|
|
32
32
|
, ">": ">"
|
|
@@ -285,7 +285,7 @@ __p += '`),mt&&(ne+=`' +
|
|
|
285
285
|
function print() { __p += __j.call(arguments, '') }
|
|
286
286
|
`:`;
|
|
287
287
|
`)+ne+`return __p
|
|
288
|
-
}`;var nt=pL(function(){return At(C,Re+"return "+ne).apply(e,L)});if(nt.source=ne,Jv(nt))throw nt;return nt}o(lG,"template");function fG(c){return It(c).toLowerCase()}o(fG,"toLower");function uG(c){return It(c).toUpperCase()}o(uG,"toUpper");function pG(c,f,d){if(c=It(c),c&&(d||f===e))return SO(c);if(!c||!(f=dr(f)))return c;var T=so(c),E=so(f),C=EO(T,E),L=AO(T,E)+1;return ts(T,C,L).join("")}o(pG,"trim");function dG(c,f,d){if(c=It(c),c&&(d||f===e))return c.slice(0,xO(c)+1);if(!c||!(f=dr(f)))return c;var T=so(c),E=AO(T,so(f))+1;return ts(T,0,E).join("")}o(dG,"trimEnd");function gG(c,f,d){if(c=It(c),c&&(d||f===e))return c.replace(JT,"");if(!c||!(f=dr(f)))return c;var T=so(c),E=EO(T,so(f));return ts(T,E).join("")}o(gG,"trimStart");function mG(c,f){var d=D,T=Ue;if(Tn(f)){var E="separator"in f?f.separator:E;d="length"in f?et(f.length):d,T="omission"in f?dr(f.omission):T}c=It(c);var C=c.length;if(fl(c)){var L=so(c);C=L.length}if(d>=C)return c;var N=d-ul(T);if(N<1)return T;var M=L?ts(L,0,N).join(""):c.slice(0,N);if(E===e)return M+T;if(L&&(N+=M.length-N),Zv(E)){if(c.slice(N).search(E)){var z,J=M;for(E.global||(E=mv(E.source,It(HI.exec(E))+"g")),E.lastIndex=0;z=E.exec(J);)var ne=z.index;M=M.slice(0,ne===e?N:ne)}}else if(c.indexOf(dr(E),N)!=N){var ge=M.lastIndexOf(E);ge>-1&&(M=M.slice(0,ge))}return M+T}o(mG,"truncate");function hG(c){return c=It(c),c&&Pe.test(c)?c.replace(me,HU):c}o(hG,"unescape");var yG=yl(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),nb=dR("toUpperCase");function uL(c,f,d){return c=It(c),f=d?e:f,f===e?kU(c)?KU(c):RU(c):c.match(f)||[]}o(uL,"words");var pL=rt(function(c,f){try{return ur(c,e,f)}catch(d){return Jv(d)?d:new Ke(d)}}),TG=ca(function(c,f){return wr(f,function(d){d=Do(d),aa(c,d,Yv(c[d],c))}),c});function vG(c){var f=c==null?0:c.length,d=Ve();return c=f?dn(c,function(T){if(typeof T[1]!="function")throw new Mr(r);return[d(T[0]),T[1]]}):[],rt(function(T){for(var E=-1;++E<f;){var C=c[E];if(ur(C[0],this,T))return ur(C[1],this,T)}})}o(vG,"cond");function bG(c){return G2(jr(c,p))}o(bG,"conforms");function ib(c){return function(){return c}}o(ib,"constant");function SG(c,f){return c==null||c!==c?f:c}o(SG,"defaultTo");var EG=mR(),AG=mR(!0);function Yi(c){return c}o(Yi,"identity");function rb(c){return WO(typeof c=="function"?c:jr(c,p))}o(rb,"iteratee");function PG(c){return XO(jr(c,p))}o(PG,"matches");function xG(c,f){return QO(c,jr(f,p))}o(xG,"matchesProperty");var CG=rt(function(c,f){return function(d){return uu(d,c,f)}}),IG=rt(function(c,f){return function(d){return uu(c,d,f)}});function ob(c,f,d){var T=Yn(f),E=Tg(f,T);d==null&&!(Tn(f)&&(E.length||!T.length))&&(d=f,f=c,c=this,E=Tg(f,Yn(f)));var C=!(Tn(d)&&"chain"in d)||!!d.chain,L=fa(c);return wr(E,function(N){var M=f[N];c[N]=M,L&&(c.prototype[N]=function(){var z=this.__chain__;if(C||z){var J=c(this.__wrapped__),ne=J.__actions__=Xi(this.__actions__);return ne.push({func:M,args:arguments,thisArg:c}),J.__chain__=z,J}return M.apply(c,Qa([this.value()],arguments))})}),c}o(ob,"mixin");function OG(){return qn._===this&&(qn._=JU),this}o(OG,"noConflict");function ab(){}o(ab,"noop");function RG(c){return c=et(c),rt(function(f){return qO(f,c)})}o(RG,"nthArg");var LG=Mv(dn),FG=Mv(hO),NG=Mv(cv);function dL(c){return Gv(c)?lv(Do(c)):s4(c)}o(dL,"property");function DG(c){return function(f){return c==null?e:sc(c,f)}}o(DG,"propertyOf");var _G=yR(),VG=yR(!0);function sb(){return[]}o(sb,"stubArray");function cb(){return!1}o(cb,"stubFalse");function wG(){return{}}o(wG,"stubObject");function MG(){return""}o(MG,"stubString");function kG(){return!0}o(kG,"stubTrue");function jG(c,f){if(c=et(c),c<1||c>Fe)return[];var d=on,T=vi(c,on);f=Ve(f),c-=on;for(var E=pv(T,f);++d<c;)f(d);return E}o(jG,"times");function UG(c){return Ye(c)?dn(c,Do):gr(c)?[c]:Xi(DR(It(c)))}o(UG,"toPath");function $G(c){var f=++YU;return It(c)+f}o($G,"uniqueId");var BG=Pg(function(c,f){return c+f},0),HG=kv("ceil"),GG=Pg(function(c,f){return c/f},1),WG=kv("floor");function KG(c){return c&&c.length?yg(c,Yi,Av):e}o(KG,"max");function XG(c,f){return c&&c.length?yg(c,Ve(f,2),Av):e}o(XG,"maxBy");function QG(c){return vO(c,Yi)}o(QG,"mean");function qG(c,f){return vO(c,Ve(f,2))}o(qG,"meanBy");function YG(c){return c&&c.length?yg(c,Yi,Iv):e}o(YG,"min");function zG(c,f){return c&&c.length?yg(c,Ve(f,2),Iv):e}o(zG,"minBy");var JG=Pg(function(c,f){return c*f},1),ZG=kv("round"),e5=Pg(function(c,f){return c-f},0);function t5(c){return c&&c.length?uv(c,Yi):0}o(t5,"sum");function n5(c,f){return c&&c.length?uv(c,Ve(f,2)):0}return o(n5,"sumBy"),P.after=PB,P.ary=GR,P.assign=uH,P.assignIn=rL,P.assignInWith=Mg,P.assignWith=pH,P.at=dH,P.before=WR,P.bind=Yv,P.bindAll=TG,P.bindKey=KR,P.castArray=wB,P.chain=$R,P.chunk=W4,P.compact=K4,P.concat=X4,P.cond=vG,P.conforms=bG,P.constant=ib,P.countBy=tB,P.create=gH,P.curry=XR,P.curryRight=QR,P.debounce=qR,P.defaults=mH,P.defaultsDeep=hH,P.defer=xB,P.delay=CB,P.difference=Q4,P.differenceBy=q4,P.differenceWith=Y4,P.drop=z4,P.dropRight=J4,P.dropRightWhile=Z4,P.dropWhile=e$,P.fill=t$,P.filter=iB,P.flatMap=aB,P.flatMapDeep=sB,P.flatMapDepth=cB,P.flatten=MR,P.flattenDeep=n$,P.flattenDepth=i$,P.flip=IB,P.flow=EG,P.flowRight=AG,P.fromPairs=r$,P.functions=AH,P.functionsIn=PH,P.groupBy=lB,P.initial=a$,P.intersection=s$,P.intersectionBy=c$,P.intersectionWith=l$,P.invert=CH,P.invertBy=IH,P.invokeMap=uB,P.iteratee=rb,P.keyBy=pB,P.keys=Yn,P.keysIn=qi,P.map=Fg,P.mapKeys=RH,P.mapValues=LH,P.matches=PG,P.matchesProperty=xG,P.memoize=Dg,P.merge=FH,P.mergeWith=oL,P.method=CG,P.methodOf=IG,P.mixin=ob,P.negate=_g,P.nthArg=RG,P.omit=NH,P.omitBy=DH,P.once=OB,P.orderBy=dB,P.over=LG,P.overArgs=RB,P.overEvery=FG,P.overSome=NG,P.partial=zv,P.partialRight=YR,P.partition=gB,P.pick=_H,P.pickBy=aL,P.property=dL,P.propertyOf=DG,P.pull=d$,P.pullAll=jR,P.pullAllBy=g$,P.pullAllWith=m$,P.pullAt=h$,P.range=_G,P.rangeRight=VG,P.rearg=LB,P.reject=yB,P.remove=y$,P.rest=FB,P.reverse=Qv,P.sampleSize=vB,P.set=wH,P.setWith=MH,P.shuffle=bB,P.slice=T$,P.sortBy=AB,P.sortedUniq=x$,P.sortedUniqBy=C$,P.split=aG,P.spread=NB,P.tail=I$,P.take=O$,P.takeRight=R$,P.takeRightWhile=L$,P.takeWhile=F$,P.tap=K$,P.throttle=DB,P.thru=Lg,P.toArray=tL,P.toPairs=sL,P.toPairsIn=cL,P.toPath=UG,P.toPlainObject=iL,P.transform=kH,P.unary=_B,P.union=N$,P.unionBy=D$,P.unionWith=_$,P.uniq=V$,P.uniqBy=w$,P.uniqWith=M$,P.unset=jH,P.unzip=qv,P.unzipWith=UR,P.update=UH,P.updateWith=$H,P.values=bl,P.valuesIn=BH,P.without=k$,P.words=uL,P.wrap=VB,P.xor=j$,P.xorBy=U$,P.xorWith=$$,P.zip=B$,P.zipObject=H$,P.zipObjectDeep=G$,P.zipWith=W$,P.entries=sL,P.entriesIn=cL,P.extend=rL,P.extendWith=Mg,ob(P,P),P.add=BG,P.attempt=pL,P.camelCase=KH,P.capitalize=lL,P.ceil=HG,P.clamp=HH,P.clone=MB,P.cloneDeep=jB,P.cloneDeepWith=UB,P.cloneWith=kB,P.conformsTo=$B,P.deburr=fL,P.defaultTo=SG,P.divide=GG,P.endsWith=XH,P.eq=lo,P.escape=QH,P.escapeRegExp=qH,P.every=nB,P.find=rB,P.findIndex=VR,P.findKey=yH,P.findLast=oB,P.findLastIndex=wR,P.findLastKey=TH,P.floor=WG,P.forEach=BR,P.forEachRight=HR,P.forIn=vH,P.forInRight=bH,P.forOwn=SH,P.forOwnRight=EH,P.get=eb,P.gt=BB,P.gte=HB,P.has=xH,P.hasIn=tb,P.head=kR,P.identity=Yi,P.includes=fB,P.indexOf=o$,P.inRange=GH,P.invoke=OH,P.isArguments=fc,P.isArray=Ye,P.isArrayBuffer=GB,P.isArrayLike=Qi,P.isArrayLikeObject=Fn,P.isBoolean=WB,P.isBuffer=ns,P.isDate=KB,P.isElement=XB,P.isEmpty=QB,P.isEqual=qB,P.isEqualWith=YB,P.isError=Jv,P.isFinite=zB,P.isFunction=fa,P.isInteger=zR,P.isLength=Vg,P.isMap=JR,P.isMatch=JB,P.isMatchWith=ZB,P.isNaN=eH,P.isNative=tH,P.isNil=iH,P.isNull=nH,P.isNumber=ZR,P.isObject=Tn,P.isObjectLike=En,P.isPlainObject=yu,P.isRegExp=Zv,P.isSafeInteger=rH,P.isSet=eL,P.isString=wg,P.isSymbol=gr,P.isTypedArray=vl,P.isUndefined=oH,P.isWeakMap=aH,P.isWeakSet=sH,P.join=f$,P.kebabCase=YH,P.last=$r,P.lastIndexOf=u$,P.lowerCase=zH,P.lowerFirst=JH,P.lt=cH,P.lte=lH,P.max=KG,P.maxBy=XG,P.mean=QG,P.meanBy=qG,P.min=YG,P.minBy=zG,P.stubArray=sb,P.stubFalse=cb,P.stubObject=wG,P.stubString=MG,P.stubTrue=kG,P.multiply=JG,P.nth=p$,P.noConflict=OG,P.noop=ab,P.now=Ng,P.pad=ZH,P.padEnd=eG,P.padStart=tG,P.parseInt=nG,P.random=WH,P.reduce=mB,P.reduceRight=hB,P.repeat=iG,P.replace=rG,P.result=VH,P.round=ZG,P.runInContext=w,P.sample=TB,P.size=SB,P.snakeCase=oG,P.some=EB,P.sortedIndex=v$,P.sortedIndexBy=b$,P.sortedIndexOf=S$,P.sortedLastIndex=E$,P.sortedLastIndexBy=A$,P.sortedLastIndexOf=P$,P.startCase=sG,P.startsWith=cG,P.subtract=e5,P.sum=t5,P.sumBy=n5,P.template=lG,P.times=jG,P.toFinite=ua,P.toInteger=et,P.toLength=nL,P.toLower=fG,P.toNumber=Br,P.toSafeInteger=fH,P.toString=It,P.toUpper=uG,P.trim=pG,P.trimEnd=dG,P.trimStart=gG,P.truncate=mG,P.unescape=hG,P.uniqueId=$G,P.upperCase=yG,P.upperFirst=nb,P.each=BR,P.eachRight=HR,P.first=kR,ob(P,(function(){var c={};return Fo(P,function(f,d){Nt.call(P.prototype,d)||(c[d]=f)}),c})(),{chain:!1}),P.VERSION=t,wr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),wr(["drop","take"],function(c,f){gt.prototype[c]=function(d){d=d===e?1:Wn(et(d),0);var T=this.__filtered__&&!f?new gt(this):this.clone();return T.__filtered__?T.__takeCount__=vi(d,T.__takeCount__):T.__views__.push({size:vi(d,on),type:c+(T.__dir__<0?"Right":"")}),T},gt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),wr(["filter","map","takeWhile"],function(c,f){var d=f+1,T=d==rn||d==Et;gt.prototype[c]=function(E){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(E,3),type:d}),C.__filtered__=C.__filtered__||T,C}}),wr(["head","last"],function(c,f){var d="take"+(f?"Right":"");gt.prototype[c]=function(){return this[d](1).value()[0]}}),wr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");gt.prototype[c]=function(){return this.__filtered__?new gt(this):this[d](1)}}),gt.prototype.compact=function(){return this.filter(Yi)},gt.prototype.find=function(c){return this.filter(c).head()},gt.prototype.findLast=function(c){return this.reverse().find(c)},gt.prototype.invokeMap=rt(function(c,f){return typeof c=="function"?new gt(this):this.map(function(d){return uu(d,c,f)})}),gt.prototype.reject=function(c){return this.filter(_g(Ve(c)))},gt.prototype.slice=function(c,f){c=et(c);var d=this;return d.__filtered__&&(c>0||f<0)?new gt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=et(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},gt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},gt.prototype.toArray=function(){return this.take(on)},Fo(gt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),T=/^(?:head|last)$/.test(f),E=P[T?"take"+(f=="last"?"Right":""):f],C=T||/^find/.test(f);E&&(P.prototype[f]=function(){var L=this.__wrapped__,N=T?[1]:arguments,M=L instanceof gt,z=N[0],J=M||Ye(L),ne=o(function(ct){var mt=E.apply(P,Qa([ct],N));return T&&ge?mt[0]:mt},"interceptor");J&&d&&typeof z=="function"&&z.length!=1&&(M=J=!1);var ge=this.__chain__,Re=!!this.__actions__.length,Me=C&&!ge,nt=M&&!Re;if(!C&&J){L=nt?L:new gt(this);var ke=c.apply(L,N);return ke.__actions__.push({func:Lg,args:[ne],thisArg:e}),new kr(ke,ge)}return Me&&nt?c.apply(this,N):(ke=this.thru(ne),Me?T?ke.value()[0]:ke.value():ke)})}),wr(["pop","push","shift","sort","splice","unshift"],function(c){var f=ng[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",T=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var E=arguments;if(T&&!this.__chain__){var C=this.value();return f.apply(Ye(C)?C:[],E)}return this[d](function(L){return f.apply(Ye(L)?L:[],E)})}}),Fo(gt.prototype,function(c,f){var d=P[f];if(d){var T=d.name+"";Nt.call(gl,T)||(gl[T]=[]),gl[T].push({name:f,func:d})}}),gl[Ag(e,I).name]=[{name:"wrapper",func:e}],gt.prototype.clone=g2,gt.prototype.reverse=m2,gt.prototype.value=h2,P.prototype.at=X$,P.prototype.chain=Q$,P.prototype.commit=q$,P.prototype.next=Y$,P.prototype.plant=J$,P.prototype.reverse=Z$,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=eB,P.prototype.first=P.prototype.head,ru&&(P.prototype[ru]=z$),P}),"runInContext"),Ya=XU();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(qn._=Ya,define(function(){return Ya})):nc?((nc.exports=Ya)._=Ya,rv._=Ya):qn._=Ya}).call(Af)});var _M=Ze((qde,DM)=>{var{findIndex:KY}=ed();function XY(e,t){let i=KY(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(XY,"findNextTextualToken");DM.exports={findNextTextualToken:XY}});var MM=Ze((zde,wM)=>{var VM=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function QY({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(VM);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(QY,"isXMLNamespaceKey");function qY(e){if(typeof e!="string")return;let t=e.match(VM);if(t!==null)return t.groups&&t.groups.prefix||""}o(qY,"getXMLNamespaceKeyPrefix");wM.exports={isXMLNamespaceKey:QY,getXMLNamespaceKeyPrefix:qY}});var jM=Ze((Zde,kM)=>{var{findNextTextualToken:YY}=_M(),{isXMLNamespaceKey:zY,getXMLNamespaceKeyPrefix:JY}=MM();kM.exports={findNextTextualToken:YY,isXMLNamespaceKey:zY,getXMLNamespaceKeyPrefix:JY}});var JP=Ze((ege,$M)=>{var{reduce:ZY,has:UM,isArray:e9}=ed();function t9(e){return ZY(e,(n,i,r)=>(r==="parent"||(UM(i,"type")?n.push(i):e9(i)&&i.length>0&&UM(i[0],"type")&&(n=n.concat(i))),n),[])}o(t9,"getAstChildrenReflective");$M.exports={getAstChildrenReflective:t9}});var ZP=Ze((nge,BM)=>{BM.exports={DEFAULT_NS:"::DEFAULT"}});var YM=Ze((ige,qM)=>{var{BaseXmlCstVisitor:n9}=zP(),{last:i9,forEach:KM,reduce:r9,map:td,pick:tx,sortBy:o9,isEmpty:a9,isArray:XM,assign:s9}=ed(),{findNextTextualToken:c9,isXMLNamespaceKey:l9,getXMLNamespaceKeyPrefix:f9}=jM(),{getAstChildrenReflective:u9}=JP(),{DEFAULT_NS:p9}=ZP();function d9(e,t){HM.setState({tokenVector:t});let n=HM.visit(e);return n.rootElement!==Zc&&QM(n.rootElement),n}o(d9,"buildAst");var nx=class nx extends n9{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:Zc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&a9(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),sT(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=td(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),sT(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=td(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=td(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Zc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=td(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 h9(i,t),y9(i,t),T9(i,t,this.tokenVector),sT(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Zc,value:Zc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=cT(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=g9(a.image),r.syntax.value=cT(a)}return sT(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Zc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=o9(r,["startOffset"]),s=td(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(nx,"CstToAstVisitor");var ex=nx,HM=new ex;function sT(e){let t=u9(e);KM(t,n=>n.parent=e)}o(sT,"setChildrenParent");function QM(e,t=[]){let n=r9(e.attributes,(r,a)=>{if(a.key!==Zc&&l9({key:a.key,includeEmptyPrefix:!1})===!0){let s=f9(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[p9]=l}}return r},{}),i=Object.create(null);e.namespaces=s9(i,t,n),KM(e.subElements,r=>QM(r,e.namespaces))}o(QM,"updateNamespaces");function cT(e){return tx(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(cT,"toXMLToken");function GM(e){return tx(e,["startOffset","startLine","startColumn"])}o(GM,"startOfXMLToken");function WM(e){return tx(e,["endOffset","endLine","endColumn"])}o(WM,"endOfXMLToken");function Ua(e){return XM(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Ua,"exists");function g9(e){return e.substring(1,e.length-1)}o(g9,"stripQuotes");function m9(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(m9,"nsToParts");var Zc=null;function h9(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=cT(n);let i=m9(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=cT(t.END_NAME[0]))}o(h9,"handleElementOpenCloseNameRanges");function y9(e,t){if(Ua(t.OPEN)){let n;Ua(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Ua(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...GM(t.OPEN[0]),...WM(n)}),Ua(t.SLASH_OPEN)&&Ua(t.END)&&(e.syntax.closeBody={...GM(t.SLASH_OPEN[0]),...WM(t.END[0])})}}o(y9,"handleElementOpenCloseBodyRanges");function T9(e,t,n){if(Ua(t.Name)){let i=t.Name[0].endOffset+2;if(Ua(t.START_CLOSE)||Ua(t.SLASH_CLOSE)){let r=(Ua(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=XM(t.attribute)?i9(t.attribute).location.endOffset:t.Name[0].endOffset,s=c9(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(T9,"handleElementAttributeRanges");qM.exports={buildAst:d9}});var ZM=Ze((oge,JM)=>{var{forEach:v9,isFunction:Pf}=ed(),{getAstChildrenReflective:b9}=JP();function zM(e,t){switch(e.type){case"XMLDocument":{Pf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{Pf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{Pf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{Pf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{Pf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{Pf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=b9(e);v9(n,i=>{zM(i,t)})}o(zM,"accept");JM.exports={accept:zM}});var tk=Ze((sge,ek)=>{var{buildAst:S9}=YM(),{accept:E9}=ZM(),{DEFAULT_NS:A9}=ZP();ek.exports={buildAst:S9,accept:E9,DEFAULT_NS:A9}});var Vi={};uc(Vi,{deleteConfigEntityByPath:()=>UZ,exportConfig:()=>kZ,exportConfigEntityByPath:()=>jZ,generateCustomExtension:()=>MI,generateSchema:()=>MZ,getApiVersion:()=>GZ,getChanges:()=>Fj,getGenericSchema:()=>KT,getPathToGenericSchema:()=>Yk,getProject:()=>qZ,importConfig:()=>$Z,importProject:()=>BZ,importProjectSchema:()=>HZ,isDirectory:()=>KZ,log:()=>re,prompts:()=>wZ,readDirectory:()=>BI});module.exports=jg(Vi);var de=Z(ae());var G=Z(ae());var Be=o(e=>typeof e=="string","isString"),Tu=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),ZN=o(e=>e==null?"":""+e,"makeString"),MW=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),kW=/###/g,eD=o(e=>e&&e.indexOf("###")>-1?e.replace(kW,"."):e,"cleanKey"),tD=o(e=>!e||Be(e),"canNotTraverseDeeper"),vu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(tD(e))return{};let a=eD(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return tD(e)?{}:{obj:e,k:eD(i[r])}},"getLastOfPath"),nD=o((e,t,n)=>{let{obj:i,k:r}=vu(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=vu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=vu(e,s,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),jW=o((e,t,n,i)=>{let{obj:r,k:a}=vu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),$g=o((e,t)=>{let{obj:n,k:i}=vu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},"getPath"),UW=o((e,t,n)=>{let i=$g(e,n);return i!==void 0?i:$g(t,n)},"getPathWithDefaults"),uD=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]):uD(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),El=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),$W={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},BW=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>$W[t]):e,"escape"),Pb=class Pb{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(Pb,"RegExpCache");var hb=Pb,HW=[" ",",","?","!",";"],GW=new hb(20),WW=o((e,t,n)=>{t=t||"",n=n||"";let i=HW.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=GW.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"),yb=o((e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;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"),Eu=o(e=>e==null?void 0:e.replace("_","-"),"getCleanedCode"),KW={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,i;(i=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||i.call(n,console,t)}},bu=class bu{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||KW,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"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 bu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new bu(this.logger,t)}};o(bu,"Logger");var Tb=bu,_o=new Tb,xb=class xb{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,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r.apply(r,[t,...n])})}};o(xb,"EventEmitter");var Al=xb,Cb=class Cb extends Al{constructor(t,n={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,r={}){var p,g;let 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=$g(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:yb((g=(p=this.data)==null?void 0:p[t])==null?void 0:g[n],i,a)}addResource(t,n,i,r,a={silent:!1}){let 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),nD(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i,r={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,s={silent:!1,skipCopy:!1}){let l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=$g(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?uD(u,i,a):u={...u,...i},nD(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.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(Cb,"ResourceStore");var Bg=Cb,pD={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{var s;t=((s=this.processors[a])==null?void 0:s.process(t,n,i,r))??t}),t}},dD=Symbol("i18next/PATH_KEY");function XW(){let e=[],t=Object.create(null),n;return t.get=(i,r)=>{var a;return(a=n==null?void 0:n.revoke)==null||a.call(n),r===dD?e:(e.push(r),n=Proxy.revocable(i,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}o(XW,"createProxy");function vb(e,t){let{[dD]:n}=e(XW());return n.join((t==null?void 0:t.keySeparator)??".")}o(vb,"keysFromSelector");var iD={},rD=o(e=>!Be(e)&&typeof e!="boolean"&&typeof e!="number","shouldHandleAsObject"),Kg=class Kg extends Al{constructor(t,n={}){super(),MW(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=_o.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){let i={...n};if(t==null)return!1;let r=this.resolve(t,i);return(r==null?void 0:r.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&&!WW(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){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";typeof t=="function"&&(t=vb(t,{...this.options,...r})),Array.isArray(t)||(t=[String(t)]);let a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:l,namespaces:u}=this.extractFromKey(t[t.length-1],r),p=u[u.length-1],g=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");let m=r.lng||this.language,v=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((m==null?void 0:m.toLowerCase())==="cimode")return v?a?{res:`${p}${g}${l}`,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:`${p}${g}${l}`:a?{res:l,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:l;let S=this.resolve(t,r),b=S==null?void 0:S.res,I=(S==null?void 0:S.usedKey)||l,F=(S==null?void 0:S.exactUsedKey)||l,j=["[object Number]","[object Function]","[object RegExp]"],W=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,U=!this.i18nFormat||this.i18nFormat.handleAsObject,se=r.count!==void 0&&!Be(r.count),te=Kg.hasDefaultValue(r),le=se?this.pluralResolver.getSuffix(m,r.count,r):"",Le=r.ordinal&&se?this.pluralResolver.getSuffix(m,r.count,{ordinal:!1}):"",D=se&&!r.ordinal&&r.count===0,Ue=D&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${le}`]||r[`defaultValue${Le}`]||r.defaultValue,$e=b;U&&!b&&te&&($e=Ue);let qe=rD($e),rn=Object.prototype.toString.apply($e);if(U&&$e&&qe&&j.indexOf(rn)<0&&!(Be(W)&&Array.isArray($e))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let Bt=this.options.returnedObjectHandler?this.options.returnedObjectHandler(I,$e,{...r,ns:u}):`key '${l} (${this.language})' returned an object instead of string.`;return a?(S.res=Bt,S.usedParams=this.getUsedParamsDetails(r),S):Bt}if(s){let Bt=Array.isArray($e),Et=Bt?[]:{},Yt=Bt?F:I;for(let Fe in $e)if(Object.prototype.hasOwnProperty.call($e,Fe)){let vn=`${Yt}${s}${Fe}`;te&&!b?Et[Fe]=this.translate(vn,{...r,defaultValue:rD(Ue)?Ue[Fe]:void 0,joinArrays:!1,ns:u}):Et[Fe]=this.translate(vn,{...r,joinArrays:!1,ns:u}),Et[Fe]===vn&&(Et[Fe]=$e[Fe])}b=Et}}else if(U&&Be(W)&&Array.isArray(b))b=b.join(W),b&&(b=this.extendTranslation(b,t,r,i));else{let Bt=!1,Et=!1;!this.isValidLookup(b)&&te&&(Bt=!0,b=Ue),this.isValidLookup(b)||(Et=!0,b=l);let Fe=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Et?void 0:b,vn=te&&Ue!==b&&this.options.updateMissing;if(Et||Bt||vn){if(this.logger.log(vn?"updateKey":"missingKey",m,p,l,vn?Ue:b),s){let an=this.resolve(l,{...r,keySeparator:!1});an&&an.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 bn=[],on=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&on&&on[0])for(let an=0;an<on.length;an++)bn.push(on[an]);else this.options.saveMissingTo==="all"?bn=this.languageUtils.toResolveHierarchy(r.lng||this.language):bn.push(r.lng||this.language);let Rn=o((an,Oe,fn)=>{var tt;let Fi=te&&fn!==b?fn:Fe;this.options.missingKeyHandler?this.options.missingKeyHandler(an,p,Oe,Fi,vn,r):(tt=this.backendConnector)!=null&&tt.saveMissing&&this.backendConnector.saveMissing(an,p,Oe,Fi,vn,r),this.emit("missingKey",an,p,Oe,b)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&se?bn.forEach(an=>{let Oe=this.pluralResolver.getSuffixes(an,r);D&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&Oe.push(`${this.options.pluralSeparator}zero`),Oe.forEach(fn=>{Rn([an],l+fn,r[`defaultValue${fn}`]||Ue)})}):Rn(bn,l,Ue))}b=this.extendTranslation(b,t,r,S,i),Et&&b===l&&this.options.appendNamespaceToMissingKey&&(b=`${p}${g}${l}`),(Et||Bt)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${g}${l}`:l,Bt?b:void 0,r))}return a?(S.res=b,S.usedParams=this.getUsedParamsDetails(r),S):b}extendTranslation(t,n,i,r,a){var u,p;if((u=this.i18nFormat)!=null&&u.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 g=Be(t)&&(((p=i==null?void 0:i.interpolation)==null?void 0:p.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),m;if(g){let S=t.match(this.interpolator.nestingRegexp);m=S&&S.length}let v=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,i.lng||this.language||r.usedLng,i),g){let S=t.match(this.interpolator.nestingRegexp),b=S&&S.length;m<b&&(i.nest=!1)}!i.lng&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,(...S)=>(a==null?void 0:a[0])===S[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${n[0]}`),null):this.translate(...S,n),i)),i.interpolation&&this.interpolator.reset()}let s=i.postProcess||this.options.postProcess,l=Be(s)?[s]:s;return t!=null&&(l!=null&&l.length)&&i.applyPostProcessor!==!1&&(t=pD.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t,n={}){let 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 v=n.count!==void 0&&!Be(n.count),S=v&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(F=>{var j,W;this.isValidLookup(i)||(l=F,!iD[`${I[0]}-${F}`]&&((j=this.utils)!=null&&j.hasLoadedNamespace)&&!((W=this.utils)!=null&&W.hasLoadedNamespace(l))&&(iD[`${I[0]}-${F}`]=!0,this.logger.warn(`key "${r}" for languages "${I.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!!!")),I.forEach(U=>{var le;if(this.isValidLookup(i))return;s=U;let se=[g];if((le=this.i18nFormat)!=null&&le.addLookupKeys)this.i18nFormat.addLookupKeys(se,g,U,F,n);else{let Le;v&&(Le=this.pluralResolver.getSuffix(U,n.count,n));let D=`${this.options.pluralSeparator}zero`,Ue=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(n.ordinal&&Le.indexOf(Ue)===0&&se.push(g+Le.replace(Ue,this.options.pluralSeparator)),se.push(g+Le),S&&se.push(g+D)),b){let $e=`${g}${this.options.contextSeparator||"_"}${n.context}`;se.push($e),v&&(n.ordinal&&Le.indexOf(Ue)===0&&se.push($e+Le.replace(Ue,this.options.pluralSeparator)),se.push($e+Le),S&&se.push($e+D))}}let te;for(;te=se.pop();)this.isValidLookup(i)||(a=te,i=this.getResource(U,F,te,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,r={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(t={}){let 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(Kg,"Translator");var Hg=Kg,Ib=class Ib{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_o.create("languageUtils")}getScriptPartFromCode(t){if(t=Eu(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=Eu(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}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.getScriptPartFromCode(i);if(this.isSupportedCode(r))return n=r;let a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),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===!1?[]: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(Ib,"LanguageUtil");var Gg=Ib,oD={zero:0,one:1,two:2,few:3,many:4,other:5},aD={select:o(e=>e===1?"one":"other","select"),resolvedOptions:o(()=>({pluralCategories:["one","other"]}),"resolvedOptions")},Ob=class Ob{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=_o.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){let i=Eu(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(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),aD;if(!t.match(/-|_/))return aD;let u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[a]=s,s}needsPlural(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,i={}){return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((r,a)=>oD[r]-oD[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(t,n,i={}){let r=this.getRule(t,i);return r?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,i))}};o(Ob,"PluralResolver");var bb=Ob,sD=o((e,t,n,i=".",r=!0)=>{let a=UW(e,t,n);return!a&&r&&Be(n)&&(a=yb(e,n,i),a===void 0&&(a=yb(t,n,i))),a},"deepFindWithDefaults"),mb=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),Rb=class Rb{constructor(t={}){var n;this.logger=_o.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(i=>i),this.init(t)}init(t={}){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:v,nestingPrefixEscaped:S,nestingSuffix:b,nestingSuffixEscaped:I,nestingOptionsSeparator:F,maxReplaces:j,alwaysFormat:W}=t.interpolation;this.escape=n!==void 0?n:BW,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?El(a):s||"{{",this.suffix=l?El(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=v?El(v):S||El("$t("),this.nestingSuffix=b?El(b):I||El(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=j||1e3,this.alwaysFormat=W!==void 0?W:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>(n==null?void 0: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){var S;let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(b=>{if(b.indexOf(this.formatSeparator)<0){let W=sD(n,u,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(W,void 0,i,{...r,...n,interpolationkey:b}):W}let I=b.split(this.formatSeparator),F=I.shift().trim(),j=I.join(this.formatSeparator).trim();return this.format(sD(n,u,F,this.options.keySeparator,this.options.ignoreJSONStructure),j,i,{...r,...n,interpolationkey:F})},"handleFormat");this.resetRegExp();let g=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,m=((S=r==null?void 0:r.interpolation)==null?void 0:S.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(b=>mb(b),"safeValue")},{regex:this.regexp,safeValue:o(b=>this.escapeValue?mb(this.escape(b)):mb(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let I=a[1].trim();if(s=p(I),s===void 0)if(typeof g=="function"){let j=g(t,a,r);s=Be(j)?j:""}else if(r&&Object.prototype.hasOwnProperty.call(r,I))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${I} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=ZN(s));let F=b.safeValue(s);if(t=t.replace(a[0],F),m?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n,i={}){let 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}[ ]*{`)),v=`{${m[1]}`;u=m[0],v=this.interpolate(v,s);let S=v.match(/'/g),b=v.match(/"/g);(((S==null?void 0:S.length)??0)%2===0&&!b||b.length%2!==0)&&(v=v.replace(/'/g,'"'));try{s=JSON.parse(v),p&&(s={...p,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,I),`${u}${g}${v}`}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=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(p!==-1&&(u=r[1].slice(p).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=ZN(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),u.length&&(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(Rb,"Interpolator");var Sb=Rb,QW=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"),cD=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(Eu(i),r),t[s]=l),l(n)}},"createCachedFormatter"),qW=o(e=>(t,n,i)=>e(Eu(n),i)(t),"createNonCachedFormatter"),Lb=class Lb{constructor(t={}){this.logger=_o.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";let i=n.cacheInBuiltFormats?cD:qW;this.formats={number:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a});return l=>s.format(l)}),currency:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a,style:"currency"});return l=>s.format(l)}),datetime:i((r,a)=>{let s=new Intl.DateTimeFormat(r,{...a});return l=>s.format(l)}),relativetime:i((r,a)=>{let s=new Intl.RelativeTimeFormat(r,{...a});return l=>s.format(l,a.range||"day")}),list:i((r,a)=>{let s=new Intl.ListFormat(r,{...a});return l=>s.format(l)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=cD(n)}format(t,n,i,r={}){let 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)=>{var m;let{formatName:p,formatOptions:g}=QW(u);if(this.formats[p]){let v=l;try{let S=((m=r==null?void 0:r.formatParams)==null?void 0:m[r.interpolationkey])||{},b=S.locale||S.lng||r.locale||r.lng||i;v=this.formats[p](l,b,{...g,...r,...S})}catch(S){this.logger.warn(S)}return v}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(Lb,"Formatter");var Eb=Lb,YW=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Fb=class Fb extends Al{constructor(t,n,i,r={}){var a,s;super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=_o.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=[],(s=(a=this.backend)==null?void 0:a.init)==null||s.call(a,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 v=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?s[v]===void 0&&(s[v]=!0):(this.state[v]=1,g=!1,s[v]===void 0&&(s[v]=!0),a[v]===void 0&&(a[v]=!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=>{jW(u.loaded,[a],s),YW(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,r=0,a=this.retryTimeout,s){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,i={},r){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,n=""){let 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,s={},l=()=>{}){var u,p,g,m,v;if((p=(u=this.services)==null?void 0:u.utils)!=null&&p.hasLoadedNamespace&&!((m=(g=this.services)==null?void 0:g.utils)!=null&&m.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((v=this.backend)!=null&&v.create){let S={...s,isUpdate:a},b=this.backend.create.bind(this.backend);if(b.length<6)try{let I;b.length===5?I=b(t,n,i,r,S):I=b(t,n,i,r),I&&typeof I.then=="function"?I.then(F=>l(null,F)).catch(l):l(null,I)}catch(I){l(I)}else b(t,n,i,r,l,S)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(Fb,"Connector");var Ab=Fb,lD=o(()=>({debug:!1,initAsync:!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},cacheInBuiltFormats:!0}),"get"),fD=o(e=>{var t,n;return Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},"transformOptions"),Ug=o(()=>{},"noop"),zW=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Su=class Su extends Al{constructor(t={},n){if(super(),this.options=fD(t),this.services={},this.logger=_o,this.modules={external:[]},zW(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Be(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let i=lD();this.options={...i,...this.options,...fD(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let r=o(p=>p?typeof p=="function"?new p:p:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?_o.init(r(this.modules.logger),this.options):_o.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=Eb;let g=new Gg(this.options);this.store=new Bg(this.options.resources,this.options);let m=this.services;m.logger=_o,m.resourceStore=this.store,m.languageUtils=g,m.pluralResolver=new bb(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(m.formatter=r(p),m.formatter.init&&m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new Sb(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new Ab(r(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(S,...b)=>{this.emit(S,...b)}),this.modules.languageDetector&&(m.languageDetector=r(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=r(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new Hg(this.services,this.options),this.translator.on("*",(S,...b)=>{this.emit(S,...b)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ug),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=(...g)=>this.store[p](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...g)=>(this.store[p](...g),this)});let l=Tu(),u=o(()=>{let p=o((g,m)=>{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),l.resolve(m),n(g,m)},"finish");if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)},"load");return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),l}loadResources(t,n=Ug){var a,s;let i=n,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if((r==null?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let l=[],u=o(p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(m=>{m!=="cimode"&&l.indexOf(m)<0&&l.push(m)})},"append");r?u(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(g=>u(g)),(s=(a=this.options.preload)==null?void 0:a.forEach)==null||s.call(a,p=>u(p)),this.services.backendConnector.load(l,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(p)})}else i(null)}reloadResources(t,n,i){let r=Tu();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=Ug),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"&&pD.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}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;let i=Tu();this.emit("languageChanging",t);let r=o(l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},"setLngProps"),a=o((l,u)=>{u?this.isLanguageChangingTo===t&&(r(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve((...p)=>this.t(...p)),n&&n(l,(...p)=>this.t(...p))},"done"),s=o(l=>{var g,m;!t&&!l&&this.services.languageDetector&&(l=[]);let u=Be(l)?l:l&&l[0],p=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(Be(l)?[l]:l);p&&(this.language||r(p),this.translator.language||this.translator.changeLanguage(p),(m=(g=this.services.languageDetector)==null?void 0:g.cacheUserLanguage)==null||m.call(g,p)),this.loadResources(p,v=>{a(v,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,i){let r=o((a,s,...l)=>{let u;typeof s!="object"?u=this.options.overloadTranslationOptionHandler([a,s].concat(l)):u={...s},u.lng=u.lng||r.lng,u.lngs=u.lngs||r.lngs,u.ns=u.ns||r.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||r.keyPrefix);let p=this.options.keySeparator||".",g;return u.keyPrefix&&Array.isArray(a)?g=a.map(m=>(typeof m=="function"&&(m=vb(m,{...this.options,...s})),`${u.keyPrefix}${p}${m}`)):(typeof a=="function"&&(a=vb(a,{...this.options,...s})),g=u.keyPrefix?`${u.keyPrefix}${p}${a}`:a),this.t(g,u)},"fixedT");return Be(t)?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=i,r}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){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=Tu();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=Tu();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){var r,a;if(t||(t=this.resolvedLanguage||(((r=this.languages)==null?void 0:r.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{let s=new Intl.Locale(t);if(s&&s.getTextInfo){let l=s.getTextInfo();if(l&&l.direction)return l.direction}}catch{}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=((a=this.services)==null?void 0:a.languageUtils)||new Gg(lD());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new Su(t,n)}cloneInstance(t={},n=Ug){let i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Su(r);if((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){let l=Object.keys(this.store.data).reduce((u,p)=>(u[p]={...this.store.data[p]},u[p]=Object.keys(u[p]).reduce((g,m)=>(g[m]={...u[p][m]},g),u[p]),u),{});a.store=new Bg(l,r),a.services.resourceStore=a.store}return a.translator=new Hg(a.services,r),a.translator.on("*",(l,...u)=>{a.emit(l,...u)}),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(Su,"I18n");var Wg=Su,Q=Wg.createInstance();Q.createInstance=Wg.createInstance;var aee=Q.createInstance,see=Q.dir,cee=Q.init,lee=Q.loadResources,fee=Q.reloadResources,uee=Q.use,pee=Q.changeLanguage,dee=Q.getFixedT,gee=Q.t,mee=Q.exists,hee=Q.setDefaultNamespace,yee=Q.hasLoadedNamespace,Tee=Q.loadNamespaces,vee=Q.loadLanguages;var I0=Z(Nb()),O0=Z(UD()),dm=Z(C0()),ft=require("@sap-ux/vocabularies-types/vocabularies/UI"),Iu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var um=Z(ae());var re=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(`${um.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${um.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${um.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",LK=[G.v4.FE_TEMPLATE_V4_LIST_REPORT,G.v4.FE_TEMPLATE_V4_ALP,G.v4.FE_TEMPLATE_V4_OBJECT_PAGE,G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],FK=["sap.fe.core","sap.fe.templates"],R0="controlProperty",NK="defaultControlProperty",Rl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Tr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Hr(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,dm.parse)(r.fileContent,r.dataSourceUri))}catch(a){return re(t,{severity:G.LogSeverity.Error,message:Q.t("ANNOERR"),location:{path:Q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,dm.merge)(...n);i=(0,O0.convert)(r)}return i}o(Hr,"parseAndMergeAndConvert");var Ol=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Jb(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(Jb,"evaluateCommonLabel");function gm(e,t){let n=e.value;return e.$target&&(n=Jb(e.$target.annotations,t,n)),n}o(gm,"getLabelForPropertyPath");function Ou(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=Jb(i.annotations,t,n)),n}o(Ou,"getLabelForDataField");function Ta(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 Jb(a.annotations,t,s)}}}else return}o(Ta,"getLabel");function mm(e,t){var r;let n=e,i=typeof n.Action=="string"?n.Action:(r=n.Action)==null?void 0:r.path;return t&&typeof t=="string"?t:i}o(mm,"getDescriptionForActionBasedDataFields");function Zb(e,t,n){let i=Ou(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(Zb,"getTitleForDataField");function ut(e){return e.replace("#","::").replace(/\//g,":2f")}o(ut,"prepareRef");function ya(e){if(e){let t=`${G.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(ya,"getPageTypeV2");function eS(e){let t="name"in e&&typeof e.name=="string"?pm(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return G.PageTypeV4.CustomPage}o(eS,"getPageTypeV4");function DK(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(DK,"getTargetAnnotationName");function oi(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(oi,"findAlias");function _K(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(_K,"getAnnotationFromMetaPath");function VK(e,t,n){var s,l;let i=e[e.length-1],r=_K(i),a=oi(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(VK,"determineTargetAnnotation");function wK(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${ft.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${G.UIVOCABULARY}`);return e}o(wK,"adjustKey");function MK(e,t,n,i,r=G.FioriElementsVersion.v2,a=!1){var m,v;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=wK(t,u,a);let g=VK(u,n,e);if(g){let S=r===G.FioriElementsVersion.v2?"::":"#";t=DK(g,a).replace("#",S),l=(v=g.fullyQualifiedName)==null?void 0:v.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let S=r===G.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(S)}${S}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(MK,"getKeyAndEntityTypeOfReferenceFacet");function L0(e,t,n,i,r=G.FioriElementsVersion.v2,a=!1){var g,m,v;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=(v=e.fullyQualifiedName)==null?void 0:v.split("@")[0],p=t;if(e.$Type!==ft.UIAnnotationTypes.CollectionFacet&&"Target"in e){let S=Ol(e.Target);if(!S){re(i,{severity:G.LogSeverity.Error,message:Q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:I,stopProcessing:F,namespace:j}=MK(n,l,p,S,r,a);if(F)return;l=b,p=I,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(L0,"getSectionFacet");function kK(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(kK,"getDecodedPathElement");var tS=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),F0=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=kK(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=tS(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Mo=o((e,t,n,i,r=!1)=>F0(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),N0=o((e,t,n,i,r)=>{F0(e,t,i,r,n)},"setManifestSectionByPathV4");function nS(e){let t,n,i;switch(e.$Type){case ft.UIAnnotationTypes.DataField:t=Ol(e.Value);break;case ft.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Ol(e.Value);break;case ft.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${G.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case ft.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ut(e.Action)}`);break;case ft.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Ol(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case ft.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ut(e.Action)}`);break;case ft.UIAnnotationTypes.DataFieldWithNavigationPath:i=Ol(e.Value),n=Ol(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(nS,"getSchemaKeyOfLineItemRecord");function jK(e,t,n){return e.includes(ft.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?ft.UIAnnotationTerms.Chart:e.includes(ft.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?ft.UIAnnotationTerms.Identification:n&&e.includes(ft.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?ft.UIAnnotationTerms.LineItem:e.includes(ft.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?ft.UIAnnotationTerms.FieldGroup:e.includes(ft.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?ft.UIAnnotationTerms.DataPoint:e.includes(ft.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?ft.UIAnnotationTerms.PresentationVariant:e.includes(ft.UIAnnotationTerms.SelectionPresentationVariant)||e.includes(t+".SelectionPresentationVariant")?ft.UIAnnotationTerms.SelectionPresentationVariant:void 0}o(jK,"getUIAnnotationTerm");function UK(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Iu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Iu.CommunicationAnnotationTerms.Address:void 0}o(UK,"getCommunicationAnnotationTerm");function $K(e,t,n){return jK(e,t,n)||UK(e,t)}o($K,"getAnnotationTerm");function BK(e,t,n,i,r){var p,g,m,v,S,b,I,F,j,W;let a=oi(G.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch($K(s,a,i)){case ft.UIAnnotationTerms.Chart:{n[s]={base:G.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 ft.UIAnnotationTerms.Identification:{n[s]={base:G.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 ft.UIAnnotationTerms.LineItem:{if(!s.includes(ft.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let U=s.split("::");U[U.length-1]=`@${ft.UIAnnotationTerms.LineItem}`,s=U.join("::")}n[s]={base:G.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 ft.UIAnnotationTerms.FieldGroup:{n[s]={base:G.FacetBase.Form},n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ft.UIAnnotationTerms.DataPoint:{n[s]={base:G.FacetBase.DataPoint},n[s].Label=(S=t==null?void 0:t.Target)==null?void 0:S.$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 ft.UIAnnotationTerms.PresentationVariant:{n[s]={base:G.FacetBase.PresentationVariant},n[s].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ft.UIAnnotationTerms.SelectionPresentationVariant:{n[s]={base:G.FacetBase.SelectionPresentationVariant},n[s].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Iu.CommunicationAnnotationTerms.Contact:{n[s]={base:G.FacetBase.Contact},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}case Iu.CommunicationAnnotationTerms.Address:{n[s]={base:G.FacetBase.Address},n[s].target=(W=t==null?void 0:t.Target)==null?void 0:W.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:G.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",G.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(BK,"evaluateTargetAnnotation");function iS(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(iS,"getAnnotationPathUsingFullyQualifiedName");function rS(e,t,n,i,r,a=G.FioriElementsVersion.v2,s){var u;let l=L0(e,i,t,s,a,!1);if(l)switch(e.$Type){case ft.UIAnnotationTypes.ReferenceFacet:{BK(l,e,r,i,t);break}case ft.UIAnnotationTypes.CollectionFacet:{let p=iS(i,e.fullyQualifiedName),g=r[l.key]={base:G.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===G.FioriElementsVersion.v4&&re(s,{severity:G.LogSeverity.Error,message:Q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{rS(m,t,n,i,g.facets,a,s)});break}}}o(rS,"addFacetToConfig");function hm(e,t,n=G.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=oi(G.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=>{rS(m,t,g,e,r,n,i)})}return r}o(hm,"getObjectPageHeaderFacets");function ym(e,t,n=G.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=oi(G.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=>{rS(g,t,p,e,r,n,i)})}return r}o(ym,"getObjectPageFacets");function oS(e){var t,n,i,r;if(e[G.ManifestSection.generic]&&Object.keys(e[G.ManifestSection.generic]).length>0||e[G.ManifestSection.ovp]&&Object.keys(e[G.ManifestSection.ovp]).length>0)return G.FioriElementsVersion.v2;{let a=(n=(t=e[G.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[G.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>{let u=typeof a[l].name=="string"?a[l].name:"";return LK.indexOf(u)>-1||pm(u)})||s&&Object.keys(s).find(l=>FK.indexOf(l)>-1)?G.FioriElementsVersion.v4:void 0}}o(oS,"getFEVersionFromManifest");function HK(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[G.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[G.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[G.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[G.ManifestSection.ui5].models[t].dataSource:void 0}o(HK,"getMainService");function D0(e){var i,r;let t=HK(e);if(!t)return G.OdataVersion.v2;let n=(i=e[G.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?G.OdataVersion.v4:G.OdataVersion.v2}o(D0,"getODataVersionFromManifest");function GK(e,t){var i,r;let n;if(e[G.ManifestSection.generic]){let a=e[G.ManifestSection.generic].pages;if(!a){re(t,{severity:G.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(ya((i=l.component)==null?void 0:i.name)===G.PageTypeV2.AnalyticalListPage){n=G.TemplateType.AnalyticalListPageV2;break}else if(ya((r=l.component)==null?void 0:r.name)===G.PageTypeV2.ListReport){n=G.TemplateType.ListReportObjectPageV2;break}}}else n||re(t,{severity:G.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:G.ManifestSection.generic}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return n}o(GK,"determineV2Template");function Ru(e){var i,r,a,s;let t,n=eS(e);if(n===G.PageTypeV4.AnalyticalListPage)t=G.TemplateType.AnalyticalListPageV4;else if(n===G.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[G.ALPViewType.Primary]||l[G.ALPViewType.Secondary])?t=G.TemplateType.AnalyticalListPageV4:t=G.TemplateType.ListReportObjectPageV4}else n===G.PageTypeV4.ObjectPage?t=G.TemplateType.ListReportObjectPageV4:[G.PageTypeV4.CustomPage,G.PageTypeV4.FPMCustomPage].includes(n)&&(t=G.TemplateType.FreestylePageV4);return t}o(Ru,"determineV4PageTemplateType");function WK(e){let t;for(let n in e){let i=e[n];if(t=Ru(i),t)break}return t}o(WK,"determineV4TemplateFromPages");function KK(e,t){let n=e[G.ManifestSection.ui5].routing&&e[G.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return re(t,{severity:G.LogSeverity.Info,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing"]}}),G.TemplateType.ListReportObjectPageV4;let i=WK(n);return i||re(t,{severity:G.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:G.ManifestSection.ui5}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing","targets"]}}),i}o(KK,"determineV4Template");function mc(e,t,n){let i;return e[G.ManifestSection.ovp]?i=G.TemplateType.OverviewPageV2:t===G.FioriElementsVersion.v2?i=GK(e,n):t===G.FioriElementsVersion.v4&&(i=KK(e,n)),i}o(mc,"getTemplateTypeFromManifest");function va(e,t,n){e!=null&&e.ID?(t.title=G.FACETTITLEPREFIX+e.ID,t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:n.replace(G.UIVOCABULARYALPHADOT,"")}])}o(va,"addSectionTitle");function rs(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(rs,"addSectionDescription");function Ll(e,t,n){var i,r;va(e,t,n),rs(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(Ll,"addTargetTitleAndSectionDescription");function _0(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(_0,"addChartFacetID");function ko(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[G.SchemaTag.isViewNode]=!0,i[G.SchemaTag.annotationPath]=t.annotationPath,Ll(t,i,n),i}o(ko,"createDefaultSection");function V0(e,t,n,i=G.FioriElementsVersion.v2,r=!1){var l,u;let a=oi(G.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 v=L0(m,e,t,n,i,!0);return v&&g.push(v),g},s)),s}}o(V0,"getObjectPageFacetSection");var os=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(/\?\?/g,"/");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(),os(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),zb=o(e=>e===G.SchemaType.FreestylePage?G.PageTypeV2.CustomPage:e===G.SchemaType.FPMCustomPage?G.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Dt=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case G.SchemaType.Application:{i.filename="App",i.path=`./${G.DirName.Schemas}/${i.filename}`;break}case G.SchemaType.ListReport:case G.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:zb(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}case G.PageTypeV4.FPMCustomPage:case G.SchemaType.FPMCustomPage:{i.filename=n?`${G.SchemaType.FPMCustomPage}_${n}`:zb(G.SchemaType.FPMCustomPage),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}default:{i.filename=zb(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function Tm(e,t,n,i){if(e===G.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(Tm,"generatePageId");function aS(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($)[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(aS,"findMatchingKeysByAdditionalProperties");function XK(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split($)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s[R0];if(l)r.includes(n[l])&&i.push(a),n[l]===void 0&&s[NK]&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=aS(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(XK,"fillArrayFromAnyOfReference");function QK(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{XK(r,n,t,i)}),i.length===0))return;return i}o(QK,"fillArrayFromPropertyDefinition");function qK(e){return e.replace(G.UIVOCABULARYDOT,"")}o(qK,"extractUIAnnotationType");function YK(e,t,n,i,r,a,s,l){var p,g,m,v,S;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(u.targetDefinition=t.definitions[b],((p=u==null?void 0:u.targetDefinition)==null?void 0:p.dataType)!==qK(ft.UIAnnotationTypes.DataFieldForActionGroup)&&((g=u==null?void 0:u.targetDefinition)!=null&&g.$ref)||((m=u==null?void 0:u.targetDefinition)==null?void 0:m.type)==="array")return u=jo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(j=>{j!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[j].properties})}),u.title=(v=u==null?void 0:u.targetDefinition)!=null&&v.title?u.targetDefinition.title:n;let I=b==null?void 0:b.split("<")[0],F=i||{};u.configObject=a.createInstance(s,I,F,(S=u==null?void 0:u.targetDefinition)==null?void 0:S[R0])}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(YK,"determineNextDefinitionFromDefinitionArray");function jo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=jo(e,t,n,i.items,r,a,s),l;let u=QK(i,n,e);if(u)return l=YK(u,e,t,n,r,a,s,i),l}o(jo,"getNextTargetDefinition");var sS=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,I0.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function vm(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(vm,"convertEnumToCSV");function Zi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Zi,"convertActionKeyToStableId");function Jt(e){return e==null?void 0:e.split($)[1]}o(Jt,"getDefinitionKey");function bm(e){return`#/definitions/${e}`}o(bm,"getDefinitionsRef");function Sm(e){return e instanceof Error?e.message:String(e)}o(Sm,"getErrorMessage");function hc(e,t){return e==null?void 0:e.includes(t)}o(hc,"isFeatureSupported");function Uo(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Uo,"updatePropertyIndices");function Em(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(Em,"getJSONPropertyByPath");function w0(e){return e=e.replace(G.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(w0,"removeNamespaces");function Fl(e){return e=e.replace(G.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(Fl,"replaceNamespaces");function ba(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith($))return t.substring($.length)}o(ba,"getRefType");function pm(e){if(e===G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return G.PageTypeV4.FPMCustomPage;if(e!=null&&e.startsWith(`${G.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in G.PageTypeV4)return G.PageTypeV4[n]}}o(pm,"convertTemplateNameToPageTypeV4");function Am(e,t){if(e===t)return!0;let n=pm(e);return n?n===pm(t):!1}o(Am,"compareTemplateNames");var Lo=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=Z(ae());var er=Z(ae());var Zt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Pm=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),zn=o((e,t)=>{let n,i=er.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 zK(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(zK,"escapeId");var M0=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(M0||{}),k0=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(k0||{});function JK(e,t,n){let i;return e=e.map(function(r){if(r===er.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===er.PropertyName.sections)return i=t[a+1],t[a+1]=zn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(JK,"mapBreadcrumbs");var cS=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=JK(t,s,r)),s[0]===er.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,er.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,er.VOCWITHSLASH):t[0]===er.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,er.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,er.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}`),zK(p)},"buildColumnControlId"),tr=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 ZK(e){let t=er.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(ZK,"determinePattern");var lS=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($)[1]]:a,u=a.description?a.description:l.description,p=ZK(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"),Jn=o((e,t,n)=>{lS(e,t,n)},"addPatternForBindingChangeOfEnumLR"),ht=o((e,t,n)=>{let i=Object.values(M0);lS(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ai=o((e,t,n)=>{let i=Object.values(k0);lS(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function yc(){}o(yc,"doNotDelete");var gte=Z(U0());var fS=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(fS,e),"syncRule");function Mn(e,t){let n;return e&&(n=Reflect.getMetadata(fS,e,t)),n}o(Mn,"getReflectMetadata");function $0(e){let t;return e&&(t=Reflect.getMetadata(fS,e)),t}o($0,"getReflectTypeMetadata");var nr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),B0=Symbol("childId"),jt=o(e=>Reflect.metadata(B0,e),"childId"),xm=o((e,t)=>Reflect.getMetadata(B0,e,t),"getChildId"),Cm=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),eX=Symbol("descriptionSrcURL"),Ae=o(e=>Reflect.metadata(eX,e),"descriptionSrcURL");var tX=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(tX,e),"validity");function Nl(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(Nl,"getTextForDeprecated");var Y0=Z(Q0()),z0=Z(ae());var J0=Y0.default.change,q0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function Z0(e,t){let n="";try{for(let i in q0)e[i]===void 0&&(e[i]=q0[i]);n=J0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(Z0,"createChangeString");function vr(e){try{return J0.parse(e)}catch{return!1}}o(vr,"parseChangeString");function e_(e,t,n,i,r){let a=n.layer?n.layer===z0.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(e_,"fillFlexChangeContent");function Im(e,t){return Z0(e,t)}o(Im,"exportToFlexChange");var Tc=Z(ae());function Dl(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(Dl,"importProperty");function Om(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(re(i,{severity:Tc.LogSeverity.Warning,message:Nl(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Om,"checkDeprecatedProperties");function uS(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return uS(n,t)}else return e.title?e.title.startsWith(Tc.FACETTITLEPREFIX)?e.title.split(Tc.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(uS,"getSectionTitle");function Rm(e){let t=e.split(`${Tc.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Rm,"getTargetFromCustomColumnRef");function Gr(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(Gr,"removeEmptyStructure");var _t=require("@sap-ux/vocabularies-types/vocabularies/UI");var Bo=require("@sap-ux/vocabularies-types/vocabularies/UI");var Ea=require("@sap-ux/vocabularies-types/vocabularies/UI");var t_=Z(ae()),ee=Z(ae()),n_=require("path");function Ot(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=Mn(e,g);if(m!=null&&m.manifest){let v=m.manifest.path([i],t,p,...r);l=Mo(t,v,a,p,!0),l&&Object.keys(l).length>0&&(Dl(m,l,g,e,a,r),Om(u,l,v,s))}}}o(Ot,"importSettingsOfObject");var mS="DataFieldForActionGroup";function cX(){return([e,t],[n,i])=>t[ee.SchemaTag.propertyIndex]-i[ee.SchemaTag.propertyIndex]}o(cX,"sortByPropertyIndex");function Lu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(cX())}o(Lu,"sortPropertiesRecords");function lX(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(lX,"getExtensionText");function pS(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||ee.v4.Placement.After)===ee.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(pS,"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 i_(e,t,n,i){let r=t.includes(ee.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=lX(e);return{$ref:`${$}${r}`,description:a,keys:[{name:ee.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(i_,"getExtensionDetails");function dS(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=i_(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let v=n.findIndex(S=>S[0]===g.position.anchor);v>-1?(pS(g,n,v,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(re(i,{severity:Vi.LogSeverity.Error,message:Q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&fX(e,p,g,n,m)}else r&&(pS(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?dS(e,t,n,i):s>0&&dS(e,t,n,i,!0)}o(dS,"adjustCustomExtReferringToCustomExt");function uX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||ee.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===ee.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(uX,"getExtensionAnchor");function pX(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(pX,"getLocalExtensionsToSkip");function dX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ee.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 v=t[m[0]];if(g(v))break;p++}return p},"findNextIndex"),s=0;return i===ee.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)!==ee.v4.Placement.Before))}),s>-1?s:0}o(dX,"getExtensionIndexByMergedApproach");function gX(e,t,n,i,r=!1){return r?dX(e,t,n):n.findIndex(a=>a[0]===i)}o(gX,"getExtensionIndex");function mX(e,t,n,i,r){re(e,{severity:Vi.LogSeverity.Error,message:Q.t("INVALIDEXTENSION",{id:t}),location:{path:ee.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(mX,"handleInvalidExtension");function Sa(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=pX(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=i_(g,n,p,ee.ActionType.Custom);if(typeof g!="object"){mX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let v=uX(g,s);if(v){let S=gX(g,e,t,v,a);S>-1&&(pS(g,t,S,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&dS(l,n,t,r),t}o(Sa,"addExtensionToArray");function hS(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(hS,"addEnumForProperties");function hX(e,t,n,i=ee.DefinitionName.CustomColumn){if(i===ee.DefinitionName.CustomColumn||i.indexOf(ee.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];hS(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[ee.SchemaTag.propertyIndex]=r}}o(hX,"addColumnPropertyIndexAndEnum");function vc(e,t,n,i=ee.DefinitionName.CustomColumn,r,a){var v,S,b,I;let s=r||ee.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Lu(l),p=a?a.replace(/::/g,"/"):`@${Ea.UIAnnotationTerms.LineItem}`,g=(I=(b=(S=(v=t.options)==null?void 0:v.settings)==null?void 0:S.controlConfiguration)==null?void 0:b[p])==null?void 0:I.columns;g&&(u=Sa(g,u,i,void 0,n)),hX(u,e,l,i);let m={};u.forEach(([F,j])=>m[F]=j),e.definitions[s].properties=m}o(vc,"addCustomColumnDefinition");function r_(e,t){let n=t.$Type===Ea.UIAnnotationTypes.DataFieldForActionGroup,i;return e.lineItemId.startsWith(ee.DefinitionName.LineItemsOfView)?i=n?ee.DefinitionName.ViewToolBarActionGroup:ee.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(ee.DefinitionName.LineItems)?i=n?ee.DefinitionName.ToolBarActionGroup:ee.DefinitionName.ToolBarAction:i=n?ee.DefinitionName.ObjectPageToolBarActionGroup:ee.DefinitionName.ObjectPageToolBarAction,i}o(r_,"determineActionDefinitionName");function yX(e,t,n){e[ee.SchemaTag.keys]=[],t[ee.SchemaKeyName.semanticObject]&&e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.semanticObject,value:t[ee.SchemaKeyName.semanticObject]});let{key:i,ns:r}=Pc(n,!0);e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.action,value:i}),r&&(e[ee.SchemaTag.target]=r)}o(yX,"addTargetAndKeysOfAction");function o_(e,t=!0){let{lineItemData:n,actions:i,lineItemPath:r,lineItemRecord:a,index:s}=e;if(a.Determining===!0)return;let l=r_(n,a),u=ci(a,n.entityType),p=a.$Type.split(`${ee.UIVOCABULARY}.`)[1],g=typeof a.Action=="string"?a.Action:a.Action.path,m=Nm(g),v=i.properties[`${p}::${m}`]={description:u};if(t?v.$ref=f_(l,ut(m),n.appSchema,r):(v.properties={},v.type="object",v.isViewNode=!0),v[ee.SchemaTag.propertyIndex]=s,v[ee.SchemaTag.dataType]=Kr(a),yX(v,a,g),v[ee.SchemaTag.annotationType]=a.$Type,t){let S=v.$ref.replace($,""),b=vt(l,S,n.appSchema,!1);b[ee.SchemaTag.annotationPath]=`${r}/${s}`}else v[ee.SchemaTag.annotationPath]=`${r}/${s}`}o(o_,"addActionRecordToSchema");function a_(e,t=!0){let{lineItemData:n,lineItemRecord:i,lineItemPath:r,index:a,actions:s}=e,l=r_(n,i),u=Wr(i),p={};t?(s.properties[`${u}`]={$ref:si(l,ut(u))},p=vt(l,ut(u),n.appSchema)):s.properties[`${u}`]=p,xa(p,Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),p.properties={},p.description=ci(i,n.entityType),p.type="object",p.isViewNode=!0,p[ee.SchemaTag.propertyIndex]=a,p[ee.SchemaTag.dataType]=Kr(i),p[ee.SchemaTag.annotationPath]=`${r}/${a}`,(i.Actions??[]).forEach((g,m)=>{let v={...e,lineItemRecord:g,lineItemPath:`${p[ee.SchemaTag.annotationPath]}/Actions`,actions:p,index:m};o_(v,t)})}o(a_,"addGroupActionRecordToSchema");function yS(e){let{lineItemRecord:t,lineItemDefinition:n}=e;t.Inline!==!0||t.Determining===!0?o_(e,!n):TS(e)}o(yS,"addLineItemActionDefinition");function TS(e){var g;let{lineItemData:t,lineItemRecord:n,lineItemDefinition:i,lineItemPath:r,index:a,columnDefinitionName:s}=e,l=n.$Type===Ea.UIAnnotationTypes.DataFieldForAction?`${s}Action`:s,u=t.lineItemId;if((g=n.Target)!=null&&g.value){let m=`@${oi(ee.UIVOCABULARY,t.oDataServiceAVT)}.`;n.Target.value=n.Target.value.replace(m,"@")}let p=Wr(n).replace(/\//g,"::");if(p){let m=i;m||(m=t.appSchema.definitions[u]);let v=m.properties,S={description:ci(n,t.entityType)};i?(S.properties={},S.type="object",S.isViewNode=!0):S.$ref=$+l,S[ee.SchemaTag.annotationType]=n==null?void 0:n.$Type,S[ee.SchemaTag.annotationPath]=`${r}/${a}`,S[ee.SchemaTag.propertyIndex]=a,S[ee.SchemaTag.dataType]=Kr(n),v[p]=S,Vm(n,v,p)}}o(TS,"addLineItemRecordToSchema");function vS(e,t,n,i,r=ee.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{let l={lineItemData:e,actions:t,lineItemPath:n,lineItemRecord:s,index:a,lineItemDefinition:i,columnDefinitionName:r};as.getStrategy(s.$Type).addLineItemDefinition(l),a++})}o(vS,"appendLineItemsToSchema");function bc(e,t=ee.DefinitionName.TableColumn,n=ee.DefinitionName.CustomColumn,i=ee.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=Dm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);vS(e,r,a,void 0,t)}o(bc,"addLineItemsTypeToSchema");function Sc(e,t,n,i=ee.DefinitionName.Position,r){var p,g,m,v,S;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!==ee.DefinitionName.LineItems?r:`@${Ea.UIAnnotationTerms.LineItem}`,u=(S=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[l])==null?void 0:S.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(Sc,"addFragmentEnumForAnchor");function po(e,t,n=ee.DefinitionName.CustomActionPosition){ss(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(po,"addEnumForActionAnchor");function Lm(e,t,n,i){var a;let r;for(let s in e){let l=((a=e[s].options)==null?void 0:a.settings)||{};if((i&&l.contextPath===i||(n==null?void 0:n.name)&&l.entitySet===n.name)&&(Am(t,e[s].name)||t===ee.v4.FE_TEMPLATE_V4_ALP&&e[s].name===ee.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(Lm,"findPageV4");function s_(e,t){let n,i=e.properties[ee.PropertyName.table];return t.templateType===ee.TemplateType.AnalyticalListPageV4?(n=ee.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${ee.DefinitionName.ALPTableView}`,delete e.definitions[ee.DefinitionName.Table],delete e.definitions[ee.DefinitionName.LRChartView],delete e.definitions[ee.DefinitionName.LRTableView],delete e.definitions[ee.DefinitionName.MultiTableModeV4]):t.templateType===ee.TemplateType.ListReportObjectPageV4&&(n=ee.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${ee.DefinitionName.Table}`,e.definitions[n].properties[ee.PropertyName.annotationPath][ee.SchemaTag.hidden]=!0,delete e.definitions[ee.DefinitionName.ALPTableView],e.properties[ee.PropertyName.defaultPath][ee.SchemaTag.hidden]=!0),n}o(s_,"alignSchemaWithTemplateType");function Aa(e,t,n,i=ee.DefinitionName.CustomTableAction,r="",a=""){var g,m,v,S,b,I,F,j,W,U;let s=e.definitions[r];if(!s)return;let l=Lu(s),u;a?i.indexOf(ee.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===ee.DefinitionName.CustomFormActionOP?u=`@${Ea.UIAnnotationTerms.FieldGroup}`:u=`@${Ea.UIAnnotationTerms.LineItem}`;let p;if(r.includes(ee.DefinitionName.ObjectPageCustomSectionActions)?p=(I=(b=(S=(v=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:S.sections)==null?void 0:b[u])==null?void 0:I.actions:p=(U=(W=(j=(F=t.options)==null?void 0:F.settings)==null?void 0:j.controlConfiguration)==null?void 0:W[u])==null?void 0:U.actions,p&&(l=Sa(p,l,i,"press",n)),l){for(let te=0;te<l.length;te++)l[te][1][ee.SchemaTag.propertyIndex]=te;let se={};l.forEach(([te,le])=>se[te]=le),e.definitions[r].properties=se}}o(Aa,"addCustomActionDefinition");function Fm(e,t,n,i=ee.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,v,S,b,I,F;let a=e.definitions[r];if(!a)return;let s=Lu(a),l;[ee.DefinitionName.CustomHeaderAction,ee.DefinitionName.CustomHeaderActionOP].includes(i)?l=(v=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:v.actions:l=(F=(I=(b=(S=t.options)==null?void 0:S.settings)==null?void 0:b.content)==null?void 0:I.footer)==null?void 0:F.actions,l&&(s=Sa(l,s,i,"press",n));let u={};if(s){for(let j=0;j<s.length;j++)s[j][1][ee.SchemaTag.propertyIndex]=j;s.forEach(([j,W])=>u[j]=W)}e.definitions[r].properties=u}o(Fm,"addHeaderFooterCustomActionDefinition");function Ec(e,t,n){let i=Em(e,[ee.ManifestSection.ui5,"routing","targets"]);if(!i){re(n,{severity:Vi.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}let r=Em(i,[t]);if(!r){re(n,{severity:Vi.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:t}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}return r}o(Ec,"getManifestPage");function Ac(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,n_.join)(...p,g),v=e.find(S=>S.dataSourceUri.endsWith(m));if(v){let S=(s=t.options)==null?void 0:s.settings;return{file:v,relativeFilePath:m,connection:{contextPath:S==null?void 0:S.contextPath,entitySet:S==null?void 0:S.entitySet}}}}}o(Ac,"getPageCustomExtensionFile");function $o(e,t,n,i){let r=Ec(n,t,i),a=Em(r,["options","settings","viewName"]);return r&&typeof a=="string"?Ac(e,r,n,"view",a):void 0}o($o,"getPageCustomViewFile");function c_(e,t,n,i,r,a,s){var g,m,v,S,b,I,F,j,W,U,se,te;let l=Lu(t),u=new Map;if(l=l.map(le=>{let Le=_m(e,le[1],le[0],{keyProperties:[ee.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Le.const,le[0]),[Le.const,le[1]]}),a){let le=(b=(S=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:S.sections)==null?void 0:b[a];le&&"subSections"in le&&(l=Sa(le.subSections,l,i,"template",s,r))}else if(i.includes(ee.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let le=(j=(F=(I=n.options)==null?void 0:I.settings)==null?void 0:F.content)==null?void 0:j.header;le&&"facets"in le&&(l=Sa(le.facets,l,i,"template",s,r))}else{let le=(te=(se=(U=(W=n.options)==null?void 0:W.settings)==null?void 0:U.content)==null?void 0:se.body)==null?void 0:te.sections;le&&(l=Sa(le,l,i,"template",s,r))}for(let le=0;le<l.length;le++)l[le][1][ee.SchemaTag.propertyIndex]=le;let p={};l.forEach(([le,Le])=>{le=u.get(le)||le,p[le]=Le}),t.properties=p}o(c_,"addCustomSectionDefinition");function l_(e,t,n){var l,u,p;let i=Lu(t),r=new Map;i=i.map(g=>{let m=_m(e,g[1],g[0],{keyProperties:[ee.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[`@${Ea.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=Sa(a.filterFields,i,ee.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][ee.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(l_,"addCustomFilterFieldDefinition");function gS(e,t,n=!1){let{appSchema:i,factory:r,actionsInConfig:a,actionKey:s,manifest:l,routingId:u,manifestSectionId:p,targetAnnotation:g}=e,m=(t??"").split("<")[0],v=r.createInstance(t_.PageTypeV4.ObjectPage,m),S=[s.replace("/","??")];if(g&&S.push(g),v){let b=a[s]=v;Ot(b,l,i.definitions[t],u,S,p),n||Gr(a,s)}}o(gS,"importActionToConfigurationObject");function TX(e,t){let{actionPropertyDefinition:n}=e,i=Jt(t.$ref||n.$ref);gS(e,i)}o(TX,"importSingleActionSettingsOfReference");function vX(e,t){let{actionPropertyDefinition:n,appSchema:i,actionsInConfig:r,actionKey:a}=e,s=Jt(t.$ref??n.$ref);gS(e,s,!0);let l=r[a];xa(l,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let{properties:u}=t;for(let p in u){let g=u[p],m=Jt(g.$ref),v=i.definitions[m],S=Jt(v.$ref??g.$ref),b={...e,actionsInConfig:l,actionKey:p};gS(b,S)}Gr(r,a)}o(vX,"importGroupActionSettingsOfReference");function _l(e){let{actionPropertyDefinition:t,appSchema:n}=e,i=Jt(t.$ref),r=n.definitions[i];r.dataType===mS?vX(e,r):TX(e,r)}o(_l,"importActionSettingsOfReference");var LS=class LS{addDefinition(t){u_(t)}addLineItemDefinition(t){TS(t)}};o(LS,"DataFieldStrategy");var go=LS,FS=class FS extends go{generateStableId(t){return Ca("DataFieldForAction::"+t.Action)}generateDescription(t,n){let i=Ta(t.Label,n);return mm(t,i)}addDefinition(t){Fu(t)}addLineItemDefinition(t){yS(t)}};o(FS,"DataFieldForActionStrategy");var bS=FS,NS=class NS extends go{generateStableId(t){return Ca("DataFieldForActionGroup::"+t.ID)}generateDescription(t,n){let i=Ta(t.Label,n);return t.Label??t.ID??i}addDefinition(t){Fu(t)}addLineItemDefinition(t){var n;a_(t,!((n=t.lineItemData)!=null&&n.isMacro))}};o(NS,"DataFieldForActionGroupStrategy");var SS=NS,DS=class DS extends go{generateStableId(t){return"DataFieldForIntentBasedNavigation::"+$S(t)}generateDescription(t,n){let i=Ta(t.Label,n);return mm(t,i)}addDefinition(t){Fu(t)}addLineItemDefinition(t){yS(t)}};o(DS,"DataFieldForIntentBasedNavigationStrategy");var ES=DS,_S=class _S extends go{generateStableId(t){var i,r;let n=((i=t.Target)==null?void 0:i.$AnnotationPath)??((r=t.Target)==null?void 0:r.value)??"";return"DataFieldForAnnotation::"+Ca(n)}generateDescription(t,n){var a,s,l,u;let i=Ou(t,n);return Ta(t.Label,n)||i||((s=(a=t==null?void 0:t.Target)==null?void 0:a.$target)==null?void 0:s.Title)||((u=(l=t==null?void 0:t.Target)==null?void 0:l.value)==null?void 0:u.split("UI.v1.")[1])}};o(_S,"DataFieldForAnnotationStrategy");var AS=_S,VS=class VS extends go{generateStableId(t){let n="DataFieldWithAction::";return"Value"in t&&t.Value&&(n+=cs(t.Value)+"::"),n+=t.Action,Ca(n)}generateDescription(t,n){let i=Ta(t.Label,n);return mm(t,i)}};o(VS,"DataFieldWithActionStrategy");var PS=VS,wS=class wS extends go{generateStableId(t){return Ca("DataField::"+cs(t.Value))}generateDescription(t,n){let i=Ta(t.Label,n);return Zb(t,n,i)}};o(wS,"DataFieldStrategyDefault");var xS=wS,MS=class MS extends go{generateStableId(t){let n="DataFieldWithIntentBasedNavigation::";return n+=cs(t.Value)+"::",n+=$S(t),Ca(n)}generateDescription(t,n){return Ou(t,n)||t.Value.path}};o(MS,"DataFieldWithIntentBasedNavigationStrategy");var CS=MS,kS=class kS extends go{generateStableId(t){let n="DataFieldWithNavigationPath::"+cs(t.Value);return t.Target&&t.Target.$NavigationPropertyPath&&(n+="::"+t.Target.$NavigationPropertyPath),Ca(n)}generateDescription(t,n){let i=Ta(t.Label,n);return Zb(t,n,i)}};o(kS,"DataFieldWithNavigationPathStrategy");var IS=kS,jS=class jS extends go{generateStableId(t){return Ca("DataFieldWithUrl::"+cs(t.Value))}generateDescription(t,n){let i=Ou(t,n);return Ta(t.Label,n)||i||(typeof t.Value=="string"?t.Value:t.Value.path)}};o(jS,"DataFieldWithUrlStrategy");var OS=jS,US=class US{constructor(){this.strategies=new Map,this.registerStrategy(Bo.UIAnnotationTypes.DataFieldForAction,new bS),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldForActionGroup,new SS),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldForIntentBasedNavigation,new ES),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldForAnnotation,new AS),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldWithAction,new PS),this.registerStrategy(Bo.UIAnnotationTypes.DataField,new xS),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldWithIntentBasedNavigation,new CS),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldWithNavigationPath,new IS),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldWithUrl,new OS)}registerStrategy(t,n){this.strategies.set(t,n)}getStrategy(t){return this.strategies.get(t)}};o(US,"DataFieldStrategyContext");var RS=US,as=new RS;function Nm(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(Nm,"replaceSpecialChars");var Ca=o(function(e){return Nm(w0(e))},"prepareId");function bX(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(bX,"evaluateConcat");function cs(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 bX(e);if(e&&typeof e=="string")return Nm(e.replace(/ /g,"_"))}o(cs,"getStableIdPartFromValue");var $S=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"),Wr=o(function(e){let t=as.getStrategy(e.$Type);return t==null?void 0:t.generateStableId(e)},"getStableIdPartFromDataField");var fe=Z(ae());var De=Z(ae());var ir=require("@sap-ux/vocabularies-types/vocabularies/UI"),m_=require("path"),h_=Z(dc());var wm="ResponsiveTableWithMultiSelect<LineItems>",Mm="ResponsiveTableWithInlineDelete<LineItems>",SX="TreeTable<LineItems>",EX="AnalyticalTable<LineItems>",AX="GridTable<LineItems>",BS=[wm,Mm,SX,EX,AX],p_=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],d_="template::",km="template:::ObjectPageAction:::";function PX(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${$}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${$}${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(PX,"addCustomColumnDefinition");function xX(e,t){let n;return e==="TableColumnActionIntentBased"?n=nS(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=ut(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===ir.UIAnnotationTypes.DataFieldForAction?n=ut(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=ut(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(xX,"getActionId");function HS(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=xX(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=ci(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=Pc(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(HS,"handleActionRecord");function CX(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===ir.UIAnnotationTypes.DataFieldForAction||t.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===ir.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(CX,"getColumnActionType");function IX(e,t){let n=[];if(!(e.$Type!==ir.UIAnnotationTypes.DataFieldForAction&&e.$Type!==ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),CX(t,e,n),n}o(IX,"getActionType");function y_(e,t,n){let i=nS(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:ci(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Bm(r.properties[i],e.lineItemRecord),Vm(e.lineItemRecord,r.properties,i)}}o(y_,"generateGenericColumn");function OX(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{HS(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&HS(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{HS(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":y_(i,t,r)}}o(OX,"handleAnyAction");function Nu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(Nu,"retrieveNameWithoutVocabularyFromVisualization");function Vl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=Dm(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},v=IX(g,r);v?v.forEach(S=>{OX(S,t,s,m,p,l,r)}):y_(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(Vl,"addLineItemsType");function RX(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(RX,"addListReportLeadingProperties");function LX(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 v=[];for(let S in a){let b=(m=a[S])==null?void 0:m.key;b!==void 0&&!v.includes(b)&&v.push(b)}Pa(v,r)}}o(LX,"addTabkeyEnum");function jm(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,h_.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("\\"+m_.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(jm,"addFragmentEnum");function wl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){PX(e,a,s),RX(e,t,s),LX(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;jm(e,r,u,"fragmentName",s),jm(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),jm(e,r,u,"cellsFragmentName",s),jm(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(wl,"addTableColumnExtensions");function T_(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(T_,"removeElementsFromEnum");function Um(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=Tr(n==null?void 0:n.fullyQualifiedName,ir.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${ut(s.value)}>`,p=Kr(s);s.type==="PropertyPath"&&(l=gm(s,n)),i.properties[s.value]={$ref:$+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=`${$}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(Um,"addSelectionFields");function v_(e,t){for(let n of t.entityProperties)e.push(n.name)}o(v_,"addEntityPropertiesToEnum");function $m(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($m,"isDraftEnabled");function b_(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(b_,"isEntityDeletable");function S_(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(S_,"isEntityUpdatable");function Ml(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($)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${$}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(Ml,"addStandardHeaderActions");function E_(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split($)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${$}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(E_,"addStandardFooterActionsOP");function kl(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});re(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(kl,"getUIAnnotationForEntitySet");function FX(e,t,n,i){if(e===fe.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case _t.UIAnnotationTypes.DataField:case _t.UIAnnotationTypes.DataFieldForAnnotation:case _t.UIAnnotationTypes.DataFieldWithNavigationPath:case _t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===fe.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case _t.UIAnnotationTypes.DataField:case _t.UIAnnotationTypes.DataFieldForAnnotation:case _t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(FX,"copyFieldProperties");function WS(e,t,n,i){let r=e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===fe.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(WS,"determineFieldDefinitionName");function NX(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][fe.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(NX,"addKeysTagForDataField");function DX(e,t,n){if(e.$Type===_t.UIAnnotationTypes.DataField||e.$Type===_t.UIAnnotationTypes.DataFieldWithUrl||e.$Type===_t.UIAnnotationTypes.DataFieldWithNavigationPath)NX(e,t,n);else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][fe.SchemaTag.keys]=[{name:"Target",value:Fl(e.Target.value)}],t.definitions[n][fe.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][fe.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===_t.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][fe.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(DX,"addKeysTagToField");function _X(e){var t,n;return e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===_t.UIAnnotationTypes.ConnectedFieldsType}o(_X,"isConnectedField");function VX(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===_t.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let v=p[m];if(typeof v=="object"&&"$Type"in v){let S=u.findIndex(b=>b===m);S===-1&&(S=g,g++),GS(e,t,v,`ConnectedFields::${a.qualifier}`,S.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(VX,"addConnectedFields");function A_(e,t,n){if(n)return n;let i=ut(t);return e.definitions[i].properties}o(A_,"getFieldsSchemaContainer");function KS(e,t){return e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::").splice(1).join("::"):t}o(KS,"getFieldReference");function GS(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){if(!n||!n.$Type)return;let g={appSchema:t,withActions:l,sectionType:e,field:n,targetID:i,containersSchema:u,key:r,version:s,section:a,entityTypeName:p};as.getStrategy(n.$Type).addDefinition(g)}o(GS,"addField");function wX(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(wX,"determineTargetIdOfForm");function MX(e,t,n,i,r,a){if(e.base===fe.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&GS(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];GS(t,n,l,i,s,e,r)}}o(MX,"addFieldsToFormDefinition");function kX(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][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][fe.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][fe.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][fe.SchemaTag.annotationPath]=Tr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(kX,"addTagsToFormDefinition");function Hm(e,t,n,i,r,a){if(!t.target)return;let s=wX(t),l=ut(`${e}${fe.DefinitionName.Form}<${s}>`),u=ut(`${e}${fe.DefinitionName.Fields}<${s}>`),p=ut(`${e}${fe.DefinitionName.Actions}<${s}>`),g=!(t.base===fe.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${$}${l}`},e===fe.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${$}${p}`},fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][fe.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},kX(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][fe.SchemaTag.isViewNode]=!0,MX(t,e,i,s,r,g),s}o(Hm,"handleForm");function XS(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(XS,"replaceAlias");function Gm(e,t){let n=XS(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(Gm,"getActionNameAndId");function P_(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:P_(a.pages,t)}}o(P_,"isFirstObjectPage");function Wm(e,t,n,i,r){var g,m;e.definitions[fe.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${$}${fe.DefinitionName.ObjectPageFooter}`},e.definitions[fe.DefinitionName.ObjectPageFooter].properties[fe.PropertyName.actions]={$ref:`${$}${fe.DefinitionName.FooterActions}`};let a=e.definitions[fe.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[fe.SchemaTag.isViewNode]=!0;let s=oi(fe.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 v=p.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`);a[fe.SchemaTag.annotationPath]=`/${v}`,i(u,e,a,p)}else u&&(a[fe.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`);n===fe.FioriElementsVersion.v2&&P_(r,t)&&!$m(l)&&E_(e,a),delete e.definitions[fe.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${fe.DefinitionName.ObjectPageFooter}<${fe.DefinitionName.ObjectPageFooterActions}>`]}o(Wm,"addFooterActions");function Km(e,t,n,i,r,a=!1){var m,v;let s=fe.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[fe.DefinitionName.ObjectPageHeader].properties[fe.PropertyName.actions]={$ref:`${$}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[fe.SchemaTag.isViewNode]=!0;let p=oi(fe.UIVOCABULARY,n.serviceAVT),g=p&&((v=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:v.Identification);g?u[fe.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`):t&&(u[fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&Ml(e,!0,l)}o(Km,"addHeaderActions");function Xm(e,t){e.properties.header={$ref:`${$}${fe.DefinitionName.ObjectPageHeader}`},e.definitions[fe.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[fe.DefinitionName.ObjectPageHeader][fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.HeaderInfo}`)}o(Xm,"addCommonHeaderSchema");function x_(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(x_,"determineEntitySetOfEntityType");function u_(e){let{appSchema:t,section:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Wr(r),g=KS(u,p),m=WS(u,p,a,g),v=A_(t,`${i}${fe.DefinitionName.Fields}<${a}>`,s.fields),S={};v[g]={$ref:`${$}${m}`,propertyIndex:parseInt(l)},_X(r)&&(S=VX(i,t,r,n,u)),C_(e,m,S)}o(u_,"addDataFieldDefinition");function Fu(e){let{appSchema:t,withActions:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Wr(r),g=KS(u,p),m=WS(u,p,a,g),v={};if(n&&i===fe.SectionType.Section){let S=A_(t,`${i}${fe.DefinitionName.Actions}<${a}>`,s.actions),b=S[g]={$ref:`${$}${m}`};b[fe.SchemaTag.propertyIndex]=parseInt(l)}jX(e,m,v),C_(e,m,v)}o(Fu,"addDataFieldForActionAndActionGroupDefinition");function jX(e,t,n){let{appSchema:i,field:r,version:a}=e;r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&(r.Actions??[]).forEach(s=>{let l={...e,field:s,targetID:t,withActions:!1},u=Wr(s),p=KS(a,u),g=WS(a,u,t,p);Fu(l),n[p]=i.definitions[g]})}o(jX,"addGroupedActionsToDefinition");function C_(e,t,n={}){var u,p;let{appSchema:i,field:r,version:a,section:s,entityTypeName:l}=e;i.definitions[t]={type:"object",properties:n,description:ci(r,s.entityType),additionalProperties:!1},r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&xa(i.definitions[t],Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),DX(r,i,t),i.definitions[t][fe.SchemaTag.annotationPath]=`/${l}/${r.fullyQualifiedName.split(l)[1]}`,i.definitions[t][fe.SchemaTag.annotationType]=r.$Type,i.definitions[t][fe.SchemaTag.isViewNode]=!0,Bm(i.definitions[t],r),FX(a,i,r,t),r.$Type===_t.UIAnnotationTypes.DataFieldForAction&&((u=i.definitions)!=null&&u[fe.DefinitionName.FormAction])&&(i.definitions[t].$ref=`${$}${fe.DefinitionName.FormAction}`,delete i.definitions[t].properties),r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&((p=i.definitions)!=null&&p[fe.DefinitionName.ObjectPageFormActionGroup])&&(i.definitions[t].$ref=`${$}${fe.DefinitionName.ObjectPageFormActionGroup}`)}o(C_,"writeDefinitionToSchema");var br=require("@sap-ux/vocabularies-types/vocabularies/UI");var Xe=Z(ae());function Pa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(Pa,"addEnumToSchema");function Du(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(Du,"addEnumForValidAnnotations");function ls(e,t,n){let i=t.definitions[n].properties[Xe.SchemaTag.annotationPath],r=[br.UIAnnotationTerms.SelectionVariant,br.UIAnnotationTerms.SelectionPresentationVariant];Du(e,r,i)}o(ls,"addEnumForSingleTabVariant");function I_(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[br.UIAnnotationTerms.SelectionVariant,br.UIAnnotationTerms.SelectionPresentationVariant];Du(n.entityType,r,i)}o(I_,"addEnumForMultiTabVariant");function O_(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),Pa(r,i)}o(O_,"addEnumForVariantEntitySet");function R_(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[br.UIAnnotationTerms.FieldGroup];Du(e,r,i)}o(R_,"addEnumFieldGroupAnnotationPath");function L_(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[Xe.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:`${$}${Xe.DefinitionName.RelatedFacetKeys}`},l]}}}}o(L_,"addDefinitionForRelatedFacetKeys");function xc(e){return e.replace("#","::")}o(xc,"getFacetKeyInSchema");function _u(e,t){return`${e}<${xc(t)}>`}o(_u,"getFacetDefinitionKey");function vt(e,t,n,i=!0){let r=t;if(i&&(r=_u(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(vt,"parseSchemaDefinition");function Qm(e,t,n){let i;return t===Xe.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${br.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,vt(n,t,e,!0)),i}o(Qm,"getCustomExtensionDefinitionName");function Dm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][Xe.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let I=Qm(t,r,a);t.definitions[r].additionalProperties={$ref:I}}let u=e?Xe.DefinitionName.ObjectPageToolBar:Xe.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=`${Xe.DefinitionName.Actions}<${ut(r)}>`;t.definitions[p].properties.actions.$ref=$+g;let m=r.startsWith(Xe.DefinitionName.LineItems)?Xe.DefinitionName.Actions:Xe.DefinitionName.ObjectPageToolBarActions,v;try{if(v=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),v.properties={},v.additionalProperties=!1,s){let I=Qm(t,r,s);v.additionalProperties={$ref:I}}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let S,b;if(r===Xe.DefinitionName.LineItems&&t.properties.footer){b=`${Xe.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Xe.DefinitionName.GenericFooter]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Xe.DefinitionName.GenericFooter}))}let I=`${Xe.DefinitionName.FooterActions}<${ut(r)}>`;t.definitions[b].properties.actions.$ref=$+I,S=t.definitions[I]=JSON.parse(JSON.stringify(t.definitions[Xe.DefinitionName.Actions])),S.properties={},S.additionalProperties=!1}return n&&(l=Tr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][Xe.SchemaTag.annotationPath]=l,S&&(t.definitions[b][Xe.SchemaTag.annotationPath]=l))),{actions:v,footerActions:S,lineItemPath:l}}o(Dm,"addCommonLineItemDefinitions");function F_(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(F_,"getDataTypeFromAnnotation");function Cc(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=F_(e.$Type)),t}o(Cc,"determineDataTypeOfTarget");function Kr(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=Cc((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=F_(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(Kr,"determineDataType");function Bm(e,t){let n=Kr(t);n&&(e[Xe.SchemaTag.dataType]=n)}o(Bm,"addDataTypeToDefinition");function si(e,t){return`${$}${_u(e,t)}`}o(si,"getFacetDefinitionLink");function f_(e,t,n,i){let r=0,a=!1,s="";do{let l=`${t}${r===0?"":"."+r}`;s=si(e,l),r++;let u=n.definitions[_u(e,l)],p=((u==null?void 0:u.annotationPath)??"").split("/").slice(0,-1).join("/");a=!u||p===i}while(!a);return s}o(f_,"getUniqueFacetDefinitionLink");function fs(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(fs,"addDefinitionRef");function qm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${Xe.UIVOCABULARY}`);t=`/${n}/@${Xe.UIVOCABULARY}${i}`}return t}o(qm,"getFacetAnnotationPath");function Vu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:si(a?u:l,t)};let p=vt(a?u:l,t,i,!0);va(e,p,t),rs(e,p,t),p[Xe.SchemaTag.annotationPath]=e.annotationPath,p[Xe.SchemaTag.isViewNode]=!0}o(Vu,"handleAddressContact");function QS(e,t,n){typeof e=="object"&&(e[t]=n)}o(QS,"updateSchemaProperty");function jl(e,t,n=ut("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${Xe.DefinitionName.Fields4Dialog}${n}`];QS(r.properties.fields.items,"enum",i)}o(jl,"addFieldsType");function UX(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(UX,"findFirstSchemaDefinitionKey");function _m(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=Jt(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=UX(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(_m,"getEnumEntry");function ss(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=_m(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];QS(l,"oneOf",r)}else QS(a,"oneOf",r)}o(ss,"addDescriptiveEnumDefinition");function Pc(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(Pc,"getActionKey");function Vm(e,t,n){var i,r,a;try{if(e.Value)t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.value,value:cs(e.Value)}];else if(e.$Type===br.UIAnnotationTypes.DataFieldWithAction||e.$Type===br.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Pc(e.Action,!0);t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.action,value:s}],l&&(t[n][Xe.SchemaTag.target]=l)}else if(e.$Type===br.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Pc(e.Target.value,!1);t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.target,value:Fl(s)}],t[n][Xe.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===br.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===br.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=Pc(s,!0);t[n][Xe.SchemaTag.keys]=[{name:"SemanticObject",value:e[Xe.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][Xe.SchemaTag.target]=u)}}catch{return}}o(Vm,"addKeyToDefinition");function ci(e,t){try{return as.getStrategy(e.$Type).generateDescription(e,t)}catch{return""}}o(ci,"getDataFieldDescription");function xa(e,t){e[Xe.SchemaTag.messages]||(e[Xe.SchemaTag.messages]=[]),Array.isArray(e[Xe.SchemaTag.messages])&&e[Xe.SchemaTag.messages].push({text:t})}o(xa,"addMessageToSchema");var Ul=Z(ae());var N_=[{version:"1.136",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.136","UI5-1.137","UI5-1.138","UI5-1.139","UI5-1.140"]},{version:"1.124",distTag:["UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130","UI5-1.131","UI5-1.132","UI5-1.133","UI5-1.134","UI5-1.135"]},{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 __="1.120.43";var V_={name:"@sap/ux-specification",version:__,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.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 -s 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 -s 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/schema/index.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 -s htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.38.2","@sap-ux/vocabularies-types":"0.13.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.120.43","@sapui5/types":"latest-1.120","@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.11.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"25.4.2",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.2","typescript-json-schema":"0.65.1","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 us=class us{constructor(){us.distTagsOfSpec.length===0&&(us.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){us.distTagsOfSpec=[]}getSpecVersion(){return __}getDistTagsOfVersion(){let t=[],n=N_,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;let i=[];typeof t=="string"?i.push(t):Array.isArray(t)&&(i=t);let r=!1;if(i.forEach(a=>{if(!this.checkVersionName(a,n))return;let s=a==="latest"?"latest":a.substring(0,a.lastIndexOf("."));us.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=Q.t("WRONGMINUI5VERSION",{minUI5Version:t});re(n,{severity:Ul.LogSeverity.Warning,message:a,location:{path:Ul.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=Q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return re(n,{severity:Ul.LogSeverity.Info,message:i,location:{path:Ul.MANIFESTPATH}}),!1}else return!0}};o(us,"DistTagEvaluator"),us.distTagsOfSpec=[];var wu=us;var ue=Z(ae());var jn=Z(ae());var Pi=Z(ae());function w_(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(w_,"getCustomPageFullName");function HX(e){let n=w_(e).split(".");return n[n.length-1]}o(HX,"getCustomPageName");function M_(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)||Pi.ViewTypes.XML}o(M_,"getViewType");function GX(e,t){return M_(e,t).toLowerCase()}o(GX,"getViewTypeExtension");function WX(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.path)||(r==null?void 0:r.path),s=w_(e);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(WX,"getViewPath");function KX(e,t){let n=e.entitySet||HX(e),{viewPath:i,fileName:r}=WX(e,t,[n]),a=GX(e,t);return[...i,`${r}.view.${a}`].join("/")}o(KX,"getCustomPagePath");var qS=class qS{constructor(t,n,i,r){this.unhandledControllers=[];let a=Dt(Pi.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)===Pi.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Pi.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[Pi.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=M_(t,this.app)===Pi.ViewTypes.XML&&!!t.config;if(t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.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===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=KX(t,this.app);n.$filePath=i}};o(qS,"AppProvider");var ps=qS;var pt=Z(ae());var $l=Z(ae());var Kn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),k_=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"),j_=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 YS(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(YS,"getNewPageTemplate");function XX(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(XX,"findPageInManifest");function QX(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=YS(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:YS(e[t].pageType)}),!Array.isArray(n.pages))){let i=XX(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=YS(e[t].pageType)),zS(t,e,i)}}o(QX,"transformPageFromAssociation");function qX(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)===$l.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===$l.PageTypeV2.ListReport||n.pageType===$l.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(qX,"deletePage");function zS(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===$l.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)QX(t,r,n);Array.isArray(n.pages)||qX(n,t,i)}}o(zS,"transformPageToNewManifestV2");var PV=Z(dc());var UA={};uc(UA,{ALPAnalyticalTable:()=>jE,ALPGridTable:()=>kE,ALPResponsiveTable:()=>ME,Action:()=>HE,AnalyticalCard:()=>Kl,AnalyticalCardSettings:()=>Zm,AnalyticalCardSettingsv4:()=>iE,AnalyticalListPageFilterBar:()=>pE,AnalyticalTable:()=>wE,BaseCustomSection:()=>gp,ChartSettings:()=>sA,ChartSettingsType:()=>ZS,CommonCardSettings:()=>ys,CommonFilterBar:()=>Qu,CommonHeaderFacetSettings:()=>Vc,CommonTableSettings:()=>Ss,CommonTableSettingsForSections:()=>Uc,CreateWithFilters:()=>RE,CustomCard:()=>tE,DataLoadSettings:()=>FE,DateRange:()=>cE,DefaultDateRange:()=>lE,DefaultSpanObject:()=>eE,FRAGMENT_DEFINITION:()=>Go,Field:()=>sE,FieldForAction:()=>yE,Fields4Dialog:()=>NE,Fields4DialogOP:()=>_A,FooterAction:()=>WE,FormAction:()=>hE,GlobalChartSettings:()=>NA,GlobalTableSettings:()=>kA,GridTable:()=>UE,HeaderActionStandard:()=>YE,HeaderSections:()=>mA,KPISettings:()=>cA,LinkListCardSettings:()=>oE,LinklistCard:()=>Wu,ListCard:()=>Wl,ListCardSettings:()=>nE,ListReportFilterBar:()=>dE,MultiEdit:()=>LE,ObjectPageAnalyticalTable:()=>VA,ObjectPageChart:()=>FA,ObjectPageCustomSectionFragment:()=>mp,ObjectPageCustomSectionView:()=>hp,ObjectPageFooterAction:()=>yA,ObjectPageFooterActionStandard:()=>JE,ObjectPageGridTable:()=>wA,ObjectPageHeader:()=>lA,ObjectPageHeaderAction:()=>fA,ObjectPageHeaderActionStandard:()=>zE,ObjectPageHeaderSectionAddress:()=>gA,ObjectPageHeaderSectionChart:()=>pA,ObjectPageHeaderSectionDataPoint:()=>dA,ObjectPageHeaderSectionForm:()=>uA,ObjectPageLayout:()=>vA,ObjectPageResponsiveTable:()=>$c,ObjectPageSectionAddressV2:()=>PA,ObjectPageSectionChartV2:()=>EA,ObjectPageSectionContactV2:()=>xA,ObjectPageSectionFormV2:()=>SA,ObjectPageSectionTableV2:()=>AA,ObjectPageSectionV2:()=>bA,ObjectPageSubSectionChartV2:()=>OA,ObjectPageSubSectionContactV2:()=>RA,ObjectPageSubSectionFormV2:()=>IA,ObjectPageSubSectionTableV2:()=>LA,ObjectPageSubSectionV2:()=>CA,ObjectPageToolBarAction:()=>jA,ObjectPageTreeTable:()=>MA,QuickVariantSelection:()=>DE,QuickVariantSelectionOP:()=>DA,QuickVariantSelectionX:()=>_E,ResponsiveTable:()=>Lc,SAP_UI_TABLE:()=>ah,SaveAndEditOP:()=>qE,SelectionFieldDateSettings:()=>fE,SelectionFields:()=>uE,Share:()=>KE,ShareOP:()=>XE,StackCard:()=>Gu,StackCardSettings:()=>rE,TableALP:()=>zl,TableCard:()=>Xl,TableCardSettings:()=>aE,TableColumn:()=>tA,TableColumnAction:()=>Ih,TableColumnActionIntentBased:()=>nA,TableCustomColumn:()=>iA,ToolBar:()=>oA,ToolBarAction:()=>GE,TreeTable:()=>VE,UpAndDownNavigationOP:()=>QE,buildIntentBasedActionId:()=>ZE,deleteColumnFromFragment:()=>lh,deleteType:()=>Zl,exportColorPalette:()=>H_,exportCreateParametersFields:()=>yh,exportCustomColumnsToFragment:()=>IE,exportDateSettingsField:()=>X_,exportDefaultSpan:()=>G_,exportType:()=>Jl,getChartSectionControlId:()=>vV,getContactSubSectionControlId:()=>SV,getCustomColumnPath:()=>fh,getFormSectionControlId:()=>TV,getRootCustomColumnFromFragmentJSON:()=>zu,getSectionControlId:()=>kc,getSmartChartControlId:()=>ap,getSmartTableControlId:()=>Rc,getSubSectionControlId:()=>bV,getTableSectionControlId:()=>yV,importCreateParameters:()=>hh,importDateSettings:()=>gE});var Zn=Z(ae());var je=o(e=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),Qr=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),U_=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),$_=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var Pn=o(()=>Zn.ManifestSection.ovp,"getOVPsettingPath"),xe=o(e=>{let t=[Zn.ManifestSection.ovp];return e.forEach(n=>{n in Zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var Ic=o((e,t)=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Jm=o(e=>{let t=[Zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),wi=o(e=>{let t=[];return t.push(Jm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),gs=o(e=>wi(e)+"/tableSettings","getGlobalTableSettingsPathV2"),mo=o((e,t,n)=>{let i=[];i.push(Jm(e));let r=n.replace(Zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Sr=o((e,t,n)=>mo(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),B_=o((e,t,n)=>mo(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),JS=o(()=>`sap.ui5/extends/extensions/${Zn.v2.SAPUI5_VIEW_EXTENSION}/${Zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Ia=o((e,t,n,...i)=>{let a=n.split("|"),s=e[e.length-1].split("|"),l="";a.length===4?l=[a[2],a[3]].join("|"):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join("|");return i.unshift(u),`${JS()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),zm=class zm{};o(zm,"ApplicationV2"),h([jt("settings")],zm.prototype,"settings",2);var Ym=zm,Xr=class Xr{};o(Xr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Xr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],Xr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],Xr.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],Xr.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),Ae("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Xr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Xr.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Xr.prototype,"statePreservationMode",2);var ds=Xr;var Mu=Z(ae());function YX(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=Mu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=Mu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:Mu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(YX,"importColorPalette");function H_(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===Mu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(H_,"exportColorPalette");function G_(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(G_,"exportDefaultSpan");var eh=class eh{};o(eh,"ChartSettingsType"),h([y({manifest:{path:o(()=>Pn()+"/chartSettings","path")}})],eh.prototype,"showDataLabel",2);var ZS=eh,ms=class ms{};o(ms,"DefaultSpanObject"),h([y({manifest:{path:o(t=>xe(t),"path")}})],ms.prototype,"cols",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ms.prototype,"rows",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ms.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ms.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ms.prototype,"minimumSubTitleRow",2);var eE=ms,Xt=class Xt{};o(Xt,"CommonCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"title",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"category",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>xe(t),"path"),export:G_}})],Xt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"tabs",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"customParams",2);var ys=Xt,Bl=class Bl{};o(Bl,"CustomCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Bl.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Bl.prototype,"template",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Bl.prototype,"settings",2);var tE=Bl,hs=class hs extends ys{};o(hs,"ListCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],hs.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],hs.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],hs.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],hs.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],hs.prototype,"listType",2);var nE=hs,ku=class ku{};o(ku,"ListCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],ku.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ku.prototype,"template",2);var Wl=ku,ho=class ho extends ys{};o(ho,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],ho.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ho.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ho.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ho.prototype,"navigation",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ho.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ho.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>xe(t),"path"),import:YX,export:H_}})],ho.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ho.prototype,"bEnableStableColors",2);var Zm=ho,th=class th extends Zm{};o(th,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>xe(t),"path")}})],th.prototype,"measureAggregate",2);var iE=th,ju=class ju{};o(ju,"AnalyticalCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],ju.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ju.prototype,"template",2);var Kl=ju,Hl=class Hl extends ys{};o(Hl,"StackCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Hl.prototype,"itemText",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Hl.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Hl.prototype,"objectStreamCardsSettings",2);var rE=Hl,Uu=class Uu{};o(Uu,"StackCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Uu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Uu.prototype,"template",2);var Gu=Uu,Gl=class Gl extends ys{};o(Gl,"LinkListCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Gl.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Gl.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Gl.prototype,"staticContent",2);var oE=Gl,$u=class $u{};o($u,"LinklistCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],$u.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],$u.prototype,"template",2);var Wu=$u,Bu=class Bu extends ys{};o(Bu,"TableCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Bu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Bu.prototype,"enableAddToInsights",2);var aE=Bu,Hu=class Hu{};o(Hu,"TableCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Hu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Hu.prototype,"template",2);var Xl=Hu;var W_=Z(ae());var zX=o((e,t,n,i,r)=>{let a=zn(n[1],r),s=n.slice(-1)[0];return Zt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),nh=class nh{};o(nh,"Field"),h([y({flex:{controlId:zX,controlType:o(()=>W_.ControlType.GroupElement,"controlType")},generate:ht})],nh.prototype,"visible",2);var sE=nh;var Oc=Z(ae());function gE(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(gE,"importDateSettings");function JX(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(JX,"importDateSettingsField");function X_(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(X_,"exportDateSettingsField");var Ql=class Ql{};o(Ql,"DateRange"),h([y({manifest:{path:o(t=>je(t)+Oc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Ql.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>je(t)+Oc.DATESETTINGSPATH,"path"),import:gE,export:vm}}),x({since:"1.77.0"})],Ql.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>je(t)+Oc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Ql.prototype,"exclude",2);var cE=Ql,ih={controlId:Zt,controlType:o(()=>Oc.ControlType.SmartFilterBar,"controlType")},Ku={path:o((e,t,n)=>`${je(e)}${Oc.DATESETTINGSPATH}/fields/${n}`,"path")},K_={...Ku,import:JX,export:X_},rh=class rh{};o(rh,"DefaultDateRange"),h([y({manifest:Ku}),x({since:"1.90.0"})],rh.prototype,"operation",2);var lE=rh,Ts=class Ts{};o(Ts,"SelectionFieldDateSettings"),h([y({manifest:K_}),x({since:"1.77.0"})],Ts.prototype,"selectedValues",2),h([y({manifest:Ku}),x({since:"1.77.0"})],Ts.prototype,"exclude",2),h([y({manifest:Ku}),x({since:"1.77.0"})],Ts.prototype,"customDateRangeImplementation",2),h([y({manifest:K_}),x({since:"1.77.0"})],Ts.prototype,"filter",2),h([y({manifest:Ku}),x({since:"1.90.0"})],Ts.prototype,"defaultValue",2);var fE=Ts,mE=class mE{};o(mE,"SelectionFields");var uE=mE,yo=class yo{};o(yo,"CommonFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"})],yo.prototype,"smartVariantManagement",2),h([y({flex:ih}),x({since:"1.40.0"})],yo.prototype,"liveMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],yo.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.52.0"})],yo.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:gE}}),x({since:"1.77.0"})],yo.prototype,"dateSettings",2),h([y({flex:ih}),x({since:"1.28.0"})],yo.prototype,"showClearOnFB",2),h([y({flex:ih}),x({since:"1.38.0"})],yo.prototype,"showFilterConfiguration",2),h([y({flex:ih}),x({since:"1.28.0"})],yo.prototype,"showRestoreOnFB",2);var Qu=yo,Xu=class Xu extends Qu{};o(Xu,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}})],Xu.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],Xu.prototype,"filterDefaultsFromSelectionVariant",2);var pE=Xu,oh=class oh extends Qu{};o(oh,"ListReportFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),Ae("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],oh.prototype,"annotationPath",2);var dE=oh;var TE=Z(ae());var ZX=o((e,t,n,i,r)=>{if(i()===TE.ControlType.Button){let a=n[n.length-1],s=zn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Zt(e,t)},"getFormActionButtonId"),Ho={controlId:ZX,controlType:o(()=>TE.ControlType.Button,"controlType")},vs=class vs{};o(vs,"FormAction"),h([y({flex:Ho,generate:ht})],vs.prototype,"visible",2),h([y({flex:Ho})],vs.prototype,"tooltip",2),h([y({flex:Ho})],vs.prototype,"icon",2),h([y({flex:Ho})],vs.prototype,"activeIcon",2),h([y({flex:Ho})],vs.prototype,"type",2);var hE=vs,bs=class bs{};o(bs,"FieldForAction"),h([y({flex:Ho,generate:ht})],bs.prototype,"visible",2),h([y({flex:Ho})],bs.prototype,"tooltip",2),h([y({flex:Ho})],bs.prototype,"icon",2),h([y({flex:Ho})],bs.prototype,"activeIcon",2),h([y({flex:Ho}),x({since:"1.73.0"})],bs.prototype,"type",2);var yE=bs;var St=Z(ae()),To=Z(dc());var EE=require("path"),y3=Z(ae()),aV=Z(oV()),sV=require("fs");var T3=(0,EE.join)(__dirname,"templates");var v3=o((e,t)=>{let n=(0,sV.readFileSync)(e,"utf8");return(0,aV.render)(n,t)},"renderTemplate");var AE=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 v3((0,EE.join)(T3,t+".xml"),n)},"getSingleColumnContent"),PE=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=AE(i,t);n=n+`
|
|
288
|
+
}`;var nt=pL(function(){return At(C,Re+"return "+ne).apply(e,L)});if(nt.source=ne,Jv(nt))throw nt;return nt}o(lG,"template");function fG(c){return It(c).toLowerCase()}o(fG,"toLower");function uG(c){return It(c).toUpperCase()}o(uG,"toUpper");function pG(c,f,d){if(c=It(c),c&&(d||f===e))return SO(c);if(!c||!(f=dr(f)))return c;var T=so(c),E=so(f),C=EO(T,E),L=AO(T,E)+1;return ts(T,C,L).join("")}o(pG,"trim");function dG(c,f,d){if(c=It(c),c&&(d||f===e))return c.slice(0,xO(c)+1);if(!c||!(f=dr(f)))return c;var T=so(c),E=AO(T,so(f))+1;return ts(T,0,E).join("")}o(dG,"trimEnd");function gG(c,f,d){if(c=It(c),c&&(d||f===e))return c.replace(JT,"");if(!c||!(f=dr(f)))return c;var T=so(c),E=EO(T,so(f));return ts(T,E).join("")}o(gG,"trimStart");function mG(c,f){var d=D,T=Ue;if(Tn(f)){var E="separator"in f?f.separator:E;d="length"in f?et(f.length):d,T="omission"in f?dr(f.omission):T}c=It(c);var C=c.length;if(fl(c)){var L=so(c);C=L.length}if(d>=C)return c;var N=d-ul(T);if(N<1)return T;var M=L?ts(L,0,N).join(""):c.slice(0,N);if(E===e)return M+T;if(L&&(N+=M.length-N),Zv(E)){if(c.slice(N).search(E)){var z,J=M;for(E.global||(E=mv(E.source,It(HI.exec(E))+"g")),E.lastIndex=0;z=E.exec(J);)var ne=z.index;M=M.slice(0,ne===e?N:ne)}}else if(c.indexOf(dr(E),N)!=N){var ge=M.lastIndexOf(E);ge>-1&&(M=M.slice(0,ge))}return M+T}o(mG,"truncate");function hG(c){return c=It(c),c&&Pe.test(c)?c.replace(me,HU):c}o(hG,"unescape");var yG=yl(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),nb=dR("toUpperCase");function uL(c,f,d){return c=It(c),f=d?e:f,f===e?kU(c)?KU(c):RU(c):c.match(f)||[]}o(uL,"words");var pL=rt(function(c,f){try{return ur(c,e,f)}catch(d){return Jv(d)?d:new Ke(d)}}),TG=ca(function(c,f){return wr(f,function(d){d=Do(d),aa(c,d,Yv(c[d],c))}),c});function vG(c){var f=c==null?0:c.length,d=Ve();return c=f?dn(c,function(T){if(typeof T[1]!="function")throw new Mr(r);return[d(T[0]),T[1]]}):[],rt(function(T){for(var E=-1;++E<f;){var C=c[E];if(ur(C[0],this,T))return ur(C[1],this,T)}})}o(vG,"cond");function bG(c){return G2(jr(c,p))}o(bG,"conforms");function ib(c){return function(){return c}}o(ib,"constant");function SG(c,f){return c==null||c!==c?f:c}o(SG,"defaultTo");var EG=mR(),AG=mR(!0);function Yi(c){return c}o(Yi,"identity");function rb(c){return WO(typeof c=="function"?c:jr(c,p))}o(rb,"iteratee");function PG(c){return XO(jr(c,p))}o(PG,"matches");function xG(c,f){return QO(c,jr(f,p))}o(xG,"matchesProperty");var CG=rt(function(c,f){return function(d){return uu(d,c,f)}}),IG=rt(function(c,f){return function(d){return uu(c,d,f)}});function ob(c,f,d){var T=Yn(f),E=Tg(f,T);d==null&&!(Tn(f)&&(E.length||!T.length))&&(d=f,f=c,c=this,E=Tg(f,Yn(f)));var C=!(Tn(d)&&"chain"in d)||!!d.chain,L=fa(c);return wr(E,function(N){var M=f[N];c[N]=M,L&&(c.prototype[N]=function(){var z=this.__chain__;if(C||z){var J=c(this.__wrapped__),ne=J.__actions__=Xi(this.__actions__);return ne.push({func:M,args:arguments,thisArg:c}),J.__chain__=z,J}return M.apply(c,Qa([this.value()],arguments))})}),c}o(ob,"mixin");function OG(){return qn._===this&&(qn._=JU),this}o(OG,"noConflict");function ab(){}o(ab,"noop");function RG(c){return c=et(c),rt(function(f){return qO(f,c)})}o(RG,"nthArg");var LG=Mv(dn),FG=Mv(hO),NG=Mv(cv);function dL(c){return Gv(c)?lv(Do(c)):s4(c)}o(dL,"property");function DG(c){return function(f){return c==null?e:sc(c,f)}}o(DG,"propertyOf");var _G=yR(),VG=yR(!0);function sb(){return[]}o(sb,"stubArray");function cb(){return!1}o(cb,"stubFalse");function wG(){return{}}o(wG,"stubObject");function MG(){return""}o(MG,"stubString");function kG(){return!0}o(kG,"stubTrue");function jG(c,f){if(c=et(c),c<1||c>Fe)return[];var d=on,T=vi(c,on);f=Ve(f),c-=on;for(var E=pv(T,f);++d<c;)f(d);return E}o(jG,"times");function UG(c){return Ye(c)?dn(c,Do):gr(c)?[c]:Xi(DR(It(c)))}o(UG,"toPath");function $G(c){var f=++YU;return It(c)+f}o($G,"uniqueId");var BG=Pg(function(c,f){return c+f},0),HG=kv("ceil"),GG=Pg(function(c,f){return c/f},1),WG=kv("floor");function KG(c){return c&&c.length?yg(c,Yi,Av):e}o(KG,"max");function XG(c,f){return c&&c.length?yg(c,Ve(f,2),Av):e}o(XG,"maxBy");function QG(c){return vO(c,Yi)}o(QG,"mean");function qG(c,f){return vO(c,Ve(f,2))}o(qG,"meanBy");function YG(c){return c&&c.length?yg(c,Yi,Iv):e}o(YG,"min");function zG(c,f){return c&&c.length?yg(c,Ve(f,2),Iv):e}o(zG,"minBy");var JG=Pg(function(c,f){return c*f},1),ZG=kv("round"),e5=Pg(function(c,f){return c-f},0);function t5(c){return c&&c.length?uv(c,Yi):0}o(t5,"sum");function n5(c,f){return c&&c.length?uv(c,Ve(f,2)):0}return o(n5,"sumBy"),P.after=PB,P.ary=GR,P.assign=uH,P.assignIn=rL,P.assignInWith=Mg,P.assignWith=pH,P.at=dH,P.before=WR,P.bind=Yv,P.bindAll=TG,P.bindKey=KR,P.castArray=wB,P.chain=$R,P.chunk=W4,P.compact=K4,P.concat=X4,P.cond=vG,P.conforms=bG,P.constant=ib,P.countBy=tB,P.create=gH,P.curry=XR,P.curryRight=QR,P.debounce=qR,P.defaults=mH,P.defaultsDeep=hH,P.defer=xB,P.delay=CB,P.difference=Q4,P.differenceBy=q4,P.differenceWith=Y4,P.drop=z4,P.dropRight=J4,P.dropRightWhile=Z4,P.dropWhile=e$,P.fill=t$,P.filter=iB,P.flatMap=aB,P.flatMapDeep=sB,P.flatMapDepth=cB,P.flatten=MR,P.flattenDeep=n$,P.flattenDepth=i$,P.flip=IB,P.flow=EG,P.flowRight=AG,P.fromPairs=r$,P.functions=AH,P.functionsIn=PH,P.groupBy=lB,P.initial=a$,P.intersection=s$,P.intersectionBy=c$,P.intersectionWith=l$,P.invert=CH,P.invertBy=IH,P.invokeMap=uB,P.iteratee=rb,P.keyBy=pB,P.keys=Yn,P.keysIn=qi,P.map=Fg,P.mapKeys=RH,P.mapValues=LH,P.matches=PG,P.matchesProperty=xG,P.memoize=Dg,P.merge=FH,P.mergeWith=oL,P.method=CG,P.methodOf=IG,P.mixin=ob,P.negate=_g,P.nthArg=RG,P.omit=NH,P.omitBy=DH,P.once=OB,P.orderBy=dB,P.over=LG,P.overArgs=RB,P.overEvery=FG,P.overSome=NG,P.partial=zv,P.partialRight=YR,P.partition=gB,P.pick=_H,P.pickBy=aL,P.property=dL,P.propertyOf=DG,P.pull=d$,P.pullAll=jR,P.pullAllBy=g$,P.pullAllWith=m$,P.pullAt=h$,P.range=_G,P.rangeRight=VG,P.rearg=LB,P.reject=yB,P.remove=y$,P.rest=FB,P.reverse=Qv,P.sampleSize=vB,P.set=wH,P.setWith=MH,P.shuffle=bB,P.slice=T$,P.sortBy=AB,P.sortedUniq=x$,P.sortedUniqBy=C$,P.split=aG,P.spread=NB,P.tail=I$,P.take=O$,P.takeRight=R$,P.takeRightWhile=L$,P.takeWhile=F$,P.tap=K$,P.throttle=DB,P.thru=Lg,P.toArray=tL,P.toPairs=sL,P.toPairsIn=cL,P.toPath=UG,P.toPlainObject=iL,P.transform=kH,P.unary=_B,P.union=N$,P.unionBy=D$,P.unionWith=_$,P.uniq=V$,P.uniqBy=w$,P.uniqWith=M$,P.unset=jH,P.unzip=qv,P.unzipWith=UR,P.update=UH,P.updateWith=$H,P.values=bl,P.valuesIn=BH,P.without=k$,P.words=uL,P.wrap=VB,P.xor=j$,P.xorBy=U$,P.xorWith=$$,P.zip=B$,P.zipObject=H$,P.zipObjectDeep=G$,P.zipWith=W$,P.entries=sL,P.entriesIn=cL,P.extend=rL,P.extendWith=Mg,ob(P,P),P.add=BG,P.attempt=pL,P.camelCase=KH,P.capitalize=lL,P.ceil=HG,P.clamp=HH,P.clone=MB,P.cloneDeep=jB,P.cloneDeepWith=UB,P.cloneWith=kB,P.conformsTo=$B,P.deburr=fL,P.defaultTo=SG,P.divide=GG,P.endsWith=XH,P.eq=lo,P.escape=QH,P.escapeRegExp=qH,P.every=nB,P.find=rB,P.findIndex=VR,P.findKey=yH,P.findLast=oB,P.findLastIndex=wR,P.findLastKey=TH,P.floor=WG,P.forEach=BR,P.forEachRight=HR,P.forIn=vH,P.forInRight=bH,P.forOwn=SH,P.forOwnRight=EH,P.get=eb,P.gt=BB,P.gte=HB,P.has=xH,P.hasIn=tb,P.head=kR,P.identity=Yi,P.includes=fB,P.indexOf=o$,P.inRange=GH,P.invoke=OH,P.isArguments=fc,P.isArray=Ye,P.isArrayBuffer=GB,P.isArrayLike=Qi,P.isArrayLikeObject=Fn,P.isBoolean=WB,P.isBuffer=ns,P.isDate=KB,P.isElement=XB,P.isEmpty=QB,P.isEqual=qB,P.isEqualWith=YB,P.isError=Jv,P.isFinite=zB,P.isFunction=fa,P.isInteger=zR,P.isLength=Vg,P.isMap=JR,P.isMatch=JB,P.isMatchWith=ZB,P.isNaN=eH,P.isNative=tH,P.isNil=iH,P.isNull=nH,P.isNumber=ZR,P.isObject=Tn,P.isObjectLike=En,P.isPlainObject=yu,P.isRegExp=Zv,P.isSafeInteger=rH,P.isSet=eL,P.isString=wg,P.isSymbol=gr,P.isTypedArray=vl,P.isUndefined=oH,P.isWeakMap=aH,P.isWeakSet=sH,P.join=f$,P.kebabCase=YH,P.last=$r,P.lastIndexOf=u$,P.lowerCase=zH,P.lowerFirst=JH,P.lt=cH,P.lte=lH,P.max=KG,P.maxBy=XG,P.mean=QG,P.meanBy=qG,P.min=YG,P.minBy=zG,P.stubArray=sb,P.stubFalse=cb,P.stubObject=wG,P.stubString=MG,P.stubTrue=kG,P.multiply=JG,P.nth=p$,P.noConflict=OG,P.noop=ab,P.now=Ng,P.pad=ZH,P.padEnd=eG,P.padStart=tG,P.parseInt=nG,P.random=WH,P.reduce=mB,P.reduceRight=hB,P.repeat=iG,P.replace=rG,P.result=VH,P.round=ZG,P.runInContext=w,P.sample=TB,P.size=SB,P.snakeCase=oG,P.some=EB,P.sortedIndex=v$,P.sortedIndexBy=b$,P.sortedIndexOf=S$,P.sortedLastIndex=E$,P.sortedLastIndexBy=A$,P.sortedLastIndexOf=P$,P.startCase=sG,P.startsWith=cG,P.subtract=e5,P.sum=t5,P.sumBy=n5,P.template=lG,P.times=jG,P.toFinite=ua,P.toInteger=et,P.toLength=nL,P.toLower=fG,P.toNumber=Br,P.toSafeInteger=fH,P.toString=It,P.toUpper=uG,P.trim=pG,P.trimEnd=dG,P.trimStart=gG,P.truncate=mG,P.unescape=hG,P.uniqueId=$G,P.upperCase=yG,P.upperFirst=nb,P.each=BR,P.eachRight=HR,P.first=kR,ob(P,(function(){var c={};return Fo(P,function(f,d){Nt.call(P.prototype,d)||(c[d]=f)}),c})(),{chain:!1}),P.VERSION=t,wr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),wr(["drop","take"],function(c,f){gt.prototype[c]=function(d){d=d===e?1:Wn(et(d),0);var T=this.__filtered__&&!f?new gt(this):this.clone();return T.__filtered__?T.__takeCount__=vi(d,T.__takeCount__):T.__views__.push({size:vi(d,on),type:c+(T.__dir__<0?"Right":"")}),T},gt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),wr(["filter","map","takeWhile"],function(c,f){var d=f+1,T=d==rn||d==Et;gt.prototype[c]=function(E){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(E,3),type:d}),C.__filtered__=C.__filtered__||T,C}}),wr(["head","last"],function(c,f){var d="take"+(f?"Right":"");gt.prototype[c]=function(){return this[d](1).value()[0]}}),wr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");gt.prototype[c]=function(){return this.__filtered__?new gt(this):this[d](1)}}),gt.prototype.compact=function(){return this.filter(Yi)},gt.prototype.find=function(c){return this.filter(c).head()},gt.prototype.findLast=function(c){return this.reverse().find(c)},gt.prototype.invokeMap=rt(function(c,f){return typeof c=="function"?new gt(this):this.map(function(d){return uu(d,c,f)})}),gt.prototype.reject=function(c){return this.filter(_g(Ve(c)))},gt.prototype.slice=function(c,f){c=et(c);var d=this;return d.__filtered__&&(c>0||f<0)?new gt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=et(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},gt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},gt.prototype.toArray=function(){return this.take(on)},Fo(gt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),T=/^(?:head|last)$/.test(f),E=P[T?"take"+(f=="last"?"Right":""):f],C=T||/^find/.test(f);E&&(P.prototype[f]=function(){var L=this.__wrapped__,N=T?[1]:arguments,M=L instanceof gt,z=N[0],J=M||Ye(L),ne=o(function(ct){var mt=E.apply(P,Qa([ct],N));return T&&ge?mt[0]:mt},"interceptor");J&&d&&typeof z=="function"&&z.length!=1&&(M=J=!1);var ge=this.__chain__,Re=!!this.__actions__.length,Me=C&&!ge,nt=M&&!Re;if(!C&&J){L=nt?L:new gt(this);var ke=c.apply(L,N);return ke.__actions__.push({func:Lg,args:[ne],thisArg:e}),new kr(ke,ge)}return Me&&nt?c.apply(this,N):(ke=this.thru(ne),Me?T?ke.value()[0]:ke.value():ke)})}),wr(["pop","push","shift","sort","splice","unshift"],function(c){var f=ng[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",T=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var E=arguments;if(T&&!this.__chain__){var C=this.value();return f.apply(Ye(C)?C:[],E)}return this[d](function(L){return f.apply(Ye(L)?L:[],E)})}}),Fo(gt.prototype,function(c,f){var d=P[f];if(d){var T=d.name+"";Nt.call(gl,T)||(gl[T]=[]),gl[T].push({name:f,func:d})}}),gl[Ag(e,I).name]=[{name:"wrapper",func:e}],gt.prototype.clone=g2,gt.prototype.reverse=m2,gt.prototype.value=h2,P.prototype.at=X$,P.prototype.chain=Q$,P.prototype.commit=q$,P.prototype.next=Y$,P.prototype.plant=J$,P.prototype.reverse=Z$,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=eB,P.prototype.first=P.prototype.head,ru&&(P.prototype[ru]=z$),P}),"runInContext"),Ya=XU();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(qn._=Ya,define(function(){return Ya})):nc?((nc.exports=Ya)._=Ya,rv._=Ya):qn._=Ya}).call(Af)});var _M=Ze((qde,DM)=>{var{findIndex:KY}=ed();function XY(e,t){let i=KY(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(XY,"findNextTextualToken");DM.exports={findNextTextualToken:XY}});var MM=Ze((zde,wM)=>{var VM=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function QY({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(VM);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(QY,"isXMLNamespaceKey");function qY(e){if(typeof e!="string")return;let t=e.match(VM);if(t!==null)return t.groups&&t.groups.prefix||""}o(qY,"getXMLNamespaceKeyPrefix");wM.exports={isXMLNamespaceKey:QY,getXMLNamespaceKeyPrefix:qY}});var jM=Ze((Zde,kM)=>{var{findNextTextualToken:YY}=_M(),{isXMLNamespaceKey:zY,getXMLNamespaceKeyPrefix:JY}=MM();kM.exports={findNextTextualToken:YY,isXMLNamespaceKey:zY,getXMLNamespaceKeyPrefix:JY}});var JP=Ze((ege,$M)=>{var{reduce:ZY,has:UM,isArray:e9}=ed();function t9(e){return ZY(e,(n,i,r)=>(r==="parent"||(UM(i,"type")?n.push(i):e9(i)&&i.length>0&&UM(i[0],"type")&&(n=n.concat(i))),n),[])}o(t9,"getAstChildrenReflective");$M.exports={getAstChildrenReflective:t9}});var ZP=Ze((nge,BM)=>{BM.exports={DEFAULT_NS:"::DEFAULT"}});var YM=Ze((ige,qM)=>{var{BaseXmlCstVisitor:n9}=zP(),{last:i9,forEach:KM,reduce:r9,map:td,pick:tx,sortBy:o9,isEmpty:a9,isArray:XM,assign:s9}=ed(),{findNextTextualToken:c9,isXMLNamespaceKey:l9,getXMLNamespaceKeyPrefix:f9}=jM(),{getAstChildrenReflective:u9}=JP(),{DEFAULT_NS:p9}=ZP();function d9(e,t){HM.setState({tokenVector:t});let n=HM.visit(e);return n.rootElement!==Zc&&QM(n.rootElement),n}o(d9,"buildAst");var nx=class nx extends n9{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:Zc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&a9(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),sT(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=td(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),sT(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=td(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=td(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Zc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=td(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 h9(i,t),y9(i,t),T9(i,t,this.tokenVector),sT(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Zc,value:Zc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=cT(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=g9(a.image),r.syntax.value=cT(a)}return sT(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Zc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=o9(r,["startOffset"]),s=td(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(nx,"CstToAstVisitor");var ex=nx,HM=new ex;function sT(e){let t=u9(e);KM(t,n=>n.parent=e)}o(sT,"setChildrenParent");function QM(e,t=[]){let n=r9(e.attributes,(r,a)=>{if(a.key!==Zc&&l9({key:a.key,includeEmptyPrefix:!1})===!0){let s=f9(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[p9]=l}}return r},{}),i=Object.create(null);e.namespaces=s9(i,t,n),KM(e.subElements,r=>QM(r,e.namespaces))}o(QM,"updateNamespaces");function cT(e){return tx(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(cT,"toXMLToken");function GM(e){return tx(e,["startOffset","startLine","startColumn"])}o(GM,"startOfXMLToken");function WM(e){return tx(e,["endOffset","endLine","endColumn"])}o(WM,"endOfXMLToken");function Ua(e){return XM(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Ua,"exists");function g9(e){return e.substring(1,e.length-1)}o(g9,"stripQuotes");function m9(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(m9,"nsToParts");var Zc=null;function h9(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=cT(n);let i=m9(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=cT(t.END_NAME[0]))}o(h9,"handleElementOpenCloseNameRanges");function y9(e,t){if(Ua(t.OPEN)){let n;Ua(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Ua(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...GM(t.OPEN[0]),...WM(n)}),Ua(t.SLASH_OPEN)&&Ua(t.END)&&(e.syntax.closeBody={...GM(t.SLASH_OPEN[0]),...WM(t.END[0])})}}o(y9,"handleElementOpenCloseBodyRanges");function T9(e,t,n){if(Ua(t.Name)){let i=t.Name[0].endOffset+2;if(Ua(t.START_CLOSE)||Ua(t.SLASH_CLOSE)){let r=(Ua(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=XM(t.attribute)?i9(t.attribute).location.endOffset:t.Name[0].endOffset,s=c9(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(T9,"handleElementAttributeRanges");qM.exports={buildAst:d9}});var ZM=Ze((oge,JM)=>{var{forEach:v9,isFunction:Pf}=ed(),{getAstChildrenReflective:b9}=JP();function zM(e,t){switch(e.type){case"XMLDocument":{Pf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{Pf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{Pf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{Pf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{Pf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{Pf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=b9(e);v9(n,i=>{zM(i,t)})}o(zM,"accept");JM.exports={accept:zM}});var tk=Ze((sge,ek)=>{var{buildAst:S9}=YM(),{accept:E9}=ZM(),{DEFAULT_NS:A9}=ZP();ek.exports={buildAst:S9,accept:E9,DEFAULT_NS:A9}});var Vi={};uc(Vi,{deleteConfigEntityByPath:()=>UZ,exportConfig:()=>kZ,exportConfigEntityByPath:()=>jZ,generateCustomExtension:()=>MI,generateSchema:()=>MZ,getApiVersion:()=>GZ,getChanges:()=>Fj,getGenericSchema:()=>KT,getPathToGenericSchema:()=>Yk,getProject:()=>qZ,importConfig:()=>$Z,importProject:()=>BZ,importProjectSchema:()=>HZ,isDirectory:()=>KZ,log:()=>re,prompts:()=>wZ,readDirectory:()=>BI});module.exports=jg(Vi);var de=Z(ae());var G=Z(ae());var Be=o(e=>typeof e=="string","isString"),Tu=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),ZN=o(e=>e==null?"":""+e,"makeString"),MW=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),kW=/###/g,eD=o(e=>e&&e.indexOf("###")>-1?e.replace(kW,"."):e,"cleanKey"),tD=o(e=>!e||Be(e),"canNotTraverseDeeper"),vu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(tD(e))return{};let a=eD(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return tD(e)?{}:{obj:e,k:eD(i[r])}},"getLastOfPath"),nD=o((e,t,n)=>{let{obj:i,k:r}=vu(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=vu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=vu(e,s,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),jW=o((e,t,n,i)=>{let{obj:r,k:a}=vu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),$g=o((e,t)=>{let{obj:n,k:i}=vu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},"getPath"),UW=o((e,t,n)=>{let i=$g(e,n);return i!==void 0?i:$g(t,n)},"getPathWithDefaults"),uD=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]):uD(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),El=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),$W={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},BW=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>$W[t]):e,"escape"),Pb=class Pb{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(Pb,"RegExpCache");var hb=Pb,HW=[" ",",","?","!",";"],GW=new hb(20),WW=o((e,t,n)=>{t=t||"",n=n||"";let i=HW.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=GW.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"),yb=o((e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;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"),Eu=o(e=>e==null?void 0:e.replace("_","-"),"getCleanedCode"),KW={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,i;(i=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||i.call(n,console,t)}},bu=class bu{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||KW,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"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 bu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new bu(this.logger,t)}};o(bu,"Logger");var Tb=bu,_o=new Tb,xb=class xb{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,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r.apply(r,[t,...n])})}};o(xb,"EventEmitter");var Al=xb,Cb=class Cb extends Al{constructor(t,n={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,r={}){var p,g;let 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=$g(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:yb((g=(p=this.data)==null?void 0:p[t])==null?void 0:g[n],i,a)}addResource(t,n,i,r,a={silent:!1}){let 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),nD(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i,r={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,s={silent:!1,skipCopy:!1}){let l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=$g(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?uD(u,i,a):u={...u,...i},nD(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.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(Cb,"ResourceStore");var Bg=Cb,pD={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{var s;t=((s=this.processors[a])==null?void 0:s.process(t,n,i,r))??t}),t}},dD=Symbol("i18next/PATH_KEY");function XW(){let e=[],t=Object.create(null),n;return t.get=(i,r)=>{var a;return(a=n==null?void 0:n.revoke)==null||a.call(n),r===dD?e:(e.push(r),n=Proxy.revocable(i,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}o(XW,"createProxy");function vb(e,t){let{[dD]:n}=e(XW());return n.join((t==null?void 0:t.keySeparator)??".")}o(vb,"keysFromSelector");var iD={},rD=o(e=>!Be(e)&&typeof e!="boolean"&&typeof e!="number","shouldHandleAsObject"),Kg=class Kg extends Al{constructor(t,n={}){super(),MW(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=_o.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){let i={...n};if(t==null)return!1;let r=this.resolve(t,i);return(r==null?void 0:r.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&&!WW(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){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";typeof t=="function"&&(t=vb(t,{...this.options,...r})),Array.isArray(t)||(t=[String(t)]);let a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:l,namespaces:u}=this.extractFromKey(t[t.length-1],r),p=u[u.length-1],g=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");let m=r.lng||this.language,v=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((m==null?void 0:m.toLowerCase())==="cimode")return v?a?{res:`${p}${g}${l}`,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:`${p}${g}${l}`:a?{res:l,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:l;let S=this.resolve(t,r),b=S==null?void 0:S.res,I=(S==null?void 0:S.usedKey)||l,F=(S==null?void 0:S.exactUsedKey)||l,j=["[object Number]","[object Function]","[object RegExp]"],W=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,U=!this.i18nFormat||this.i18nFormat.handleAsObject,se=r.count!==void 0&&!Be(r.count),te=Kg.hasDefaultValue(r),le=se?this.pluralResolver.getSuffix(m,r.count,r):"",Le=r.ordinal&&se?this.pluralResolver.getSuffix(m,r.count,{ordinal:!1}):"",D=se&&!r.ordinal&&r.count===0,Ue=D&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${le}`]||r[`defaultValue${Le}`]||r.defaultValue,$e=b;U&&!b&&te&&($e=Ue);let qe=rD($e),rn=Object.prototype.toString.apply($e);if(U&&$e&&qe&&j.indexOf(rn)<0&&!(Be(W)&&Array.isArray($e))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let Bt=this.options.returnedObjectHandler?this.options.returnedObjectHandler(I,$e,{...r,ns:u}):`key '${l} (${this.language})' returned an object instead of string.`;return a?(S.res=Bt,S.usedParams=this.getUsedParamsDetails(r),S):Bt}if(s){let Bt=Array.isArray($e),Et=Bt?[]:{},Yt=Bt?F:I;for(let Fe in $e)if(Object.prototype.hasOwnProperty.call($e,Fe)){let vn=`${Yt}${s}${Fe}`;te&&!b?Et[Fe]=this.translate(vn,{...r,defaultValue:rD(Ue)?Ue[Fe]:void 0,joinArrays:!1,ns:u}):Et[Fe]=this.translate(vn,{...r,joinArrays:!1,ns:u}),Et[Fe]===vn&&(Et[Fe]=$e[Fe])}b=Et}}else if(U&&Be(W)&&Array.isArray(b))b=b.join(W),b&&(b=this.extendTranslation(b,t,r,i));else{let Bt=!1,Et=!1;!this.isValidLookup(b)&&te&&(Bt=!0,b=Ue),this.isValidLookup(b)||(Et=!0,b=l);let Fe=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Et?void 0:b,vn=te&&Ue!==b&&this.options.updateMissing;if(Et||Bt||vn){if(this.logger.log(vn?"updateKey":"missingKey",m,p,l,vn?Ue:b),s){let an=this.resolve(l,{...r,keySeparator:!1});an&&an.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 bn=[],on=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&on&&on[0])for(let an=0;an<on.length;an++)bn.push(on[an]);else this.options.saveMissingTo==="all"?bn=this.languageUtils.toResolveHierarchy(r.lng||this.language):bn.push(r.lng||this.language);let Rn=o((an,Oe,fn)=>{var tt;let Fi=te&&fn!==b?fn:Fe;this.options.missingKeyHandler?this.options.missingKeyHandler(an,p,Oe,Fi,vn,r):(tt=this.backendConnector)!=null&&tt.saveMissing&&this.backendConnector.saveMissing(an,p,Oe,Fi,vn,r),this.emit("missingKey",an,p,Oe,b)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&se?bn.forEach(an=>{let Oe=this.pluralResolver.getSuffixes(an,r);D&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&Oe.push(`${this.options.pluralSeparator}zero`),Oe.forEach(fn=>{Rn([an],l+fn,r[`defaultValue${fn}`]||Ue)})}):Rn(bn,l,Ue))}b=this.extendTranslation(b,t,r,S,i),Et&&b===l&&this.options.appendNamespaceToMissingKey&&(b=`${p}${g}${l}`),(Et||Bt)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${g}${l}`:l,Bt?b:void 0,r))}return a?(S.res=b,S.usedParams=this.getUsedParamsDetails(r),S):b}extendTranslation(t,n,i,r,a){var u,p;if((u=this.i18nFormat)!=null&&u.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 g=Be(t)&&(((p=i==null?void 0:i.interpolation)==null?void 0:p.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),m;if(g){let S=t.match(this.interpolator.nestingRegexp);m=S&&S.length}let v=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,i.lng||this.language||r.usedLng,i),g){let S=t.match(this.interpolator.nestingRegexp),b=S&&S.length;m<b&&(i.nest=!1)}!i.lng&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,(...S)=>(a==null?void 0:a[0])===S[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${n[0]}`),null):this.translate(...S,n),i)),i.interpolation&&this.interpolator.reset()}let s=i.postProcess||this.options.postProcess,l=Be(s)?[s]:s;return t!=null&&(l!=null&&l.length)&&i.applyPostProcessor!==!1&&(t=pD.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t,n={}){let 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 v=n.count!==void 0&&!Be(n.count),S=v&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(F=>{var j,W;this.isValidLookup(i)||(l=F,!iD[`${I[0]}-${F}`]&&((j=this.utils)!=null&&j.hasLoadedNamespace)&&!((W=this.utils)!=null&&W.hasLoadedNamespace(l))&&(iD[`${I[0]}-${F}`]=!0,this.logger.warn(`key "${r}" for languages "${I.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!!!")),I.forEach(U=>{var le;if(this.isValidLookup(i))return;s=U;let se=[g];if((le=this.i18nFormat)!=null&&le.addLookupKeys)this.i18nFormat.addLookupKeys(se,g,U,F,n);else{let Le;v&&(Le=this.pluralResolver.getSuffix(U,n.count,n));let D=`${this.options.pluralSeparator}zero`,Ue=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(n.ordinal&&Le.indexOf(Ue)===0&&se.push(g+Le.replace(Ue,this.options.pluralSeparator)),se.push(g+Le),S&&se.push(g+D)),b){let $e=`${g}${this.options.contextSeparator||"_"}${n.context}`;se.push($e),v&&(n.ordinal&&Le.indexOf(Ue)===0&&se.push($e+Le.replace(Ue,this.options.pluralSeparator)),se.push($e+Le),S&&se.push($e+D))}}let te;for(;te=se.pop();)this.isValidLookup(i)||(a=te,i=this.getResource(U,F,te,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,r={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(t={}){let 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(Kg,"Translator");var Hg=Kg,Ib=class Ib{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_o.create("languageUtils")}getScriptPartFromCode(t){if(t=Eu(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=Eu(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}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.getScriptPartFromCode(i);if(this.isSupportedCode(r))return n=r;let a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),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===!1?[]: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(Ib,"LanguageUtil");var Gg=Ib,oD={zero:0,one:1,two:2,few:3,many:4,other:5},aD={select:o(e=>e===1?"one":"other","select"),resolvedOptions:o(()=>({pluralCategories:["one","other"]}),"resolvedOptions")},Ob=class Ob{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=_o.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){let i=Eu(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(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),aD;if(!t.match(/-|_/))return aD;let u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[a]=s,s}needsPlural(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,i={}){return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((r,a)=>oD[r]-oD[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(t,n,i={}){let r=this.getRule(t,i);return r?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,i))}};o(Ob,"PluralResolver");var bb=Ob,sD=o((e,t,n,i=".",r=!0)=>{let a=UW(e,t,n);return!a&&r&&Be(n)&&(a=yb(e,n,i),a===void 0&&(a=yb(t,n,i))),a},"deepFindWithDefaults"),mb=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),Rb=class Rb{constructor(t={}){var n;this.logger=_o.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(i=>i),this.init(t)}init(t={}){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:v,nestingPrefixEscaped:S,nestingSuffix:b,nestingSuffixEscaped:I,nestingOptionsSeparator:F,maxReplaces:j,alwaysFormat:W}=t.interpolation;this.escape=n!==void 0?n:BW,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?El(a):s||"{{",this.suffix=l?El(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=v?El(v):S||El("$t("),this.nestingSuffix=b?El(b):I||El(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=j||1e3,this.alwaysFormat=W!==void 0?W:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>(n==null?void 0: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){var S;let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(b=>{if(b.indexOf(this.formatSeparator)<0){let W=sD(n,u,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(W,void 0,i,{...r,...n,interpolationkey:b}):W}let I=b.split(this.formatSeparator),F=I.shift().trim(),j=I.join(this.formatSeparator).trim();return this.format(sD(n,u,F,this.options.keySeparator,this.options.ignoreJSONStructure),j,i,{...r,...n,interpolationkey:F})},"handleFormat");this.resetRegExp();let g=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,m=((S=r==null?void 0:r.interpolation)==null?void 0:S.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(b=>mb(b),"safeValue")},{regex:this.regexp,safeValue:o(b=>this.escapeValue?mb(this.escape(b)):mb(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let I=a[1].trim();if(s=p(I),s===void 0)if(typeof g=="function"){let j=g(t,a,r);s=Be(j)?j:""}else if(r&&Object.prototype.hasOwnProperty.call(r,I))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${I} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=ZN(s));let F=b.safeValue(s);if(t=t.replace(a[0],F),m?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n,i={}){let 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}[ ]*{`)),v=`{${m[1]}`;u=m[0],v=this.interpolate(v,s);let S=v.match(/'/g),b=v.match(/"/g);(((S==null?void 0:S.length)??0)%2===0&&!b||b.length%2!==0)&&(v=v.replace(/'/g,'"'));try{s=JSON.parse(v),p&&(s={...p,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,I),`${u}${g}${v}`}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=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(p!==-1&&(u=r[1].slice(p).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=ZN(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),u.length&&(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(Rb,"Interpolator");var Sb=Rb,QW=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"),cD=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(Eu(i),r),t[s]=l),l(n)}},"createCachedFormatter"),qW=o(e=>(t,n,i)=>e(Eu(n),i)(t),"createNonCachedFormatter"),Lb=class Lb{constructor(t={}){this.logger=_o.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";let i=n.cacheInBuiltFormats?cD:qW;this.formats={number:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a});return l=>s.format(l)}),currency:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a,style:"currency"});return l=>s.format(l)}),datetime:i((r,a)=>{let s=new Intl.DateTimeFormat(r,{...a});return l=>s.format(l)}),relativetime:i((r,a)=>{let s=new Intl.RelativeTimeFormat(r,{...a});return l=>s.format(l,a.range||"day")}),list:i((r,a)=>{let s=new Intl.ListFormat(r,{...a});return l=>s.format(l)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=cD(n)}format(t,n,i,r={}){let 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)=>{var m;let{formatName:p,formatOptions:g}=QW(u);if(this.formats[p]){let v=l;try{let S=((m=r==null?void 0:r.formatParams)==null?void 0:m[r.interpolationkey])||{},b=S.locale||S.lng||r.locale||r.lng||i;v=this.formats[p](l,b,{...g,...r,...S})}catch(S){this.logger.warn(S)}return v}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(Lb,"Formatter");var Eb=Lb,YW=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Fb=class Fb extends Al{constructor(t,n,i,r={}){var a,s;super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=_o.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=[],(s=(a=this.backend)==null?void 0:a.init)==null||s.call(a,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 v=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?s[v]===void 0&&(s[v]=!0):(this.state[v]=1,g=!1,s[v]===void 0&&(s[v]=!0),a[v]===void 0&&(a[v]=!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=>{jW(u.loaded,[a],s),YW(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,r=0,a=this.retryTimeout,s){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,i={},r){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,n=""){let 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,s={},l=()=>{}){var u,p,g,m,v;if((p=(u=this.services)==null?void 0:u.utils)!=null&&p.hasLoadedNamespace&&!((m=(g=this.services)==null?void 0:g.utils)!=null&&m.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((v=this.backend)!=null&&v.create){let S={...s,isUpdate:a},b=this.backend.create.bind(this.backend);if(b.length<6)try{let I;b.length===5?I=b(t,n,i,r,S):I=b(t,n,i,r),I&&typeof I.then=="function"?I.then(F=>l(null,F)).catch(l):l(null,I)}catch(I){l(I)}else b(t,n,i,r,l,S)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(Fb,"Connector");var Ab=Fb,lD=o(()=>({debug:!1,initAsync:!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},cacheInBuiltFormats:!0}),"get"),fD=o(e=>{var t,n;return Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},"transformOptions"),Ug=o(()=>{},"noop"),zW=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Su=class Su extends Al{constructor(t={},n){if(super(),this.options=fD(t),this.services={},this.logger=_o,this.modules={external:[]},zW(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Be(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let i=lD();this.options={...i,...this.options,...fD(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let r=o(p=>p?typeof p=="function"?new p:p:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?_o.init(r(this.modules.logger),this.options):_o.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=Eb;let g=new Gg(this.options);this.store=new Bg(this.options.resources,this.options);let m=this.services;m.logger=_o,m.resourceStore=this.store,m.languageUtils=g,m.pluralResolver=new bb(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(m.formatter=r(p),m.formatter.init&&m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new Sb(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new Ab(r(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(S,...b)=>{this.emit(S,...b)}),this.modules.languageDetector&&(m.languageDetector=r(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=r(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new Hg(this.services,this.options),this.translator.on("*",(S,...b)=>{this.emit(S,...b)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ug),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=(...g)=>this.store[p](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...g)=>(this.store[p](...g),this)});let l=Tu(),u=o(()=>{let p=o((g,m)=>{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),l.resolve(m),n(g,m)},"finish");if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)},"load");return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),l}loadResources(t,n=Ug){var a,s;let i=n,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if((r==null?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let l=[],u=o(p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(m=>{m!=="cimode"&&l.indexOf(m)<0&&l.push(m)})},"append");r?u(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(g=>u(g)),(s=(a=this.options.preload)==null?void 0:a.forEach)==null||s.call(a,p=>u(p)),this.services.backendConnector.load(l,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(p)})}else i(null)}reloadResources(t,n,i){let r=Tu();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=Ug),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"&&pD.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}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;let i=Tu();this.emit("languageChanging",t);let r=o(l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},"setLngProps"),a=o((l,u)=>{u?this.isLanguageChangingTo===t&&(r(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve((...p)=>this.t(...p)),n&&n(l,(...p)=>this.t(...p))},"done"),s=o(l=>{var g,m;!t&&!l&&this.services.languageDetector&&(l=[]);let u=Be(l)?l:l&&l[0],p=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(Be(l)?[l]:l);p&&(this.language||r(p),this.translator.language||this.translator.changeLanguage(p),(m=(g=this.services.languageDetector)==null?void 0:g.cacheUserLanguage)==null||m.call(g,p)),this.loadResources(p,v=>{a(v,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,i){let r=o((a,s,...l)=>{let u;typeof s!="object"?u=this.options.overloadTranslationOptionHandler([a,s].concat(l)):u={...s},u.lng=u.lng||r.lng,u.lngs=u.lngs||r.lngs,u.ns=u.ns||r.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||r.keyPrefix);let p=this.options.keySeparator||".",g;return u.keyPrefix&&Array.isArray(a)?g=a.map(m=>(typeof m=="function"&&(m=vb(m,{...this.options,...s})),`${u.keyPrefix}${p}${m}`)):(typeof a=="function"&&(a=vb(a,{...this.options,...s})),g=u.keyPrefix?`${u.keyPrefix}${p}${a}`:a),this.t(g,u)},"fixedT");return Be(t)?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=i,r}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){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=Tu();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=Tu();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){var r,a;if(t||(t=this.resolvedLanguage||(((r=this.languages)==null?void 0:r.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{let s=new Intl.Locale(t);if(s&&s.getTextInfo){let l=s.getTextInfo();if(l&&l.direction)return l.direction}}catch{}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=((a=this.services)==null?void 0:a.languageUtils)||new Gg(lD());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new Su(t,n)}cloneInstance(t={},n=Ug){let i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Su(r);if((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){let l=Object.keys(this.store.data).reduce((u,p)=>(u[p]={...this.store.data[p]},u[p]=Object.keys(u[p]).reduce((g,m)=>(g[m]={...u[p][m]},g),u[p]),u),{});a.store=new Bg(l,r),a.services.resourceStore=a.store}return a.translator=new Hg(a.services,r),a.translator.on("*",(l,...u)=>{a.emit(l,...u)}),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(Su,"I18n");var Wg=Su,Q=Wg.createInstance();Q.createInstance=Wg.createInstance;var aee=Q.createInstance,see=Q.dir,cee=Q.init,lee=Q.loadResources,fee=Q.reloadResources,uee=Q.use,pee=Q.changeLanguage,dee=Q.getFixedT,gee=Q.t,mee=Q.exists,hee=Q.setDefaultNamespace,yee=Q.hasLoadedNamespace,Tee=Q.loadNamespaces,vee=Q.loadLanguages;var I0=Z(Nb()),O0=Z(UD()),dm=Z(C0()),ft=require("@sap-ux/vocabularies-types/vocabularies/UI"),Iu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var um=Z(ae());var re=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(`${um.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${um.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${um.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",LK=[G.v4.FE_TEMPLATE_V4_LIST_REPORT,G.v4.FE_TEMPLATE_V4_ALP,G.v4.FE_TEMPLATE_V4_OBJECT_PAGE,G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],FK=["sap.fe.core","sap.fe.templates"],R0="controlProperty",NK="defaultControlProperty",Rl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Tr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Hr(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,dm.parse)(r.fileContent,r.dataSourceUri))}catch(a){return re(t,{severity:G.LogSeverity.Error,message:Q.t("ANNOERR"),location:{path:Q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,dm.merge)(...n);i=(0,O0.convert)(r)}return i}o(Hr,"parseAndMergeAndConvert");var Ol=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Jb(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(Jb,"evaluateCommonLabel");function gm(e,t){let n=e.value;return e.$target&&(n=Jb(e.$target.annotations,t,n)),n}o(gm,"getLabelForPropertyPath");function Ou(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=Jb(i.annotations,t,n)),n}o(Ou,"getLabelForDataField");function Ta(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 Jb(a.annotations,t,s)}}}else return}o(Ta,"getLabel");function mm(e,t){var r;let n=e,i=typeof n.Action=="string"?n.Action:(r=n.Action)==null?void 0:r.path;return t&&typeof t=="string"?t:i}o(mm,"getDescriptionForActionBasedDataFields");function Zb(e,t,n){let i=Ou(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(Zb,"getTitleForDataField");function ut(e){return e.replace("#","::").replace(/\//g,":2f")}o(ut,"prepareRef");function ya(e){if(e){let t=`${G.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(ya,"getPageTypeV2");function eS(e){let t="name"in e&&typeof e.name=="string"?pm(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return G.PageTypeV4.CustomPage}o(eS,"getPageTypeV4");function DK(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(DK,"getTargetAnnotationName");function oi(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(oi,"findAlias");function _K(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(_K,"getAnnotationFromMetaPath");function VK(e,t,n){var s,l;let i=e[e.length-1],r=_K(i),a=oi(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(VK,"determineTargetAnnotation");function wK(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${ft.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${G.UIVOCABULARY}`);return e}o(wK,"adjustKey");function MK(e,t,n,i,r=G.FioriElementsVersion.v2,a=!1){var m,v;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=wK(t,u,a);let g=VK(u,n,e);if(g){let S=r===G.FioriElementsVersion.v2?"::":"#";t=DK(g,a).replace("#",S),l=(v=g.fullyQualifiedName)==null?void 0:v.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let S=r===G.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(S)}${S}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(MK,"getKeyAndEntityTypeOfReferenceFacet");function L0(e,t,n,i,r=G.FioriElementsVersion.v2,a=!1){var g,m,v;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=(v=e.fullyQualifiedName)==null?void 0:v.split("@")[0],p=t;if(e.$Type!==ft.UIAnnotationTypes.CollectionFacet&&"Target"in e){let S=Ol(e.Target);if(!S){re(i,{severity:G.LogSeverity.Error,message:Q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:I,stopProcessing:F,namespace:j}=MK(n,l,p,S,r,a);if(F)return;l=b,p=I,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(L0,"getSectionFacet");function kK(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(kK,"getDecodedPathElement");var tS=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),F0=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=kK(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=tS(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Mo=o((e,t,n,i,r=!1)=>F0(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),N0=o((e,t,n,i,r)=>{F0(e,t,i,r,n)},"setManifestSectionByPathV4");function nS(e){let t,n,i;switch(e.$Type){case ft.UIAnnotationTypes.DataField:t=Ol(e.Value);break;case ft.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Ol(e.Value);break;case ft.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${G.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case ft.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ut(e.Action)}`);break;case ft.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Ol(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case ft.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ut(e.Action)}`);break;case ft.UIAnnotationTypes.DataFieldWithNavigationPath:i=Ol(e.Value),n=Ol(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(nS,"getSchemaKeyOfLineItemRecord");function jK(e,t,n){return e.includes(ft.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?ft.UIAnnotationTerms.Chart:e.includes(ft.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?ft.UIAnnotationTerms.Identification:n&&e.includes(ft.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?ft.UIAnnotationTerms.LineItem:e.includes(ft.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?ft.UIAnnotationTerms.FieldGroup:e.includes(ft.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?ft.UIAnnotationTerms.DataPoint:e.includes(ft.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?ft.UIAnnotationTerms.PresentationVariant:e.includes(ft.UIAnnotationTerms.SelectionPresentationVariant)||e.includes(t+".SelectionPresentationVariant")?ft.UIAnnotationTerms.SelectionPresentationVariant:void 0}o(jK,"getUIAnnotationTerm");function UK(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Iu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Iu.CommunicationAnnotationTerms.Address:void 0}o(UK,"getCommunicationAnnotationTerm");function $K(e,t,n){return jK(e,t,n)||UK(e,t)}o($K,"getAnnotationTerm");function BK(e,t,n,i,r){var p,g,m,v,S,b,I,F,j,W;let a=oi(G.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch($K(s,a,i)){case ft.UIAnnotationTerms.Chart:{n[s]={base:G.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 ft.UIAnnotationTerms.Identification:{n[s]={base:G.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 ft.UIAnnotationTerms.LineItem:{if(!s.includes(ft.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let U=s.split("::");U[U.length-1]=`@${ft.UIAnnotationTerms.LineItem}`,s=U.join("::")}n[s]={base:G.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 ft.UIAnnotationTerms.FieldGroup:{n[s]={base:G.FacetBase.Form},n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ft.UIAnnotationTerms.DataPoint:{n[s]={base:G.FacetBase.DataPoint},n[s].Label=(S=t==null?void 0:t.Target)==null?void 0:S.$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 ft.UIAnnotationTerms.PresentationVariant:{n[s]={base:G.FacetBase.PresentationVariant},n[s].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ft.UIAnnotationTerms.SelectionPresentationVariant:{n[s]={base:G.FacetBase.SelectionPresentationVariant},n[s].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Iu.CommunicationAnnotationTerms.Contact:{n[s]={base:G.FacetBase.Contact},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}case Iu.CommunicationAnnotationTerms.Address:{n[s]={base:G.FacetBase.Address},n[s].target=(W=t==null?void 0:t.Target)==null?void 0:W.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:G.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",G.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(BK,"evaluateTargetAnnotation");function iS(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(iS,"getAnnotationPathUsingFullyQualifiedName");function rS(e,t,n,i,r,a=G.FioriElementsVersion.v2,s){var u;let l=L0(e,i,t,s,a,!1);if(l)switch(e.$Type){case ft.UIAnnotationTypes.ReferenceFacet:{BK(l,e,r,i,t);break}case ft.UIAnnotationTypes.CollectionFacet:{let p=iS(i,e.fullyQualifiedName),g=r[l.key]={base:G.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===G.FioriElementsVersion.v4&&re(s,{severity:G.LogSeverity.Error,message:Q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{rS(m,t,n,i,g.facets,a,s)});break}}}o(rS,"addFacetToConfig");function hm(e,t,n=G.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=oi(G.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=>{rS(m,t,g,e,r,n,i)})}return r}o(hm,"getObjectPageHeaderFacets");function ym(e,t,n=G.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=oi(G.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=>{rS(g,t,p,e,r,n,i)})}return r}o(ym,"getObjectPageFacets");function oS(e){var t,n,i,r;if(e[G.ManifestSection.generic]&&Object.keys(e[G.ManifestSection.generic]).length>0||e[G.ManifestSection.ovp]&&Object.keys(e[G.ManifestSection.ovp]).length>0)return G.FioriElementsVersion.v2;{let a=(n=(t=e[G.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[G.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>{let u=typeof a[l].name=="string"?a[l].name:"";return LK.indexOf(u)>-1||pm(u)})||s&&Object.keys(s).find(l=>FK.indexOf(l)>-1)?G.FioriElementsVersion.v4:void 0}}o(oS,"getFEVersionFromManifest");function HK(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[G.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[G.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[G.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[G.ManifestSection.ui5].models[t].dataSource:void 0}o(HK,"getMainService");function D0(e){var i,r;let t=HK(e);if(!t)return G.OdataVersion.v2;let n=(i=e[G.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?G.OdataVersion.v4:G.OdataVersion.v2}o(D0,"getODataVersionFromManifest");function GK(e,t){var i,r;let n;if(e[G.ManifestSection.generic]){let a=e[G.ManifestSection.generic].pages;if(!a){re(t,{severity:G.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(ya((i=l.component)==null?void 0:i.name)===G.PageTypeV2.AnalyticalListPage){n=G.TemplateType.AnalyticalListPageV2;break}else if(ya((r=l.component)==null?void 0:r.name)===G.PageTypeV2.ListReport){n=G.TemplateType.ListReportObjectPageV2;break}}}else n||re(t,{severity:G.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:G.ManifestSection.generic}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return n}o(GK,"determineV2Template");function Ru(e){var i,r,a,s;let t,n=eS(e);if(n===G.PageTypeV4.AnalyticalListPage)t=G.TemplateType.AnalyticalListPageV4;else if(n===G.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[G.ALPViewType.Primary]||l[G.ALPViewType.Secondary])?t=G.TemplateType.AnalyticalListPageV4:t=G.TemplateType.ListReportObjectPageV4}else n===G.PageTypeV4.ObjectPage?t=G.TemplateType.ListReportObjectPageV4:[G.PageTypeV4.CustomPage,G.PageTypeV4.FPMCustomPage].includes(n)&&(t=G.TemplateType.FreestylePageV4);return t}o(Ru,"determineV4PageTemplateType");function WK(e){let t;for(let n in e){let i=e[n];if(t=Ru(i),t)break}return t}o(WK,"determineV4TemplateFromPages");function KK(e,t){let n=e[G.ManifestSection.ui5].routing&&e[G.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return re(t,{severity:G.LogSeverity.Info,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing"]}}),G.TemplateType.ListReportObjectPageV4;let i=WK(n);return i||re(t,{severity:G.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:G.ManifestSection.ui5}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing","targets"]}}),i}o(KK,"determineV4Template");function mc(e,t,n){let i;return e[G.ManifestSection.ovp]?i=G.TemplateType.OverviewPageV2:t===G.FioriElementsVersion.v2?i=GK(e,n):t===G.FioriElementsVersion.v4&&(i=KK(e,n)),i}o(mc,"getTemplateTypeFromManifest");function va(e,t,n){e!=null&&e.ID?(t.title=G.FACETTITLEPREFIX+e.ID,t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:n.replace(G.UIVOCABULARYALPHADOT,"")}])}o(va,"addSectionTitle");function rs(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(rs,"addSectionDescription");function Ll(e,t,n){var i,r;va(e,t,n),rs(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(Ll,"addTargetTitleAndSectionDescription");function _0(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(_0,"addChartFacetID");function ko(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[G.SchemaTag.isViewNode]=!0,i[G.SchemaTag.annotationPath]=t.annotationPath,Ll(t,i,n),i}o(ko,"createDefaultSection");function V0(e,t,n,i=G.FioriElementsVersion.v2,r=!1){var l,u;let a=oi(G.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 v=L0(m,e,t,n,i,!0);return v&&g.push(v),g},s)),s}}o(V0,"getObjectPageFacetSection");var os=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(/\?\?/g,"/");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(),os(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),zb=o(e=>e===G.SchemaType.FreestylePage?G.PageTypeV2.CustomPage:e===G.SchemaType.FPMCustomPage?G.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Dt=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case G.SchemaType.Application:{i.filename="App",i.path=`./${G.DirName.Schemas}/${i.filename}`;break}case G.SchemaType.ListReport:case G.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:zb(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}case G.PageTypeV4.FPMCustomPage:case G.SchemaType.FPMCustomPage:{i.filename=n?`${G.SchemaType.FPMCustomPage}_${n}`:zb(G.SchemaType.FPMCustomPage),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}default:{i.filename=zb(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function Tm(e,t,n,i){if(e===G.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(Tm,"generatePageId");function aS(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($)[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(aS,"findMatchingKeysByAdditionalProperties");function XK(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split($)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s[R0];if(l)r.includes(n[l])&&i.push(a),n[l]===void 0&&s[NK]&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=aS(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(XK,"fillArrayFromAnyOfReference");function QK(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{XK(r,n,t,i)}),i.length===0))return;return i}o(QK,"fillArrayFromPropertyDefinition");function qK(e){return e.replace(G.UIVOCABULARYDOT,"")}o(qK,"extractUIAnnotationType");function YK(e,t,n,i,r,a,s,l){var p,g,m,v,S;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(u.targetDefinition=t.definitions[b],((p=u==null?void 0:u.targetDefinition)==null?void 0:p.dataType)!==qK(ft.UIAnnotationTypes.DataFieldForActionGroup)&&((g=u==null?void 0:u.targetDefinition)!=null&&g.$ref)||((m=u==null?void 0:u.targetDefinition)==null?void 0:m.type)==="array")return u=jo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(j=>{j!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[j].properties})}),u.title=(v=u==null?void 0:u.targetDefinition)!=null&&v.title?u.targetDefinition.title:n;let I=b==null?void 0:b.split("<")[0],F=i||{};u.configObject=a.createInstance(s,I,F,(S=u==null?void 0:u.targetDefinition)==null?void 0:S[R0])}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(YK,"determineNextDefinitionFromDefinitionArray");function jo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=jo(e,t,n,i.items,r,a,s),l;let u=QK(i,n,e);if(u)return l=YK(u,e,t,n,r,a,s,i),l}o(jo,"getNextTargetDefinition");var sS=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,I0.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function vm(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(vm,"convertEnumToCSV");function Zi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Zi,"convertActionKeyToStableId");function Jt(e){return e==null?void 0:e.split($)[1]}o(Jt,"getDefinitionKey");function bm(e){return`#/definitions/${e}`}o(bm,"getDefinitionsRef");function Sm(e){return e instanceof Error?e.message:String(e)}o(Sm,"getErrorMessage");function hc(e,t){return e==null?void 0:e.includes(t)}o(hc,"isFeatureSupported");function Uo(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Uo,"updatePropertyIndices");function Em(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(Em,"getJSONPropertyByPath");function w0(e){return e=e.replace(G.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(w0,"removeNamespaces");function Fl(e){return e=e.replace(G.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(Fl,"replaceNamespaces");function ba(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith($))return t.substring($.length)}o(ba,"getRefType");function pm(e){if(e===G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return G.PageTypeV4.FPMCustomPage;if(e!=null&&e.startsWith(`${G.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in G.PageTypeV4)return G.PageTypeV4[n]}}o(pm,"convertTemplateNameToPageTypeV4");function Am(e,t){if(e===t)return!0;let n=pm(e);return n?n===pm(t):!1}o(Am,"compareTemplateNames");var Lo=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=Z(ae());var er=Z(ae());var Zt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Pm=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),zn=o((e,t)=>{let n,i=er.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 zK(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(zK,"escapeId");var M0=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(M0||{}),k0=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(k0||{});function JK(e,t,n){let i;return e=e.map(function(r){if(r===er.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===er.PropertyName.sections)return i=t[a+1],t[a+1]=zn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(JK,"mapBreadcrumbs");var cS=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=JK(t,s,r)),s[0]===er.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,er.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,er.VOCWITHSLASH):t[0]===er.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,er.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,er.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}`),zK(p)},"buildColumnControlId"),tr=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 ZK(e){let t=er.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(ZK,"determinePattern");var lS=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($)[1]]:a,u=a.description?a.description:l.description,p=ZK(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"),Jn=o((e,t,n)=>{lS(e,t,n)},"addPatternForBindingChangeOfEnumLR"),ht=o((e,t,n)=>{let i=Object.values(M0);lS(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ai=o((e,t,n)=>{let i=Object.values(k0);lS(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function yc(){}o(yc,"doNotDelete");var gte=Z(U0());var fS=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(fS,e),"syncRule");function Mn(e,t){let n;return e&&(n=Reflect.getMetadata(fS,e,t)),n}o(Mn,"getReflectMetadata");function $0(e){let t;return e&&(t=Reflect.getMetadata(fS,e)),t}o($0,"getReflectTypeMetadata");var nr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),B0=Symbol("childId"),jt=o(e=>Reflect.metadata(B0,e),"childId"),xm=o((e,t)=>Reflect.getMetadata(B0,e,t),"getChildId"),Cm=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),eX=Symbol("descriptionSrcURL"),Ae=o(e=>Reflect.metadata(eX,e),"descriptionSrcURL");var tX=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(tX,e),"validity");function Nl(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(Nl,"getTextForDeprecated");var Y0=Z(Q0()),z0=Z(ae());var J0=Y0.default.change,q0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function Z0(e,t){let n="";try{for(let i in q0)e[i]===void 0&&(e[i]=q0[i]);n=J0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(Z0,"createChangeString");function vr(e){try{return J0.parse(e)}catch{return!1}}o(vr,"parseChangeString");function e_(e,t,n,i,r){let a=n.layer?n.layer===z0.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(e_,"fillFlexChangeContent");function Im(e,t){return Z0(e,t)}o(Im,"exportToFlexChange");var Tc=Z(ae());function Dl(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(Dl,"importProperty");function Om(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(re(i,{severity:Tc.LogSeverity.Warning,message:Nl(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Om,"checkDeprecatedProperties");function uS(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return uS(n,t)}else return e.title?e.title.startsWith(Tc.FACETTITLEPREFIX)?e.title.split(Tc.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(uS,"getSectionTitle");function Rm(e){let t=e.split(`${Tc.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Rm,"getTargetFromCustomColumnRef");function Gr(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(Gr,"removeEmptyStructure");var _t=require("@sap-ux/vocabularies-types/vocabularies/UI");var Bo=require("@sap-ux/vocabularies-types/vocabularies/UI");var Ea=require("@sap-ux/vocabularies-types/vocabularies/UI");var t_=Z(ae()),ee=Z(ae()),n_=require("path");function Ot(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=Mn(e,g);if(m!=null&&m.manifest){let v=m.manifest.path([i],t,p,...r);l=Mo(t,v,a,p,!0),l&&Object.keys(l).length>0&&(Dl(m,l,g,e,a,r),Om(u,l,v,s))}}}o(Ot,"importSettingsOfObject");var mS="DataFieldForActionGroup";function cX(){return([e,t],[n,i])=>t[ee.SchemaTag.propertyIndex]-i[ee.SchemaTag.propertyIndex]}o(cX,"sortByPropertyIndex");function Lu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(cX())}o(Lu,"sortPropertiesRecords");function lX(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(lX,"getExtensionText");function pS(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||ee.v4.Placement.After)===ee.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(pS,"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 i_(e,t,n,i){let r=t.includes(ee.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=lX(e);return{$ref:`${$}${r}`,description:a,keys:[{name:ee.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(i_,"getExtensionDetails");function dS(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=i_(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let v=n.findIndex(S=>S[0]===g.position.anchor);v>-1?(pS(g,n,v,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(re(i,{severity:Vi.LogSeverity.Error,message:Q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&fX(e,p,g,n,m)}else r&&(pS(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?dS(e,t,n,i):s>0&&dS(e,t,n,i,!0)}o(dS,"adjustCustomExtReferringToCustomExt");function uX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||ee.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===ee.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(uX,"getExtensionAnchor");function pX(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(pX,"getLocalExtensionsToSkip");function dX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ee.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 v=t[m[0]];if(g(v))break;p++}return p},"findNextIndex"),s=0;return i===ee.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)!==ee.v4.Placement.Before))}),s>-1?s:0}o(dX,"getExtensionIndexByMergedApproach");function gX(e,t,n,i,r=!1){return r?dX(e,t,n):n.findIndex(a=>a[0]===i)}o(gX,"getExtensionIndex");function mX(e,t,n,i,r){re(e,{severity:Vi.LogSeverity.Error,message:Q.t("INVALIDEXTENSION",{id:t}),location:{path:ee.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(mX,"handleInvalidExtension");function Sa(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=pX(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=i_(g,n,p,ee.ActionType.Custom);if(typeof g!="object"){mX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let v=uX(g,s);if(v){let S=gX(g,e,t,v,a);S>-1&&(pS(g,t,S,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&dS(l,n,t,r),t}o(Sa,"addExtensionToArray");function hS(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(hS,"addEnumForProperties");function hX(e,t,n,i=ee.DefinitionName.CustomColumn){if(i===ee.DefinitionName.CustomColumn||i.indexOf(ee.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];hS(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[ee.SchemaTag.propertyIndex]=r}}o(hX,"addColumnPropertyIndexAndEnum");function vc(e,t,n,i=ee.DefinitionName.CustomColumn,r,a){var v,S,b,I;let s=r||ee.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Lu(l),p=a?a.replace(/::/g,"/"):`@${Ea.UIAnnotationTerms.LineItem}`,g=(I=(b=(S=(v=t.options)==null?void 0:v.settings)==null?void 0:S.controlConfiguration)==null?void 0:b[p])==null?void 0:I.columns;g&&(u=Sa(g,u,i,void 0,n)),hX(u,e,l,i);let m={};u.forEach(([F,j])=>m[F]=j),e.definitions[s].properties=m}o(vc,"addCustomColumnDefinition");function r_(e,t){let n=t.$Type===Ea.UIAnnotationTypes.DataFieldForActionGroup,i;return e.lineItemId.startsWith(ee.DefinitionName.LineItemsOfView)?i=n?ee.DefinitionName.ViewToolBarActionGroup:ee.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(ee.DefinitionName.LineItems)?i=n?ee.DefinitionName.ToolBarActionGroup:ee.DefinitionName.ToolBarAction:i=n?ee.DefinitionName.ObjectPageToolBarActionGroup:ee.DefinitionName.ObjectPageToolBarAction,i}o(r_,"determineActionDefinitionName");function yX(e,t,n){e[ee.SchemaTag.keys]=[],t[ee.SchemaKeyName.semanticObject]&&e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.semanticObject,value:t[ee.SchemaKeyName.semanticObject]});let{key:i,ns:r}=Pc(n,!0);e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.action,value:i}),r&&(e[ee.SchemaTag.target]=r)}o(yX,"addTargetAndKeysOfAction");function o_(e,t=!0){let{lineItemData:n,actions:i,lineItemPath:r,lineItemRecord:a,index:s}=e;if(a.Determining===!0)return;let l=r_(n,a),u=ci(a,n.entityType),p=a.$Type.split(`${ee.UIVOCABULARY}.`)[1],g=typeof a.Action=="string"?a.Action:a.Action.path,m=Nm(g),v=i.properties[`${p}::${m}`]={description:u};if(t?v.$ref=f_(l,ut(m),n.appSchema,r):(v.properties={},v.type="object",v.isViewNode=!0),v[ee.SchemaTag.propertyIndex]=s,v[ee.SchemaTag.dataType]=Kr(a),yX(v,a,g),v[ee.SchemaTag.annotationType]=a.$Type,t){let S=v.$ref.replace($,""),b=vt(l,S,n.appSchema,!1);b[ee.SchemaTag.annotationPath]=`${r}/${s}`}else v[ee.SchemaTag.annotationPath]=`${r}/${s}`}o(o_,"addActionRecordToSchema");function a_(e,t=!0){let{lineItemData:n,lineItemRecord:i,lineItemPath:r,index:a,actions:s}=e,l=r_(n,i),u=Wr(i),p={};t?(s.properties[`${u}`]={$ref:si(l,ut(u))},p=vt(l,ut(u),n.appSchema)):s.properties[`${u}`]=p,xa(p,Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),p.properties={},p.description=ci(i,n.entityType),p.type="object",p.isViewNode=!0,p[ee.SchemaTag.propertyIndex]=a,p[ee.SchemaTag.dataType]=Kr(i),p[ee.SchemaTag.annotationPath]=`${r}/${a}`,(i.Actions??[]).forEach((g,m)=>{let v={...e,lineItemRecord:g,lineItemPath:`${p[ee.SchemaTag.annotationPath]}/Actions`,actions:p,index:m};o_(v,t)})}o(a_,"addGroupActionRecordToSchema");function yS(e){let{lineItemRecord:t,lineItemDefinition:n}=e;t.Inline!==!0||t.Determining===!0?o_(e,!n):TS(e)}o(yS,"addLineItemActionDefinition");function TS(e){var g;let{lineItemData:t,lineItemRecord:n,lineItemDefinition:i,lineItemPath:r,index:a,columnDefinitionName:s}=e,l=n.$Type===Ea.UIAnnotationTypes.DataFieldForAction?`${s}Action`:s,u=t.lineItemId;if((g=n.Target)!=null&&g.value){let m=`@${oi(ee.UIVOCABULARY,t.oDataServiceAVT)}.`;n.Target.value=n.Target.value.replace(m,"@")}let p=Wr(n).replace(/\//g,"::");if(p){let m=i;m||(m=t.appSchema.definitions[u]);let v=m.properties,S={description:ci(n,t.entityType)};i?(S.properties={},S.type="object",S.isViewNode=!0):S.$ref=$+l,S[ee.SchemaTag.annotationType]=n==null?void 0:n.$Type,S[ee.SchemaTag.annotationPath]=`${r}/${a}`,S[ee.SchemaTag.propertyIndex]=a,S[ee.SchemaTag.dataType]=Kr(n),v[p]=S,Vm(n,v,p)}}o(TS,"addLineItemRecordToSchema");function vS(e,t,n,i,r=ee.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{let l={lineItemData:e,actions:t,lineItemPath:n,lineItemRecord:s,index:a,lineItemDefinition:i,columnDefinitionName:r};as.getStrategy(s.$Type).addLineItemDefinition(l),a++})}o(vS,"appendLineItemsToSchema");function bc(e,t=ee.DefinitionName.TableColumn,n=ee.DefinitionName.CustomColumn,i=ee.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=Dm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);vS(e,r,a,void 0,t)}o(bc,"addLineItemsTypeToSchema");function Sc(e,t,n,i=ee.DefinitionName.Position,r){var p,g,m,v,S;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!==ee.DefinitionName.LineItems?r:`@${Ea.UIAnnotationTerms.LineItem}`,u=(S=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[l])==null?void 0:S.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(Sc,"addFragmentEnumForAnchor");function po(e,t,n=ee.DefinitionName.CustomActionPosition){ss(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(po,"addEnumForActionAnchor");function Lm(e,t,n,i){var a;let r;for(let s in e){let l=((a=e[s].options)==null?void 0:a.settings)||{};if((i&&l.contextPath===i||(n==null?void 0:n.name)&&l.entitySet===n.name)&&(Am(t,e[s].name)||t===ee.v4.FE_TEMPLATE_V4_ALP&&e[s].name===ee.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(Lm,"findPageV4");function s_(e,t){let n,i=e.properties[ee.PropertyName.table];return t.templateType===ee.TemplateType.AnalyticalListPageV4?(n=ee.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${ee.DefinitionName.ALPTableView}`,delete e.definitions[ee.DefinitionName.Table],delete e.definitions[ee.DefinitionName.LRChartView],delete e.definitions[ee.DefinitionName.LRTableView],delete e.definitions[ee.DefinitionName.MultiTableModeV4]):t.templateType===ee.TemplateType.ListReportObjectPageV4&&(n=ee.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${ee.DefinitionName.Table}`,e.definitions[n].properties[ee.PropertyName.annotationPath][ee.SchemaTag.hidden]=!0,delete e.definitions[ee.DefinitionName.ALPTableView],e.properties[ee.PropertyName.defaultPath][ee.SchemaTag.hidden]=!0),n}o(s_,"alignSchemaWithTemplateType");function Aa(e,t,n,i=ee.DefinitionName.CustomTableAction,r="",a=""){var g,m,v,S,b,I,F,j,W,U;let s=e.definitions[r];if(!s)return;let l=Lu(s),u;a?i.indexOf(ee.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===ee.DefinitionName.CustomFormActionOP?u=`@${Ea.UIAnnotationTerms.FieldGroup}`:u=`@${Ea.UIAnnotationTerms.LineItem}`;let p;if(r.includes(ee.DefinitionName.ObjectPageCustomSectionActions)?p=(I=(b=(S=(v=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:S.sections)==null?void 0:b[u])==null?void 0:I.actions:p=(U=(W=(j=(F=t.options)==null?void 0:F.settings)==null?void 0:j.controlConfiguration)==null?void 0:W[u])==null?void 0:U.actions,p&&(l=Sa(p,l,i,"press",n)),l){for(let te=0;te<l.length;te++)l[te][1][ee.SchemaTag.propertyIndex]=te;let se={};l.forEach(([te,le])=>se[te]=le),e.definitions[r].properties=se}}o(Aa,"addCustomActionDefinition");function Fm(e,t,n,i=ee.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,v,S,b,I,F;let a=e.definitions[r];if(!a)return;let s=Lu(a),l;[ee.DefinitionName.CustomHeaderAction,ee.DefinitionName.CustomHeaderActionOP].includes(i)?l=(v=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:v.actions:l=(F=(I=(b=(S=t.options)==null?void 0:S.settings)==null?void 0:b.content)==null?void 0:I.footer)==null?void 0:F.actions,l&&(s=Sa(l,s,i,"press",n));let u={};if(s){for(let j=0;j<s.length;j++)s[j][1][ee.SchemaTag.propertyIndex]=j;s.forEach(([j,W])=>u[j]=W)}e.definitions[r].properties=u}o(Fm,"addHeaderFooterCustomActionDefinition");function Ec(e,t,n){let i=Em(e,[ee.ManifestSection.ui5,"routing","targets"]);if(!i){re(n,{severity:Vi.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}let r=Em(i,[t]);if(!r){re(n,{severity:Vi.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:t}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}return r}o(Ec,"getManifestPage");function Ac(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,n_.join)(...p,g),v=e.find(S=>S.dataSourceUri.endsWith(m));if(v){let S=(s=t.options)==null?void 0:s.settings;return{file:v,relativeFilePath:m,connection:{contextPath:S==null?void 0:S.contextPath,entitySet:S==null?void 0:S.entitySet}}}}}o(Ac,"getPageCustomExtensionFile");function $o(e,t,n,i){let r=Ec(n,t,i),a=Em(r,["options","settings","viewName"]);return r&&typeof a=="string"?Ac(e,r,n,"view",a):void 0}o($o,"getPageCustomViewFile");function c_(e,t,n,i,r,a,s){var g,m,v,S,b,I,F,j,W,U,se,te;let l=Lu(t),u=new Map;if(l=l.map(le=>{let Le=_m(e,le[1],le[0],{keyProperties:[ee.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Le.const,le[0]),[Le.const,le[1]]}),a){let le=(b=(S=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:S.sections)==null?void 0:b[a];le&&"subSections"in le&&(l=Sa(le.subSections,l,i,"template",s,r))}else if(i.includes(ee.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let le=(j=(F=(I=n.options)==null?void 0:I.settings)==null?void 0:F.content)==null?void 0:j.header;le&&"facets"in le&&(l=Sa(le.facets,l,i,"template",s,r))}else{let le=(te=(se=(U=(W=n.options)==null?void 0:W.settings)==null?void 0:U.content)==null?void 0:se.body)==null?void 0:te.sections;le&&(l=Sa(le,l,i,"template",s,r))}for(let le=0;le<l.length;le++)l[le][1][ee.SchemaTag.propertyIndex]=le;let p={};l.forEach(([le,Le])=>{le=u.get(le)||le,p[le]=Le}),t.properties=p}o(c_,"addCustomSectionDefinition");function l_(e,t,n){var l,u,p;let i=Lu(t),r=new Map;i=i.map(g=>{let m=_m(e,g[1],g[0],{keyProperties:[ee.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[`@${Ea.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=Sa(a.filterFields,i,ee.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][ee.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(l_,"addCustomFilterFieldDefinition");function gS(e,t,n=!1){let{appSchema:i,factory:r,actionsInConfig:a,actionKey:s,manifest:l,routingId:u,manifestSectionId:p,targetAnnotation:g}=e,m=(t??"").split("<")[0],v=r.createInstance(t_.PageTypeV4.ObjectPage,m),S=[s.replace("/","??")];if(g&&S.push(g),v){let b=a[s]=v;Ot(b,l,i.definitions[t],u,S,p),n||Gr(a,s)}}o(gS,"importActionToConfigurationObject");function TX(e,t){let{actionPropertyDefinition:n}=e,i=Jt(t.$ref||n.$ref);gS(e,i)}o(TX,"importSingleActionSettingsOfReference");function vX(e,t){let{actionPropertyDefinition:n,appSchema:i,actionsInConfig:r,actionKey:a}=e,s=Jt(t.$ref??n.$ref);gS(e,s,!0);let l=r[a];xa(l,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let{properties:u}=t;for(let p in u){let g=u[p],m=Jt(g.$ref),v=i.definitions[m],S=Jt(v.$ref??g.$ref),b={...e,actionsInConfig:l,actionKey:p};gS(b,S)}Gr(r,a)}o(vX,"importGroupActionSettingsOfReference");function _l(e){let{actionPropertyDefinition:t,appSchema:n}=e,i=Jt(t.$ref),r=n.definitions[i];r.dataType===mS?vX(e,r):TX(e,r)}o(_l,"importActionSettingsOfReference");var LS=class LS{addDefinition(t){u_(t)}addLineItemDefinition(t){TS(t)}};o(LS,"DataFieldStrategy");var go=LS,FS=class FS extends go{generateStableId(t){return Ca("DataFieldForAction::"+t.Action)}generateDescription(t,n){let i=Ta(t.Label,n);return mm(t,i)}addDefinition(t){Fu(t)}addLineItemDefinition(t){yS(t)}};o(FS,"DataFieldForActionStrategy");var bS=FS,NS=class NS extends go{generateStableId(t){return Ca("DataFieldForActionGroup::"+t.ID)}generateDescription(t,n){let i=Ta(t.Label,n);return t.Label??t.ID??i}addDefinition(t){Fu(t)}addLineItemDefinition(t){var n;a_(t,!((n=t.lineItemData)!=null&&n.isMacro))}};o(NS,"DataFieldForActionGroupStrategy");var SS=NS,DS=class DS extends go{generateStableId(t){return"DataFieldForIntentBasedNavigation::"+$S(t)}generateDescription(t,n){let i=Ta(t.Label,n);return mm(t,i)}addDefinition(t){Fu(t)}addLineItemDefinition(t){yS(t)}};o(DS,"DataFieldForIntentBasedNavigationStrategy");var ES=DS,_S=class _S extends go{generateStableId(t){var i,r;let n=((i=t.Target)==null?void 0:i.$AnnotationPath)??((r=t.Target)==null?void 0:r.value)??"";return"DataFieldForAnnotation::"+Ca(n)}generateDescription(t,n){var a,s,l,u;let i=Ou(t,n);return Ta(t.Label,n)||i||((s=(a=t==null?void 0:t.Target)==null?void 0:a.$target)==null?void 0:s.Title)||((u=(l=t==null?void 0:t.Target)==null?void 0:l.value)==null?void 0:u.split("UI.v1.")[1])}};o(_S,"DataFieldForAnnotationStrategy");var AS=_S,VS=class VS extends go{generateStableId(t){let n="DataFieldWithAction::";return"Value"in t&&t.Value&&(n+=cs(t.Value)+"::"),n+=t.Action,Ca(n)}generateDescription(t,n){let i=Ta(t.Label,n);return mm(t,i)}};o(VS,"DataFieldWithActionStrategy");var PS=VS,wS=class wS extends go{generateStableId(t){return Ca("DataField::"+cs(t.Value))}generateDescription(t,n){let i=Ta(t.Label,n);return Zb(t,n,i)}};o(wS,"DataFieldStrategyDefault");var xS=wS,MS=class MS extends go{generateStableId(t){let n="DataFieldWithIntentBasedNavigation::";return n+=cs(t.Value)+"::",n+=$S(t),Ca(n)}generateDescription(t,n){return Ou(t,n)||t.Value.path}};o(MS,"DataFieldWithIntentBasedNavigationStrategy");var CS=MS,kS=class kS extends go{generateStableId(t){let n="DataFieldWithNavigationPath::"+cs(t.Value);return t.Target&&t.Target.$NavigationPropertyPath&&(n+="::"+t.Target.$NavigationPropertyPath),Ca(n)}generateDescription(t,n){let i=Ta(t.Label,n);return Zb(t,n,i)}};o(kS,"DataFieldWithNavigationPathStrategy");var IS=kS,jS=class jS extends go{generateStableId(t){return Ca("DataFieldWithUrl::"+cs(t.Value))}generateDescription(t,n){let i=Ou(t,n);return Ta(t.Label,n)||i||(typeof t.Value=="string"?t.Value:t.Value.path)}};o(jS,"DataFieldWithUrlStrategy");var OS=jS,US=class US{constructor(){this.strategies=new Map,this.registerStrategy(Bo.UIAnnotationTypes.DataFieldForAction,new bS),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldForActionGroup,new SS),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldForIntentBasedNavigation,new ES),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldForAnnotation,new AS),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldWithAction,new PS),this.registerStrategy(Bo.UIAnnotationTypes.DataField,new xS),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldWithIntentBasedNavigation,new CS),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldWithNavigationPath,new IS),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldWithUrl,new OS)}registerStrategy(t,n){this.strategies.set(t,n)}getStrategy(t){return this.strategies.get(t)}};o(US,"DataFieldStrategyContext");var RS=US,as=new RS;function Nm(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(Nm,"replaceSpecialChars");var Ca=o(function(e){return Nm(w0(e))},"prepareId");function bX(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(bX,"evaluateConcat");function cs(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 bX(e);if(e&&typeof e=="string")return Nm(e.replace(/ /g,"_"))}o(cs,"getStableIdPartFromValue");var $S=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"),Wr=o(function(e){let t=as.getStrategy(e.$Type);return t==null?void 0:t.generateStableId(e)},"getStableIdPartFromDataField");var fe=Z(ae());var De=Z(ae());var ir=require("@sap-ux/vocabularies-types/vocabularies/UI"),m_=require("path"),h_=Z(dc());var wm="ResponsiveTableWithMultiSelect<LineItems>",Mm="ResponsiveTableWithInlineDelete<LineItems>",SX="TreeTable<LineItems>",EX="AnalyticalTable<LineItems>",AX="GridTable<LineItems>",BS=[wm,Mm,SX,EX,AX],p_=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],d_="template::",km="template:::ObjectPageAction:::";function PX(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${$}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${$}${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(PX,"addCustomColumnDefinition");function xX(e,t){let n;return e==="TableColumnActionIntentBased"?n=nS(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=ut(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===ir.UIAnnotationTypes.DataFieldForAction?n=ut(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=ut(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(xX,"getActionId");function HS(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=xX(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=ci(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=Pc(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(HS,"handleActionRecord");function CX(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===ir.UIAnnotationTypes.DataFieldForAction||t.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===ir.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(CX,"getColumnActionType");function IX(e,t){let n=[];if(!(e.$Type!==ir.UIAnnotationTypes.DataFieldForAction&&e.$Type!==ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),CX(t,e,n),n}o(IX,"getActionType");function y_(e,t,n){let i=nS(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:ci(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Bm(r.properties[i],e.lineItemRecord),Vm(e.lineItemRecord,r.properties,i)}}o(y_,"generateGenericColumn");function OX(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{HS(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&HS(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{HS(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":y_(i,t,r)}}o(OX,"handleAnyAction");function Nu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(Nu,"retrieveNameWithoutVocabularyFromVisualization");function Vl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=Dm(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},v=IX(g,r);v?v.forEach(S=>{OX(S,t,s,m,p,l,r)}):y_(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(Vl,"addLineItemsType");function RX(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(RX,"addListReportLeadingProperties");function LX(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 v=[];for(let S in a){let b=(m=a[S])==null?void 0:m.key;b!==void 0&&!v.includes(b)&&v.push(b)}Pa(v,r)}}o(LX,"addTabkeyEnum");function jm(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,h_.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("\\"+m_.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(jm,"addFragmentEnum");function wl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){PX(e,a,s),RX(e,t,s),LX(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;jm(e,r,u,"fragmentName",s),jm(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),jm(e,r,u,"cellsFragmentName",s),jm(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(wl,"addTableColumnExtensions");function T_(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(T_,"removeElementsFromEnum");function Um(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=Tr(n==null?void 0:n.fullyQualifiedName,ir.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${ut(s.value)}>`,p=Kr(s);s.type==="PropertyPath"&&(l=gm(s,n)),i.properties[s.value]={$ref:$+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=`${$}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(Um,"addSelectionFields");function v_(e,t){for(let n of t.entityProperties)e.push(n.name)}o(v_,"addEntityPropertiesToEnum");function $m(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($m,"isDraftEnabled");function b_(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(b_,"isEntityDeletable");function S_(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(S_,"isEntityUpdatable");function Ml(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($)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${$}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(Ml,"addStandardHeaderActions");function E_(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split($)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${$}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(E_,"addStandardFooterActionsOP");function kl(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});re(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(kl,"getUIAnnotationForEntitySet");function FX(e,t,n,i){if(e===fe.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case _t.UIAnnotationTypes.DataField:case _t.UIAnnotationTypes.DataFieldForAnnotation:case _t.UIAnnotationTypes.DataFieldWithNavigationPath:case _t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===fe.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case _t.UIAnnotationTypes.DataField:case _t.UIAnnotationTypes.DataFieldForAnnotation:case _t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(FX,"copyFieldProperties");function WS(e,t,n,i){let r=e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===fe.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(WS,"determineFieldDefinitionName");function NX(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][fe.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(NX,"addKeysTagForDataField");function DX(e,t,n){if(e.$Type===_t.UIAnnotationTypes.DataField||e.$Type===_t.UIAnnotationTypes.DataFieldWithUrl||e.$Type===_t.UIAnnotationTypes.DataFieldWithNavigationPath)NX(e,t,n);else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][fe.SchemaTag.keys]=[{name:"Target",value:Fl(e.Target.value)}],t.definitions[n][fe.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][fe.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===_t.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][fe.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(DX,"addKeysTagToField");function _X(e){var t,n;return e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===_t.UIAnnotationTypes.ConnectedFieldsType}o(_X,"isConnectedField");function VX(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===_t.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let v=p[m];if(typeof v=="object"&&"$Type"in v){let S=u.findIndex(b=>b===m);S===-1&&(S=g,g++),GS(e,t,v,`ConnectedFields::${a.qualifier}`,S.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(VX,"addConnectedFields");function A_(e,t,n){if(n)return n;let i=ut(t);return e.definitions[i].properties}o(A_,"getFieldsSchemaContainer");function KS(e,t){return e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::").splice(1).join("::"):t}o(KS,"getFieldReference");function GS(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){if(!n||!n.$Type)return;let g={appSchema:t,withActions:l,sectionType:e,field:n,targetID:i,containersSchema:u,key:r,version:s,section:a,entityTypeName:p};as.getStrategy(n.$Type).addDefinition(g)}o(GS,"addField");function wX(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(wX,"determineTargetIdOfForm");function MX(e,t,n,i,r,a){if(e.base===fe.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&GS(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];GS(t,n,l,i,s,e,r)}}o(MX,"addFieldsToFormDefinition");function kX(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][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][fe.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][fe.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][fe.SchemaTag.annotationPath]=Tr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(kX,"addTagsToFormDefinition");function Hm(e,t,n,i,r,a){if(!t.target)return;let s=wX(t),l=ut(`${e}${fe.DefinitionName.Form}<${s}>`),u=ut(`${e}${fe.DefinitionName.Fields}<${s}>`),p=ut(`${e}${fe.DefinitionName.Actions}<${s}>`),g=!(t.base===fe.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${$}${l}`},e===fe.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${$}${p}`},fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][fe.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},kX(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][fe.SchemaTag.isViewNode]=!0,MX(t,e,i,s,r,g),s}o(Hm,"handleForm");function XS(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(XS,"replaceAlias");function Gm(e,t){let n=XS(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(Gm,"getActionNameAndId");function P_(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:P_(a.pages,t)}}o(P_,"isFirstObjectPage");function Wm(e,t,n,i,r){var g,m;e.definitions[fe.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${$}${fe.DefinitionName.ObjectPageFooter}`},e.definitions[fe.DefinitionName.ObjectPageFooter].properties[fe.PropertyName.actions]={$ref:`${$}${fe.DefinitionName.FooterActions}`};let a=e.definitions[fe.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[fe.SchemaTag.isViewNode]=!0;let s=oi(fe.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 v=p.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`);a[fe.SchemaTag.annotationPath]=`/${v}`,i(u,e,a,p)}else u&&(a[fe.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`);n===fe.FioriElementsVersion.v2&&P_(r,t)&&!$m(l)&&E_(e,a),delete e.definitions[fe.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${fe.DefinitionName.ObjectPageFooter}<${fe.DefinitionName.ObjectPageFooterActions}>`]}o(Wm,"addFooterActions");function Km(e,t,n,i,r,a=!1){var m,v;let s=fe.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[fe.DefinitionName.ObjectPageHeader].properties[fe.PropertyName.actions]={$ref:`${$}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[fe.SchemaTag.isViewNode]=!0;let p=oi(fe.UIVOCABULARY,n.serviceAVT),g=p&&((v=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:v.Identification);g?u[fe.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`):t&&(u[fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&Ml(e,!0,l)}o(Km,"addHeaderActions");function Xm(e,t){e.properties.header={$ref:`${$}${fe.DefinitionName.ObjectPageHeader}`},e.definitions[fe.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[fe.DefinitionName.ObjectPageHeader][fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.HeaderInfo}`)}o(Xm,"addCommonHeaderSchema");function x_(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(x_,"determineEntitySetOfEntityType");function u_(e){let{appSchema:t,section:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Wr(r),g=KS(u,p),m=WS(u,p,a,g),v=A_(t,`${i}${fe.DefinitionName.Fields}<${a}>`,s.fields),S={};v[g]={$ref:`${$}${m}`,propertyIndex:parseInt(l)},_X(r)&&(S=VX(i,t,r,n,u)),C_(e,m,S)}o(u_,"addDataFieldDefinition");function Fu(e){let{appSchema:t,withActions:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Wr(r),g=KS(u,p),m=WS(u,p,a,g),v={};if(n&&i===fe.SectionType.Section){let S=A_(t,`${i}${fe.DefinitionName.Actions}<${a}>`,s.actions),b=S[g]={$ref:`${$}${m}`};b[fe.SchemaTag.propertyIndex]=parseInt(l)}jX(e,m,v),C_(e,m,v)}o(Fu,"addDataFieldForActionAndActionGroupDefinition");function jX(e,t,n){let{appSchema:i,field:r,version:a}=e;r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&(r.Actions??[]).forEach(s=>{let l={...e,field:s,targetID:t,withActions:!1},u=Wr(s),p=KS(a,u),g=WS(a,u,t,p);Fu(l),n[p]=i.definitions[g]})}o(jX,"addGroupedActionsToDefinition");function C_(e,t,n={}){var u,p;let{appSchema:i,field:r,version:a,section:s,entityTypeName:l}=e;i.definitions[t]={type:"object",properties:n,description:ci(r,s.entityType),additionalProperties:!1},r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&xa(i.definitions[t],Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),DX(r,i,t),i.definitions[t][fe.SchemaTag.annotationPath]=`/${l}/${r.fullyQualifiedName.split(l)[1]}`,i.definitions[t][fe.SchemaTag.annotationType]=r.$Type,i.definitions[t][fe.SchemaTag.isViewNode]=!0,Bm(i.definitions[t],r),FX(a,i,r,t),r.$Type===_t.UIAnnotationTypes.DataFieldForAction&&((u=i.definitions)!=null&&u[fe.DefinitionName.FormAction])&&(i.definitions[t].$ref=`${$}${fe.DefinitionName.FormAction}`,delete i.definitions[t].properties),r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&((p=i.definitions)!=null&&p[fe.DefinitionName.ObjectPageFormActionGroup])&&(i.definitions[t].$ref=`${$}${fe.DefinitionName.ObjectPageFormActionGroup}`)}o(C_,"writeDefinitionToSchema");var br=require("@sap-ux/vocabularies-types/vocabularies/UI");var Xe=Z(ae());function Pa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(Pa,"addEnumToSchema");function Du(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(Du,"addEnumForValidAnnotations");function ls(e,t,n){let i=t.definitions[n].properties[Xe.SchemaTag.annotationPath],r=[br.UIAnnotationTerms.SelectionVariant,br.UIAnnotationTerms.SelectionPresentationVariant];Du(e,r,i)}o(ls,"addEnumForSingleTabVariant");function I_(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[br.UIAnnotationTerms.SelectionVariant,br.UIAnnotationTerms.SelectionPresentationVariant];Du(n.entityType,r,i)}o(I_,"addEnumForMultiTabVariant");function O_(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),Pa(r,i)}o(O_,"addEnumForVariantEntitySet");function R_(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[br.UIAnnotationTerms.FieldGroup];Du(e,r,i)}o(R_,"addEnumFieldGroupAnnotationPath");function L_(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[Xe.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:`${$}${Xe.DefinitionName.RelatedFacetKeys}`},l]}}}}o(L_,"addDefinitionForRelatedFacetKeys");function xc(e){return e.replace("#","::")}o(xc,"getFacetKeyInSchema");function _u(e,t){return`${e}<${xc(t)}>`}o(_u,"getFacetDefinitionKey");function vt(e,t,n,i=!0){let r=t;if(i&&(r=_u(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(vt,"parseSchemaDefinition");function Qm(e,t,n){let i;return t===Xe.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${br.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,vt(n,t,e,!0)),i}o(Qm,"getCustomExtensionDefinitionName");function Dm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][Xe.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let I=Qm(t,r,a);t.definitions[r].additionalProperties={$ref:I}}let u=e?Xe.DefinitionName.ObjectPageToolBar:Xe.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=`${Xe.DefinitionName.Actions}<${ut(r)}>`;t.definitions[p].properties.actions.$ref=$+g;let m=r.startsWith(Xe.DefinitionName.LineItems)?Xe.DefinitionName.Actions:Xe.DefinitionName.ObjectPageToolBarActions,v;try{if(v=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),v.properties={},v.additionalProperties=!1,s){let I=Qm(t,r,s);v.additionalProperties={$ref:I}}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let S,b;if(r===Xe.DefinitionName.LineItems&&t.properties.footer){b=`${Xe.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Xe.DefinitionName.GenericFooter]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Xe.DefinitionName.GenericFooter}))}let I=`${Xe.DefinitionName.FooterActions}<${ut(r)}>`;t.definitions[b].properties.actions.$ref=$+I,S=t.definitions[I]=JSON.parse(JSON.stringify(t.definitions[Xe.DefinitionName.Actions])),S.properties={},S.additionalProperties=!1}return n&&(l=Tr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][Xe.SchemaTag.annotationPath]=l,S&&(t.definitions[b][Xe.SchemaTag.annotationPath]=l))),{actions:v,footerActions:S,lineItemPath:l}}o(Dm,"addCommonLineItemDefinitions");function F_(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(F_,"getDataTypeFromAnnotation");function Cc(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=F_(e.$Type)),t}o(Cc,"determineDataTypeOfTarget");function Kr(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=Cc((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=F_(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(Kr,"determineDataType");function Bm(e,t){let n=Kr(t);n&&(e[Xe.SchemaTag.dataType]=n)}o(Bm,"addDataTypeToDefinition");function si(e,t){return`${$}${_u(e,t)}`}o(si,"getFacetDefinitionLink");function f_(e,t,n,i){let r=0,a=!1,s="";do{let l=`${t}${r===0?"":"."+r}`;s=si(e,l),r++;let u=n.definitions[_u(e,l)],p=((u==null?void 0:u.annotationPath)??"").split("/").slice(0,-1).join("/");a=!u||p===i}while(!a);return s}o(f_,"getUniqueFacetDefinitionLink");function fs(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(fs,"addDefinitionRef");function qm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${Xe.UIVOCABULARY}`);t=`/${n}/@${Xe.UIVOCABULARY}${i}`}return t}o(qm,"getFacetAnnotationPath");function Vu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:si(a?u:l,t)};let p=vt(a?u:l,t,i,!0);va(e,p,t),rs(e,p,t),p[Xe.SchemaTag.annotationPath]=e.annotationPath,p[Xe.SchemaTag.isViewNode]=!0}o(Vu,"handleAddressContact");function QS(e,t,n){typeof e=="object"&&(e[t]=n)}o(QS,"updateSchemaProperty");function jl(e,t,n=ut("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${Xe.DefinitionName.Fields4Dialog}${n}`];QS(r.properties.fields.items,"enum",i)}o(jl,"addFieldsType");function UX(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(UX,"findFirstSchemaDefinitionKey");function _m(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=Jt(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=UX(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(_m,"getEnumEntry");function ss(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=_m(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];QS(l,"oneOf",r)}else QS(a,"oneOf",r)}o(ss,"addDescriptiveEnumDefinition");function Pc(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(Pc,"getActionKey");function Vm(e,t,n){var i,r,a;try{if(e.Value)t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.value,value:cs(e.Value)}];else if(e.$Type===br.UIAnnotationTypes.DataFieldWithAction||e.$Type===br.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Pc(e.Action,!0);t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.action,value:s}],l&&(t[n][Xe.SchemaTag.target]=l)}else if(e.$Type===br.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Pc(e.Target.value,!1);t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.target,value:Fl(s)}],t[n][Xe.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===br.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===br.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=Pc(s,!0);t[n][Xe.SchemaTag.keys]=[{name:"SemanticObject",value:e[Xe.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][Xe.SchemaTag.target]=u)}}catch{return}}o(Vm,"addKeyToDefinition");function ci(e,t){try{return as.getStrategy(e.$Type).generateDescription(e,t)}catch{return""}}o(ci,"getDataFieldDescription");function xa(e,t){e[Xe.SchemaTag.messages]||(e[Xe.SchemaTag.messages]=[]),Array.isArray(e[Xe.SchemaTag.messages])&&e[Xe.SchemaTag.messages].push({text:t})}o(xa,"addMessageToSchema");var Ul=Z(ae());var N_=[{version:"1.136",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.136","UI5-1.137","UI5-1.138","UI5-1.139","UI5-1.140"]},{version:"1.124",distTag:["UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130","UI5-1.131","UI5-1.132","UI5-1.133","UI5-1.134","UI5-1.135"]},{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 __="1.120.44";var V_={name:"@sap/ux-specification",version:__,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.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 -s 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 -s 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/schema/index.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 -s htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.38.6","@sap-ux/vocabularies-types":"0.13.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.5","@sap-ux/edmx-parser":"0.9.5","@sap/ux-specification-types":"1.120.44","@sapui5/types":"latest-1.120","@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.12.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"25.5.2",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.2","typescript-json-schema":"0.65.1","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 us=class us{constructor(){us.distTagsOfSpec.length===0&&(us.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){us.distTagsOfSpec=[]}getSpecVersion(){return __}getDistTagsOfVersion(){let t=[],n=N_,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;let i=[];typeof t=="string"?i.push(t):Array.isArray(t)&&(i=t);let r=!1;if(i.forEach(a=>{if(!this.checkVersionName(a,n))return;let s=a==="latest"?"latest":a.substring(0,a.lastIndexOf("."));us.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=Q.t("WRONGMINUI5VERSION",{minUI5Version:t});re(n,{severity:Ul.LogSeverity.Warning,message:a,location:{path:Ul.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=Q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return re(n,{severity:Ul.LogSeverity.Info,message:i,location:{path:Ul.MANIFESTPATH}}),!1}else return!0}};o(us,"DistTagEvaluator"),us.distTagsOfSpec=[];var wu=us;var ue=Z(ae());var jn=Z(ae());var Pi=Z(ae());function w_(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(w_,"getCustomPageFullName");function HX(e){let n=w_(e).split(".");return n[n.length-1]}o(HX,"getCustomPageName");function M_(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)||Pi.ViewTypes.XML}o(M_,"getViewType");function GX(e,t){return M_(e,t).toLowerCase()}o(GX,"getViewTypeExtension");function WX(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.path)||(r==null?void 0:r.path),s=w_(e);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(WX,"getViewPath");function KX(e,t){let n=e.entitySet||HX(e),{viewPath:i,fileName:r}=WX(e,t,[n]),a=GX(e,t);return[...i,`${r}.view.${a}`].join("/")}o(KX,"getCustomPagePath");var qS=class qS{constructor(t,n,i,r){this.unhandledControllers=[];let a=Dt(Pi.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)===Pi.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Pi.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[Pi.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=M_(t,this.app)===Pi.ViewTypes.XML&&!!t.config;if(t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.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===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=KX(t,this.app);n.$filePath=i}};o(qS,"AppProvider");var ps=qS;var pt=Z(ae());var $l=Z(ae());var Kn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),k_=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"),j_=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 YS(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(YS,"getNewPageTemplate");function XX(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(XX,"findPageInManifest");function QX(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=YS(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:YS(e[t].pageType)}),!Array.isArray(n.pages))){let i=XX(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=YS(e[t].pageType)),zS(t,e,i)}}o(QX,"transformPageFromAssociation");function qX(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)===$l.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===$l.PageTypeV2.ListReport||n.pageType===$l.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(qX,"deletePage");function zS(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===$l.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)QX(t,r,n);Array.isArray(n.pages)||qX(n,t,i)}}o(zS,"transformPageToNewManifestV2");var PV=Z(dc());var UA={};uc(UA,{ALPAnalyticalTable:()=>jE,ALPGridTable:()=>kE,ALPResponsiveTable:()=>ME,Action:()=>HE,AnalyticalCard:()=>Kl,AnalyticalCardSettings:()=>Zm,AnalyticalCardSettingsv4:()=>iE,AnalyticalListPageFilterBar:()=>pE,AnalyticalTable:()=>wE,BaseCustomSection:()=>gp,ChartSettings:()=>sA,ChartSettingsType:()=>ZS,CommonCardSettings:()=>ys,CommonFilterBar:()=>Qu,CommonHeaderFacetSettings:()=>Vc,CommonTableSettings:()=>Ss,CommonTableSettingsForSections:()=>Uc,CreateWithFilters:()=>RE,CustomCard:()=>tE,DataLoadSettings:()=>FE,DateRange:()=>cE,DefaultDateRange:()=>lE,DefaultSpanObject:()=>eE,FRAGMENT_DEFINITION:()=>Go,Field:()=>sE,FieldForAction:()=>yE,Fields4Dialog:()=>NE,Fields4DialogOP:()=>_A,FooterAction:()=>WE,FormAction:()=>hE,GlobalChartSettings:()=>NA,GlobalTableSettings:()=>kA,GridTable:()=>UE,HeaderActionStandard:()=>YE,HeaderSections:()=>mA,KPISettings:()=>cA,LinkListCardSettings:()=>oE,LinklistCard:()=>Wu,ListCard:()=>Wl,ListCardSettings:()=>nE,ListReportFilterBar:()=>dE,MultiEdit:()=>LE,ObjectPageAnalyticalTable:()=>VA,ObjectPageChart:()=>FA,ObjectPageCustomSectionFragment:()=>mp,ObjectPageCustomSectionView:()=>hp,ObjectPageFooterAction:()=>yA,ObjectPageFooterActionStandard:()=>JE,ObjectPageGridTable:()=>wA,ObjectPageHeader:()=>lA,ObjectPageHeaderAction:()=>fA,ObjectPageHeaderActionStandard:()=>zE,ObjectPageHeaderSectionAddress:()=>gA,ObjectPageHeaderSectionChart:()=>pA,ObjectPageHeaderSectionDataPoint:()=>dA,ObjectPageHeaderSectionForm:()=>uA,ObjectPageLayout:()=>vA,ObjectPageResponsiveTable:()=>$c,ObjectPageSectionAddressV2:()=>PA,ObjectPageSectionChartV2:()=>EA,ObjectPageSectionContactV2:()=>xA,ObjectPageSectionFormV2:()=>SA,ObjectPageSectionTableV2:()=>AA,ObjectPageSectionV2:()=>bA,ObjectPageSubSectionChartV2:()=>OA,ObjectPageSubSectionContactV2:()=>RA,ObjectPageSubSectionFormV2:()=>IA,ObjectPageSubSectionTableV2:()=>LA,ObjectPageSubSectionV2:()=>CA,ObjectPageToolBarAction:()=>jA,ObjectPageTreeTable:()=>MA,QuickVariantSelection:()=>DE,QuickVariantSelectionOP:()=>DA,QuickVariantSelectionX:()=>_E,ResponsiveTable:()=>Lc,SAP_UI_TABLE:()=>ah,SaveAndEditOP:()=>qE,SelectionFieldDateSettings:()=>fE,SelectionFields:()=>uE,Share:()=>KE,ShareOP:()=>XE,StackCard:()=>Gu,StackCardSettings:()=>rE,TableALP:()=>zl,TableCard:()=>Xl,TableCardSettings:()=>aE,TableColumn:()=>tA,TableColumnAction:()=>Ih,TableColumnActionIntentBased:()=>nA,TableCustomColumn:()=>iA,ToolBar:()=>oA,ToolBarAction:()=>GE,TreeTable:()=>VE,UpAndDownNavigationOP:()=>QE,buildIntentBasedActionId:()=>ZE,deleteColumnFromFragment:()=>lh,deleteType:()=>Zl,exportColorPalette:()=>H_,exportCreateParametersFields:()=>yh,exportCustomColumnsToFragment:()=>IE,exportDateSettingsField:()=>X_,exportDefaultSpan:()=>G_,exportType:()=>Jl,getChartSectionControlId:()=>vV,getContactSubSectionControlId:()=>SV,getCustomColumnPath:()=>fh,getFormSectionControlId:()=>TV,getRootCustomColumnFromFragmentJSON:()=>zu,getSectionControlId:()=>kc,getSmartChartControlId:()=>ap,getSmartTableControlId:()=>Rc,getSubSectionControlId:()=>bV,getTableSectionControlId:()=>yV,importCreateParameters:()=>hh,importDateSettings:()=>gE});var Zn=Z(ae());var je=o(e=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),Qr=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),U_=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),$_=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var Pn=o(()=>Zn.ManifestSection.ovp,"getOVPsettingPath"),xe=o(e=>{let t=[Zn.ManifestSection.ovp];return e.forEach(n=>{n in Zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var Ic=o((e,t)=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Jm=o(e=>{let t=[Zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),wi=o(e=>{let t=[];return t.push(Jm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),gs=o(e=>wi(e)+"/tableSettings","getGlobalTableSettingsPathV2"),mo=o((e,t,n)=>{let i=[];i.push(Jm(e));let r=n.replace(Zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Sr=o((e,t,n)=>mo(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),B_=o((e,t,n)=>mo(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),JS=o(()=>`sap.ui5/extends/extensions/${Zn.v2.SAPUI5_VIEW_EXTENSION}/${Zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Ia=o((e,t,n,...i)=>{let a=n.split("|"),s=e[e.length-1].split("|"),l="";a.length===4?l=[a[2],a[3]].join("|"):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join("|");return i.unshift(u),`${JS()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),zm=class zm{};o(zm,"ApplicationV2"),h([jt("settings")],zm.prototype,"settings",2);var Ym=zm,Xr=class Xr{};o(Xr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Xr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],Xr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],Xr.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],Xr.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),Ae("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Xr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Xr.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Xr.prototype,"statePreservationMode",2);var ds=Xr;var Mu=Z(ae());function YX(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=Mu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=Mu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:Mu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(YX,"importColorPalette");function H_(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===Mu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(H_,"exportColorPalette");function G_(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(G_,"exportDefaultSpan");var eh=class eh{};o(eh,"ChartSettingsType"),h([y({manifest:{path:o(()=>Pn()+"/chartSettings","path")}})],eh.prototype,"showDataLabel",2);var ZS=eh,ms=class ms{};o(ms,"DefaultSpanObject"),h([y({manifest:{path:o(t=>xe(t),"path")}})],ms.prototype,"cols",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ms.prototype,"rows",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ms.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ms.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ms.prototype,"minimumSubTitleRow",2);var eE=ms,Xt=class Xt{};o(Xt,"CommonCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"title",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"category",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>xe(t),"path"),export:G_}})],Xt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"tabs",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"customParams",2);var ys=Xt,Bl=class Bl{};o(Bl,"CustomCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Bl.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Bl.prototype,"template",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Bl.prototype,"settings",2);var tE=Bl,hs=class hs extends ys{};o(hs,"ListCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],hs.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],hs.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],hs.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],hs.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],hs.prototype,"listType",2);var nE=hs,ku=class ku{};o(ku,"ListCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],ku.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ku.prototype,"template",2);var Wl=ku,ho=class ho extends ys{};o(ho,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],ho.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ho.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ho.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ho.prototype,"navigation",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ho.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ho.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>xe(t),"path"),import:YX,export:H_}})],ho.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ho.prototype,"bEnableStableColors",2);var Zm=ho,th=class th extends Zm{};o(th,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>xe(t),"path")}})],th.prototype,"measureAggregate",2);var iE=th,ju=class ju{};o(ju,"AnalyticalCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],ju.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],ju.prototype,"template",2);var Kl=ju,Hl=class Hl extends ys{};o(Hl,"StackCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Hl.prototype,"itemText",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Hl.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Hl.prototype,"objectStreamCardsSettings",2);var rE=Hl,Uu=class Uu{};o(Uu,"StackCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Uu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Uu.prototype,"template",2);var Gu=Uu,Gl=class Gl extends ys{};o(Gl,"LinkListCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Gl.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Gl.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Gl.prototype,"staticContent",2);var oE=Gl,$u=class $u{};o($u,"LinklistCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],$u.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],$u.prototype,"template",2);var Wu=$u,Bu=class Bu extends ys{};o(Bu,"TableCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Bu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Bu.prototype,"enableAddToInsights",2);var aE=Bu,Hu=class Hu{};o(Hu,"TableCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Hu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Hu.prototype,"template",2);var Xl=Hu;var W_=Z(ae());var zX=o((e,t,n,i,r)=>{let a=zn(n[1],r),s=n.slice(-1)[0];return Zt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),nh=class nh{};o(nh,"Field"),h([y({flex:{controlId:zX,controlType:o(()=>W_.ControlType.GroupElement,"controlType")},generate:ht})],nh.prototype,"visible",2);var sE=nh;var Oc=Z(ae());function gE(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(gE,"importDateSettings");function JX(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(JX,"importDateSettingsField");function X_(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(X_,"exportDateSettingsField");var Ql=class Ql{};o(Ql,"DateRange"),h([y({manifest:{path:o(t=>je(t)+Oc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Ql.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>je(t)+Oc.DATESETTINGSPATH,"path"),import:gE,export:vm}}),x({since:"1.77.0"})],Ql.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>je(t)+Oc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Ql.prototype,"exclude",2);var cE=Ql,ih={controlId:Zt,controlType:o(()=>Oc.ControlType.SmartFilterBar,"controlType")},Ku={path:o((e,t,n)=>`${je(e)}${Oc.DATESETTINGSPATH}/fields/${n}`,"path")},K_={...Ku,import:JX,export:X_},rh=class rh{};o(rh,"DefaultDateRange"),h([y({manifest:Ku}),x({since:"1.90.0"})],rh.prototype,"operation",2);var lE=rh,Ts=class Ts{};o(Ts,"SelectionFieldDateSettings"),h([y({manifest:K_}),x({since:"1.77.0"})],Ts.prototype,"selectedValues",2),h([y({manifest:Ku}),x({since:"1.77.0"})],Ts.prototype,"exclude",2),h([y({manifest:Ku}),x({since:"1.77.0"})],Ts.prototype,"customDateRangeImplementation",2),h([y({manifest:K_}),x({since:"1.77.0"})],Ts.prototype,"filter",2),h([y({manifest:Ku}),x({since:"1.90.0"})],Ts.prototype,"defaultValue",2);var fE=Ts,mE=class mE{};o(mE,"SelectionFields");var uE=mE,yo=class yo{};o(yo,"CommonFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"})],yo.prototype,"smartVariantManagement",2),h([y({flex:ih}),x({since:"1.40.0"})],yo.prototype,"liveMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],yo.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.52.0"})],yo.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:gE}}),x({since:"1.77.0"})],yo.prototype,"dateSettings",2),h([y({flex:ih}),x({since:"1.28.0"})],yo.prototype,"showClearOnFB",2),h([y({flex:ih}),x({since:"1.38.0"})],yo.prototype,"showFilterConfiguration",2),h([y({flex:ih}),x({since:"1.28.0"})],yo.prototype,"showRestoreOnFB",2);var Qu=yo,Xu=class Xu extends Qu{};o(Xu,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}})],Xu.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],Xu.prototype,"filterDefaultsFromSelectionVariant",2);var pE=Xu,oh=class oh extends Qu{};o(oh,"ListReportFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),Ae("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],oh.prototype,"annotationPath",2);var dE=oh;var TE=Z(ae());var ZX=o((e,t,n,i,r)=>{if(i()===TE.ControlType.Button){let a=n[n.length-1],s=zn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Zt(e,t)},"getFormActionButtonId"),Ho={controlId:ZX,controlType:o(()=>TE.ControlType.Button,"controlType")},vs=class vs{};o(vs,"FormAction"),h([y({flex:Ho,generate:ht})],vs.prototype,"visible",2),h([y({flex:Ho})],vs.prototype,"tooltip",2),h([y({flex:Ho})],vs.prototype,"icon",2),h([y({flex:Ho})],vs.prototype,"activeIcon",2),h([y({flex:Ho})],vs.prototype,"type",2);var hE=vs,bs=class bs{};o(bs,"FieldForAction"),h([y({flex:Ho,generate:ht})],bs.prototype,"visible",2),h([y({flex:Ho})],bs.prototype,"tooltip",2),h([y({flex:Ho})],bs.prototype,"icon",2),h([y({flex:Ho})],bs.prototype,"activeIcon",2),h([y({flex:Ho}),x({since:"1.73.0"})],bs.prototype,"type",2);var yE=bs;var St=Z(ae()),To=Z(dc());var EE=require("path"),y3=Z(ae()),aV=Z(oV()),sV=require("fs");var T3=(0,EE.join)(__dirname,"templates");var v3=o((e,t)=>{let n=(0,sV.readFileSync)(e,"utf8");return(0,aV.render)(n,t)},"renderTemplate");var AE=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 v3((0,EE.join)(T3,t+".xml"),n)},"getSingleColumnContent"),PE=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=AE(i,t);n=n+`
|
|
289
289
|
`+r}return n+`
|
|
290
290
|
</core:FragmentDefinition>`},"getColumnFragmentContent"),xE=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+`
|