@sap/generator-fiori
Version:
Create an SAPUI5 application using SAP Fiori elements or a freestyle approach
20 lines (16 loc) • 56.2 kB
JavaScript
const __esmImportMetaUrl = require('node:url').pathToFileURL(__filename).href;
var Ua=Object.create;var N=Object.defineProperty;var Na=Object.getOwnPropertyDescriptor;var xa=Object.getOwnPropertyNames;var Fa=Object.getPrototypeOf,$a=Object.prototype.hasOwnProperty;var u=(a,t)=>N(a,"name",{value:t,configurable:!0});var _=(a,t)=>()=>{try{return t||a((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},Ma=(a,t)=>{for(var e in t)N(a,e,{get:t[e],enumerable:!0})},z=(a,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xa(t))!$a.call(a,i)&&i!==e&&N(a,i,{get:()=>t[i],enumerable:!(n=Na(t,i))||n.enumerable});return a},x=(a,t,e)=>(z(a,t,"default"),e&&z(e,t,"default")),oa=(a,t,e)=>(e=a!=null?Ua(Fa(a)):{},z(t||!a||!a.__esModule?N(e,"default",{value:a,enumerable:!0}):e,a)),za=a=>z(N({},"__esModule",{value:!0}),a);var K=_(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.VocabularyReferences=void 0;B.VocabularyReferences=[{alias:"Authorization",namespace:"Org.OData.Authorization.V1",uri:"https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Authorization.V1.xml"},{alias:"Core",namespace:"Org.OData.Core.V1",uri:"https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml"},{alias:"Capabilities",namespace:"Org.OData.Capabilities.V1",uri:"https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Capabilities.V1.xml"},{alias:"Aggregation",namespace:"Org.OData.Aggregation.V1",uri:"https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Aggregation.V1.xml"},{alias:"Validation",namespace:"Org.OData.Validation.V1",uri:"https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.xml"},{alias:"Measures",namespace:"Org.OData.Measures.V1",uri:"https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Measures.V1.xml"},{alias:"Analytics",namespace:"com.sap.vocabularies.Analytics.v1",uri:"https://sap.github.io/odata-vocabularies/vocabularies/Analytics.xml"},{alias:"Common",namespace:"com.sap.vocabularies.Common.v1",uri:"https://sap.github.io/odata-vocabularies/vocabularies/Common.xml"},{alias:"CodeList",namespace:"com.sap.vocabularies.CodeList.v1",uri:"https://sap.github.io/odata-vocabularies/vocabularies/CodeList.xml"},{alias:"Communication",namespace:"com.sap.vocabularies.Communication.v1",uri:"https://sap.github.io/odata-vocabularies/vocabularies/Communication.xml"},{alias:"Hierarchy",namespace:"com.sap.vocabularies.Hierarchy.v1",uri:"https://sap.github.io/odata-vocabularies/vocabularies/Hierarchy.xml"},{alias:"PersonalData",namespace:"com.sap.vocabularies.PersonalData.v1",uri:"https://sap.github.io/odata-vocabularies/vocabularies/PersonalData.xml"},{alias:"Session",namespace:"com.sap.vocabularies.Session.v1",uri:"https://sap.github.io/odata-vocabularies/vocabularies/Session.xml"},{alias:"UI",namespace:"com.sap.vocabularies.UI.v1",uri:"https://sap.github.io/odata-vocabularies/vocabularies/UI.xml"},{alias:"HTML5",namespace:"com.sap.vocabularies.HTML5.v1",uri:"https://sap.github.io/odata-vocabularies/vocabularies/HTML5.xml"}]});var na=_(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.EnumIsFlag=void 0;L.EnumIsFlag={"Authorization.KeyLocation":!1,"Core.RevisionKind":!1,"Core.DataModificationOperationKind":!1,"Core.Permission":!0,"Capabilities.ConformanceLevelType":!1,"Capabilities.IsolationLevel":!0,"Capabilities.NavigationType":!1,"Capabilities.SearchExpressions":!0,"Capabilities.HttpMethod":!0,"Aggregation.RollupType":!1,"Common.TextFormatType":!1,"Common.FilterExpressionType":!1,"Common.FieldControlType":!1,"Common.EffectType":!0,"Communication.KindType":!1,"Communication.ContactInformationType":!0,"Communication.PhoneType":!0,"Communication.GenderType":!1,"UI.VisualizationType":!1,"UI.CriticalityType":!1,"UI.ImprovementDirectionType":!1,"UI.TrendType":!1,"UI.ChartType":!1,"UI.ChartAxisScaleBehaviorType":!1,"UI.ChartAxisAutoScaleDataScopeType":!1,"UI.ChartDimensionRoleType":!1,"UI.ChartMeasureRoleType":!1,"UI.SelectionRangeSignType":!1,"UI.SelectionRangeOptionType":!1,"UI.TextArrangementType":!1,"UI.ImportanceType":!1,"UI.CriticalityRepresentationType":!1,"UI.OperationGroupingType":!1}});var sa=_(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.TermToTypes=void 0;var Ba;(function(a){a["Org.OData.Authorization.V1.SecuritySchemes"]="Org.OData.Authorization.V1.SecurityScheme",a["Org.OData.Authorization.V1.Authorizations"]="Org.OData.Authorization.V1.Authorization",a["Org.OData.Core.V1.Revisions"]="Org.OData.Core.V1.RevisionType",a["Org.OData.Core.V1.Links"]="Org.OData.Core.V1.Link",a["Org.OData.Core.V1.Example"]="Org.OData.Core.V1.ExampleValue",a["Org.OData.Core.V1.Messages"]="Org.OData.Core.V1.MessageType",a["Org.OData.Core.V1.ValueException"]="Org.OData.Core.V1.ValueExceptionType",a["Org.OData.Core.V1.ResourceException"]="Org.OData.Core.V1.ResourceExceptionType",a["Org.OData.Core.V1.DataModificationException"]="Org.OData.Core.V1.DataModificationExceptionType",a["Org.OData.Core.V1.IsLanguageDependent"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.AppliesViaContainer"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.DereferenceableIDs"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.ConventionalIDs"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.Permissions"]="Org.OData.Core.V1.Permission",a["Org.OData.Core.V1.DefaultNamespace"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.Immutable"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.Computed"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.ComputedDefaultValue"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.IsURL"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.IsMediaType"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.ContentDisposition"]="Org.OData.Core.V1.ContentDispositionType",a["Org.OData.Core.V1.OptimisticConcurrency"]="Edm.PropertyPath",a["Org.OData.Core.V1.AdditionalProperties"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.AutoExpand"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.AutoExpandReferences"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.MayImplement"]="Org.OData.Core.V1.QualifiedTypeName",a["Org.OData.Core.V1.Ordered"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.PositionalInsert"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.AlternateKeys"]="Org.OData.Core.V1.AlternateKey",a["Org.OData.Core.V1.OptionalParameter"]="Org.OData.Core.V1.OptionalParameterType",a["Org.OData.Core.V1.OperationAvailable"]="Edm.Boolean",a["Org.OData.Core.V1.RequiresExplicitBinding"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.ExplicitOperationBindings"]="Org.OData.Core.V1.QualifiedBoundOperationName",a["Org.OData.Core.V1.SymbolicName"]="Org.OData.Core.V1.SimpleIdentifier",a["Org.OData.Core.V1.GeometryFeature"]="Org.OData.Core.V1.GeometryFeatureType",a["Org.OData.Core.V1.AnyStructure"]="Org.OData.Core.V1.Tag",a["Org.OData.Core.V1.IsDelta"]="Org.OData.Core.V1.Tag",a["Org.OData.Capabilities.V1.ConformanceLevel"]="Org.OData.Capabilities.V1.ConformanceLevelType",a["Org.OData.Capabilities.V1.AsynchronousRequestsSupported"]="Org.OData.Core.V1.Tag",a["Org.OData.Capabilities.V1.BatchContinueOnErrorSupported"]="Org.OData.Core.V1.Tag",a["Org.OData.Capabilities.V1.IsolationSupported"]="Org.OData.Capabilities.V1.IsolationLevel",a["Org.OData.Capabilities.V1.CrossJoinSupported"]="Org.OData.Core.V1.Tag",a["Org.OData.Capabilities.V1.CallbackSupported"]="Org.OData.Capabilities.V1.CallbackType",a["Org.OData.Capabilities.V1.ChangeTracking"]="Org.OData.Capabilities.V1.ChangeTrackingType",a["Org.OData.Capabilities.V1.CountRestrictions"]="Org.OData.Capabilities.V1.CountRestrictionsType",a["Org.OData.Capabilities.V1.NavigationRestrictions"]="Org.OData.Capabilities.V1.NavigationRestrictionsType",a["Org.OData.Capabilities.V1.IndexableByKey"]="Org.OData.Core.V1.Tag",a["Org.OData.Capabilities.V1.TopSupported"]="Org.OData.Core.V1.Tag",a["Org.OData.Capabilities.V1.SkipSupported"]="Org.OData.Core.V1.Tag",a["Org.OData.Capabilities.V1.ComputeSupported"]="Org.OData.Core.V1.Tag",a["Org.OData.Capabilities.V1.SelectSupport"]="Org.OData.Capabilities.V1.SelectSupportType",a["Org.OData.Capabilities.V1.BatchSupported"]="Org.OData.Core.V1.Tag",a["Org.OData.Capabilities.V1.BatchSupport"]="Org.OData.Capabilities.V1.BatchSupportType",a["Org.OData.Capabilities.V1.FilterRestrictions"]="Org.OData.Capabilities.V1.FilterRestrictionsType",a["Org.OData.Capabilities.V1.SortRestrictions"]="Org.OData.Capabilities.V1.SortRestrictionsType",a["Org.OData.Capabilities.V1.ExpandRestrictions"]="Org.OData.Capabilities.V1.ExpandRestrictionsType",a["Org.OData.Capabilities.V1.SearchRestrictions"]="Org.OData.Capabilities.V1.SearchRestrictionsType",a["Org.OData.Capabilities.V1.KeyAsSegmentSupported"]="Org.OData.Core.V1.Tag",a["Org.OData.Capabilities.V1.QuerySegmentSupported"]="Org.OData.Core.V1.Tag",a["Org.OData.Capabilities.V1.InsertRestrictions"]="Org.OData.Capabilities.V1.InsertRestrictionsType",a["Org.OData.Capabilities.V1.DeepInsertSupport"]="Org.OData.Capabilities.V1.DeepInsertSupportType",a["Org.OData.Capabilities.V1.UpdateRestrictions"]="Org.OData.Capabilities.V1.UpdateRestrictionsType",a["Org.OData.Capabilities.V1.DeepUpdateSupport"]="Org.OData.Capabilities.V1.DeepUpdateSupportType",a["Org.OData.Capabilities.V1.DeleteRestrictions"]="Org.OData.Capabilities.V1.DeleteRestrictionsType",a["Org.OData.Capabilities.V1.CollectionPropertyRestrictions"]="Org.OData.Capabilities.V1.CollectionPropertyRestrictionsType",a["Org.OData.Capabilities.V1.OperationRestrictions"]="Org.OData.Capabilities.V1.OperationRestrictionsType",a["Org.OData.Capabilities.V1.AnnotationValuesInQuerySupported"]="Org.OData.Core.V1.Tag",a["Org.OData.Capabilities.V1.ModificationQueryOptions"]="Org.OData.Capabilities.V1.ModificationQueryOptionsType",a["Org.OData.Capabilities.V1.ReadRestrictions"]="Org.OData.Capabilities.V1.ReadRestrictionsType",a["Org.OData.Capabilities.V1.CustomHeaders"]="Org.OData.Capabilities.V1.CustomParameter",a["Org.OData.Capabilities.V1.CustomQueryOptions"]="Org.OData.Capabilities.V1.CustomParameter",a["Org.OData.Capabilities.V1.MediaLocationUpdateSupported"]="Org.OData.Core.V1.Tag",a["Org.OData.Capabilities.V1.DefaultCapabilities"]="Org.OData.Capabilities.V1.DefaultCapabilitiesType",a["Org.OData.Aggregation.V1.ApplySupported"]="Org.OData.Aggregation.V1.ApplySupportedType",a["Org.OData.Aggregation.V1.ApplySupportedDefaults"]="Org.OData.Aggregation.V1.ApplySupportedBase",a["Org.OData.Aggregation.V1.Groupable"]="Org.OData.Core.V1.Tag",a["Org.OData.Aggregation.V1.Aggregatable"]="Org.OData.Core.V1.Tag",a["Org.OData.Aggregation.V1.ContextDefiningProperties"]="Edm.PropertyPath",a["Org.OData.Aggregation.V1.LeveledHierarchy"]="Edm.PropertyPath",a["Org.OData.Aggregation.V1.RecursiveHierarchy"]="Org.OData.Aggregation.V1.RecursiveHierarchyType",a["Org.OData.Aggregation.V1.AvailableOnAggregates"]="Org.OData.Aggregation.V1.AvailableOnAggregatesType",a["Org.OData.Validation.V1.Minimum"]="Edm.PrimitiveType",a["Org.OData.Validation.V1.Maximum"]="Edm.PrimitiveType",a["Org.OData.Validation.V1.Exclusive"]="Org.OData.Core.V1.Tag",a["Org.OData.Validation.V1.AllowedValues"]="Org.OData.Validation.V1.AllowedValue",a["Org.OData.Validation.V1.MultipleOf"]="Edm.Decimal",a["Org.OData.Validation.V1.Constraint"]="Org.OData.Validation.V1.ConstraintType",a["Org.OData.Validation.V1.ItemsOf"]="Org.OData.Validation.V1.ItemsOfType",a["Org.OData.Validation.V1.OpenPropertyTypeConstraint"]="Org.OData.Validation.V1.SingleOrCollectionType",a["Org.OData.Validation.V1.DerivedTypeConstraint"]="Org.OData.Validation.V1.SingleOrCollectionType",a["Org.OData.Validation.V1.AllowedTerms"]="Org.OData.Core.V1.QualifiedTermName",a["Org.OData.Validation.V1.ApplicableTerms"]="Org.OData.Core.V1.QualifiedTermName",a["Org.OData.Validation.V1.MaxItems"]="Edm.Int64",a["Org.OData.Validation.V1.MinItems"]="Edm.Int64",a["Org.OData.Measures.V1.Scale"]="Edm.Byte",a["Org.OData.Measures.V1.DurationGranularity"]="Org.OData.Measures.V1.DurationGranularityType",a["com.sap.vocabularies.Analytics.v1.Dimension"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Analytics.v1.Measure"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Analytics.v1.AccumulativeMeasure"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Analytics.v1.RolledUpPropertyCount"]="Edm.Int16",a["com.sap.vocabularies.Analytics.v1.PlanningAction"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Analytics.v1.AggregatedProperties"]="com.sap.vocabularies.Analytics.v1.AggregatedPropertyType",a["com.sap.vocabularies.Analytics.v1.AggregatedProperty"]="com.sap.vocabularies.Analytics.v1.AggregatedPropertyType",a["com.sap.vocabularies.Analytics.v1.AnalyticalContext"]="com.sap.vocabularies.Analytics.v1.AnalyticalContextType",a["com.sap.vocabularies.Analytics.v1.LevelInformation"]="com.sap.vocabularies.Hierarchy.v1.HierarchyType",a["com.sap.vocabularies.Common.v1.ServiceVersion"]="Edm.Int32",a["com.sap.vocabularies.Common.v1.ServiceSchemaVersion"]="Edm.Int32",a["com.sap.vocabularies.Common.v1.TextFor"]="Edm.PropertyPath",a["com.sap.vocabularies.Common.v1.ExternalID"]="Edm.PrimitiveType",a["com.sap.vocabularies.Common.v1.IsLanguageIdentifier"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.TextFormat"]="com.sap.vocabularies.Common.v1.TextFormatType",a["com.sap.vocabularies.Common.v1.IsTimezone"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsDigitSequence"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsUpperCase"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsCurrency"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsUnit"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.UnitSpecificScale"]="Edm.PrimitiveType",a["com.sap.vocabularies.Common.v1.UnitSpecificPrecision"]="Edm.PrimitiveType",a["com.sap.vocabularies.Common.v1.SecondaryKey"]="Edm.PropertyPath",a["com.sap.vocabularies.Common.v1.MinOccurs"]="Edm.Int64",a["com.sap.vocabularies.Common.v1.MaxOccurs"]="Edm.Int64",a["com.sap.vocabularies.Common.v1.AssociationEntity"]="Edm.NavigationPropertyPath",a["com.sap.vocabularies.Common.v1.DerivedNavigation"]="Edm.NavigationPropertyPath",a["com.sap.vocabularies.Common.v1.Masked"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.RevealOnDemand"]="Edm.Boolean",a["com.sap.vocabularies.Common.v1.SemanticObjectMapping"]="com.sap.vocabularies.Common.v1.SemanticObjectMappingAbstract",a["com.sap.vocabularies.Common.v1.IsInstanceAnnotation"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.FilterExpressionRestrictions"]="com.sap.vocabularies.Common.v1.FilterExpressionRestrictionType",a["com.sap.vocabularies.Common.v1.FieldControl"]="com.sap.vocabularies.Common.v1.FieldControlType",a["com.sap.vocabularies.Common.v1.Application"]="com.sap.vocabularies.Common.v1.ApplicationType",a["com.sap.vocabularies.Common.v1.Timestamp"]="Edm.DateTimeOffset",a["com.sap.vocabularies.Common.v1.ErrorResolution"]="com.sap.vocabularies.Common.v1.ErrorResolutionType",a["com.sap.vocabularies.Common.v1.Messages"]="Edm.ComplexType",a["com.sap.vocabularies.Common.v1.numericSeverity"]="com.sap.vocabularies.Common.v1.NumericMessageSeverityType",a["com.sap.vocabularies.Common.v1.MaximumNumericMessageSeverity"]="com.sap.vocabularies.Common.v1.NumericMessageSeverityType",a["com.sap.vocabularies.Common.v1.IsActionCritical"]="Edm.Boolean",a["com.sap.vocabularies.Common.v1.Attributes"]="Edm.PropertyPath",a["com.sap.vocabularies.Common.v1.RelatedRecursiveHierarchy"]="Edm.AnnotationPath",a["com.sap.vocabularies.Common.v1.Interval"]="com.sap.vocabularies.Common.v1.IntervalType",a["com.sap.vocabularies.Common.v1.ResultContext"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.SAPObjectNodeType"]="com.sap.vocabularies.Common.v1.SAPObjectNodeTypeType",a["com.sap.vocabularies.Common.v1.Composition"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsNaturalPerson"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.ValueList"]="com.sap.vocabularies.Common.v1.ValueListType",a["com.sap.vocabularies.Common.v1.ValueListRelevantQualifiers"]="Org.OData.Core.V1.SimpleIdentifier",a["com.sap.vocabularies.Common.v1.ValueListWithFixedValues"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.ValueListShowValuesImmediately"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.ValueListMapping"]="com.sap.vocabularies.Common.v1.ValueListMappingType",a["com.sap.vocabularies.Common.v1.IsCalendarYear"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsCalendarHalfyear"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsCalendarQuarter"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsCalendarMonth"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsCalendarWeek"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsDayOfCalendarMonth"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsDayOfCalendarYear"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsCalendarYearHalfyear"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsCalendarYearQuarter"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsCalendarYearMonth"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsCalendarYearWeek"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsCalendarDate"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsFiscalYear"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsFiscalPeriod"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsFiscalYearPeriod"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsFiscalQuarter"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsFiscalYearQuarter"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsFiscalWeek"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsFiscalYearWeek"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsDayOfFiscalYear"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.IsFiscalYearVariant"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.MutuallyExclusiveTerm"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.OperationTemplate"]="com.sap.vocabularies.Common.v1.QualifiedName",a["com.sap.vocabularies.Common.v1.DraftRoot"]="com.sap.vocabularies.Common.v1.DraftRootType",a["com.sap.vocabularies.Common.v1.DraftNode"]="com.sap.vocabularies.Common.v1.DraftNodeType",a["com.sap.vocabularies.Common.v1.DraftActivationVia"]="Org.OData.Core.V1.SimpleIdentifier",a["com.sap.vocabularies.Common.v1.EditableFieldFor"]="Edm.PropertyPath",a["com.sap.vocabularies.Common.v1.SemanticKey"]="Edm.PropertyPath",a["com.sap.vocabularies.Common.v1.SideEffects"]="com.sap.vocabularies.Common.v1.SideEffectsType",a["com.sap.vocabularies.Common.v1.DefaultValuesFunction"]="com.sap.vocabularies.Common.v1.QualifiedName",a["com.sap.vocabularies.Common.v1.FilterDefaultValue"]="Edm.PrimitiveType",a["com.sap.vocabularies.Common.v1.FilterDefaultValueHigh"]="Edm.PrimitiveType",a["com.sap.vocabularies.Common.v1.SortOrder"]="com.sap.vocabularies.Common.v1.SortOrderType",a["com.sap.vocabularies.Common.v1.RecursiveHierarchy"]="com.sap.vocabularies.Common.v1.RecursiveHierarchyType",a["com.sap.vocabularies.Common.v1.CreatedAt"]="Edm.DateTimeOffset",a["com.sap.vocabularies.Common.v1.CreatedBy"]="com.sap.vocabularies.Common.v1.UserID",a["com.sap.vocabularies.Common.v1.ChangedAt"]="Edm.DateTimeOffset",a["com.sap.vocabularies.Common.v1.ChangedBy"]="com.sap.vocabularies.Common.v1.UserID",a["com.sap.vocabularies.Common.v1.ApplyMultiUnitBehaviorForSortingAndFiltering"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.PrimitivePropertyPath"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.AddressViaNavigationPath"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Common.v1.ReferentialConstraint"]="com.sap.vocabularies.Common.v1.ReferentialConstraintType",a["com.sap.vocabularies.CodeList.v1.CurrencyCodes"]="com.sap.vocabularies.CodeList.v1.CodeListSource",a["com.sap.vocabularies.CodeList.v1.UnitsOfMeasure"]="com.sap.vocabularies.CodeList.v1.CodeListSource",a["com.sap.vocabularies.CodeList.v1.StandardCode"]="Edm.PropertyPath",a["com.sap.vocabularies.CodeList.v1.ExternalCode"]="Edm.PropertyPath",a["com.sap.vocabularies.CodeList.v1.IsConfigurationDeprecationCode"]="Edm.Boolean",a["com.sap.vocabularies.Communication.v1.Contact"]="com.sap.vocabularies.Communication.v1.ContactType",a["com.sap.vocabularies.Communication.v1.Address"]="com.sap.vocabularies.Communication.v1.AddressType",a["com.sap.vocabularies.Communication.v1.IsEmailAddress"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Communication.v1.IsPhoneNumber"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Communication.v1.Event"]="com.sap.vocabularies.Communication.v1.EventData",a["com.sap.vocabularies.Communication.v1.Task"]="com.sap.vocabularies.Communication.v1.TaskData",a["com.sap.vocabularies.Communication.v1.Message"]="com.sap.vocabularies.Communication.v1.MessageData",a["com.sap.vocabularies.Hierarchy.v1.RecursiveHierarchy"]="com.sap.vocabularies.Hierarchy.v1.RecursiveHierarchyType",a["com.sap.vocabularies.Hierarchy.v1.RecursiveHierarchyActions"]="com.sap.vocabularies.Hierarchy.v1.RecursiveHierarchyActionsType",a["com.sap.vocabularies.Hierarchy.v1.MatchCount"]="Edm.Int64",a["com.sap.vocabularies.Hierarchy.v1.RecursiveHierarchySupported"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.PersonalData.v1.EntitySemantics"]="com.sap.vocabularies.PersonalData.v1.EntitySemanticsType",a["com.sap.vocabularies.PersonalData.v1.FieldSemantics"]="com.sap.vocabularies.PersonalData.v1.FieldSemanticsType",a["com.sap.vocabularies.PersonalData.v1.IsPotentiallyPersonal"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.PersonalData.v1.IsPotentiallySensitive"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.Session.v1.StickySessionSupported"]="com.sap.vocabularies.Session.v1.StickySessionSupportedType",a["com.sap.vocabularies.UI.v1.HeaderInfo"]="com.sap.vocabularies.UI.v1.HeaderInfoType",a["com.sap.vocabularies.UI.v1.Identification"]="com.sap.vocabularies.UI.v1.DataFieldAbstract",a["com.sap.vocabularies.UI.v1.Badge"]="com.sap.vocabularies.UI.v1.BadgeType",a["com.sap.vocabularies.UI.v1.LineItem"]="com.sap.vocabularies.UI.v1.DataFieldAbstract",a["com.sap.vocabularies.UI.v1.StatusInfo"]="com.sap.vocabularies.UI.v1.DataFieldAbstract",a["com.sap.vocabularies.UI.v1.FieldGroup"]="com.sap.vocabularies.UI.v1.FieldGroupType",a["com.sap.vocabularies.UI.v1.ConnectedFields"]="com.sap.vocabularies.UI.v1.ConnectedFieldsType",a["com.sap.vocabularies.UI.v1.GeoLocations"]="com.sap.vocabularies.UI.v1.GeoLocationType",a["com.sap.vocabularies.UI.v1.GeoLocation"]="com.sap.vocabularies.UI.v1.GeoLocationType",a["com.sap.vocabularies.UI.v1.Contacts"]="Edm.AnnotationPath",a["com.sap.vocabularies.UI.v1.MediaResource"]="com.sap.vocabularies.UI.v1.MediaResourceType",a["com.sap.vocabularies.UI.v1.DataPoint"]="com.sap.vocabularies.UI.v1.DataPointType",a["com.sap.vocabularies.UI.v1.KPI"]="com.sap.vocabularies.UI.v1.KPIType",a["com.sap.vocabularies.UI.v1.Chart"]="com.sap.vocabularies.UI.v1.ChartDefinitionType",a["com.sap.vocabularies.UI.v1.ValueCriticality"]="com.sap.vocabularies.UI.v1.ValueCriticalityType",a["com.sap.vocabularies.UI.v1.CriticalityLabels"]="com.sap.vocabularies.UI.v1.CriticalityLabelType",a["com.sap.vocabularies.UI.v1.SelectionFields"]="Edm.PropertyPath",a["com.sap.vocabularies.UI.v1.Facets"]="com.sap.vocabularies.UI.v1.Facet",a["com.sap.vocabularies.UI.v1.HeaderFacets"]="com.sap.vocabularies.UI.v1.Facet",a["com.sap.vocabularies.UI.v1.QuickViewFacets"]="com.sap.vocabularies.UI.v1.Facet",a["com.sap.vocabularies.UI.v1.QuickCreateFacets"]="com.sap.vocabularies.UI.v1.Facet",a["com.sap.vocabularies.UI.v1.FilterFacets"]="com.sap.vocabularies.UI.v1.ReferenceFacet",a["com.sap.vocabularies.UI.v1.OperationParameterFacets"]="com.sap.vocabularies.UI.v1.ReferenceFacet",a["com.sap.vocabularies.UI.v1.SelectionPresentationVariant"]="com.sap.vocabularies.UI.v1.SelectionPresentationVariantType",a["com.sap.vocabularies.UI.v1.PresentationVariant"]="com.sap.vocabularies.UI.v1.PresentationVariantType",a["com.sap.vocabularies.UI.v1.SelectionVariant"]="com.sap.vocabularies.UI.v1.SelectionVariantType",a["com.sap.vocabularies.UI.v1.ThingPerspective"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.IsSummary"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.PartOfPreview"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.Map"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.Gallery"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.IsImageURL"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.IsImage"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.MultiLineText"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.InputMask"]="com.sap.vocabularies.UI.v1.InputMaskType",a["com.sap.vocabularies.UI.v1.TextArrangement"]="com.sap.vocabularies.UI.v1.TextArrangementType",a["com.sap.vocabularies.UI.v1.Note"]="com.sap.vocabularies.UI.v1.NoteType",a["com.sap.vocabularies.UI.v1.Importance"]="com.sap.vocabularies.UI.v1.ImportanceType",a["com.sap.vocabularies.UI.v1.Hidden"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.IsCopyAction"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.IsAIOperation"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.CreateHidden"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.UpdateHidden"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.DeleteHidden"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.HiddenFilter"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.AdaptationHidden"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.DataFieldDefault"]="com.sap.vocabularies.UI.v1.DataFieldAbstract",a["com.sap.vocabularies.UI.v1.Criticality"]="com.sap.vocabularies.UI.v1.CriticalityType",a["com.sap.vocabularies.UI.v1.CriticalityCalculation"]="com.sap.vocabularies.UI.v1.CriticalityCalculationType",a["com.sap.vocabularies.UI.v1.Emphasized"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.OrderBy"]="Edm.PropertyPath",a["com.sap.vocabularies.UI.v1.ParameterDefaultValue"]="Edm.PrimitiveType",a["com.sap.vocabularies.UI.v1.RecommendationState"]="com.sap.vocabularies.UI.v1.RecommendationStateType",a["com.sap.vocabularies.UI.v1.RecommendationList"]="com.sap.vocabularies.UI.v1.RecommendationListType",a["com.sap.vocabularies.UI.v1.Recommendations"]="Edm.Untyped",a["com.sap.vocabularies.UI.v1.ExcludeFromNavigationContext"]="Org.OData.Core.V1.Tag",a["com.sap.vocabularies.UI.v1.DoNotCheckScaleOfMeasuredQuantity"]="Edm.Boolean",a["com.sap.vocabularies.HTML5.v1.CssDefaults"]="com.sap.vocabularies.HTML5.v1.CssDefaultsType",a["com.sap.vocabularies.HTML5.v1.LinkTarget"]="com.sap.vocabularies.HTML5.v1.LinkTargetType",a["com.sap.vocabularies.HTML5.v1.RowSpanForDuplicateValues"]="Org.OData.Core.V1.Tag"})(Ba=F.TermToTypes||(F.TermToTypes={}))});var j=_(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.mergeAnnotations=d.mergeRawMetadata=d.addGetByValue=d.createIndexedFind=d.lazy=d.initialSymbol=d.Decimal=d.Double=d.isComplexTypeDefinition=d.unalias=d.alias=d.substringBeforeLast=d.substringBeforeFirst=d.splitAtLast=d.splitAtFirst=d.defaultReferences=d.TermToTypes=d.EnumIsFlag=void 0;var La=na();Object.defineProperty(d,"EnumIsFlag",{enumerable:!0,get:u(function(){return La.EnumIsFlag},"get")});var Qa=sa();Object.defineProperty(d,"TermToTypes",{enumerable:!0,get:u(function(){return Qa.TermToTypes},"get")});var ja=K();Object.defineProperty(d,"defaultReferences",{enumerable:!0,get:u(function(){return ja.VocabularyReferences},"get")});function ra(a,t){return t<0?[a,""]:[a.substring(0,t),a.substring(t+1)]}u(ra,"splitAt");function la(a,t){return t<0?a:a.substring(0,t)}u(la,"substringAt");function Q(a,t){return ra(a,a.indexOf(t))}u(Q,"splitAtFirst");d.splitAtFirst=Q;function ca(a,t){return ra(a,a.lastIndexOf(t))}u(ca,"splitAtLast");d.splitAtLast=ca;function ka(a,t){return la(a,a.indexOf(t))}u(ka,"substringBeforeFirst");d.substringBeforeFirst=ka;function Ha(a,t){return la(a,a.lastIndexOf(t))}u(Ha,"substringBeforeLast");d.substringBeforeLast=Ha;function ua(a,t){if(a.reverseReferenceMap||(a.reverseReferenceMap=a.reduce((o,l)=>(o[l.namespace]=l,o),{})),!t)return t;let[e,n]=ca(t,"."),i=a.reverseReferenceMap[e];if(i)return`${i.alias}.${n}`;if(t.includes("@")){let[o,l]=Q(t,"@");return`${o}@${ua(a,l)}`}else return t}u(ua,"alias");d.alias=ua;function w(a,t,e){var n;let i=u(o=>{a.referenceMap||(a.referenceMap=Object.fromEntries(a.map(s=>[s.alias,s])));let[l,p]=Q(o,".");if(!p||p.includes("."))return o;let c=l.startsWith("@"),g=c?l.substring(1):l,m=a.referenceMap[g];return m?c?`@${m.namespace}.${p}`:`${m.namespace}.${p}`:e&&!c?`${e}.${p}`:o},"_unalias");return(n=t?.split("/").reduce((o,l)=>{let[p,c]=Q(l,"("),g=[i(p)];if(c){let m=c.slice(0,-1);g.push(`(${i(m)})`)}return o.push(g.join("")),o},[]))===null||n===void 0?void 0:n.join("/")}u(w,"unalias");d.unalias=w;function qa(a){return!!a&&a._type==="ComplexType"&&!!a.properties}u(qa,"isComplexTypeDefinition");d.isComplexTypeDefinition=qa;function Ga(a){return{isDouble(){return!0},valueOf(){return a},toString(){return a.toString()}}}u(Ga,"Double");d.Double=Ga;function Wa(a){return{isDecimal(){return!0},valueOf(){return a},toString(){return a.toString()}}}u(Wa,"Decimal");d.Decimal=Wa;d.initialSymbol=Symbol("initial");function Ya(a,t,e,n){let i=d.initialSymbol;Object.defineProperty(t,e,{enumerable:!0,get(){return i===d.initialSymbol&&(i=n()),i},set(o){i=o}}),a.collectDynamic(t,e)}u(Ya,"lazy");d.lazy=Ya;function pa(a,t){let e=new Map;return u(function(i){let o=e.get(i);return o?.[t]===i?o:a.find(l=>{if(!l?.hasOwnProperty(t))return!1;let p=l[t];return e.set(p,l),p===i})},"find")}u(pa,"createIndexedFind");d.createIndexedFind=pa;function Ka(a,t){let e=`by_${t}`;if(!a.hasOwnProperty(e))Object.defineProperty(a,e,{writable:!1,value:pa(a,t)});else throw new Error(`Property '${e}' already exists`);return a}u(Ka,"addGetByValue");d.addGetByValue=Ka;function wa(a,t){var e,n;a.references.splice(0,0,...t.references),a.schema.annotations=Object.assign(a.schema.annotations,t.schema.annotations),a.schema.associationSets.splice(0,0,...t.schema.associationSets),a.schema.associations.splice(0,0,...t.schema.associations),a.schema.entitySets.splice(0,0,...t.schema.entitySets),a.schema.singletons.splice(0,0,...t.schema.singletons),a.schema.actions.splice(0,0,...t.schema.actions),a.schema.actionImports.splice(0,0,...t.schema.actionImports),a.schema.entityTypes.splice(0,0,...t.schema.entityTypes),a.schema.complexTypes.splice(0,0,...t.schema.complexTypes),a.schema.enumTypes.splice(0,0,...t.schema.enumTypes),a.schema.typeDefinitions.splice(0,0,...t.schema.typeDefinitions),(e=(n=a.schema).entityContainers)!==null&&e!==void 0||(n.entityContainers={}),a.schema.entityContainers[t.identification]=t.schema.entityContainer}u(wa,"mergeRawMetadata");d.mergeRawMetadata=wa;function Ja(a,...t){return t.reduceRight((e,{name:n,annotationList:i})=>{var o;for(let{target:l,annotations:p}of i){let c=(o=w(a,l))!==null&&o!==void 0?o:l;e[c]||(e[c]=[]);let g=p.map(m=>{var s;return m.term=(s=w(a,m.term))!==null&&s!==void 0?s:m.term,m.fullyQualifiedName=m.qualifier?`${c}@${m.term}#${m.qualifier}`:`${c}@${m.term}`,m.__source=n,m}).filter(m=>!e[c].some(s=>s.term===m.term&&s.qualifier===m.qualifier));e[c].push(...g)}return e},{})}u(Ja,"mergeAnnotations");d.mergeAnnotations=Ja});var Ia=_(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.convert=C.CONVERTER_ROOT=void 0;var k=K(),r=j(),h=Symbol("Annotation Target");C.CONVERTER_ROOT=Symbol("Converter Root");function S(a,t){return a[a.length-1]!==t&&a.push(t),a}u(S,"appendObjectPath");function b(a,t,e,n){var i,o,l,p,c;if(e===void 0)return{target:void 0,objectPath:[],messages:[]};e.startsWith("/")&&(e=e.substring(1),t=void 0);let g=e.split("/").reduce((s,v)=>{if(v.includes("@")){let[V,A]=(0,r.splitAtFirst)(v,"@");s.push(V),s.push(`@${A}`)}else s.push(v);return s},[]);if(t===void 0)g[0].startsWith(`${a.rawSchema.namespace}.`)&&g[0]!==((i=a.getConvertedEntityContainer())===null||i===void 0?void 0:i.fullyQualifiedName)?(t=(p=(l=(o=a.getConvertedEntityType(g[0]))!==null&&o!==void 0?o:a.getConvertedComplexType(g[0]))!==null&&l!==void 0?l:a.getConvertedAction(g[0]))!==null&&p!==void 0?p:a.getConvertedAction(`${g[0]}()`),g.shift()):t=a.getConvertedEntityContainer();else if(t[h]!==void 0)t=t[h];else if(t._type==="Property"){let s=(0,r.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(c=a.getConvertedEntityType(s))!==null&&c!==void 0?c:a.getConvertedComplexType(s)}let m=g.reduce((s,v)=>{var V,A,P,W,Y;let ea=u(y=>(s.messages.push({message:y}),s.target=void 0,s),"error");if(s.target===void 0)return s;if(s.objectPath=S(s.objectPath,s.target),v.startsWith("@")&&v!=="@$ui5.overload"){let[y,R]=a.splitTerm(v),O=(V=s.target.annotations[y.substring(1)])===null||V===void 0?void 0:V[R];return O!==void 0?(s.target=O,s):ea(`Annotation '${v.substring(1)}' not found on ${s.target._type} '${s.target.fullyQualifiedName}'`)}if(s.target.$target){let y;if(v==="$AnnotationPath"?y=s.target.value:v==="$Path"&&(y=s.target.path),y!==void 0){let R=b(a,s.target[h],y);return R.objectPath.forEach(O=>{s.objectPath.includes(O)||(s.objectPath=S(s.objectPath,O))}),s.target=R.target,s.objectPath=S(s.objectPath,s.target),s}}switch((A=s.target)===null||A===void 0?void 0:A._type){case"Schema":break;case"EntityContainer":{let O=s.target;if(v===""||a.unalias(v)===O.fullyQualifiedName)return s;let f=(W=(P=O.entitySets.by_name(v))!==null&&P!==void 0?P:O.singletons.by_name(v))!==null&&W!==void 0?W:O.actionImports.by_name(v);if(f)return s.target=f,s}break;case"EntitySet":case"Singleton":{let O=s.target;if(v===""||v==="$Type")return s.target=O.entityType,s;if(v==="$")return s;if(v==="$NavigationPropertyBinding"){let I=O.navigationPropertyBinding;return s.target=I,s}let f=b(a,O.entityType,v);return s.target=f.target,s.objectPath=f.objectPath.reduce(S,s.objectPath),s}case"EntityType":{let O=s.target;if(v===""||v==="$Type")return s;let f=O.entityProperties.by_name(v);if(f)return s.target=f,s;let I=O.navigationProperties.by_name(v);if(I)return s.target=I,s;let M=(0,r.substringBeforeFirst)(a.unalias(v),"("),ia=O.actions[M];if(ia)return s.target=ia,s}break;case"ActionImport":{let O=b(a,s.target.action,v);return s.target=O.target,s.objectPath=O.objectPath.reduce(S,s.objectPath),s}case"Action":{let O=s.target;if(v===""||v==="@$ui5.overload"||v==="0")return s;if(v==="$Parameter"&&O.isBound)return s.target=O.parameters,s;let f=(Y=O.parameters[v])!==null&&Y!==void 0?Y:O.parameters.find(I=>I.name===v);if(f)return s.target=f,s;break}case"Property":{let f=s.target.targetType;if(f!==void 0){let I=f.properties.by_name(v);if(I)return s.target=I,s;let M=f.navigationProperties.by_name(v);if(M)return s.target=M,s}}break;case"ActionParameter":let y=s.target.typeReference;if(y!==void 0){let O=b(a,y,v);return s.target=O.target,s.objectPath=O.objectPath.reduce(S,s.objectPath),s}break;case"NavigationProperty":let R=b(a,s.target.targetType,v);return s.target=R.target,s.objectPath=R.objectPath.reduce(S,s.objectPath),s;default:if(v==="")return s;if(s.target[v])return s.target=s.target[v],s.objectPath=S(s.objectPath,s.target),s}return ea(`Element '${v}' not found at ${s.target._type} '${s.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(m.messages.forEach(s=>a.logError(s.message)),!m.target)if(n){let s=Oa(a,n,t.fullyQualifiedName);a.logError(`Unable to resolve the path expression:
`+e+`
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
<Annotation Term = `+n+`>
<Record Type = `+s+`>
<AnnotationPath = `+e+">")}else a.logError("Unable to resolve the path expression: "+e+`
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
<Annotation Term = `+g[0]+`>
<PropertyValue Path= `+g[1]+">");return m}u(b,"resolveTarget");function Xa(a){return a.includes("@")}u(Xa,"isAnnotationPath");function ga(a,t,e,n,i){let o={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:e,[h]:n};return o[C.CONVERTER_ROOT]=()=>a.getConvertedOutput(),(0,r.lazy)(a,o,"$target",()=>b(a,n,t.PropertyPath,i).target),o}u(ga,"mapPropertyPath");function va(a,t,e,n,i){let o={type:"AnnotationPath",value:a.unalias(t.AnnotationPath),fullyQualifiedName:e,[h]:n};return o[C.CONVERTER_ROOT]=()=>a.getConvertedOutput(),(0,r.lazy)(a,o,"$target",()=>b(a,n,o.value,i).target),o}u(va,"mapAnnotationPath");function ma(a,t,e,n,i){var o;let l={type:"NavigationPropertyPath",value:(o=t.NavigationPropertyPath)!==null&&o!==void 0?o:"",fullyQualifiedName:e,[h]:n};return l[C.CONVERTER_ROOT]=()=>a.getConvertedOutput(),(0,r.lazy)(a,l,"$target",()=>b(a,n,t.NavigationPropertyPath,i).target),l}u(ma,"mapNavigationPropertyPath");function Za(a,t,e,n,i){let o={type:"Path",path:t.Path,fullyQualifiedName:e,getValue(){},[h]:n};return o[C.CONVERTER_ROOT]=()=>a.getConvertedOutput(),(0,r.lazy)(a,o,"$target",()=>b(a,n,t.Path,i).target),o}u(Za,"mapPath");function da(a,t,e,n,i,o,l){if(o!==void 0)switch(o.type){case"String":return o.String;case"Int":return o.Int;case"Bool":return o.Bool;case"Double":return(0,r.Double)(o.Double);case"Decimal":return(0,r.Decimal)(o.Decimal);case"Date":return o.Date;case"EnumMember":let p=o.EnumMember.split(" ").map(c=>{var g;let m=(g=a.unalias(c))!==null&&g!==void 0?g:"";return(0,r.alias)(k.VocabularyReferences,m)});return p[0]!==void 0&&r.EnumIsFlag[(0,r.substringBeforeFirst)(p[0],"/")]?p:p[0];case"PropertyPath":return ga(a,o,l,t,e);case"NavigationPropertyPath":return ma(a,o,l,t,e);case"AnnotationPath":return va(a,o,l,t,e);case"Path":return Xa(o.Path)?b(a,t,a.unalias(o.Path),e).target:Za(a,o,l,t,e);case"Record":return Z(a,e,t,n,i,o.Record,l);case"Collection":return fa(a,t,e,n,i,o.Collection,l);default:return o}}u(da,"parseValue");function Oa(a,t,e,n){let i=r.TermToTypes[t];return n&&(t=`${(0,r.substringBeforeLast)(t,".")}.${n}`,i=r.TermToTypes[t]),a.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${i}.
Hint: If possible, try to maintain the Type property for each Record.
<Annotations Target="${e}">
<Annotation Term="${t}">
<Record>...</Record>
</Annotation>
</Annotations>`),i}u(Oa,"inferTypeFromTerm");function Ta(a){return a.hasOwnProperty("Action")&&(a.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||a.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}u(Ta,"isDataFieldWithForAction");function at(a,t,e,n,i){let o;return!i.type&&t?o=Oa(a,t,e.fullyQualifiedName,n):o=a.unalias(i.type),o}u(at,"parseRecordType");function Z(a,t,e,n,i,o,l){let p={$Type:at(a,t,e,n,o),fullyQualifiedName:l,[h]:e,__source:i};p[C.CONVERTER_ROOT]=()=>a.getConvertedOutput();for(let c of o.propertyValues)(0,r.lazy)(a,p,c.name,()=>da(a,e,t,c.name,i,c.value,`${l}/${c.name}`));return(0,r.lazy)(a,p,"annotations",ba(a,o,p)),p.hasOwnProperty("CollectionPath")&&(0,r.lazy)(a,p,"CollectionPathTarget",()=>{var c,g;let m=(g=(c=a.rawSchema.entityContainers)===null||c===void 0?void 0:c[i].fullyQualifiedName)!==null&&g!==void 0?g:a.rawSchema.entityContainer.fullyQualifiedName;return a.getConvertedEntitySet(m+"/"+p.CollectionPath)}),Ta(p)&&(0,r.lazy)(a,p,"ActionTarget",()=>{var c,g;let m=a.unalias((c=p.Action)===null||c===void 0?void 0:c.toString()),s=e.actions[m];return s||(s=(g=a.getConvertedActionImport(m))===null||g===void 0?void 0:g.action),s||(s=a.getConvertedAction(m),s?.isBound||(s=void 0)),s||a.logError(`${p.fullyQualifiedName}: Unable to resolve '${p.Action}' ('${m}')`),s}),p}u(Z,"parseRecord");function tt(a){let t=a.type;if(t===void 0&&a.length>0){let e=a[0];e.hasOwnProperty("PropertyPath")?t="PropertyPath":e.hasOwnProperty("Path")?t="Path":e.hasOwnProperty("AnnotationPath")?t="AnnotationPath":e.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof e=="object"&&(e.hasOwnProperty("type")||e.hasOwnProperty("propertyValues"))?t="Record":typeof e=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}u(tt,"getOrInferCollectionType");function fa(a,t,e,n,i,o,l){switch(tt(o)){case"PropertyPath":return o.map((c,g)=>ga(a,c,`${l}/${g}`,t,e));case"Path":return o.map(c=>b(a,t,c.Path,e).target);case"AnnotationPath":return o.map((c,g)=>va(a,c,`${l}/${g}`,t,e));case"NavigationPropertyPath":return o.map((c,g)=>ma(a,c,`${l}/${g}`,t,e));case"Record":return o.map((c,g)=>Z(a,e,t,n,i,c,`${l}/${g}`));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 o.map(c=>c);case"String":return o.map(c=>typeof c=="string"||c===void 0?c:c.String);default:if(o.length===0)return[];throw new Error("Unsupported case")}}u(fa,"parseCollection");function et(a){return!!a.targetTypeName}u(et,"isV4NavigationProperty");function it(a,t,e){var n;let i;if(e.record)i=Z(a,e.term,t,"",e.__source,e.record,e.fullyQualifiedName);else if(e.collection===void 0)i=da(a,t,e.term,"",e.__source,(n=e.value)!==null&&n!==void 0?n:{type:"Bool",Bool:!0},e.fullyQualifiedName);else if(e.collection)i=fa(a,t,e.term,"",e.__source,e.collection,e.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof i){case"string":i=new String(i);break;case"boolean":i=new Boolean(i);break;case"number":i=new Number(i);break;default:break}i.fullyQualifiedName=e.fullyQualifiedName,i[h]=t,i[C.CONVERTER_ROOT]||(i[C.CONVERTER_ROOT]=()=>a.getConvertedOutput());let[o,l]=a.splitTerm(e.term);i.term=a.unalias(`${o}.${l}`,k.VocabularyReferences),i.qualifier=e.qualifier,i.__source=e.__source;try{(0,r.lazy)(a,i,"annotations",ba(a,e,i))}catch{}return i}u(it,"convertAnnotation");var J=class{static{u(this,"Converter")}getConvertedOutput(){return this.convertedOutput}getAnnotations(t){var e;if(this.annotationsByTarget===void 0){let n=Object.keys(this.rawSchema.annotations).map(i=>({name:i,annotationList:this.rawSchema.annotations[i]}));this.annotationsByTarget=(0,r.mergeAnnotations)(this.rawMetadata.references,...n)}return(e=this.annotationsByTarget[t])!==null&&e!==void 0?e:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,ya)}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 e=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return e||(e=this.convertedOutput.actionImports.by_name(t)),e}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,e){return Array.isArray(t)?()=>{let n=t.reduce((i,o)=>{let l=this.getConvertedElement(o.fullyQualifiedName,o,e);return l&&i.push(l),i},[]);return(0,r.addGetByValue)(n,"name"),(0,r.addGetByValue)(n,"fullyQualifiedName"),n}:()=>this.getConvertedElement(t.fullyQualifiedName,t,e)}reset(){for(let t in this.dynamicElements){let e=this.dynamicElements[t].keys,n=this.dynamicElements[t].target;for(let i of e)n[i]=r.initialSymbol}this.annotationsByTarget=void 0}collectDynamic(t,e){var n,i;let o=t.fullyQualifiedName;o===void 0&&(o="Unknown"+this.unknownCount++),(n=(i=this.dynamicElements)[o])!==null&&n!==void 0||(i[o]={target:t,keys:[]}),this.dynamicElements[o].keys.push(e)}constructor(t,e){this.unknownCount=0,this.convertedElements=new Map,this.dynamicElements={},this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=e}addExtraMetadata(t){(0,r.mergeRawMetadata)(this.rawMetadata,t)}getConvertedElement(t,e,n){let i=this.convertedElements.get(t);if(i===void 0){let o=typeof e=="function"?e.apply(void 0,[t]):e;o!==void 0&&(i=n.apply(void 0,[this,o]),this.convertedElements.set(t,i))}return i}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let e=(0,r.alias)(k.VocabularyReferences,t);return(0,r.splitAtLast)(e,".")}unalias(t,e=this.rawMetadata.references){var n;return(n=(0,r.unalias)(e,t,this.rawSchema.namespace))!==null&&n!==void 0?n:""}};function $(a,t){return()=>{let e=a.getConvertedEntityType(t);return e||(a.logError(`EntityType '${t}' not found`),e={}),e}}u($,"resolveEntityType");function Ca(a,t){return()=>Object.keys(t).reduce((e,n)=>{let i=t[n];return(0,r.lazy)(a,e,n,()=>{var o;return(o=a.getConvertedEntitySet(i))!==null&&o!==void 0?o:a.getConvertedSingleton(i)}),e},{})}u(Ca,"resolveNavigationPropertyBindings");function D(a,t){let e=t.annotations;return()=>H(a,t,e??a.getAnnotations(t.fullyQualifiedName))}u(D,"resolveAnnotations");function ba(a,t,e){return()=>{let n=e.fullyQualifiedName,i;return t.annotations&&t.annotations.length>0?i=t.annotations:i=a.getAnnotations(n),i?.forEach(o=>{o.target=n,o.__source=e.__source,o[h]=e[h],o[C.CONVERTER_ROOT]=()=>a.getConvertedOutput(),o.fullyQualifiedName=`${n}@${o.term}`}),H(a,e,i??[])}}u(ba,"resolveAnnotationsOnAnnotation");function H(a,t,e){return e.reduce((n,i)=>{let[o,l]=a.splitTerm(i.term),p=`${l}${i.qualifier?"#"+i.qualifier:""}`;return n[o]===void 0&&(n[o]={_keys:[]}),n[o].hasOwnProperty(p)||(n[o]._keys.push(p),(0,r.lazy)(a,n[o],p,()=>a.getConvertedElement(i.fullyQualifiedName,i,(c,g)=>it(c,t,g)))),n},{})}u(H,"createAnnotationsObject");function ya(a,t){let e=t;return(0,r.lazy)(a,e,"annotations",D(a,t)),(0,r.lazy)(a,e,"entitySets",a.convert(a.rawSchema.entitySets,Da)),(0,r.lazy)(a,e,"singletons",a.convert(a.rawSchema.singletons,ha)),(0,r.lazy)(a,e,"actionImports",a.convert(a.rawSchema.actionImports,Pa)),e}u(ya,"convertEntityContainer");function ha(a,t){let e=t;(0,r.lazy)(a,e,"entityType",$(a,t.entityTypeName)),(0,r.lazy)(a,e,"annotations",D(a,e));let n=t.navigationPropertyBinding;return(0,r.lazy)(a,e,"navigationPropertyBinding",Ca(a,n)),e}u(ha,"convertSingleton");function Da(a,t){let e=t;(0,r.lazy)(a,e,"entityType",$(a,t.entityTypeName)),(0,r.lazy)(a,e,"annotations",D(a,e));let n=t.navigationPropertyBinding;return(0,r.lazy)(a,e,"navigationPropertyBinding",Ca(a,n)),e}u(Da,"convertEntitySet");function ot(a,t){let e=t;return t.keys.forEach(n=>{n.isKey=!0}),(0,r.lazy)(a,e,"annotations",D(a,t)),(0,r.lazy)(a,e,"keys",a.convert(t.keys,X)),(0,r.lazy)(a,e,"entityProperties",a.convert(t.entityProperties,X)),(0,r.lazy)(a,e,"navigationProperties",a.convert(t.navigationProperties,Va)),(0,r.lazy)(a,e,"actions",()=>a.rawSchema.actions.filter(n=>n.isBound&&(n.sourceType===t.fullyQualifiedName||n.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((n,i)=>{let o=`${a.rawSchema.namespace}.${i.name}`;return n[o]=a.getConvertedAction(i.fullyQualifiedName),n},{})),e.resolvePath=(n,i)=>{let o=b(a,t,n);return i?{target:o.target,visitedObjects:o.objectPath,messages:o.messages}:o.target},e}u(ot,"convertEntityType");function X(a,t){let e=t;return(0,r.lazy)(a,e,"annotations",D(a,t)),(0,r.lazy)(a,e,"targetType",()=>{var n;let i=t.type,o=i.startsWith("Collection")?i.substring(11,i.length-1):i;return(n=a.getConvertedComplexType(o))!==null&&n!==void 0?n:a.getConvertedTypeDefinition(o)}),e}u(X,"convertProperty");function Va(a,t){var e,n,i,o,l;let p=t;if(p.referentialConstraint=(e=p.referentialConstraint)!==null&&e!==void 0?e:[],p.referentialConstraint.length===0){let g=a.getAnnotations(t.fullyQualifiedName).find(m=>m.term==="com.sap.vocabularies.Common.v1.ReferentialConstraint");g&&(p.referentialConstraint=(i=(n=g.collection)===null||n===void 0?void 0:n.map(m=>{var s,v;let V=(s=m.propertyValues.find(P=>P.name==="ReferencedProperty"))===null||s===void 0?void 0:s.value,A="";if(V.PropertyPath){let P=V.PropertyPath.split("/");P.shift(),A=P.join("/")}return{sourceProperty:((v=m.propertyValues.find(P=>P.name==="Property"))===null||v===void 0?void 0:v.value).PropertyPath,targetTypeName:p.targetTypeName,targetProperty:A}}))!==null&&i!==void 0?i:[])}if(!et(t)){let c=(o=a.rawSchema.associations.find(g=>g.fullyQualifiedName===t.relationship))===null||o===void 0?void 0:o.associationEnd.find(g=>g.role===t.toRole);p.isCollection=c?.multiplicity==="*",p.targetTypeName=(l=c?.type)!==null&&l!==void 0?l:""}return(0,r.lazy)(a,p,"targetType",$(a,t.targetTypeName)),(0,r.lazy)(a,p,"annotations",D(a,t)),p}u(Va,"convertNavigationProperty");function Pa(a,t){let e=t;return(0,r.lazy)(a,e,"annotations",D(a,t)),(0,r.lazy)(a,e,"action",()=>{let n=a.rawSchema.actions.filter(i=>!i.isBound&&i.fullyQualifiedName.startsWith(t.actionName+"("));return n.length>1&&a.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),a.getConvertedAction(n[0].fullyQualifiedName)}),e}u(Pa,"convertActionImport");function nt(a,t){let e=t;return e.sourceType&&(0,r.lazy)(a,e,"sourceEntityType",$(a,t.sourceType)),e.returnType&&((0,r.lazy)(a,e,"returnEntityType",$(a,t.returnType)),(0,r.lazy)(a,e,"returnTypeReference",()=>{var n,i;let o=e.returnType.startsWith("Collection")?e.returnType.substring(11,e.returnType.length-1):e.returnType;return(i=(n=a.getConvertedEntityType(o))!==null&&n!==void 0?n:a.getConvertedComplexType(o))!==null&&i!==void 0?i:a.getConvertedTypeDefinition(o)})),(0,r.lazy)(a,e,"parameters",a.convert(t.parameters,st)),(0,r.lazy)(a,e,"annotations",()=>{let n=(0,r.substringBeforeFirst)(t.fullyQualifiedName,"("),i=t.fullyQualifiedName,o=a.getAnnotations(i),l=a.getAnnotations(n);for(let p of l)o.some(c=>c.term===p.term&&c.qualifier===p.qualifier)||o.push(p);return H(a,t,o)}),e}u(nt,"convertAction");function st(a,t){let e=t;return(0,r.lazy)(a,e,"typeReference",()=>{var n,i;let o=t.type;return o.startsWith("Collection(")&&(o=o.substring(11,o.length-1)),(i=(n=a.getConvertedEntityType(o))!==null&&n!==void 0?n:a.getConvertedComplexType(o))!==null&&i!==void 0?i:a.getConvertedTypeDefinition(o)}),(0,r.lazy)(a,e,"annotations",()=>{let n=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastI