@sap/ux-specification 1.84.115 → 1.84.117
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 +34 -1
- 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 +73 -0
- 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-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +29 -29
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ListReportNewConfig.json +16 -0
- package/dist/specification/package.json +3 -3
- package/dist/specification/scripts/schema/to-json-schema.d.ts +4 -0
- package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +32 -1
- package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
- package/dist/specification/src/api.js +2 -1
- package/dist/specification/src/api.js.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.d.ts +10 -1
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +27 -1
- package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +2 -1
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.d.ts +10 -1
- package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.js +9 -2
- package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts +2 -2
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/generate.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/generate.js +5 -2
- package/dist/specification/src/sync/v2/generate/generate.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/index.d.ts +1 -1
- package/dist/specification/src/sync/v2/generate/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/index.js +5 -2
- package/dist/specification/src/sync/v2/generate/index.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.d.ts +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.js +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +5 -2
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +2 -2
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts +27 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js +62 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.d.ts +84 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js +262 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js.map +1 -0
- package/dist/specification/src/sync/v2/import/app/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/app/appProvider.js +6 -2
- package/dist/specification/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.d.ts +2 -2
- package/dist/specification/src/sync/v2/import/importPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +2 -2
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +4 -2
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/package.json +3 -3
package/dist/index-min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var uP=Object.create;var Do=Object.defineProperty;var Kg=Object.getOwnPropertyDescriptor;var dP=Object.getOwnPropertyNames;var gP=Object.getPrototypeOf,mP=Object.prototype.hasOwnProperty;var r=(e,t)=>Do(e,"name",{value:t,configurable:!0});var Re=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jo=(e,t)=>{for(var n in t)Do(e,n,{get:t[n],enumerable:!0})},fs=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of dP(t))!mP.call(e,o)&&o!==n&&Do(e,o,{get:()=>t[o],enumerable:!(i=Kg(t,o))||i.enumerable});return e},Bi=(e,t,n)=>(fs(e,t,"default"),n&&fs(n,t,"default")),U=(e,t,n)=>(n=e!=null?uP(gP(e)):{},fs(t||!e||!e.__esModule?Do(n,"default",{value:e,enumerable:!0}):n,e)),yP=e=>fs(Do({},"__esModule",{value:!0}),e),d=(e,t,n,i)=>{for(var o=i>1?void 0:i?Kg(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(t,n,o):s(o))||o);return i&&o&&Do(t,n,o),o};var Sy=Re((qL,vy)=>{var rp=Object.defineProperty,hP=Object.getOwnPropertyDescriptor,bP=Object.getOwnPropertyNames,TP=Object.prototype.hasOwnProperty,sp=r((e,t)=>{for(var n in t)rp(e,n,{get:t[n],enumerable:!0})},"f"),vP=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of bP(t))!TP.call(e,o)&&o!==n&&rp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=hP(t,o))||i.enumerable});return e},"ze"),SP=r(e=>vP(rp({},"__esModule",{value:!0}),e),"Je"),Jg={};sp(Jg,{ACTIONTITLEPREFIX:r(()=>EP,"ACTIONTITLEPREFIX"),ALPViewType:r(()=>tm,"ALPViewType"),ActionType:r(()=>om,"ActionType"),ArtifactType:r(()=>im,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:r(()=>IP,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:r(()=>cm,"ChangeIndicator"),ChartColor:r(()=>Em,"ChartColor"),CloudDevAdaptationStatus:r(()=>vm,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:r(()=>Am,"ColorPaletteDefinitionType"),ControlType:r(()=>am,"ControlType"),DATESETTINGSPATH:r(()=>$P,"DATESETTINGSPATH"),DataSourceType:r(()=>Sm,"DataSourceType"),DefinitionName:r(()=>um,"DefinitionName"),DirName:r(()=>sm,"DirName"),DraftDiscardEnabledSettings:r(()=>ym,"DraftDiscardEnabledSettings"),ExportArtifacts:r(()=>em,"ExportArtifacts"),FACETTITLEPREFIX:r(()=>CP,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:r(()=>kP,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:r(()=>UP,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:r(()=>wP,"FRAGMENTNAMEPART"),FacetBase:r(()=>pm,"FacetBase"),Features:r(()=>Fm,"Features"),FileName:r(()=>lm,"FileName"),FioriElementsVersion:r(()=>qg,"FioriElementsVersion"),FlexChangeLayer:r(()=>Yg,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:r(()=>Tm,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:r(()=>zg,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:r(()=>MP,"GENERICAPPSETTINGS"),LogSeverity:r(()=>xm,"LogSeverity"),MANIFESTPATH:r(()=>OP,"MANIFESTPATH"),ManifestSection:r(()=>Pm,"ManifestSection"),OdataVersion:r(()=>Xg,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:r(()=>AP,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:r(()=>PP,"PageType"),PageTypeV2:r(()=>lp,"PageTypeV2"),PageTypeV4:r(()=>cp,"PageTypeV4"),PropertyMessageType:r(()=>Im,"PropertyMessageType"),PropertyName:r(()=>dm,"PropertyName"),QUICKVARPATH:r(()=>jP,"QUICKVARPATH"),QUICKVARPATHX:r(()=>RP,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:r(()=>BP,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:r(()=>_P,"SAPUI5_VIEW_CLASS"),SchemaKeyName:r(()=>mm,"SchemaKeyName"),SchemaTag:r(()=>gm,"SchemaTag"),SchemaType:r(()=>Zg,"SchemaType"),SectionType:r(()=>nm,"SectionType"),StatePreservationMode:r(()=>bm,"StatePreservationMode"),TableColumnVerticalAlignment:r(()=>hm,"TableColumnVerticalAlignment"),TemplateType:r(()=>Om,"TemplateType"),UIVOCABULARY:r(()=>VP,"UIVOCABULARY"),UIVOCABULARYALPHADOT:r(()=>DP,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:r(()=>LP,"UIVOCABULARYDOT"),VOCWITHCOLONS:r(()=>NP,"VOCWITHCOLONS"),VOCWITHSLASH:r(()=>FP,"VOCWITHSLASH"),ViewTemplateType:r(()=>fm,"ViewTemplateType"),ViewTypes:r(()=>Cm,"ViewTypes"),Visualization:r(()=>rm,"Visualization"),defaultExportResult:r(()=>xP,"defaultExportResult"),logSeverityLabel:r(()=>HP,"logSeverityLabel"),v2:r(()=>Nm,"v2"),v4:r(()=>iy,"v4")});vy.exports=SP(Jg);var lp=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(lp||{}),cp=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(cp||{}),PP={...lp,...cp},AP=new Map([["ListReport","sap.suite.ui.generic.template.ListReport.view.ListReport"],["AnalyticalListPage","sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"],["ObjectPage","sap.suite.ui.generic.template.ObjectPage.view.Details"]]),qg=(e=>(e.v2="v2",e.v4="v4",e))(qg||{}),Xg=(e=>(e.v2="v2",e.v4="v4",e))(Xg||{}),zg=(e=>(e.OneColumn="OneColumn",e.TwoColumnsBeginExpanded="TwoColumnsBeginExpanded",e.TwoColumnsMidExpanded="TwoColumnsMidExpanded",e.MidColumnFullScreen="MidColumnFullScreen",e.ThreeColumnsMidExpanded="ThreeColumnsMidExpanded",e.ThreeColumnsEndExpanded="ThreeColumnsEndExpanded",e.ThreeColumnsMidExpandedEndHidden="ThreeColumnsMidExpandedEndHidden",e.ThreeColumnsBeginExpandedEndHidden="ThreeColumnsBeginExpandedEndHidden",e.EndColumnFullScreen="EndColumnFullScreen",e))(zg||{}),Yg=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(Yg||{}),Zg=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(Zg||{}),em=(e=>(e.flex="flex",e.manifest="manifest",e))(em||{}),tm=(e=>(e.Primary="primary",e.Secondary="secondary",e))(tm||{}),nm=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(nm||{}),im=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(im||{}),om=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.Standard="Standard",e))(om||{}),am=(e=>(e.Table="sap.m.Table",e.TableColumn="sap.m.Column",e.SmartTable="sap.ui.comp.smarttable.SmartTable",e.SmartFilterBar="sap.ui.comp.smartfilterbar.SmartFilterBar",e.SmartChart="sap.ui.comp.smartchart.SmartChart",e.Group="sap.ui.comp.smartform.Group",e.GroupElement="sap.ui.comp.smartform.GroupElement",e.Button="sap.m.Button",e.ToolbarButton="sap.m.OverflowToolbarButton",e.Avatar="sap.f.Avatar",e.ObjectPageDynamicHeaderTitle="sap.uxap.ObjectPageDynamicHeaderTitle",e.ObjectPageGridProperties="sap.ui.layout.GridData",e.ObjectPageHeader="sap.uxap.ObjectPageHeader",e.ObjectPageLayout="sap.uxap.ObjectPageLayout",e.HeaderAction="sap.uxap.ObjectPageHeaderActionButton",e.ObjectPageHeaderSection="sap.m.VBox",e.DynamicPage="sap.f.DynamicPage",e.Form="sap.ui.layout.form",e.Chart="sap.suite.ui.microchart",e.Section="sap.uxap.ObjectPageSection",e.SubSection="sap.uxap.ObjectPageSubSection",e))(am||{}),rm=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(rm||{}),sm=(e=>(e.Sapux="src",e.Schemas=".schemas",e.Pages="pages",e.Webapp="webapp",e.Temp=".tmp",e.Changes="changes",e.LocalService="localService",e.Controller="controller",e.View="view",e.Fragment="fragment",e.Ext="ext",e.VSCode=".vscode",e))(sm||{}),lm=(e=>(e.App="app.json",e))(lm||{}),CP="Facet ID: ",EP="Action ID: ",cm=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(cm||{}),xP={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},pm=(e=>(e.LineItem="LineItem",e.CollectionFacet="CollectionFacet",e.Chart="Chart",e.Form="Form",e.Identification="Identification",e.DataPoint="DataPoint",e.Address="Address",e.Contact="Contact",e.PresentationVariant="PresentationVariant",e.SelectionPresentationVariant="SelectionPresentationVariant",e.Unknown="",e))(pm||{}),IP="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",fm=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(fm||{}),um=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.FormCustomActionOP="FormCustomActionOP",e.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewTableColumnAction="ViewTableColumnAction",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.ViewTableColumnBasic="ViewTableColumnBasic",e.ViewTableColumnBasicAction="ViewTableColumnBasicAction",e.SaveAndEdit="SaveAndEdit",e))(um||{}),dm=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.sections="sections",e.table="table",e.views="views",e))(dm||{}),gm=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(gm||{}),mm=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(mm||{}),OP="webapp/manifest.json",FP="/@com.sap.vocabularies",NP="::@com.sap.vocabularies",VP="com.sap.vocabularies.UI.v1",LP="com.sap.vocabularies.UI.v1.",DP="@com.sap.vocabularies.UI.v1.",jP="/quickVariantSelection",RP="/quickVariantSelectionX",$P="/filterSettings/dateSettings",wP=".fragment.",ym=(e=>(e.restricted="restricted",e))(ym||{}),hm=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(hm||{}),bm=(e=>(e.persistence="persistence",e.discovery="discovery",e))(bm||{}),Tm=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(Tm||{}),vm=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(vm||{}),Sm=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(Sm||{}),Pm=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e.fiori="sap.fiori",e))(Pm||{}),MP="sap.ui.generic.app/settings",Am=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(Am||{}),UP="sap.fe.templates.RootContainer.view.Fcl",kP="appRootView",Cm=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(Cm||{}),_P="sap.ui.core.mvc.View",BP="sap.ui.core.Fragment",Em=(e=>(e.sapUiChartPaletteQualitativeHue1="sapUiChartPaletteQualitativeHue1",e.sapUiChartPaletteQualitativeHue2="sapUiChartPaletteQualitativeHue2",e.sapUiChartPaletteQualitativeHue3="sapUiChartPaletteQualitativeHue3",e.sapUiChartPaletteQualitativeHue4="sapUiChartPaletteQualitativeHue4",e.sapUiChartPaletteQualitativeHue5="sapUiChartPaletteQualitativeHue5",e.sapUiChartPaletteQualitativeHue6="sapUiChartPaletteQualitativeHue6",e.sapUiChartPaletteQualitativeHue7="sapUiChartPaletteQualitativeHue7",e.sapUiChartPaletteQualitativeHue8="sapUiChartPaletteQualitativeHue8",e.sapUiChartPaletteQualitativeHue9="sapUiChartPaletteQualitativeHue9",e.sapUiChartPaletteQualitativeHue10="sapUiChartPaletteQualitativeHue10",e.sapUiChartPaletteQualitativeHue11="sapUiChartPaletteQualitativeHue11",e.sapUiChartPaletteQualitativeHue12="sapUiChartPaletteQualitativeHue12",e.sapUiChartPaletteQualitativeHue13="sapUiChartPaletteQualitativeHue13",e.sapUiChartPaletteQualitativeHue14="sapUiChartPaletteQualitativeHue14",e.sapUiChartPaletteQualitativeHue15="sapUiChartPaletteQualitativeHue15",e.sapUiChartPaletteQualitativeHue16="sapUiChartPaletteQualitativeHue16",e.sapUiChartPaletteQualitativeHue17="sapUiChartPaletteQualitativeHue17",e.sapUiChartPaletteQualitativeHue18="sapUiChartPaletteQualitativeHue18",e.sapUiChartPaletteQualitativeHue19="sapUiChartPaletteQualitativeHue19",e.sapUiChartPaletteQualitativeHue20="sapUiChartPaletteQualitativeHue20",e.sapUiChartPaletteQualitativeHue21="sapUiChartPaletteQualitativeHue21",e.sapUiChartPaletteQualitativeHue22="sapUiChartPaletteQualitativeHue22",e.sapUiChartPaletteSemanticBadLight3="sapUiChartPaletteSemanticBadLight3",e.sapUiChartPaletteSemanticBadLight2="sapUiChartPaletteSemanticBadLight2",e.sapUiChartPaletteSemanticBadLight1="sapUiChartPaletteSemanticBadLight1",e.sapUiChartPaletteSemanticBad="sapUiChartPaletteSemanticBad",e.sapUiChartPaletteSemanticBadDark1="sapUiChartPaletteSemanticBadDark1",e.sapUiChartPaletteSemanticBadDark2="sapUiChartPaletteSemanticBadDark2",e.sapUiChartPaletteSemanticCriticalLight3="sapUiChartPaletteSemanticCriticalLight3",e.sapUiChartPaletteSemanticCriticalLight2="sapUiChartPaletteSemanticCriticalLight2",e.sapUiChartPaletteSemanticCriticalLight1="sapUiChartPaletteSemanticCriticalLight1",e.sapUiChartPaletteSemanticCritical="sapUiChartPaletteSemanticCritical",e.sapUiChartPaletteSemanticCriticalDark1="sapUiChartPaletteSemanticCriticalDark1",e.sapUiChartPaletteSemanticCriticalDark2="sapUiChartPaletteSemanticCriticalDark2",e.sapUiChartPaletteSemanticGoodLight3="sapUiChartPaletteSemanticGoodLight3",e.sapUiChartPaletteSemanticGoodLight2="sapUiChartPaletteSemanticGoodLight2",e.sapUiChartPaletteSemanticGoodLight1="sapUiChartPaletteSemanticGoodLight1",e.sapUiChartPaletteSemanticGood="sapUiChartPaletteSemanticGood",e.sapUiChartPaletteSemanticGoodDark1="sapUiChartPaletteSemanticGoodDark1",e.sapUiChartPaletteSemanticGoodDark2="sapUiChartPaletteSemanticGoodDark2",e.sapUiChartPaletteSemanticNeutralLight3="sapUiChartPaletteSemanticNeutralLight3",e.sapUiChartPaletteSemanticNeutralLight2="sapUiChartPaletteSemanticNeutralLight2",e.sapUiChartPaletteSemanticNeutralLight1="sapUiChartPaletteSemanticNeutralLight1",e.sapUiChartPaletteSemanticNeutral="sapUiChartPaletteSemanticNeutral",e.sapUiChartPaletteSemanticNeutralDark1="sapUiChartPaletteSemanticNeutralDark1",e.sapUiChartPaletteSemanticNeutralDark2="sapUiChartPaletteSemanticNeutralDark2",e.sapUiChartPaletteNoSemDiv1Dark2="sapUiChartPaletteNoSemDiv1Dark2",e.sapUiChartPaletteNoSemDiv1Dark1="sapUiChartPaletteNoSemDiv1Dark1",e.sapUiChartPaletteNoSemDiv1="sapUiChartPaletteNoSemDiv1",e.sapUiChartPaletteNoSemDiv1Light1="sapUiChartPaletteNoSemDiv1Light1",e.sapUiChartPaletteNoSemDiv1Light2="sapUiChartPaletteNoSemDiv1Light2",e.sapUiChartPaletteNoSemDiv1Light3="sapUiChartPaletteNoSemDiv1Light3",e.sapUiChartPaletteSequentialHue1Light3="sapUiChartPaletteSequentialHue1Light3",e.sapUiChartPaletteSequentialHue1Light2="sapUiChartPaletteSequentialHue1Light2",e.sapUiChartPaletteSequentialHue1Light1="sapUiChartPaletteSequentialHue1Light1",e.sapUiChartPaletteSequentialHue1="sapUiChartPaletteSequentialHue1",e.sapUiChartPaletteSequentialHue1Dark1="sapUiChartPaletteSequentialHue1Dark1",e.sapUiChartPaletteSequentialHue1Dark2="sapUiChartPaletteSequentialHue1Dark2",e.sapUiChartPaletteSequentialHue2Light3="sapUiChartPaletteSequentialHue2Light3",e.sapUiChartPaletteSequentialHue2Light2="sapUiChartPaletteSequentialHue2Light2",e.sapUiChartPaletteSequentialHue2Light1="sapUiChartPaletteSequentialHue2Light1",e.sapUiChartPaletteSequentialHue2="sapUiChartPaletteSequentialHue2",e.sapUiChartPaletteSequentialHue2Dark1="sapUiChartPaletteSequentialHue2Dark1",e.sapUiChartPaletteSequentialHue2Dark2="sapUiChartPaletteSequentialHue2Dark2",e.sapUiChartPaletteSequentialHue3Light3="sapUiChartPaletteSequentialHue3Light3",e.sapUiChartPaletteSequentialHue3Light2="sapUiChartPaletteSequentialHue3Light2",e.sapUiChartPaletteSequentialHue3Light1="sapUiChartPaletteSequentialHue3Light1",e.sapUiChartPaletteSequentialHue3="sapUiChartPaletteSequentialHue3",e.sapUiChartPaletteSequentialHue3Dark1="sapUiChartPaletteSequentialHue3Dark1",e.sapUiChartPaletteSequentialHue3Dark2="sapUiChartPaletteSequentialHue3Dark2",e.sapUiChartPaletteSequentialHue6Light3="sapUiChartPaletteSequentialHue6Light3",e.sapUiChartPaletteSequentialHue6Light2="sapUiChartPaletteSequentialHue6Light2",e.sapUiChartPaletteSequentialHue6Light1="sapUiChartPaletteSequentialHue6Light1",e.sapUiChartPaletteSequentialHue6="sapUiChartPaletteSequentialHue6",e.sapUiChartPaletteSequentialHue6Dark1="sapUiChartPaletteSequentialHue6Dark1",e.sapUiChartPaletteSequentialHue6Dark2="sapUiChartPaletteSequentialHue6Dark2",e.sapUiChartPaletteSequentialNeutralLight3="sapUiChartPaletteSequentialNeutralLight3",e.sapUiChartPaletteSequentialNeutralLight2="sapUiChartPaletteSequentialNeutralLight2",e.sapUiChartPaletteSequentialNeutralLight1="sapUiChartPaletteSequentialNeutralLight1",e.sapUiChartPaletteSequentialNeutral="sapUiChartPaletteSequentialNeutral",e.sapUiChartPaletteSequentialNeutralDark1="sapUiChartPaletteSequentialNeutralDark1",e.sapUiChartPaletteSequentialNeutralDark2="sapUiChartPaletteSequentialNeutralDark2",e.sapUiChoroplethRegionBG="sapUiChoroplethRegionBG",e.sapUiChartZeroAxisColor="sapUiChartZeroAxisColor",e.sapUiNegativeElement="sapUiNegativeElement",e.sapUiCriticalElement="sapUiCriticalElement",e.sapUiPositiveElement="sapUiPositiveElement",e.sapUiNeutralElement="sapUiNeutralElement",e))(Em||{}),xm=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(xm||{}),HP={error:"Error",warning:"Warning",info:"Information"},Im=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(Im||{}),Om=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(Om||{}),Fm=(e=>(e.BuildingBlocks="BuildingBlocks",e))(Fm||{}),Nm={};sp(Nm,{AvatarShape:r(()=>Ym,"AvatarShape"),ButtonType:r(()=>Vm,"ButtonType"),CardSettingsType:r(()=>jm,"CardSettingsType"),CardTemplateType:r(()=>Dm,"CardTemplateType"),ChartCardType:r(()=>Lm,"ChartCardType"),ChartType:r(()=>zm,"ChartType"),ContainerLayoutType:r(()=>ny,"ContainerLayoutType"),CreateMode:r(()=>ty,"CreateMode"),DateRangeType:r(()=>km,"DateRangeType"),DefaultContentView:r(()=>Jm,"DefaultContentView"),DefaultFilterMode:r(()=>qm,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>ey,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>QP,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>qP,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>JP,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>KP,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>_m,"FilterPathType"),HAlign:r(()=>Bm,"HAlign"),LinkListFlavorType:r(()=>Um,"LinkListFlavorType"),ListFlavorType:r(()=>$m,"ListFlavorType"),ListTypeType:r(()=>wm,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>Xm,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>Rm,"MeasureAggregateValues"),PopinLayout:r(()=>Qm,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>zP,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>XP,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>eA,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>ZP,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>YP,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>Zm,"SectionPosition"),SortOrderType:r(()=>Mm,"SortOrderType"),Strategy:r(()=>Km,"Strategy"),TableColumnExtensionTypeV2:r(()=>Wm,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>Gm,"TableTypeV2"),cardTemplateSettingsMap:r(()=>WP,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>GP,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>Hm,"customColumnViewTypes")});var Vm=(e=>(e.Accept="Accept",e.Attention="Attention",e.Back="Back",e.Critical="Critical",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Negative="Negative",e.Neutral="Neutral",e.Reject="Reject",e.Success="Success",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(Vm||{}),Lm=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Lm||{}),Dm=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(Dm||{}),GP={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},WP={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},jm=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(jm||{}),Rm=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(Rm||{}),$m=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))($m||{}),wm=(e=>(e.extended="extended",e.condensed="condensed",e))(wm||{}),Mm=(e=>(e.ascending="ascending",e.descending="descending",e))(Mm||{}),Um=(e=>(e.standard="standard",e.carousel="carousel",e))(Um||{}),km=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(km||{}),_m=(e=>(e.key="key",e.catgory="category",e))(_m||{}),Bm=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Bm||{}),Hm=(e=>(e.XML="XML",e))(Hm||{}),Gm=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(Gm||{}),Wm=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Wm||{}),Qm=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Qm||{}),Km=(e=>(e.extension="extension",e))(Km||{}),Jm=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Jm||{}),qm=(e=>(e.visual="visual",e.compact="compact",e))(qm||{}),Xm=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(Xm||{}),zm=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(zm||{}),Ym=(e=>(e.Circle="Circle",e.Square="Square",e))(Ym||{}),Zm=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Zm||{}),ey=(e=>(e.XML="XML",e))(ey||{}),ty=(e=>(e.inline="inline",e))(ty||{}),QP="sap.suite.ui.generic.template",KP="sap.suite.ui.generic.template.ObjectPage",JP="sap.suite.ui.generic.template.ListReport",qP="sap.suite.ui.generic.template.AnalyticalListPage",XP="sap.ui.viewExtensions",zP="sap.ui.controllerExtensions",YP="sap.suite.ui.generic.template.ObjectPage.view.Details",ZP="sap.suite.ui.generic.template.ListReport.view.ListReport",eA="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",ny=(e=>(e.fixed="fixed",e.resizable="resizable",e))(ny||{}),iy={};sp(iy,{Availability:r(()=>yy,"Availability"),CustomSectionViewTypesV4:r(()=>uy,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>sy,"DefaultPathType"),DesigntimeValues:r(()=>cy,"DesigntimeValues"),FE_NAMESPACE_V4:r(()=>tA,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:r(()=>aA,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>nA,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>oA,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>iA,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>sA,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>hy,"HorizontalAlign"),InitialLoadType:r(()=>ry,"InitialLoadType"),Placement:r(()=>my,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>lA,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>rA,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>py,"SectionLayoutType"),SectionPosition:r(()=>fy,"SectionPosition"),SectionPositionV4:r(()=>gy,"SectionPositionV4"),SelectType:r(()=>ly,"SelectType"),SelectionMode:r(()=>oy,"SelectionMode"),TableCreationModeType:r(()=>dy,"TableCreationModeType"),TableTypeV4:r(()=>ay,"TableTypeV4"),VariantManagementTypeListReport:r(()=>Ty,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>by,"VariantManagementTypeObjectPage")});var oy=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(oy||{}),ay=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(ay||{}),ry=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(ry||{}),sy=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(sy||{}),ly=(e=>(e.single="single",e.multi="multi",e))(ly||{}),cy=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))(cy||{}),py=(e=>(e.Tabs="Tabs",e.Page="Page",e))(py||{}),fy=(e=>(e.After="After",e.Before="Before",e))(fy||{}),uy=(e=>(e.XML="XML",e))(uy||{}),dy=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(dy||{}),tA="sap.fe",nA="sap.fe.core.fpm",iA="sap.fe.templates.ObjectPage",oA="sap.fe.templates.ListReport",aA="sap.fe.templates.AnalyticalListPage",rA="XMLFragment",gy=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(gy||{}),sA="sap.f.routing.Router",lA="sap.f",my=(e=>(e.After="After",e.Before="Before",e))(my||{}),yy=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(yy||{}),hy=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(hy||{}),by=(e=>(e.None="None",e.Control="Control",e))(by||{}),Ty=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(Ty||{})});var xy=Re(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.Features=tn.TemplateType=tn.PropertyMessageType=tn.logSeverityLabel=tn.LogSeverity=void 0;var Py;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(Py||(tn.LogSeverity=Py={}));tn.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var Ay;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(Ay||(tn.PropertyMessageType=Ay={}));var Cy;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(Cy||(tn.TemplateType=Cy={}));var Ey;(function(e){e.BuildingBlocks="BuildingBlocks"})(Ey||(tn.Features=Ey={}))});var th=Re((YL,eh)=>{var pp=Object.defineProperty,cA=Object.getOwnPropertyDescriptor,pA=Object.getOwnPropertyNames,fA=Object.prototype.hasOwnProperty,uA=r((e,t)=>{for(var n in t)pp(e,n,{get:t[n],enumerable:!0})},"G"),dA=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of pA(t))!fA.call(e,o)&&o!==n&&pp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=cA(t,o))||i.enumerable});return e},"X"),gA=r(e=>dA(pp({},"__esModule",{value:!0}),e),"H"),Iy={};uA(Iy,{AvatarShape:r(()=>qy,"AvatarShape"),ButtonType:r(()=>Oy,"ButtonType"),CardSettingsType:r(()=>Vy,"CardSettingsType"),CardTemplateType:r(()=>Ny,"CardTemplateType"),ChartCardType:r(()=>Fy,"ChartCardType"),ChartType:r(()=>Jy,"ChartType"),ContainerLayoutType:r(()=>Zy,"ContainerLayoutType"),CreateMode:r(()=>Yy,"CreateMode"),DateRangeType:r(()=>wy,"DateRangeType"),DefaultContentView:r(()=>Wy,"DefaultContentView"),DefaultFilterMode:r(()=>Qy,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>zy,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>hA,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>vA,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>TA,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>bA,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>My,"FilterPathType"),HAlign:r(()=>Uy,"HAlign"),LinkListFlavorType:r(()=>$y,"LinkListFlavorType"),ListFlavorType:r(()=>Dy,"ListFlavorType"),ListTypeType:r(()=>jy,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>Ky,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>Ly,"MeasureAggregateValues"),PopinLayout:r(()=>Hy,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>PA,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>SA,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>EA,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>CA,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>AA,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>Xy,"SectionPosition"),SortOrderType:r(()=>Ry,"SortOrderType"),Strategy:r(()=>Gy,"Strategy"),TableColumnExtensionTypeV2:r(()=>By,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>_y,"TableTypeV2"),cardTemplateSettingsMap:r(()=>yA,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>mA,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>ky,"customColumnViewTypes")});eh.exports=gA(Iy);var Oy=(e=>(e.Accept="Accept",e.Attention="Attention",e.Back="Back",e.Critical="Critical",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Negative="Negative",e.Neutral="Neutral",e.Reject="Reject",e.Success="Success",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(Oy||{}),Fy=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Fy||{}),Ny=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(Ny||{}),mA={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},yA={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},Vy=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(Vy||{}),Ly=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(Ly||{}),Dy=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Dy||{}),jy=(e=>(e.extended="extended",e.condensed="condensed",e))(jy||{}),Ry=(e=>(e.ascending="ascending",e.descending="descending",e))(Ry||{}),$y=(e=>(e.standard="standard",e.carousel="carousel",e))($y||{}),wy=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(wy||{}),My=(e=>(e.key="key",e.catgory="category",e))(My||{}),Uy=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Uy||{}),ky=(e=>(e.XML="XML",e))(ky||{}),_y=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(_y||{}),By=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(By||{}),Hy=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Hy||{}),Gy=(e=>(e.extension="extension",e))(Gy||{}),Wy=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Wy||{}),Qy=(e=>(e.visual="visual",e.compact="compact",e))(Qy||{}),Ky=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(Ky||{}),Jy=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(Jy||{}),qy=(e=>(e.Circle="Circle",e.Square="Square",e))(qy||{}),Xy=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Xy||{}),zy=(e=>(e.XML="XML",e))(zy||{}),Yy=(e=>(e.inline="inline",e))(Yy||{}),hA="sap.suite.ui.generic.template",bA="sap.suite.ui.generic.template.ObjectPage",TA="sap.suite.ui.generic.template.ListReport",vA="sap.suite.ui.generic.template.AnalyticalListPage",SA="sap.ui.viewExtensions",PA="sap.ui.controllerExtensions",AA="sap.suite.ui.generic.template.ObjectPage.view.Details",CA="sap.suite.ui.generic.template.ListReport.view.ListReport",EA="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Zy=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Zy||{})});var vh=Re((eD,Th)=>{var fp=Object.defineProperty,xA=Object.getOwnPropertyDescriptor,IA=Object.getOwnPropertyNames,OA=Object.prototype.hasOwnProperty,FA=r((e,t)=>{for(var n in t)fp(e,n,{get:t[n],enumerable:!0})},"O"),NA=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of IA(t))!OA.call(e,o)&&o!==n&&fp(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=xA(t,o))||i.enumerable});return e},"U"),VA=r(e=>NA(fp({},"__esModule",{value:!0}),e),"w"),nh={};FA(nh,{Availability:r(()=>mh,"Availability"),CustomSectionViewTypesV4:r(()=>fh,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>rh,"DefaultPathType"),DesigntimeValues:r(()=>lh,"DesigntimeValues"),FE_NAMESPACE_V4:r(()=>LA,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:r(()=>$A,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>DA,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>RA,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>jA,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>MA,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>yh,"HorizontalAlign"),InitialLoadType:r(()=>ah,"InitialLoadType"),Placement:r(()=>gh,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>UA,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>wA,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>ch,"SectionLayoutType"),SectionPosition:r(()=>ph,"SectionPosition"),SectionPositionV4:r(()=>dh,"SectionPositionV4"),SelectType:r(()=>sh,"SelectType"),SelectionMode:r(()=>ih,"SelectionMode"),TableCreationModeType:r(()=>uh,"TableCreationModeType"),TableTypeV4:r(()=>oh,"TableTypeV4"),VariantManagementTypeListReport:r(()=>bh,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>hh,"VariantManagementTypeObjectPage")});Th.exports=VA(nh);var ih=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(ih||{}),oh=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(oh||{}),ah=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(ah||{}),rh=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(rh||{}),sh=(e=>(e.single="single",e.multi="multi",e))(sh||{}),lh=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))(lh||{}),ch=(e=>(e.Tabs="Tabs",e.Page="Page",e))(ch||{}),ph=(e=>(e.After="After",e.Before="Before",e))(ph||{}),fh=(e=>(e.XML="XML",e))(fh||{}),uh=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(uh||{}),LA="sap.fe",DA="sap.fe.core.fpm",jA="sap.fe.templates.ObjectPage",RA="sap.fe.templates.ListReport",$A="sap.fe.templates.AnalyticalListPage",wA="XMLFragment",dh=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(dh||{}),MA="sap.f.routing.Router",UA="sap.f",gh=(e=>(e.After="After",e.Before="Before",e))(gh||{}),mh=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(mh||{}),yh=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(yh||{}),hh=(e=>(e.None="None",e.Control="Control",e))(hh||{}),bh=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(bh||{})});var B=Re(St=>{"use strict";var Sh=St&&St.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:r(function(){return t[n]},"get")}),Object.defineProperty(e,i,o)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),kA=St&&St.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Ph=St&&St.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Sh(t,e,n)},Ah=St&&St.__importStar||function(){var e=r(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),o=0;o<i.length;o++)i[o]!=="default"&&Sh(n,t,i[o]);return kA(n,t),n}}();Object.defineProperty(St,"__esModule",{value:!0});St.v4=St.v2=void 0;Ph(Sy(),St);Ph(xy(),St);St.v2=Ah(th());St.v4=Ah(vh())});var Fp=Re((vD,wh)=>{"use strict";var aC=r(function(t){return rC(t)&&!sC(t)},"isMergeableObject");function rC(e){return!!e&&typeof e=="object"}r(rC,"isNonNullObject");function sC(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||pC(e)}r(sC,"isSpecial");var lC=typeof Symbol=="function"&&Symbol.for,cC=lC?Symbol.for("react.element"):60103;function pC(e){return e.$$typeof===cC}r(pC,"isReactElement");function fC(e){return Array.isArray(e)?[]:{}}r(fC,"emptyTarget");function $a(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Mo(fC(e),e,t):e}r($a,"cloneUnlessOtherwiseSpecified");function uC(e,t,n){return e.concat(t).map(function(i){return $a(i,n)})}r(uC,"defaultArrayMerge");function dC(e,t){if(!t.customMerge)return Mo;var n=t.customMerge(e);return typeof n=="function"?n:Mo}r(dC,"getMergeFunction");function gC(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}r(gC,"getEnumerableOwnPropertySymbols");function Rh(e){return Object.keys(e).concat(gC(e))}r(Rh,"getKeys");function $h(e,t){try{return t in e}catch{return!1}}r($h,"propertyIsOnObject");function mC(e,t){return $h(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}r(mC,"propertyIsUnsafe");function yC(e,t,n){var i={};return n.isMergeableObject(e)&&Rh(e).forEach(function(o){i[o]=$a(e[o],n)}),Rh(t).forEach(function(o){mC(e,o)||($h(e,o)&&n.isMergeableObject(t[o])?i[o]=dC(o,n)(e[o],t[o],n):i[o]=$a(t[o],n))}),i}r(yC,"mergeObject");function Mo(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||uC,n.isMergeableObject=n.isMergeableObject||aC,n.cloneUnlessOtherwiseSpecified=$a;var i=Array.isArray(t),o=Array.isArray(e),a=i===o;return a?i?n.arrayMerge(e,t,n):yC(e,t,n):$a(t,n)}r(Mo,"deepmerge");Mo.all=r(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,o){return Mo(i,o,n)},{})},"deepmergeAll");var hC=Mo;wh.exports=hC});var Ss=Re(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.mergeAnnotations=Ne.addGetByValue=Ne.createIndexedFind=Ne.lazy=Ne.Decimal=Ne.Double=Ne.isComplexTypeDefinition=Ne.unalias=Ne.alias=Ne.substringBeforeLast=Ne.substringBeforeFirst=Ne.splitAtLast=Ne.splitAtFirst=Ne.defaultReferences=Ne.TermToTypes=Ne.EnumIsFlag=void 0;var bC=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Ne,"EnumIsFlag",{enumerable:!0,get:r(function(){return bC.EnumIsFlag},"get")});var TC=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Ne,"TermToTypes",{enumerable:!0,get:r(function(){return TC.TermToTypes},"get")});var vC=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Ne,"defaultReferences",{enumerable:!0,get:r(function(){return vC.VocabularyReferences},"get")});function Mh(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}r(Mh,"splitAt");function Uh(e,t){return t<0?e:e.substring(0,t)}r(Uh,"substringAt");function vs(e,t){return Mh(e,e.indexOf(t))}r(vs,"splitAtFirst");Ne.splitAtFirst=vs;function kh(e,t){return Mh(e,e.lastIndexOf(t))}r(kh,"splitAtLast");Ne.splitAtLast=kh;function SC(e,t){return Uh(e,e.indexOf(t))}r(SC,"substringBeforeFirst");Ne.substringBeforeFirst=SC;function PC(e,t){return Uh(e,e.lastIndexOf(t))}r(PC,"substringBeforeLast");Ne.substringBeforeLast=PC;function _h(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=kh(t,"."),o=e.reverseReferenceMap[n];if(o)return`${o.alias}.${i}`;if(t.includes("@")){let[a,s]=vs(t,"@");return`${a}@${_h(e,s)}`}else return t}r(_h,"alias");Ne.alias=_h;function Np(e,t,n){var i;let o=r(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(u=>[u.alias,u])));let[s,l]=vs(a,".");if(!l||l.includes("."))return a;let c=s.startsWith("@"),p=c?s.substring(1):s,f=e.referenceMap[p];return f?c?`@${f.namespace}.${l}`:`${f.namespace}.${l}`:n&&!c?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,c]=vs(s,"("),p=[o(l)];if(c){let f=c.slice(0,-1);p.push(`(${o(f)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}r(Np,"unalias");Ne.unalias=Np;function AC(e){return!!e&&e._type==="ComplexType"&&!!e.properties}r(AC,"isComplexTypeDefinition");Ne.isComplexTypeDefinition=AC;function CC(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(CC,"Double");Ne.Double=CC;function EC(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(EC,"Decimal");Ne.Decimal=EC;function xC(e,t,n){let i=Symbol("initial"),o=i;Object.defineProperty(e,t,{enumerable:!0,get(){return o===i&&(o=n()),o},set(a){o=a}})}r(xC,"lazy");Ne.lazy=xC;function Bh(e,t){let n=new Map;return r(function(o){let a=n.get(o);return(a==null?void 0:a[t])===o?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===o})},"find")}r(Bh,"createIndexedFind");Ne.createIndexedFind=Bh;function IC(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:Bh(e,t)});else throw new Error(`Property '${n}' already exists`);return e}r(IC,"addGetByValue");Ne.addGetByValue=IC;function OC(e,...t){return t.reduceRight((n,{name:i,annotationList:o})=>{var a;for(let{target:s,annotations:l}of o){let c=(a=Np(e,s))!==null&&a!==void 0?a:s;n[c]||(n[c]=[]);let p=l.map(f=>{var u;return f.term=(u=Np(e,f.term))!==null&&u!==void 0?u:f.term,f.fullyQualifiedName=f.qualifier?`${c}@${f.term}#${f.qualifier}`:`${c}@${f.term}`,f.__source=i,f}).filter(f=>!n[c].some(u=>u.term===f.term&&u.qualifier===f.qualifier));n[c].push(...p)}return n},{})}r(OC,"mergeAnnotations");Ne.mergeAnnotations=OC});var nb=Re(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.convert=void 0;var Ps=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),K=Ss(),mn=Symbol("Annotation Target");function qn(e,t){return e[e.length-1]!==t&&e.push(t),e}r(qn,"appendObjectPath");function Jt(e,t,n,i){var o,a,s,l,c;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((u,m)=>{if(m.includes("@")){let[b,S]=(0,K.splitAtFirst)(m,"@");u.push(b),u.push(`@${S}`)}else u.push(m);return u},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((o=e.getConvertedEntityContainer())===null||o===void 0?void 0:o.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[mn]!==void 0)t=t[mn];else if(t._type==="Property"){let u=(0,K.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(c=e.getConvertedEntityType(u))!==null&&c!==void 0?c:e.getConvertedComplexType(u)}let f=p.reduce((u,m)=>{var b,S,N,L,z;let ne=r(ie=>(u.messages.push({message:ie}),u.target=void 0,u),"error");if(u.target===void 0)return u;if(u.objectPath=qn(u.objectPath,u.target),m.startsWith("@")&&m!=="@$ui5.overload"){let[ie,ce]=e.splitTerm(m),Y=(b=u.target.annotations[ie.substring(1)])===null||b===void 0?void 0:b[ce];return Y!==void 0?(u.target=Y,u):ne(`Annotation '${m.substring(1)}' not found on ${u.target._type} '${u.target.fullyQualifiedName}'`)}if(u.target.$target){let ie;if(m==="$AnnotationPath"?ie=u.target.value:m==="$Path"&&(ie=u.target.path),ie!==void 0){let ce=Jt(e,u.target[mn],ie);return ce.objectPath.forEach(Y=>{u.objectPath.includes(Y)||(u.objectPath=qn(u.objectPath,Y))}),u.target=ce.target,u.objectPath=qn(u.objectPath,u.target),u}}switch((S=u.target)===null||S===void 0?void 0:S._type){case"Schema":break;case"EntityContainer":{let Y=u.target;if(m===""||e.unalias(m)===Y.fullyQualifiedName)return u;let oe=(L=(N=Y.entitySets.by_name(m))!==null&&N!==void 0?N:Y.singletons.by_name(m))!==null&&L!==void 0?L:Y.actionImports.by_name(m);if(oe)return u.target=oe,u}break;case"EntitySet":case"Singleton":{let Y=u.target;if(m===""||m==="$Type")return u.target=Y.entityType,u;if(m==="$")return u;if(m==="$NavigationPropertyBinding"){let Pe=Y.navigationPropertyBinding;return u.target=Pe,u}let oe=Jt(e,Y.entityType,m);return u.target=oe.target,u.objectPath=oe.objectPath.reduce(qn,u.objectPath),u}case"EntityType":{let Y=u.target;if(m===""||m==="$Type")return u;let oe=Y.entityProperties.by_name(m);if(oe)return u.target=oe,u;let Pe=Y.navigationProperties.by_name(m);if(Pe)return u.target=Pe,u;let P=(0,K.substringBeforeFirst)(e.unalias(m),"("),Ft=Y.actions[P];if(Ft)return u.target=Ft,u}break;case"ActionImport":{let Y=Jt(e,u.target.action,m);return u.target=Y.target,u.objectPath=Y.objectPath.reduce(qn,u.objectPath),u}case"Action":{let Y=u.target;if(m===""||m==="@$ui5.overload"||m==="0")return u;if(m==="$Parameter"&&Y.isBound)return u.target=Y.parameters,u;let oe=(z=Y.parameters[m])!==null&&z!==void 0?z:Y.parameters.find(Pe=>Pe.name===m);if(oe)return u.target=oe,u;break}case"Property":{let oe=u.target.targetType;if(oe!==void 0){let Pe=oe.properties.by_name(m);if(Pe)return u.target=Pe,u;let P=oe.navigationProperties.by_name(m);if(P)return u.target=P,u}}break;case"ActionParameter":let ie=u.target.typeReference;if(ie!==void 0){let Y=Jt(e,ie,m);return u.target=Y.target,u.objectPath=Y.objectPath.reduce(qn,u.objectPath),u}break;case"NavigationProperty":let ce=Jt(e,u.target.targetType,m);return u.target=ce.target,u.objectPath=ce.objectPath.reduce(qn,u.objectPath),u;default:if(m==="")return u;if(u.target[m])return u.target=u.target[m],u.objectPath=qn(u.objectPath,u.target),u}return ne(`Element '${m}' not found at ${u.target._type} '${u.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(f.messages.forEach(u=>e.logError(u.message)),!f.target)if(i){let u=Kh(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
1
|
+
var nA=Object.create;var Ho=Object.defineProperty;var bm=Object.getOwnPropertyDescriptor;var iA=Object.getOwnPropertyNames;var oA=Object.getPrototypeOf,aA=Object.prototype.hasOwnProperty;var r=(e,t)=>Ho(e,"name",{value:t,configurable:!0});var je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Go=(e,t)=>{for(var n in t)Ho(e,n,{get:t[n],enumerable:!0})},Cs=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of iA(t))!aA.call(e,o)&&o!==n&&Ho(e,o,{get:()=>t[o],enumerable:!(i=bm(t,o))||i.enumerable});return e},qi=(e,t,n)=>(Cs(e,t,"default"),n&&Cs(n,t,"default")),$=(e,t,n)=>(n=e!=null?nA(oA(e)):{},Cs(t||!e||!e.__esModule?Ho(n,"default",{value:e,enumerable:!0}):n,e)),rA=e=>Cs(Ho({},"__esModule",{value:!0}),e),d=(e,t,n,i)=>{for(var o=i>1?void 0:i?bm(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(t,n,o):s(o))||o);return i&&o&&Ho(t,n,o),o};var Qy=je((eR,Wy)=>{var Ap=Object.defineProperty,sA=Object.getOwnPropertyDescriptor,lA=Object.getOwnPropertyNames,cA=Object.prototype.hasOwnProperty,Cp=r((e,t)=>{for(var n in t)Ap(e,n,{get:t[n],enumerable:!0})},"f"),pA=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of lA(t))!cA.call(e,o)&&o!==n&&Ap(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=sA(t,o))||i.enumerable});return e},"ze"),fA=r(e=>pA(Ap({},"__esModule",{value:!0}),e),"Je"),Tm={};Cp(Tm,{ACTIONTITLEPREFIX:r(()=>mA,"ACTIONTITLEPREFIX"),ALPViewType:r(()=>xm,"ALPViewType"),ActionType:r(()=>Fm,"ActionType"),ArtifactType:r(()=>Om,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:r(()=>hA,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:r(()=>Rm,"ChangeIndicator"),ChartColor:r(()=>qm,"ChartColor"),CloudDevAdaptationStatus:r(()=>Wm,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:r(()=>Jm,"ColorPaletteDefinitionType"),ControlType:r(()=>Lm,"ControlType"),DATESETTINGSPATH:r(()=>xA,"DATESETTINGSPATH"),DataSourceType:r(()=>Qm,"DataSourceType"),DefinitionName:r(()=>$m,"DefinitionName"),DirName:r(()=>Nm,"DirName"),DraftDiscardEnabledSettings:r(()=>_m,"DraftDiscardEnabledSettings"),ExportArtifacts:r(()=>Em,"ExportArtifacts"),FACETTITLEPREFIX:r(()=>gA,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:r(()=>LA,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:r(()=>FA,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:r(()=>IA,"FRAGMENTNAMEPART"),FacetBase:r(()=>jm,"FacetBase"),Features:r(()=>ey,"Features"),FileName:r(()=>Dm,"FileName"),FioriElementsVersion:r(()=>Sm,"FioriElementsVersion"),FlexChangeLayer:r(()=>Am,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:r(()=>Gm,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:r(()=>Pm,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:r(()=>OA,"GENERICAPPSETTINGS"),LogSeverity:r(()=>zm,"LogSeverity"),MANIFESTPATH:r(()=>bA,"MANIFESTPATH"),ManifestSection:r(()=>Km,"ManifestSection"),OdataVersion:r(()=>vm,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:r(()=>dA,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:r(()=>uA,"PageType"),PageTypeV2:r(()=>Ep,"PageTypeV2"),PageTypeV4:r(()=>xp,"PageTypeV4"),PropertyMessageType:r(()=>Ym,"PropertyMessageType"),PropertyName:r(()=>Mm,"PropertyName"),QUICKVARPATH:r(()=>CA,"QUICKVARPATH"),QUICKVARPATHX:r(()=>EA,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:r(()=>NA,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:r(()=>VA,"SAPUI5_VIEW_CLASS"),SchemaKeyName:r(()=>km,"SchemaKeyName"),SchemaTag:r(()=>Um,"SchemaTag"),SchemaType:r(()=>Cm,"SchemaType"),SectionType:r(()=>Im,"SectionType"),StatePreservationMode:r(()=>Hm,"StatePreservationMode"),TableColumnVerticalAlignment:r(()=>Bm,"TableColumnVerticalAlignment"),TemplateType:r(()=>Zm,"TemplateType"),UIVOCABULARY:r(()=>vA,"UIVOCABULARY"),UIVOCABULARYALPHADOT:r(()=>AA,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:r(()=>PA,"UIVOCABULARYDOT"),VOCWITHCOLONS:r(()=>SA,"VOCWITHCOLONS"),VOCWITHSLASH:r(()=>TA,"VOCWITHSLASH"),ViewTemplateType:r(()=>wm,"ViewTemplateType"),ViewTypes:r(()=>Xm,"ViewTypes"),Visualization:r(()=>Vm,"Visualization"),defaultExportResult:r(()=>yA,"defaultExportResult"),logSeverityLabel:r(()=>DA,"logSeverityLabel"),v2:r(()=>ty,"v2"),v4:r(()=>Oy,"v4")});Wy.exports=fA(Tm);var Ep=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Ep||{}),xp=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(xp||{}),uA={...Ep,...xp},dA=new Map([["ListReport","sap.suite.ui.generic.template.ListReport.view.ListReport"],["AnalyticalListPage","sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"],["ObjectPage","sap.suite.ui.generic.template.ObjectPage.view.Details"]]),Sm=(e=>(e.v2="v2",e.v4="v4",e))(Sm||{}),vm=(e=>(e.v2="v2",e.v4="v4",e))(vm||{}),Pm=(e=>(e.OneColumn="OneColumn",e.TwoColumnsBeginExpanded="TwoColumnsBeginExpanded",e.TwoColumnsMidExpanded="TwoColumnsMidExpanded",e.MidColumnFullScreen="MidColumnFullScreen",e.ThreeColumnsMidExpanded="ThreeColumnsMidExpanded",e.ThreeColumnsEndExpanded="ThreeColumnsEndExpanded",e.ThreeColumnsMidExpandedEndHidden="ThreeColumnsMidExpandedEndHidden",e.ThreeColumnsBeginExpandedEndHidden="ThreeColumnsBeginExpandedEndHidden",e.EndColumnFullScreen="EndColumnFullScreen",e))(Pm||{}),Am=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(Am||{}),Cm=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(Cm||{}),Em=(e=>(e.flex="flex",e.manifest="manifest",e))(Em||{}),xm=(e=>(e.Primary="primary",e.Secondary="secondary",e))(xm||{}),Im=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(Im||{}),Om=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(Om||{}),Fm=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.Standard="Standard",e))(Fm||{}),Lm=(e=>(e.Table="sap.m.Table",e.TableColumn="sap.m.Column",e.SmartTable="sap.ui.comp.smarttable.SmartTable",e.SmartFilterBar="sap.ui.comp.smartfilterbar.SmartFilterBar",e.SmartChart="sap.ui.comp.smartchart.SmartChart",e.Group="sap.ui.comp.smartform.Group",e.GroupElement="sap.ui.comp.smartform.GroupElement",e.Button="sap.m.Button",e.ToolbarButton="sap.m.OverflowToolbarButton",e.Avatar="sap.f.Avatar",e.ObjectPageDynamicHeaderTitle="sap.uxap.ObjectPageDynamicHeaderTitle",e.ObjectPageGridProperties="sap.ui.layout.GridData",e.ObjectPageHeader="sap.uxap.ObjectPageHeader",e.ObjectPageLayout="sap.uxap.ObjectPageLayout",e.HeaderAction="sap.uxap.ObjectPageHeaderActionButton",e.ObjectPageHeaderSection="sap.m.VBox",e.DynamicPage="sap.f.DynamicPage",e.Form="sap.ui.layout.form",e.Chart="sap.suite.ui.microchart",e.Section="sap.uxap.ObjectPageSection",e.SubSection="sap.uxap.ObjectPageSubSection",e))(Lm||{}),Vm=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(Vm||{}),Nm=(e=>(e.Sapux="src",e.Schemas=".schemas",e.Pages="pages",e.Webapp="webapp",e.Temp=".tmp",e.Changes="changes",e.LocalService="localService",e.Controller="controller",e.View="view",e.Fragment="fragment",e.Ext="ext",e.VSCode=".vscode",e))(Nm||{}),Dm=(e=>(e.App="app.json",e))(Dm||{}),gA="Facet ID: ",mA="Action ID: ",Rm=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(Rm||{}),yA={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},jm=(e=>(e.LineItem="LineItem",e.CollectionFacet="CollectionFacet",e.Chart="Chart",e.Form="Form",e.Identification="Identification",e.DataPoint="DataPoint",e.Address="Address",e.Contact="Contact",e.PresentationVariant="PresentationVariant",e.SelectionPresentationVariant="SelectionPresentationVariant",e.Unknown="",e))(jm||{}),hA="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",wm=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(wm||{}),$m=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.FormCustomActionOP="FormCustomActionOP",e.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewTableColumnAction="ViewTableColumnAction",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.ViewTableColumnBasic="ViewTableColumnBasic",e.ViewTableColumnBasicAction="ViewTableColumnBasicAction",e.SaveAndEdit="SaveAndEdit",e))($m||{}),Mm=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.sections="sections",e.table="table",e.views="views",e))(Mm||{}),Um=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(Um||{}),km=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(km||{}),bA="webapp/manifest.json",TA="/@com.sap.vocabularies",SA="::@com.sap.vocabularies",vA="com.sap.vocabularies.UI.v1",PA="com.sap.vocabularies.UI.v1.",AA="@com.sap.vocabularies.UI.v1.",CA="/quickVariantSelection",EA="/quickVariantSelectionX",xA="/filterSettings/dateSettings",IA=".fragment.",_m=(e=>(e.restricted="restricted",e))(_m||{}),Bm=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(Bm||{}),Hm=(e=>(e.persistence="persistence",e.discovery="discovery",e))(Hm||{}),Gm=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(Gm||{}),Wm=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(Wm||{}),Qm=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(Qm||{}),Km=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e.fiori="sap.fiori",e))(Km||{}),OA="sap.ui.generic.app/settings",Jm=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(Jm||{}),FA="sap.fe.templates.RootContainer.view.Fcl",LA="appRootView",Xm=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(Xm||{}),VA="sap.ui.core.mvc.View",NA="sap.ui.core.Fragment",qm=(e=>(e.sapUiChartPaletteQualitativeHue1="sapUiChartPaletteQualitativeHue1",e.sapUiChartPaletteQualitativeHue2="sapUiChartPaletteQualitativeHue2",e.sapUiChartPaletteQualitativeHue3="sapUiChartPaletteQualitativeHue3",e.sapUiChartPaletteQualitativeHue4="sapUiChartPaletteQualitativeHue4",e.sapUiChartPaletteQualitativeHue5="sapUiChartPaletteQualitativeHue5",e.sapUiChartPaletteQualitativeHue6="sapUiChartPaletteQualitativeHue6",e.sapUiChartPaletteQualitativeHue7="sapUiChartPaletteQualitativeHue7",e.sapUiChartPaletteQualitativeHue8="sapUiChartPaletteQualitativeHue8",e.sapUiChartPaletteQualitativeHue9="sapUiChartPaletteQualitativeHue9",e.sapUiChartPaletteQualitativeHue10="sapUiChartPaletteQualitativeHue10",e.sapUiChartPaletteQualitativeHue11="sapUiChartPaletteQualitativeHue11",e.sapUiChartPaletteQualitativeHue12="sapUiChartPaletteQualitativeHue12",e.sapUiChartPaletteQualitativeHue13="sapUiChartPaletteQualitativeHue13",e.sapUiChartPaletteQualitativeHue14="sapUiChartPaletteQualitativeHue14",e.sapUiChartPaletteQualitativeHue15="sapUiChartPaletteQualitativeHue15",e.sapUiChartPaletteQualitativeHue16="sapUiChartPaletteQualitativeHue16",e.sapUiChartPaletteQualitativeHue17="sapUiChartPaletteQualitativeHue17",e.sapUiChartPaletteQualitativeHue18="sapUiChartPaletteQualitativeHue18",e.sapUiChartPaletteQualitativeHue19="sapUiChartPaletteQualitativeHue19",e.sapUiChartPaletteQualitativeHue20="sapUiChartPaletteQualitativeHue20",e.sapUiChartPaletteQualitativeHue21="sapUiChartPaletteQualitativeHue21",e.sapUiChartPaletteQualitativeHue22="sapUiChartPaletteQualitativeHue22",e.sapUiChartPaletteSemanticBadLight3="sapUiChartPaletteSemanticBadLight3",e.sapUiChartPaletteSemanticBadLight2="sapUiChartPaletteSemanticBadLight2",e.sapUiChartPaletteSemanticBadLight1="sapUiChartPaletteSemanticBadLight1",e.sapUiChartPaletteSemanticBad="sapUiChartPaletteSemanticBad",e.sapUiChartPaletteSemanticBadDark1="sapUiChartPaletteSemanticBadDark1",e.sapUiChartPaletteSemanticBadDark2="sapUiChartPaletteSemanticBadDark2",e.sapUiChartPaletteSemanticCriticalLight3="sapUiChartPaletteSemanticCriticalLight3",e.sapUiChartPaletteSemanticCriticalLight2="sapUiChartPaletteSemanticCriticalLight2",e.sapUiChartPaletteSemanticCriticalLight1="sapUiChartPaletteSemanticCriticalLight1",e.sapUiChartPaletteSemanticCritical="sapUiChartPaletteSemanticCritical",e.sapUiChartPaletteSemanticCriticalDark1="sapUiChartPaletteSemanticCriticalDark1",e.sapUiChartPaletteSemanticCriticalDark2="sapUiChartPaletteSemanticCriticalDark2",e.sapUiChartPaletteSemanticGoodLight3="sapUiChartPaletteSemanticGoodLight3",e.sapUiChartPaletteSemanticGoodLight2="sapUiChartPaletteSemanticGoodLight2",e.sapUiChartPaletteSemanticGoodLight1="sapUiChartPaletteSemanticGoodLight1",e.sapUiChartPaletteSemanticGood="sapUiChartPaletteSemanticGood",e.sapUiChartPaletteSemanticGoodDark1="sapUiChartPaletteSemanticGoodDark1",e.sapUiChartPaletteSemanticGoodDark2="sapUiChartPaletteSemanticGoodDark2",e.sapUiChartPaletteSemanticNeutralLight3="sapUiChartPaletteSemanticNeutralLight3",e.sapUiChartPaletteSemanticNeutralLight2="sapUiChartPaletteSemanticNeutralLight2",e.sapUiChartPaletteSemanticNeutralLight1="sapUiChartPaletteSemanticNeutralLight1",e.sapUiChartPaletteSemanticNeutral="sapUiChartPaletteSemanticNeutral",e.sapUiChartPaletteSemanticNeutralDark1="sapUiChartPaletteSemanticNeutralDark1",e.sapUiChartPaletteSemanticNeutralDark2="sapUiChartPaletteSemanticNeutralDark2",e.sapUiChartPaletteNoSemDiv1Dark2="sapUiChartPaletteNoSemDiv1Dark2",e.sapUiChartPaletteNoSemDiv1Dark1="sapUiChartPaletteNoSemDiv1Dark1",e.sapUiChartPaletteNoSemDiv1="sapUiChartPaletteNoSemDiv1",e.sapUiChartPaletteNoSemDiv1Light1="sapUiChartPaletteNoSemDiv1Light1",e.sapUiChartPaletteNoSemDiv1Light2="sapUiChartPaletteNoSemDiv1Light2",e.sapUiChartPaletteNoSemDiv1Light3="sapUiChartPaletteNoSemDiv1Light3",e.sapUiChartPaletteSequentialHue1Light3="sapUiChartPaletteSequentialHue1Light3",e.sapUiChartPaletteSequentialHue1Light2="sapUiChartPaletteSequentialHue1Light2",e.sapUiChartPaletteSequentialHue1Light1="sapUiChartPaletteSequentialHue1Light1",e.sapUiChartPaletteSequentialHue1="sapUiChartPaletteSequentialHue1",e.sapUiChartPaletteSequentialHue1Dark1="sapUiChartPaletteSequentialHue1Dark1",e.sapUiChartPaletteSequentialHue1Dark2="sapUiChartPaletteSequentialHue1Dark2",e.sapUiChartPaletteSequentialHue2Light3="sapUiChartPaletteSequentialHue2Light3",e.sapUiChartPaletteSequentialHue2Light2="sapUiChartPaletteSequentialHue2Light2",e.sapUiChartPaletteSequentialHue2Light1="sapUiChartPaletteSequentialHue2Light1",e.sapUiChartPaletteSequentialHue2="sapUiChartPaletteSequentialHue2",e.sapUiChartPaletteSequentialHue2Dark1="sapUiChartPaletteSequentialHue2Dark1",e.sapUiChartPaletteSequentialHue2Dark2="sapUiChartPaletteSequentialHue2Dark2",e.sapUiChartPaletteSequentialHue3Light3="sapUiChartPaletteSequentialHue3Light3",e.sapUiChartPaletteSequentialHue3Light2="sapUiChartPaletteSequentialHue3Light2",e.sapUiChartPaletteSequentialHue3Light1="sapUiChartPaletteSequentialHue3Light1",e.sapUiChartPaletteSequentialHue3="sapUiChartPaletteSequentialHue3",e.sapUiChartPaletteSequentialHue3Dark1="sapUiChartPaletteSequentialHue3Dark1",e.sapUiChartPaletteSequentialHue3Dark2="sapUiChartPaletteSequentialHue3Dark2",e.sapUiChartPaletteSequentialHue6Light3="sapUiChartPaletteSequentialHue6Light3",e.sapUiChartPaletteSequentialHue6Light2="sapUiChartPaletteSequentialHue6Light2",e.sapUiChartPaletteSequentialHue6Light1="sapUiChartPaletteSequentialHue6Light1",e.sapUiChartPaletteSequentialHue6="sapUiChartPaletteSequentialHue6",e.sapUiChartPaletteSequentialHue6Dark1="sapUiChartPaletteSequentialHue6Dark1",e.sapUiChartPaletteSequentialHue6Dark2="sapUiChartPaletteSequentialHue6Dark2",e.sapUiChartPaletteSequentialNeutralLight3="sapUiChartPaletteSequentialNeutralLight3",e.sapUiChartPaletteSequentialNeutralLight2="sapUiChartPaletteSequentialNeutralLight2",e.sapUiChartPaletteSequentialNeutralLight1="sapUiChartPaletteSequentialNeutralLight1",e.sapUiChartPaletteSequentialNeutral="sapUiChartPaletteSequentialNeutral",e.sapUiChartPaletteSequentialNeutralDark1="sapUiChartPaletteSequentialNeutralDark1",e.sapUiChartPaletteSequentialNeutralDark2="sapUiChartPaletteSequentialNeutralDark2",e.sapUiChoroplethRegionBG="sapUiChoroplethRegionBG",e.sapUiChartZeroAxisColor="sapUiChartZeroAxisColor",e.sapUiNegativeElement="sapUiNegativeElement",e.sapUiCriticalElement="sapUiCriticalElement",e.sapUiPositiveElement="sapUiPositiveElement",e.sapUiNeutralElement="sapUiNeutralElement",e))(qm||{}),zm=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(zm||{}),DA={error:"Error",warning:"Warning",info:"Information"},Ym=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(Ym||{}),Zm=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(Zm||{}),ey=(e=>(e.BuildingBlocks="BuildingBlocks",e))(ey||{}),ty={};Cp(ty,{AvatarShape:r(()=>Ay,"AvatarShape"),ButtonType:r(()=>ny,"ButtonType"),CardSettingsType:r(()=>ay,"CardSettingsType"),CardTemplateType:r(()=>oy,"CardTemplateType"),ChartCardType:r(()=>iy,"ChartCardType"),ChartType:r(()=>Py,"ChartType"),ContainerLayoutType:r(()=>Iy,"ContainerLayoutType"),CreateMode:r(()=>xy,"CreateMode"),DateRangeType:r(()=>fy,"DateRangeType"),DefaultContentView:r(()=>Ty,"DefaultContentView"),DefaultFilterMode:r(()=>Sy,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Ey,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>wA,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>UA,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>MA,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>$A,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>uy,"FilterPathType"),HAlign:r(()=>dy,"HAlign"),LinkListFlavorType:r(()=>py,"LinkListFlavorType"),ListFlavorType:r(()=>sy,"ListFlavorType"),ListTypeType:r(()=>ly,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>vy,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>ry,"MeasureAggregateValues"),PopinLayout:r(()=>hy,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>_A,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>kA,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>GA,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>HA,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>BA,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>Cy,"SectionPosition"),SortOrderType:r(()=>cy,"SortOrderType"),Strategy:r(()=>by,"Strategy"),TableColumnExtensionTypeV2:r(()=>yy,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>my,"TableTypeV2"),cardTemplateSettingsMap:r(()=>jA,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>RA,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>gy,"customColumnViewTypes")});var ny=(e=>(e.Accept="Accept",e.Attention="Attention",e.Back="Back",e.Critical="Critical",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Negative="Negative",e.Neutral="Neutral",e.Reject="Reject",e.Success="Success",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(ny||{}),iy=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(iy||{}),oy=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(oy||{}),RA={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},jA={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},ay=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(ay||{}),ry=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(ry||{}),sy=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(sy||{}),ly=(e=>(e.extended="extended",e.condensed="condensed",e))(ly||{}),cy=(e=>(e.ascending="ascending",e.descending="descending",e))(cy||{}),py=(e=>(e.standard="standard",e.carousel="carousel",e))(py||{}),fy=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(fy||{}),uy=(e=>(e.key="key",e.catgory="category",e))(uy||{}),dy=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(dy||{}),gy=(e=>(e.XML="XML",e))(gy||{}),my=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(my||{}),yy=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(yy||{}),hy=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(hy||{}),by=(e=>(e.extension="extension",e))(by||{}),Ty=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Ty||{}),Sy=(e=>(e.visual="visual",e.compact="compact",e))(Sy||{}),vy=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(vy||{}),Py=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(Py||{}),Ay=(e=>(e.Circle="Circle",e.Square="Square",e))(Ay||{}),Cy=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Cy||{}),Ey=(e=>(e.XML="XML",e))(Ey||{}),xy=(e=>(e.inline="inline",e))(xy||{}),wA="sap.suite.ui.generic.template",$A="sap.suite.ui.generic.template.ObjectPage",MA="sap.suite.ui.generic.template.ListReport",UA="sap.suite.ui.generic.template.AnalyticalListPage",kA="sap.ui.viewExtensions",_A="sap.ui.controllerExtensions",BA="sap.suite.ui.generic.template.ObjectPage.view.Details",HA="sap.suite.ui.generic.template.ListReport.view.ListReport",GA="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Iy=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Iy||{}),Oy={};Cp(Oy,{Availability:r(()=>_y,"Availability"),CustomSectionViewTypesV4:r(()=>$y,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>Ny,"DefaultPathType"),DesigntimeValues:r(()=>Ry,"DesigntimeValues"),FE_NAMESPACE_V4:r(()=>WA,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:r(()=>XA,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>QA,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>JA,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>KA,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>zA,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>By,"HorizontalAlign"),InitialLoadType:r(()=>Vy,"InitialLoadType"),Placement:r(()=>ky,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>YA,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>qA,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>jy,"SectionLayoutType"),SectionPosition:r(()=>wy,"SectionPosition"),SectionPositionV4:r(()=>Uy,"SectionPositionV4"),SelectType:r(()=>Dy,"SelectType"),SelectionMode:r(()=>Fy,"SelectionMode"),TableCreationModeType:r(()=>My,"TableCreationModeType"),TableTypeV4:r(()=>Ly,"TableTypeV4"),VariantManagementTypeListReport:r(()=>Gy,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>Hy,"VariantManagementTypeObjectPage")});var Fy=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(Fy||{}),Ly=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(Ly||{}),Vy=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(Vy||{}),Ny=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(Ny||{}),Dy=(e=>(e.single="single",e.multi="multi",e))(Dy||{}),Ry=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))(Ry||{}),jy=(e=>(e.Tabs="Tabs",e.Page="Page",e))(jy||{}),wy=(e=>(e.After="After",e.Before="Before",e))(wy||{}),$y=(e=>(e.XML="XML",e))($y||{}),My=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(My||{}),WA="sap.fe",QA="sap.fe.core.fpm",KA="sap.fe.templates.ObjectPage",JA="sap.fe.templates.ListReport",XA="sap.fe.templates.AnalyticalListPage",qA="XMLFragment",Uy=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(Uy||{}),zA="sap.f.routing.Router",YA="sap.f",ky=(e=>(e.After="After",e.Before="Before",e))(ky||{}),_y=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(_y||{}),By=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(By||{}),Hy=(e=>(e.None="None",e.Control="Control",e))(Hy||{}),Gy=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(Gy||{})});var zy=je(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.Features=rn.TemplateType=rn.PropertyMessageType=rn.logSeverityLabel=rn.LogSeverity=void 0;var Ky;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(Ky||(rn.LogSeverity=Ky={}));rn.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var Jy;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(Jy||(rn.PropertyMessageType=Jy={}));var Xy;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(Xy||(rn.TemplateType=Xy={}));var qy;(function(e){e.BuildingBlocks="BuildingBlocks"})(qy||(rn.Features=qy={}))});var xh=je((iR,Eh)=>{var Ip=Object.defineProperty,ZA=Object.getOwnPropertyDescriptor,eC=Object.getOwnPropertyNames,tC=Object.prototype.hasOwnProperty,nC=r((e,t)=>{for(var n in t)Ip(e,n,{get:t[n],enumerable:!0})},"G"),iC=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of eC(t))!tC.call(e,o)&&o!==n&&Ip(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=ZA(t,o))||i.enumerable});return e},"X"),oC=r(e=>iC(Ip({},"__esModule",{value:!0}),e),"H"),Yy={};nC(Yy,{AvatarShape:r(()=>Sh,"AvatarShape"),ButtonType:r(()=>Zy,"ButtonType"),CardSettingsType:r(()=>nh,"CardSettingsType"),CardTemplateType:r(()=>th,"CardTemplateType"),ChartCardType:r(()=>eh,"ChartCardType"),ChartType:r(()=>Th,"ChartType"),ContainerLayoutType:r(()=>Ch,"ContainerLayoutType"),CreateMode:r(()=>Ah,"CreateMode"),DateRangeType:r(()=>lh,"DateRangeType"),DefaultContentView:r(()=>yh,"DefaultContentView"),DefaultFilterMode:r(()=>hh,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Ph,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>sC,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>pC,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>cC,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>lC,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:r(()=>ch,"FilterPathType"),HAlign:r(()=>ph,"HAlign"),LinkListFlavorType:r(()=>sh,"LinkListFlavorType"),ListFlavorType:r(()=>oh,"ListFlavorType"),ListTypeType:r(()=>ah,"ListTypeType"),LoadDataOnAppLaunchSettings:r(()=>bh,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:r(()=>ih,"MeasureAggregateValues"),PopinLayout:r(()=>gh,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>uC,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>fC,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>mC,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>gC,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>dC,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>vh,"SectionPosition"),SortOrderType:r(()=>rh,"SortOrderType"),Strategy:r(()=>mh,"Strategy"),TableColumnExtensionTypeV2:r(()=>dh,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>uh,"TableTypeV2"),cardTemplateSettingsMap:r(()=>rC,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>aC,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>fh,"customColumnViewTypes")});Eh.exports=oC(Yy);var Zy=(e=>(e.Accept="Accept",e.Attention="Attention",e.Back="Back",e.Critical="Critical",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Negative="Negative",e.Neutral="Neutral",e.Reject="Reject",e.Success="Success",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(Zy||{}),eh=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(eh||{}),th=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(th||{}),aC={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},rC={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},nh=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(nh||{}),ih=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(ih||{}),oh=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(oh||{}),ah=(e=>(e.extended="extended",e.condensed="condensed",e))(ah||{}),rh=(e=>(e.ascending="ascending",e.descending="descending",e))(rh||{}),sh=(e=>(e.standard="standard",e.carousel="carousel",e))(sh||{}),lh=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(lh||{}),ch=(e=>(e.key="key",e.catgory="category",e))(ch||{}),ph=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(ph||{}),fh=(e=>(e.XML="XML",e))(fh||{}),uh=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(uh||{}),dh=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(dh||{}),gh=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(gh||{}),mh=(e=>(e.extension="extension",e))(mh||{}),yh=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(yh||{}),hh=(e=>(e.visual="visual",e.compact="compact",e))(hh||{}),bh=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(bh||{}),Th=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(Th||{}),Sh=(e=>(e.Circle="Circle",e.Square="Square",e))(Sh||{}),vh=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(vh||{}),Ph=(e=>(e.XML="XML",e))(Ph||{}),Ah=(e=>(e.inline="inline",e))(Ah||{}),sC="sap.suite.ui.generic.template",lC="sap.suite.ui.generic.template.ObjectPage",cC="sap.suite.ui.generic.template.ListReport",pC="sap.suite.ui.generic.template.AnalyticalListPage",fC="sap.ui.viewExtensions",uC="sap.ui.controllerExtensions",dC="sap.suite.ui.generic.template.ObjectPage.view.Details",gC="sap.suite.ui.generic.template.ListReport.view.ListReport",mC="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Ch=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Ch||{})});var Wh=je((aR,Gh)=>{var Op=Object.defineProperty,yC=Object.getOwnPropertyDescriptor,hC=Object.getOwnPropertyNames,bC=Object.prototype.hasOwnProperty,TC=r((e,t)=>{for(var n in t)Op(e,n,{get:t[n],enumerable:!0})},"O"),SC=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of hC(t))!bC.call(e,o)&&o!==n&&Op(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=yC(t,o))||i.enumerable});return e},"U"),vC=r(e=>SC(Op({},"__esModule",{value:!0}),e),"w"),Ih={};TC(Ih,{Availability:r(()=>kh,"Availability"),CustomSectionViewTypesV4:r(()=>wh,"CustomSectionViewTypesV4"),DefaultPathType:r(()=>Vh,"DefaultPathType"),DesigntimeValues:r(()=>Dh,"DesigntimeValues"),FE_NAMESPACE_V4:r(()=>PC,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:r(()=>xC,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:r(()=>AC,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:r(()=>EC,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:r(()=>CC,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:r(()=>OC,"FIORI_FCL_ROUTER_CLASS"),HorizontalAlign:r(()=>_h,"HorizontalAlign"),InitialLoadType:r(()=>Lh,"InitialLoadType"),Placement:r(()=>Uh,"Placement"),SAPUI5_DEPENDENCY_LIB_SAP_F:r(()=>FC,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:r(()=>IC,"SAPUI5_FRAGMENT_TYPE_V4"),SectionLayoutType:r(()=>Rh,"SectionLayoutType"),SectionPosition:r(()=>jh,"SectionPosition"),SectionPositionV4:r(()=>Mh,"SectionPositionV4"),SelectType:r(()=>Nh,"SelectType"),SelectionMode:r(()=>Oh,"SelectionMode"),TableCreationModeType:r(()=>$h,"TableCreationModeType"),TableTypeV4:r(()=>Fh,"TableTypeV4"),VariantManagementTypeListReport:r(()=>Hh,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:r(()=>Bh,"VariantManagementTypeObjectPage")});Gh.exports=vC(Ih);var Oh=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(Oh||{}),Fh=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e))(Fh||{}),Lh=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(Lh||{}),Vh=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(Vh||{}),Nh=(e=>(e.single="single",e.multi="multi",e))(Nh||{}),Dh=(e=>(e["not-adaptable-visibility"]="not-adaptable-visibility",e))(Dh||{}),Rh=(e=>(e.Tabs="Tabs",e.Page="Page",e))(Rh||{}),jh=(e=>(e.After="After",e.Before="Before",e))(jh||{}),wh=(e=>(e.XML="XML",e))(wh||{}),$h=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))($h||{}),PC="sap.fe",AC="sap.fe.core.fpm",CC="sap.fe.templates.ObjectPage",EC="sap.fe.templates.ListReport",xC="sap.fe.templates.AnalyticalListPage",IC="XMLFragment",Mh=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(Mh||{}),OC="sap.f.routing.Router",FC="sap.f",Uh=(e=>(e.After="After",e.Before="Before",e))(Uh||{}),kh=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(kh||{}),_h=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(_h||{}),Bh=(e=>(e.None="None",e.Control="Control",e))(Bh||{}),Hh=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(Hh||{})});var B=je(vt=>{"use strict";var Qh=vt&&vt.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:r(function(){return t[n]},"get")}),Object.defineProperty(e,i,o)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),LC=vt&&vt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Kh=vt&&vt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Qh(t,e,n)},Jh=vt&&vt.__importStar||function(){var e=r(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),o=0;o<i.length;o++)i[o]!=="default"&&Qh(n,t,i[o]);return LC(n,t),n}}();Object.defineProperty(vt,"__esModule",{value:!0});vt.v4=vt.v2=void 0;Kh(Qy(),vt);Kh(zy(),vt);vt.v2=Jh(xh());vt.v4=Jh(Wh())});var Qp=je((ER,lb)=>{"use strict";var XC=r(function(t){return qC(t)&&!zC(t)},"isMergeableObject");function qC(e){return!!e&&typeof e=="object"}r(qC,"isNonNullObject");function zC(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||eE(e)}r(zC,"isSpecial");var YC=typeof Symbol=="function"&&Symbol.for,ZC=YC?Symbol.for("react.element"):60103;function eE(e){return e.$$typeof===ZC}r(eE,"isReactElement");function tE(e){return Array.isArray(e)?[]:{}}r(tE,"emptyTarget");function Ka(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Jo(tE(e),e,t):e}r(Ka,"cloneUnlessOtherwiseSpecified");function nE(e,t,n){return e.concat(t).map(function(i){return Ka(i,n)})}r(nE,"defaultArrayMerge");function iE(e,t){if(!t.customMerge)return Jo;var n=t.customMerge(e);return typeof n=="function"?n:Jo}r(iE,"getMergeFunction");function oE(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}r(oE,"getEnumerableOwnPropertySymbols");function rb(e){return Object.keys(e).concat(oE(e))}r(rb,"getKeys");function sb(e,t){try{return t in e}catch{return!1}}r(sb,"propertyIsOnObject");function aE(e,t){return sb(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}r(aE,"propertyIsUnsafe");function rE(e,t,n){var i={};return n.isMergeableObject(e)&&rb(e).forEach(function(o){i[o]=Ka(e[o],n)}),rb(t).forEach(function(o){aE(e,o)||(sb(e,o)&&n.isMergeableObject(t[o])?i[o]=iE(o,n)(e[o],t[o],n):i[o]=Ka(t[o],n))}),i}r(rE,"mergeObject");function Jo(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||nE,n.isMergeableObject=n.isMergeableObject||XC,n.cloneUnlessOtherwiseSpecified=Ka;var i=Array.isArray(t),o=Array.isArray(e),a=i===o;return a?i?n.arrayMerge(e,t,n):rE(e,t,n):Ka(t,n)}r(Jo,"deepmerge");Jo.all=r(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,o){return Jo(i,o,n)},{})},"deepmergeAll");var sE=Jo;lb.exports=sE});var Rs=je(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.mergeAnnotations=Fe.addGetByValue=Fe.createIndexedFind=Fe.lazy=Fe.Decimal=Fe.Double=Fe.isComplexTypeDefinition=Fe.unalias=Fe.alias=Fe.substringBeforeLast=Fe.substringBeforeFirst=Fe.splitAtLast=Fe.splitAtFirst=Fe.defaultReferences=Fe.TermToTypes=Fe.EnumIsFlag=void 0;var lE=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Fe,"EnumIsFlag",{enumerable:!0,get:r(function(){return lE.EnumIsFlag},"get")});var cE=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Fe,"TermToTypes",{enumerable:!0,get:r(function(){return cE.TermToTypes},"get")});var pE=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Fe,"defaultReferences",{enumerable:!0,get:r(function(){return pE.VocabularyReferences},"get")});function cb(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}r(cb,"splitAt");function pb(e,t){return t<0?e:e.substring(0,t)}r(pb,"substringAt");function Ds(e,t){return cb(e,e.indexOf(t))}r(Ds,"splitAtFirst");Fe.splitAtFirst=Ds;function fb(e,t){return cb(e,e.lastIndexOf(t))}r(fb,"splitAtLast");Fe.splitAtLast=fb;function fE(e,t){return pb(e,e.indexOf(t))}r(fE,"substringBeforeFirst");Fe.substringBeforeFirst=fE;function uE(e,t){return pb(e,e.lastIndexOf(t))}r(uE,"substringBeforeLast");Fe.substringBeforeLast=uE;function ub(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=fb(t,"."),o=e.reverseReferenceMap[n];if(o)return`${o.alias}.${i}`;if(t.includes("@")){let[a,s]=Ds(t,"@");return`${a}@${ub(e,s)}`}else return t}r(ub,"alias");Fe.alias=ub;function Kp(e,t,n){var i;let o=r(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(u=>[u.alias,u])));let[s,l]=Ds(a,".");if(!l||l.includes("."))return a;let c=s.startsWith("@"),p=c?s.substring(1):s,f=e.referenceMap[p];return f?c?`@${f.namespace}.${l}`:`${f.namespace}.${l}`:n&&!c?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,c]=Ds(s,"("),p=[o(l)];if(c){let f=c.slice(0,-1);p.push(`(${o(f)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}r(Kp,"unalias");Fe.unalias=Kp;function dE(e){return!!e&&e._type==="ComplexType"&&!!e.properties}r(dE,"isComplexTypeDefinition");Fe.isComplexTypeDefinition=dE;function gE(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(gE,"Double");Fe.Double=gE;function mE(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(mE,"Decimal");Fe.Decimal=mE;function yE(e,t,n){let i=Symbol("initial"),o=i;Object.defineProperty(e,t,{enumerable:!0,get(){return o===i&&(o=n()),o},set(a){o=a}})}r(yE,"lazy");Fe.lazy=yE;function db(e,t){let n=new Map;return r(function(o){let a=n.get(o);return(a==null?void 0:a[t])===o?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===o})},"find")}r(db,"createIndexedFind");Fe.createIndexedFind=db;function hE(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:db(e,t)});else throw new Error(`Property '${n}' already exists`);return e}r(hE,"addGetByValue");Fe.addGetByValue=hE;function bE(e,...t){return t.reduceRight((n,{name:i,annotationList:o})=>{var a;for(let{target:s,annotations:l}of o){let c=(a=Kp(e,s))!==null&&a!==void 0?a:s;n[c]||(n[c]=[]);let p=l.map(f=>{var u;return f.term=(u=Kp(e,f.term))!==null&&u!==void 0?u:f.term,f.fullyQualifiedName=f.qualifier?`${c}@${f.term}#${f.qualifier}`:`${c}@${f.term}`,f.__source=i,f}).filter(f=>!n[c].some(u=>u.term===f.term&&u.qualifier===f.qualifier));n[c].push(...p)}return n},{})}r(bE,"mergeAnnotations");Fe.mergeAnnotations=bE});var Ib=je($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.convert=void 0;var js=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),J=Rs(),bn=Symbol("Annotation Target");function ei(e,t){return e[e.length-1]!==t&&e.push(t),e}r(ei,"appendObjectPath");function Xt(e,t,n,i){var o,a,s,l,c;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((u,m)=>{if(m.includes("@")){let[b,S]=(0,J.splitAtFirst)(m,"@");u.push(b),u.push(`@${S}`)}else u.push(m);return u},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((o=e.getConvertedEntityContainer())===null||o===void 0?void 0:o.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[bn]!==void 0)t=t[bn];else if(t._type==="Property"){let u=(0,J.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(c=e.getConvertedEntityType(u))!==null&&c!==void 0?c:e.getConvertedComplexType(u)}let f=p.reduce((u,m)=>{var b,S,L,V,H;let ee=r(te=>(u.messages.push({message:te}),u.target=void 0,u),"error");if(u.target===void 0)return u;if(u.objectPath=ei(u.objectPath,u.target),m.startsWith("@")&&m!=="@$ui5.overload"){let[te,re]=e.splitTerm(m),X=(b=u.target.annotations[te.substring(1)])===null||b===void 0?void 0:b[re];return X!==void 0?(u.target=X,u):ee(`Annotation '${m.substring(1)}' not found on ${u.target._type} '${u.target.fullyQualifiedName}'`)}if(u.target.$target){let te;if(m==="$AnnotationPath"?te=u.target.value:m==="$Path"&&(te=u.target.path),te!==void 0){let re=Xt(e,u.target[bn],te);return re.objectPath.forEach(X=>{u.objectPath.includes(X)||(u.objectPath=ei(u.objectPath,X))}),u.target=re.target,u.objectPath=ei(u.objectPath,u.target),u}}switch((S=u.target)===null||S===void 0?void 0:S._type){case"Schema":break;case"EntityContainer":{let X=u.target;if(m===""||e.unalias(m)===X.fullyQualifiedName)return u;let oe=(V=(L=X.entitySets.by_name(m))!==null&&L!==void 0?L:X.singletons.by_name(m))!==null&&V!==void 0?V:X.actionImports.by_name(m);if(oe)return u.target=oe,u}break;case"EntitySet":case"Singleton":{let X=u.target;if(m===""||m==="$Type")return u.target=X.entityType,u;if(m==="$")return u;if(m==="$NavigationPropertyBinding"){let Pe=X.navigationPropertyBinding;return u.target=Pe,u}let oe=Xt(e,X.entityType,m);return u.target=oe.target,u.objectPath=oe.objectPath.reduce(ei,u.objectPath),u}case"EntityType":{let X=u.target;if(m===""||m==="$Type")return u;let oe=X.entityProperties.by_name(m);if(oe)return u.target=oe,u;let Pe=X.navigationProperties.by_name(m);if(Pe)return u.target=Pe,u;let P=(0,J.substringBeforeFirst)(e.unalias(m),"("),Lt=X.actions[P];if(Lt)return u.target=Lt,u}break;case"ActionImport":{let X=Xt(e,u.target.action,m);return u.target=X.target,u.objectPath=X.objectPath.reduce(ei,u.objectPath),u}case"Action":{let X=u.target;if(m===""||m==="@$ui5.overload"||m==="0")return u;if(m==="$Parameter"&&X.isBound)return u.target=X.parameters,u;let oe=(H=X.parameters[m])!==null&&H!==void 0?H:X.parameters.find(Pe=>Pe.name===m);if(oe)return u.target=oe,u;break}case"Property":{let oe=u.target.targetType;if(oe!==void 0){let Pe=oe.properties.by_name(m);if(Pe)return u.target=Pe,u;let P=oe.navigationProperties.by_name(m);if(P)return u.target=P,u}}break;case"ActionParameter":let te=u.target.typeReference;if(te!==void 0){let X=Xt(e,te,m);return u.target=X.target,u.objectPath=X.objectPath.reduce(ei,u.objectPath),u}break;case"NavigationProperty":let re=Xt(e,u.target.targetType,m);return u.target=re.target,u.objectPath=re.objectPath.reduce(ei,u.objectPath),u;default:if(m==="")return u;if(u.target[m])return u.target=u.target[m],u.objectPath=ei(u.objectPath,u.target),u}return ee(`Element '${m}' not found at ${u.target._type} '${u.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(f.messages.forEach(u=>e.logError(u.message)),!f.target)if(i){let u=bb(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
2
2
|
`+n+`
|
|
3
3
|
|
|
4
4
|
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
|
|
@@ -10,23 +10,23 @@ Hint: Check and correct the path values under the following structure in the met
|
|
|
10
10
|
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
|
|
11
11
|
|
|
12
12
|
<Annotation Term = `+p[0]+`>
|
|
13
|
-
<PropertyValue Path= `+p[1]+">");return f}r(
|
|
13
|
+
<PropertyValue Path= `+p[1]+">");return f}r(Xt,"resolveTarget");function TE(e){return e.includes("@")}r(TE,"isAnnotationPath");function gb(e,t,n,i,o){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[bn]:i};return(0,J.lazy)(a,"$target",()=>Xt(e,i,t.PropertyPath,o).target),a}r(gb,"mapPropertyPath");function mb(e,t,n,i,o){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[bn]:i};return(0,J.lazy)(a,"$target",()=>Xt(e,i,a.value,o).target),a}r(mb,"mapAnnotationPath");function yb(e,t,n,i,o){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[bn]:i};return(0,J.lazy)(s,"$target",()=>Xt(e,i,t.NavigationPropertyPath,o).target),s}r(yb,"mapNavigationPropertyPath");function SE(e,t,n,i,o){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[bn]:i};return(0,J.lazy)(a,"$target",()=>Xt(e,i,t.Path,o).target),a}r(SE,"mapPath");function hb(e,t,n,i,o,a,s){if(a!==void 0)switch(a.type){case"String":return a.String;case"Int":return a.Int;case"Bool":return a.Bool;case"Double":return(0,J.Double)(a.Double);case"Decimal":return(0,J.Decimal)(a.Decimal);case"Date":return a.Date;case"EnumMember":let l=a.EnumMember.split(" ").map(c=>{var p;let f=(p=e.unalias(c))!==null&&p!==void 0?p:"";return(0,J.alias)(js.VocabularyReferences,f)});return l[0]!==void 0&&J.EnumIsFlag[(0,J.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return gb(e,a,s,t,n);case"NavigationPropertyPath":return yb(e,a,s,t,n);case"AnnotationPath":return mb(e,a,s,t,n);case"Path":return TE(a.Path)?Xt(e,t,e.unalias(a.Path),n).target:SE(e,a,s,t,n);case"Record":return qp(e,n,t,i,o,a.Record,s);case"Collection":return Tb(e,t,n,i,o,a.Collection,s);case"Apply":case"Null":case"Not":case"Eq":case"Ne":case"Gt":case"Ge":case"Lt":case"Le":case"If":case"And":case"Or":default:return a}}r(hb,"parseValue");function bb(e,t,n,i){let o=J.TermToTypes[t];return i&&(t=`${(0,J.substringBeforeLast)(t,".")}.${i}`,o=J.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${o}.
|
|
14
14
|
Hint: If possible, try to maintain the Type property for each Record.
|
|
15
15
|
<Annotations Target="${n}">
|
|
16
16
|
<Annotation Term="${t}">
|
|
17
17
|
<Record>...</Record>
|
|
18
18
|
</Annotation>
|
|
19
|
-
</Annotations>`),o}r(Kh,"inferTypeFromTerm");function VC(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}r(VC,"isDataFieldWithForAction");function LC(e,t,n,i,o){let a;return!o.type&&t?a=Kh(e,t,n.fullyQualifiedName,i):a=e.unalias(o.type),a}r(LC,"parseRecordType");function Dp(e,t,n,i,o,a,s){let l={$Type:LC(e,t,n,i,a),fullyQualifiedName:s,[mn]:n,__source:o};for(let c of a.propertyValues)(0,K.lazy)(l,c.name,()=>Qh(e,n,t,c.name,o,c.value,`${s}/${c.name}`));return(0,K.lazy)(l,"annotations",Xh(e,a,l)),VC(l)&&(0,K.lazy)(l,"ActionTarget",()=>{var c,p;let f=e.unalias((c=l.Action)===null||c===void 0?void 0:c.toString()),u=n.actions[f];return u||(u=(p=e.getConvertedActionImport(f))===null||p===void 0?void 0:p.action),u||(u=e.getConvertedAction(f),u!=null&&u.isBound||(u=void 0)),u||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${f}')`),u}),l}r(Dp,"parseRecord");function DC(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}r(DC,"getOrInferCollectionType");function Jh(e,t,n,i,o,a,s){switch(DC(a)){case"PropertyPath":return a.map((c,p)=>Hh(e,c,`${s}/${p}`,t,n));case"Path":return a.map(c=>Jt(e,t,c.Path,n).target);case"AnnotationPath":return a.map((c,p)=>Gh(e,c,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((c,p)=>Wh(e,c,`${s}/${p}`,t,n));case"Record":return a.map((c,p)=>Dp(e,n,t,i,o,c,`${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(c=>c);case"String":return a.map(c=>typeof c=="string"||c===void 0?c:c.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}r(Jh,"parseCollection");function jC(e){return!!e.targetTypeName}r(jC,"isV4NavigationProperty");function RC(e,t,n){var i;let o;if(n.record)o=Dp(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)o=Qh(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)o=Jh(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof o){case"string":o=new String(o);break;case"boolean":o=new Boolean(o);break;case"number":o=new Number(o);break;default:break}o.fullyQualifiedName=n.fullyQualifiedName,o[mn]=t;let[a,s]=e.splitTerm(n.term);o.term=e.unalias(`${a}.${s}`,Ps.VocabularyReferences),o.qualifier=n.qualifier,o.__source=n.__source;try{(0,K.lazy)(o,"annotations",Xh(e,n,o))}catch{}return o}r(RC,"convertAnnotation");var jp=class jp{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(o=>({name:o,annotationList:this.rawSchema.annotations[o]}));this.annotationsByTarget=(0,K.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,zh)}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((o,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&o.push(s),o},[]);return(0,K.addGetByValue)(i,"name"),(0,K.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 o=this.convertedElements.get(t);if(o===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(o=i.apply(void 0,[this,a]),this.convertedElements.set(t,o))}return o}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,K.alias)(Ps.VocabularyReferences,t);return(0,K.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,K.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};r(jp,"Converter");var Vp=jp;function wa(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}r(wa,"resolveEntityType");function qh(e,t){return()=>Object.keys(t).reduce((n,i)=>{let o=t[i];return(0,K.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(o))!==null&&a!==void 0?a:e.getConvertedSingleton(o)}),n},{})}r(qh,"resolveNavigationPropertyBindings");function Xn(e,t){let n=t.annotations;return()=>As(e,t,n??e.getAnnotations(t.fullyQualifiedName))}r(Xn,"resolveAnnotations");function Xh(e,t,n){return()=>{let i=n.fullyQualifiedName,o;return t.annotations&&t.annotations.length>0?o=t.annotations:o=e.getAnnotations(i),o==null||o.forEach(a=>{a.target=i,a.__source=n.__source,a[mn]=n[mn],a.fullyQualifiedName=`${i}@${a.term}`}),As(e,n,o??[])}}r(Xh,"resolveAnnotationsOnAnnotation");function As(e,t,n){return n.reduce((i,o)=>{let[a,s]=e.splitTerm(o.term),l=`${s}${o.qualifier?"#"+o.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,K.lazy)(i[a],l,()=>e.getConvertedElement(o.fullyQualifiedName,o,(c,p)=>RC(c,t,p))),i},{})}r(As,"createAnnotationsObject");function zh(e,t){let n=t;return(0,K.lazy)(n,"annotations",Xn(e,t)),(0,K.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,Zh)),(0,K.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,Yh)),(0,K.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,tb)),n}r(zh,"convertEntityContainer");function Yh(e,t){let n=t;(0,K.lazy)(n,"entityType",wa(e,t.entityTypeName)),(0,K.lazy)(n,"annotations",Xn(e,n));let i=t.navigationPropertyBinding;return(0,K.lazy)(n,"navigationPropertyBinding",qh(e,i)),n}r(Yh,"convertSingleton");function Zh(e,t){let n=t;(0,K.lazy)(n,"entityType",wa(e,t.entityTypeName)),(0,K.lazy)(n,"annotations",Xn(e,n));let i=t.navigationPropertyBinding;return(0,K.lazy)(n,"navigationPropertyBinding",qh(e,i)),n}r(Zh,"convertEntitySet");function $C(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,K.lazy)(n,"annotations",Xn(e,t)),(0,K.lazy)(n,"keys",e.convert(t.keys,Lp)),(0,K.lazy)(n,"entityProperties",e.convert(t.entityProperties,Lp)),(0,K.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,eb)),(0,K.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,o)=>{let a=`${e.rawSchema.namespace}.${o.name}`;return i[a]=e.getConvertedAction(o.fullyQualifiedName),i},{})),n.resolvePath=(i,o)=>{let a=Jt(e,t,i);return o?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}r($C,"convertEntityType");function Lp(e,t){let n=t;return(0,K.lazy)(n,"annotations",Xn(e,t)),(0,K.lazy)(n,"targetType",()=>{var i;let o=t.type,a=o.startsWith("Collection")?o.substring(11,o.length-1):o;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}r(Lp,"convertProperty");function eb(e,t){var n,i,o;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!jC(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=(o=s==null?void 0:s.type)!==null&&o!==void 0?o:""}return(0,K.lazy)(a,"targetType",wa(e,t.targetTypeName)),(0,K.lazy)(a,"annotations",Xn(e,t)),a}r(eb,"convertNavigationProperty");function tb(e,t){let n=t;return(0,K.lazy)(n,"annotations",Xn(e,t)),(0,K.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(o=>!o.isBound&&o.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}r(tb,"convertActionImport");function wC(e,t){let n=t;return n.sourceType&&(0,K.lazy)(n,"sourceEntityType",wa(e,t.sourceType)),n.returnType&&(0,K.lazy)(n,"returnEntityType",wa(e,t.returnType)),(0,K.lazy)(n,"parameters",e.convert(t.parameters,MC)),(0,K.lazy)(n,"annotations",()=>{let i=(0,K.substringBeforeFirst)(t.fullyQualifiedName,"("),o=t.fullyQualifiedName,a=e.getAnnotations(o),s=e.getAnnotations(i);for(let l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return As(e,t,a)}),n}r(wC,"convertAction");function MC(e,t){let n=t;return(0,K.lazy)(n,"typeReference",()=>{var i,o;return(o=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&o!==void 0?o:e.getConvertedTypeDefinition(t.type)}),(0,K.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),o=t.fullyQualifiedName,a=e.getAnnotations(o),s=e.getAnnotations(i);for(let l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return As(e,t,a)}),n}r(MC,"convertActionParameter");function UC(e,t){let n=t;return(0,K.lazy)(n,"properties",e.convert(t.properties,Lp)),(0,K.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,eb)),(0,K.lazy)(n,"annotations",Xn(e,t)),n}r(UC,"convertComplexType");function kC(e,t){let n=t;return(0,K.lazy)(n,"annotations",Xn(e,t)),n}r(kC,"convertTypeDefinition");function _C(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Ps.VocabularyReferences,diagnostics:[]},n=new Vp(e,t);return(0,K.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,zh)),(0,K.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,Zh)),(0,K.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,Yh)),(0,K.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,$C)),(0,K.lazy)(t,"actions",n.convert(n.rawSchema.actions,wC)),(0,K.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,UC)),(0,K.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,tb)),(0,K.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,kC)),t.resolvePath=r(function(o){let a=Jt(n,void 0,o);return a.target&&qn(a.objectPath,a.target),a},"resolvePath"),t}r(_C,"convert");Cs.convert=_C});var rb=Re(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.revertTermToGenericType=void 0;var Rp=Ss();function BC(e,t){var n,i,o,a,s,l,c;let p;if(Array.isArray(t)){let f=t[0],u=!1;if(f&&typeof f=="string"){let m=f.valueOf().split(".");m.length>1&&e.find(b=>b.alias===m[0])&&(u=Rp.EnumIsFlag[(0,Rp.substringBeforeFirst)(f,"/")])}u?p={type:"EnumMember",EnumMember:t.map(m=>m.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(m=>Es(e,m))}}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(!((o=t.isString)===null||o===void 0)&&o.call(t)){let f=t.valueOf().split(".");f.length>1&&e.find(u=>u.alias===f[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()}:!((c=t.isBoolean)===null||c===void 0)&&c.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:Es(e,t)});return p}r(BC,"revertObjectToRawType");function ib(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let o=t.toString().split(".");o.length>1&&e.find(a=>a.alias===o[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=BC(e,t);break}return n}r(ib,"revertValueToRawType");var HC=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function ob(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(o=>{let a=ab(e,t[i][o]);if(!a.term){let s=(0,Rp.unalias)(e,`${i}.${o}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}r(ob,"revertAnnotationsToRawType");function Es(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(HC.indexOf(i)===-1){let o=t[i];n.propertyValues.push({name:i,value:ib(e,o)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],ob(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}}r(Es,"revertCollectionItemToRawType");function ab(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=[],ob(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Es(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Es(e,t)}:{...n,value:ib(e,t)}}r(ab,"revertTermToGenericType");xs.revertTermToGenericType=ab});var sb=Re(zn=>{"use strict";var GC=zn&&zn.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:r(function(){return t[n]},"get")}),Object.defineProperty(e,i,o)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),$p=zn&&zn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&GC(t,e,n)};Object.defineProperty(zn,"__esModule",{value:!0});$p(nb(),zn);$p(Ss(),zn);$p(rb(),zn)});var _p=Re(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.MergedRawMetadata=di.RawMetadataInstance=di.ensureArray=void 0;function WC(e){return e==null?[]:Array.isArray(e)?e:[e]}r(WC,"ensureArray");di.ensureArray=WC;var Up=class Up{constructor(t,n,i,o){this.identification=t,this.references=o,this.version=n,this.schema=i}};r(Up,"RawMetadataInstance");var wp=Up;di.RawMetadataInstance=wp;var kp=class kp{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))}};r(kp,"MergedRawMetadata");var Mp=kp;di.MergedRawMetadata=Mp});var lb=Re(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.merge=void 0;var QC=_p();function KC(...e){let t=new QC.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}r(KC,"merge");Is.merge=KC});var cb=Re(Os=>{(function(e){e.parser=function(h,y){return new n(h,y)},e.SAXParser=n,e.SAXStream=p,e.createStream=c,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(h,y){if(!(this instanceof n))return new n(h,y);var D=this;o(D),D.q=D.c="",D.bufferCheckPosition=e.MAX_BUFFER_LENGTH,D.opt=y||{},D.opt.lowercase=D.opt.lowercase||D.opt.lowercasetags,D.looseCase=D.opt.lowercase?"toLowerCase":"toUpperCase",D.tags=[],D.closed=D.closedRoot=D.sawRoot=!1,D.tag=D.error=null,D.strict=!!h,D.noscript=!!(h||D.opt.noscript),D.state=P.BEGIN,D.strictEntities=D.opt.strictEntities,D.ENTITIES=D.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),D.attribList=[],D.opt.xmlns&&(D.ns=Object.create(S)),D.opt.unquotedAttributeValues===void 0&&(D.opt.unquotedAttributeValues=!h),D.trackPosition=D.opt.position!==!1,D.trackPosition&&(D.position=D.line=D.column=0),Yt(D,"onready")}r(n,"SAXParser"),Object.create||(Object.create=function(h){function y(){}r(y,"F"),y.prototype=h;var D=new y;return D}),Object.keys||(Object.keys=function(h){var y=[];for(var D in h)h.hasOwnProperty(D)&&y.push(D);return y});function i(h){for(var y=Math.max(e.MAX_BUFFER_LENGTH,10),D=0,A=0,Te=t.length;A<Te;A++){var Ye=h[t[A]].length;if(Ye>y)switch(t[A]){case"textNode":ui(h);break;case"cdata":Me(h,"oncdata",h.cdata),h.cdata="";break;case"script":Me(h,"onscript",h.script),h.script="";break;default:Rt(h,"Max buffer length exceeded: "+t[A])}D=Math.max(D,Ye)}var Ge=e.MAX_BUFFER_LENGTH-D;h.bufferCheckPosition=Ge+h.position}r(i,"checkBufferLength");function o(h){for(var y=0,D=t.length;y<D;y++)h[t[y]]=""}r(o,"clearBuffers");function a(h){ui(h),h.cdata!==""&&(Me(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(Me(h,"onscript",h.script),h.script="")}r(a,"flushBuffers"),n.prototype={end:r(function(){Zt(this)},"end"),write:qe,resume:r(function(){return this.error=null,this},"resume"),close:r(function(){return this.write(null)},"close"),flush:r(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=r(function(){},"Stream")}s||(s=r(function(){},"Stream"));var l=e.EVENTS.filter(function(h){return h!=="error"&&h!=="end"});function c(h,y){return new p(h,y)}r(c,"createStream");function p(h,y){if(!(this instanceof p))return new p(h,y);s.apply(this),this._parser=new n(h,y),this.writable=!0,this.readable=!0;var D=this;this._parser.onend=function(){D.emit("end")},this._parser.onerror=function(A){D.emit("error",A),D._parser.error=null},this._decoder=null,l.forEach(function(A){Object.defineProperty(D,"on"+A,{get:r(function(){return D._parser["on"+A]},"get"),set:r(function(Te){if(!Te)return D.removeAllListeners(A),D._parser["on"+A]=Te,Te;D.on(A,Te)},"set"),enumerable:!0,configurable:!1})})}r(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(h){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(h)){if(!this._decoder){var y=require("string_decoder").StringDecoder;this._decoder=new y("utf8")}h=this._decoder.write(h)}return this._parser.write(h.toString()),this.emit("data",h),!0},p.prototype.end=function(h){return h&&h.length&&this.write(h),this._parser.end(),!0},p.prototype.on=function(h,y){var D=this;return!D._parser["on"+h]&&l.indexOf(h)!==-1&&(D._parser["on"+h]=function(){var A=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);A.splice(0,0,h),D.emit.apply(D,A)}),s.prototype.on.call(D,h,y)};var f="[CDATA[",u="DOCTYPE",m="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",S={xml:m,xmlns:b},N=/[:_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]/,L=/[:_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-]/,z=/[#:_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]/,ne=/[#:_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 ie(h){return h===" "||h===`
|
|
20
|
-
`||h==="\r"||h===" "}r(
|
|
19
|
+
</Annotations>`),o}r(bb,"inferTypeFromTerm");function vE(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}r(vE,"isDataFieldWithForAction");function PE(e,t,n,i,o){let a;return!o.type&&t?a=bb(e,t,n.fullyQualifiedName,i):a=e.unalias(o.type),a}r(PE,"parseRecordType");function qp(e,t,n,i,o,a,s){let l={$Type:PE(e,t,n,i,a),fullyQualifiedName:s,[bn]:n,__source:o};for(let c of a.propertyValues)(0,J.lazy)(l,c.name,()=>hb(e,n,t,c.name,o,c.value,`${s}/${c.name}`));return(0,J.lazy)(l,"annotations",vb(e,a,l)),vE(l)&&(0,J.lazy)(l,"ActionTarget",()=>{var c,p;let f=e.unalias((c=l.Action)===null||c===void 0?void 0:c.toString()),u=n.actions[f];return u||(u=(p=e.getConvertedActionImport(f))===null||p===void 0?void 0:p.action),u||(u=e.getConvertedAction(f),u!=null&&u.isBound||(u=void 0)),u||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${f}')`),u}),l}r(qp,"parseRecord");function AE(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}r(AE,"getOrInferCollectionType");function Tb(e,t,n,i,o,a,s){switch(AE(a)){case"PropertyPath":return a.map((c,p)=>gb(e,c,`${s}/${p}`,t,n));case"Path":return a.map(c=>Xt(e,t,c.Path,n).target);case"AnnotationPath":return a.map((c,p)=>mb(e,c,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((c,p)=>yb(e,c,`${s}/${p}`,t,n));case"Record":return a.map((c,p)=>qp(e,n,t,i,o,c,`${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(c=>c);case"String":return a.map(c=>typeof c=="string"||c===void 0?c:c.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}r(Tb,"parseCollection");function CE(e){return!!e.targetTypeName}r(CE,"isV4NavigationProperty");function EE(e,t,n){var i;let o;if(n.record)o=qp(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)o=hb(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)o=Tb(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof o){case"string":o=new String(o);break;case"boolean":o=new Boolean(o);break;case"number":o=new Number(o);break;default:break}o.fullyQualifiedName=n.fullyQualifiedName,o[bn]=t;let[a,s]=e.splitTerm(n.term);o.term=e.unalias(`${a}.${s}`,js.VocabularyReferences),o.qualifier=n.qualifier,o.__source=n.__source;try{(0,J.lazy)(o,"annotations",vb(e,n,o))}catch{}return o}r(EE,"convertAnnotation");var zp=class zp{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(o=>({name:o,annotationList:this.rawSchema.annotations[o]}));this.annotationsByTarget=(0,J.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,Pb)}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((o,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&o.push(s),o},[]);return(0,J.addGetByValue)(i,"name"),(0,J.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 o=this.convertedElements.get(t);if(o===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(o=i.apply(void 0,[this,a]),this.convertedElements.set(t,o))}return o}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,J.alias)(js.VocabularyReferences,t);return(0,J.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,J.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};r(zp,"Converter");var Jp=zp;function Ja(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}r(Ja,"resolveEntityType");function Sb(e,t){return()=>Object.keys(t).reduce((n,i)=>{let o=t[i];return(0,J.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(o))!==null&&a!==void 0?a:e.getConvertedSingleton(o)}),n},{})}r(Sb,"resolveNavigationPropertyBindings");function ti(e,t){let n=t.annotations;return()=>ws(e,t,n??e.getAnnotations(t.fullyQualifiedName))}r(ti,"resolveAnnotations");function vb(e,t,n){return()=>{let i=n.fullyQualifiedName,o;return t.annotations&&t.annotations.length>0?o=t.annotations:o=e.getAnnotations(i),o==null||o.forEach(a=>{a.target=i,a.__source=n.__source,a[bn]=n[bn],a.fullyQualifiedName=`${i}@${a.term}`}),ws(e,n,o??[])}}r(vb,"resolveAnnotationsOnAnnotation");function ws(e,t,n){return n.reduce((i,o)=>{let[a,s]=e.splitTerm(o.term),l=`${s}${o.qualifier?"#"+o.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,J.lazy)(i[a],l,()=>e.getConvertedElement(o.fullyQualifiedName,o,(c,p)=>EE(c,t,p))),i},{})}r(ws,"createAnnotationsObject");function Pb(e,t){let n=t;return(0,J.lazy)(n,"annotations",ti(e,t)),(0,J.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,Cb)),(0,J.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,Ab)),(0,J.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,xb)),n}r(Pb,"convertEntityContainer");function Ab(e,t){let n=t;(0,J.lazy)(n,"entityType",Ja(e,t.entityTypeName)),(0,J.lazy)(n,"annotations",ti(e,n));let i=t.navigationPropertyBinding;return(0,J.lazy)(n,"navigationPropertyBinding",Sb(e,i)),n}r(Ab,"convertSingleton");function Cb(e,t){let n=t;(0,J.lazy)(n,"entityType",Ja(e,t.entityTypeName)),(0,J.lazy)(n,"annotations",ti(e,n));let i=t.navigationPropertyBinding;return(0,J.lazy)(n,"navigationPropertyBinding",Sb(e,i)),n}r(Cb,"convertEntitySet");function xE(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,J.lazy)(n,"annotations",ti(e,t)),(0,J.lazy)(n,"keys",e.convert(t.keys,Xp)),(0,J.lazy)(n,"entityProperties",e.convert(t.entityProperties,Xp)),(0,J.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Eb)),(0,J.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,o)=>{let a=`${e.rawSchema.namespace}.${o.name}`;return i[a]=e.getConvertedAction(o.fullyQualifiedName),i},{})),n.resolvePath=(i,o)=>{let a=Xt(e,t,i);return o?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}r(xE,"convertEntityType");function Xp(e,t){let n=t;return(0,J.lazy)(n,"annotations",ti(e,t)),(0,J.lazy)(n,"targetType",()=>{var i;let o=t.type,a=o.startsWith("Collection")?o.substring(11,o.length-1):o;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}r(Xp,"convertProperty");function Eb(e,t){var n,i,o;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!CE(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=(o=s==null?void 0:s.type)!==null&&o!==void 0?o:""}return(0,J.lazy)(a,"targetType",Ja(e,t.targetTypeName)),(0,J.lazy)(a,"annotations",ti(e,t)),a}r(Eb,"convertNavigationProperty");function xb(e,t){let n=t;return(0,J.lazy)(n,"annotations",ti(e,t)),(0,J.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(o=>!o.isBound&&o.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}r(xb,"convertActionImport");function IE(e,t){let n=t;return n.sourceType&&(0,J.lazy)(n,"sourceEntityType",Ja(e,t.sourceType)),n.returnType&&(0,J.lazy)(n,"returnEntityType",Ja(e,t.returnType)),(0,J.lazy)(n,"parameters",e.convert(t.parameters,OE)),(0,J.lazy)(n,"annotations",()=>{let i=(0,J.substringBeforeFirst)(t.fullyQualifiedName,"("),o=t.fullyQualifiedName,a=e.getAnnotations(o),s=e.getAnnotations(i);for(let l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return ws(e,t,a)}),n}r(IE,"convertAction");function OE(e,t){let n=t;return(0,J.lazy)(n,"typeReference",()=>{var i,o;return(o=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&o!==void 0?o:e.getConvertedTypeDefinition(t.type)}),(0,J.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),o=t.fullyQualifiedName,a=e.getAnnotations(o),s=e.getAnnotations(i);for(let l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return ws(e,t,a)}),n}r(OE,"convertActionParameter");function FE(e,t){let n=t;return(0,J.lazy)(n,"properties",e.convert(t.properties,Xp)),(0,J.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,Eb)),(0,J.lazy)(n,"annotations",ti(e,t)),n}r(FE,"convertComplexType");function LE(e,t){let n=t;return(0,J.lazy)(n,"annotations",ti(e,t)),n}r(LE,"convertTypeDefinition");function VE(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:js.VocabularyReferences,diagnostics:[]},n=new Jp(e,t);return(0,J.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,Pb)),(0,J.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,Cb)),(0,J.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,Ab)),(0,J.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,xE)),(0,J.lazy)(t,"actions",n.convert(n.rawSchema.actions,IE)),(0,J.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,FE)),(0,J.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,xb)),(0,J.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,LE)),t.resolvePath=r(function(o){let a=Xt(n,void 0,o);return a.target&&ei(a.objectPath,a.target),a},"resolvePath"),t}r(VE,"convert");$s.convert=VE});var Vb=je(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.revertTermToGenericType=void 0;var Yp=Rs();function NE(e,t){var n,i,o,a,s,l,c;let p;if(Array.isArray(t)){let f=t[0],u=!1;if(f&&typeof f=="string"){let m=f.valueOf().split(".");m.length>1&&e.find(b=>b.alias===m[0])&&(u=Yp.EnumIsFlag[(0,Yp.substringBeforeFirst)(f,"/")])}u?p={type:"EnumMember",EnumMember:t.map(m=>m.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(m=>Ms(e,m))}}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(!((o=t.isString)===null||o===void 0)&&o.call(t)){let f=t.valueOf().split(".");f.length>1&&e.find(u=>u.alias===f[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()}:!((c=t.isBoolean)===null||c===void 0)&&c.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:Ms(e,t)});return p}r(NE,"revertObjectToRawType");function Ob(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let o=t.toString().split(".");o.length>1&&e.find(a=>a.alias===o[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=NE(e,t);break}return n}r(Ob,"revertValueToRawType");var DE=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function Fb(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(o=>{let a=Lb(e,t[i][o]);if(!a.term){let s=(0,Yp.unalias)(e,`${i}.${o}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}r(Fb,"revertAnnotationsToRawType");function Ms(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(DE.indexOf(i)===-1){let o=t[i];n.propertyValues.push({name:i,value:Ob(e,o)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],Fb(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}}r(Ms,"revertCollectionItemToRawType");function Lb(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=[],Fb(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Ms(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Ms(e,t)}:{...n,value:Ob(e,t)}}r(Lb,"revertTermToGenericType");Us.revertTermToGenericType=Lb});var Nb=je(ni=>{"use strict";var RE=ni&&ni.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:r(function(){return t[n]},"get")}),Object.defineProperty(e,i,o)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),Zp=ni&&ni.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&RE(t,e,n)};Object.defineProperty(ni,"__esModule",{value:!0});Zp(Ib(),ni);Zp(Rs(),ni);Zp(Vb(),ni)});var af=je(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.MergedRawMetadata=Si.RawMetadataInstance=Si.ensureArray=void 0;function jE(e){return e==null?[]:Array.isArray(e)?e:[e]}r(jE,"ensureArray");Si.ensureArray=jE;var nf=class nf{constructor(t,n,i,o){this.identification=t,this.references=o,this.version=n,this.schema=i}};r(nf,"RawMetadataInstance");var ef=nf;Si.RawMetadataInstance=ef;var of=class of{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))}};r(of,"MergedRawMetadata");var tf=of;Si.MergedRawMetadata=tf});var Db=je(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.merge=void 0;var wE=af();function $E(...e){let t=new wE.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}r($E,"merge");ks.merge=$E});var Rb=je(_s=>{(function(e){e.parser=function(h,y){return new n(h,y)},e.SAXParser=n,e.SAXStream=p,e.createStream=c,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(h,y){if(!(this instanceof n))return new n(h,y);var D=this;o(D),D.q=D.c="",D.bufferCheckPosition=e.MAX_BUFFER_LENGTH,D.opt=y||{},D.opt.lowercase=D.opt.lowercase||D.opt.lowercasetags,D.looseCase=D.opt.lowercase?"toLowerCase":"toUpperCase",D.tags=[],D.closed=D.closedRoot=D.sawRoot=!1,D.tag=D.error=null,D.strict=!!h,D.noscript=!!(h||D.opt.noscript),D.state=P.BEGIN,D.strictEntities=D.opt.strictEntities,D.ENTITIES=D.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),D.attribList=[],D.opt.xmlns&&(D.ns=Object.create(S)),D.opt.unquotedAttributeValues===void 0&&(D.opt.unquotedAttributeValues=!h),D.trackPosition=D.opt.position!==!1,D.trackPosition&&(D.position=D.line=D.column=0),nn(D,"onready")}r(n,"SAXParser"),Object.create||(Object.create=function(h){function y(){}r(y,"F"),y.prototype=h;var D=new y;return D}),Object.keys||(Object.keys=function(h){var y=[];for(var D in h)h.hasOwnProperty(D)&&y.push(D);return y});function i(h){for(var y=Math.max(e.MAX_BUFFER_LENGTH,10),D=0,A=0,Te=t.length;A<Te;A++){var Ye=h[t[A]].length;if(Ye>y)switch(t[A]){case"textNode":Ti(h);break;case"cdata":Me(h,"oncdata",h.cdata),h.cdata="";break;case"script":Me(h,"onscript",h.script),h.script="";break;default:wt(h,"Max buffer length exceeded: "+t[A])}D=Math.max(D,Ye)}var Ge=e.MAX_BUFFER_LENGTH-D;h.bufferCheckPosition=Ge+h.position}r(i,"checkBufferLength");function o(h){for(var y=0,D=t.length;y<D;y++)h[t[y]]=""}r(o,"clearBuffers");function a(h){Ti(h),h.cdata!==""&&(Me(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(Me(h,"onscript",h.script),h.script="")}r(a,"flushBuffers"),n.prototype={end:r(function(){on(this)},"end"),write:qe,resume:r(function(){return this.error=null,this},"resume"),close:r(function(){return this.write(null)},"close"),flush:r(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=r(function(){},"Stream")}s||(s=r(function(){},"Stream"));var l=e.EVENTS.filter(function(h){return h!=="error"&&h!=="end"});function c(h,y){return new p(h,y)}r(c,"createStream");function p(h,y){if(!(this instanceof p))return new p(h,y);s.apply(this),this._parser=new n(h,y),this.writable=!0,this.readable=!0;var D=this;this._parser.onend=function(){D.emit("end")},this._parser.onerror=function(A){D.emit("error",A),D._parser.error=null},this._decoder=null,l.forEach(function(A){Object.defineProperty(D,"on"+A,{get:r(function(){return D._parser["on"+A]},"get"),set:r(function(Te){if(!Te)return D.removeAllListeners(A),D._parser["on"+A]=Te,Te;D.on(A,Te)},"set"),enumerable:!0,configurable:!1})})}r(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(h){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(h)){if(!this._decoder){var y=require("string_decoder").StringDecoder;this._decoder=new y("utf8")}h=this._decoder.write(h)}return this._parser.write(h.toString()),this.emit("data",h),!0},p.prototype.end=function(h){return h&&h.length&&this.write(h),this._parser.end(),!0},p.prototype.on=function(h,y){var D=this;return!D._parser["on"+h]&&l.indexOf(h)!==-1&&(D._parser["on"+h]=function(){var A=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);A.splice(0,0,h),D.emit.apply(D,A)}),s.prototype.on.call(D,h,y)};var f="[CDATA[",u="DOCTYPE",m="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",S={xml:m,xmlns:b},L=/[:_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]/,V=/[:_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-]/,H=/[#:_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]/,ee=/[#:_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 te(h){return h===" "||h===`
|
|
20
|
+
`||h==="\r"||h===" "}r(te,"isWhitespace");function re(h){return h==='"'||h==="'"}r(re,"isQuote");function X(h){return h===">"||te(h)}r(X,"isAttribEnd");function oe(h,y){return h.test(y)}r(oe,"isMatch");function Pe(h,y){return!oe(h,y)}r(Pe,"notMatch");var P=0;e.STATE={BEGIN:P++,BEGIN_WHITESPACE:P++,TEXT:P++,TEXT_ENTITY:P++,OPEN_WAKA:P++,SGML_DECL:P++,SGML_DECL_QUOTED:P++,DOCTYPE:P++,DOCTYPE_QUOTED:P++,DOCTYPE_DTD:P++,DOCTYPE_DTD_QUOTED:P++,COMMENT_STARTING:P++,COMMENT:P++,COMMENT_ENDING:P++,COMMENT_ENDED:P++,CDATA:P++,CDATA_ENDING:P++,CDATA_ENDING_2:P++,PROC_INST:P++,PROC_INST_BODY:P++,PROC_INST_ENDING:P++,OPEN_TAG:P++,OPEN_TAG_SLASH:P++,ATTRIB:P++,ATTRIB_NAME:P++,ATTRIB_NAME_SAW_WHITE:P++,ATTRIB_VALUE:P++,ATTRIB_VALUE_QUOTED:P++,ATTRIB_VALUE_CLOSED:P++,ATTRIB_VALUE_UNQUOTED:P++,ATTRIB_VALUE_ENTITY_Q:P++,ATTRIB_VALUE_ENTITY_U:P++,CLOSE_TAG:P++,CLOSE_TAG_SAW_WHITE:P++,SCRIPT:P++,SCRIPT_ENDING:P++},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(h){var y=e.ENTITIES[h],D=typeof y=="number"?String.fromCharCode(y):y;e.ENTITIES[h]=D});for(var Lt in e.STATE)e.STATE[e.STATE[Lt]]=Lt;P=e.STATE;function nn(h,y,D){h[y]&&h[y](D)}r(nn,"emit");function Me(h,y,D){h.textNode&&Ti(h),nn(h,y,D)}r(Me,"emitNode");function Ti(h){h.textNode=ko(h.opt,h.textNode),h.textNode&&nn(h,"ontext",h.textNode),h.textNode=""}r(Ti,"closeText");function ko(h,y){return h.trim&&(y=y.trim()),h.normalize&&(y=y.replace(/\s+/g," ")),y}r(ko,"textopts");function wt(h,y){return Ti(h),h.trackPosition&&(y+=`
|
|
21
21
|
Line: `+h.line+`
|
|
22
22
|
Column: `+h.column+`
|
|
23
|
-
Char: `+h.c),y=new Error(y),h.error=y,
|
|
23
|
+
Char: `+h.c),y=new Error(y),h.error=y,nn(h,"onerror",y),h}r(wt,"error");function on(h){return h.sawRoot&&!h.closedRoot&&Ie(h,"Unclosed root tag"),h.state!==P.BEGIN&&h.state!==P.BEGIN_WHITESPACE&&h.state!==P.TEXT&&wt(h,"Unexpected end"),Ti(h),h.c="",h.closed=!0,nn(h,"onend"),n.call(h,h.strict,h.opt),h}r(on,"end");function Ie(h,y){if(typeof h!="object"||!(h instanceof n))throw new Error("bad call to strictFail");h.strict&&wt(h,y)}r(Ie,"strictFail");function Xi(h){h.strict||(h.tagName=h.tagName[h.looseCase]());var y=h.tags[h.tags.length-1]||h,D=h.tag={name:h.tagName,attributes:{}};h.opt.xmlns&&(D.ns=y.ns),h.attribList.length=0,Me(h,"onopentagstart",D)}r(Xi,"newTag");function at(h,y){var D=h.indexOf(":"),A=D<0?["",h]:h.split(":"),Te=A[0],Ye=A[1];return y&&h==="xmlns"&&(Te="xmlns",Ye=""),{prefix:Te,local:Ye}}r(at,"qname");function $t(h){if(h.strict||(h.attribName=h.attribName[h.looseCase]()),h.attribList.indexOf(h.attribName)!==-1||h.tag.attributes.hasOwnProperty(h.attribName)){h.attribName=h.attribValue="";return}if(h.opt.xmlns){var y=at(h.attribName,!0),D=y.prefix,A=y.local;if(D==="xmlns")if(A==="xml"&&h.attribValue!==m)Ie(h,"xml: prefix must be bound to "+m+`
|
|
24
24
|
Actual: `+h.attribValue);else if(A==="xmlns"&&h.attribValue!==b)Ie(h,"xmlns: prefix must be bound to "+b+`
|
|
25
|
-
Actual: `+h.attribValue);else{var Te=h.tag,Ye=h.tags[h.tags.length-1]||h;Te.ns===Ye.ns&&(Te.ns=Object.create(Ye.ns)),Te.ns[A]=h.attribValue}h.attribList.push([h.attribName,h.attribValue])}else h.tag.attributes[h.attribName]=h.attribValue,Me(h,"onattribute",{name:h.attribName,value:h.attribValue});h.attribName=h.attribValue=""}r($t,"attrib");function Tt(h,y){if(h.opt.xmlns){var D=h.tag,A=at(h.tagName);D.prefix=A.prefix,D.local=A.local,D.uri=D.ns[A.prefix]||"",D.prefix&&!D.uri&&(Ie(h,"Unbound namespace prefix: "+JSON.stringify(h.tagName)),D.uri=A.prefix);var Te=h.tags[h.tags.length-1]||h;D.ns&&Te.ns!==D.ns&&Object.keys(D.ns).forEach(function(
|
|
26
|
-
`?(y.line++,y.column=0):y.column++),y.state){case P.BEGIN:if(y.state=P.BEGIN_WHITESPACE,A==="\uFEFF")continue;
|
|
27
|
-
`?(y.line++,y.column=0):y.column++);y.textNode+=h.substring(Te,D-1)}A==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=P.OPEN_WAKA,y.startTagPosition=y.position):(!ie(A)&&(!y.sawRoot||y.closedRoot)&&Ie(y,"Text data outside of root node."),A==="&"?y.state=P.TEXT_ENTITY:y.textNode+=A);continue;case P.SCRIPT:A==="<"?y.state=P.SCRIPT_ENDING:y.script+=A;continue;case P.SCRIPT_ENDING:A==="/"?y.state=P.CLOSE_TAG:(y.script+="<"+A,y.state=P.SCRIPT);continue;case P.OPEN_WAKA:if(A==="!")y.state=P.SGML_DECL,y.sgmlDecl="";else if(!ie(A))if(oe(N,A))y.state=P.OPEN_TAG,y.tagName=A;else if(A==="/")y.state=P.CLOSE_TAG,y.tagName="";else if(A==="?")y.state=P.PROC_INST,y.procInstName=y.procInstBody="";else{if(Ie(y,"Unencoded <"),y.startTagPosition+1<y.position){var Ye=y.position-y.startTagPosition;A=new Array(Ye).join(" ")+A}y.textNode+="<"+A,y.state=P.TEXT}continue;case P.SGML_DECL:if(y.sgmlDecl+A==="--"){y.state=P.COMMENT,y.comment="",y.sgmlDecl="";continue}y.doctype&&y.doctype!==!0&&y.sgmlDecl?(y.state=P.DOCTYPE_DTD,y.doctype+="<!"+y.sgmlDecl+A,y.sgmlDecl=""):(y.sgmlDecl+A).toUpperCase()===f?(Me(y,"onopencdata"),y.state=P.CDATA,y.sgmlDecl="",y.cdata=""):(y.sgmlDecl+A).toUpperCase()===u?(y.state=P.DOCTYPE,(y.doctype||y.sawRoot)&&Ie(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):A===">"?(Me(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=P.TEXT):(ce(A)&&(y.state=P.SGML_DECL_QUOTED),y.sgmlDecl+=A);continue;case P.SGML_DECL_QUOTED:A===y.q&&(y.state=P.SGML_DECL,y.q=""),y.sgmlDecl+=A;continue;case P.DOCTYPE:A===">"?(y.state=P.TEXT,Me(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=A,A==="["?y.state=P.DOCTYPE_DTD:ce(A)&&(y.state=P.DOCTYPE_QUOTED,y.q=A));continue;case P.DOCTYPE_QUOTED:y.doctype+=A,A===y.q&&(y.q="",y.state=P.DOCTYPE);continue;case P.DOCTYPE_DTD:A==="]"?(y.doctype+=A,y.state=P.DOCTYPE):A==="<"?(y.state=P.OPEN_WAKA,y.startTagPosition=y.position):ce(A)?(y.doctype+=A,y.state=P.DOCTYPE_DTD_QUOTED,y.q=A):y.doctype+=A;continue;case P.DOCTYPE_DTD_QUOTED:y.doctype+=A,A===y.q&&(y.state=P.DOCTYPE_DTD,y.q="");continue;case P.COMMENT:A==="-"?y.state=P.COMMENT_ENDING:y.comment+=A;continue;case P.COMMENT_ENDING:A==="-"?(y.state=P.COMMENT_ENDED,y.comment=No(y.opt,y.comment),y.comment&&Me(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+A,y.state=P.COMMENT);continue;case P.COMMENT_ENDED:A!==">"?(Ie(y,"Malformed comment"),y.comment+="--"+A,y.state=P.COMMENT):y.doctype&&y.doctype!==!0?y.state=P.DOCTYPE_DTD:y.state=P.TEXT;continue;case P.CDATA:A==="]"?y.state=P.CDATA_ENDING:y.cdata+=A;continue;case P.CDATA_ENDING:A==="]"?y.state=P.CDATA_ENDING_2:(y.cdata+="]"+A,y.state=P.CDATA);continue;case P.CDATA_ENDING_2:A===">"?(y.cdata&&Me(y,"oncdata",y.cdata),Me(y,"onclosecdata"),y.cdata="",y.state=P.TEXT):A==="]"?y.cdata+="]":(y.cdata+="]]"+A,y.state=P.CDATA);continue;case P.PROC_INST:A==="?"?y.state=P.PROC_INST_ENDING:ie(A)?y.state=P.PROC_INST_BODY:y.procInstName+=A;continue;case P.PROC_INST_BODY:if(!y.procInstBody&&ie(A))continue;A==="?"?y.state=P.PROC_INST_ENDING:y.procInstBody+=A;continue;case P.PROC_INST_ENDING:A===">"?(Me(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=P.TEXT):(y.procInstBody+="?"+A,y.state=P.PROC_INST_BODY);continue;case P.OPEN_TAG:oe(L,A)?y.tagName+=A:(_i(y),A===">"?Tt(y):A==="/"?y.state=P.OPEN_TAG_SLASH:(ie(A)||Ie(y,"Invalid character in tag name"),y.state=P.ATTRIB));continue;case P.OPEN_TAG_SLASH:A===">"?(Tt(y,!0),Kn(y)):(Ie(y,"Forward-slash in opening tag not followed by >"),y.state=P.ATTRIB);continue;case P.ATTRIB:if(ie(A))continue;A===">"?Tt(y):A==="/"?y.state=P.OPEN_TAG_SLASH:oe(N,A)?(y.attribName=A,y.attribValue="",y.state=P.ATTRIB_NAME):Ie(y,"Invalid attribute name");continue;case P.ATTRIB_NAME:A==="="?y.state=P.ATTRIB_VALUE:A===">"?(Ie(y,"Attribute without value"),y.attribValue=y.attribName,$t(y),Tt(y)):ie(A)?y.state=P.ATTRIB_NAME_SAW_WHITE:oe(L,A)?y.attribName+=A:Ie(y,"Invalid attribute name");continue;case P.ATTRIB_NAME_SAW_WHITE:if(A==="=")y.state=P.ATTRIB_VALUE;else{if(ie(A))continue;Ie(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",Me(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",A===">"?Tt(y):oe(N,A)?(y.attribName=A,y.state=P.ATTRIB_NAME):(Ie(y,"Invalid attribute name"),y.state=P.ATTRIB)}continue;case P.ATTRIB_VALUE:if(ie(A))continue;ce(A)?(y.q=A,y.state=P.ATTRIB_VALUE_QUOTED):(y.opt.unquotedAttributeValues||Rt(y,"Unquoted attribute value"),y.state=P.ATTRIB_VALUE_UNQUOTED,y.attribValue=A);continue;case P.ATTRIB_VALUE_QUOTED:if(A!==y.q){A==="&"?y.state=P.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=A;continue}$t(y),y.q="",y.state=P.ATTRIB_VALUE_CLOSED;continue;case P.ATTRIB_VALUE_CLOSED:ie(A)?y.state=P.ATTRIB:A===">"?Tt(y):A==="/"?y.state=P.OPEN_TAG_SLASH:oe(N,A)?(Ie(y,"No whitespace between attributes"),y.attribName=A,y.attribValue="",y.state=P.ATTRIB_NAME):Ie(y,"Invalid attribute name");continue;case P.ATTRIB_VALUE_UNQUOTED:if(!Y(A)){A==="&"?y.state=P.ATTRIB_VALUE_ENTITY_U:y.attribValue+=A;continue}$t(y),A===">"?Tt(y):y.state=P.ATTRIB;continue;case P.CLOSE_TAG:if(y.tagName)A===">"?Kn(y):oe(L,A)?y.tagName+=A:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=P.SCRIPT):(ie(A)||Ie(y,"Invalid tagname in closing tag"),y.state=P.CLOSE_TAG_SAW_WHITE);else{if(ie(A))continue;Pe(N,A)?y.script?(y.script+="</"+A,y.state=P.SCRIPT):Ie(y,"Invalid tagname in closing tag."):y.tagName=A}continue;case P.CLOSE_TAG_SAW_WHITE:if(ie(A))continue;A===">"?Kn(y):Ie(y,"Invalid characters in closing tag");continue;case P.TEXT_ENTITY:case P.ATTRIB_VALUE_ENTITY_Q:case P.ATTRIB_VALUE_ENTITY_U:var Ge,yt;switch(y.state){case P.TEXT_ENTITY:Ge=P.TEXT,yt="textNode";break;case P.ATTRIB_VALUE_ENTITY_Q:Ge=P.ATTRIB_VALUE_QUOTED,yt="attribValue";break;case P.ATTRIB_VALUE_ENTITY_U:Ge=P.ATTRIB_VALUE_UNQUOTED,yt="attribValue";break}if(A===";"){var vt=pe(y);y.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(vt)?(y.entity="",y.state=Ge,y.write(vt)):(y[yt]+=vt,y.entity="",y.state=Ge)}else oe(y.entity.length?ne:z,A)?y.entity+=A:(Ie(y,"Invalid character in entity name"),y[yt]+="&"+y.entity+A,y.entity="",y.state=Ge);continue;default:throw new Error(y,"Unknown state: "+y.state)}return y.position>=y.bufferCheckPosition&&i(y),y}r(qe,"write");String.fromCodePoint||function(){var h=String.fromCharCode,y=Math.floor,D=r(function(){var A=16384,Te=[],Ye,Ge,yt=-1,vt=arguments.length;if(!vt)return"";for(var Nn="";++yt<vt;){var rt=Number(arguments[yt]);if(!isFinite(rt)||rt<0||rt>1114111||y(rt)!==rt)throw RangeError("Invalid code point: "+rt);rt<=65535?Te.push(rt):(rt-=65536,Ye=(rt>>10)+55296,Ge=rt%1024+56320,Te.push(Ye,Ge)),(yt+1===vt||Te.length>A)&&(Nn+=h.apply(null,Te),Te.length=0)}return Nn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:D,configurable:!0,writable:!0}):String.fromCodePoint=D}()})(typeof Os>"u"?Os.sax={}:Os)});var Fs=Re(($D,pb)=>{pb.exports={isArray:r(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Ns=Re((MD,fb)=>{var JC=Fs().isArray;fb.exports={copyOptions:r(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:r(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:r(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:r(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!JC(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:r(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:r(function(e,t){return e+"Fn"in t},"checkFnExists")}});var Hp=Re((kD,Tb)=>{var qC=cb(),XC={on:r(function(){},"on"),parse:r(function(){},"parse")},ve=Ns(),Uo=Fs().isArray,I,Bp=!0,ue;function zC(e){return I=ve.copyOptions(e),ve.ensureFlagExists("ignoreDeclaration",I),ve.ensureFlagExists("ignoreInstruction",I),ve.ensureFlagExists("ignoreAttributes",I),ve.ensureFlagExists("ignoreText",I),ve.ensureFlagExists("ignoreComment",I),ve.ensureFlagExists("ignoreCdata",I),ve.ensureFlagExists("ignoreDoctype",I),ve.ensureFlagExists("compact",I),ve.ensureFlagExists("alwaysChildren",I),ve.ensureFlagExists("addParent",I),ve.ensureFlagExists("trim",I),ve.ensureFlagExists("nativeType",I),ve.ensureFlagExists("nativeTypeAttributes",I),ve.ensureFlagExists("sanitize",I),ve.ensureFlagExists("instructionHasAttributes",I),ve.ensureFlagExists("captureSpacesBetweenElements",I),ve.ensureAlwaysArrayExists(I),ve.ensureKeyExists("declaration",I),ve.ensureKeyExists("instruction",I),ve.ensureKeyExists("attributes",I),ve.ensureKeyExists("text",I),ve.ensureKeyExists("comment",I),ve.ensureKeyExists("cdata",I),ve.ensureKeyExists("doctype",I),ve.ensureKeyExists("type",I),ve.ensureKeyExists("name",I),ve.ensureKeyExists("elements",I),ve.ensureKeyExists("parent",I),ve.checkFnExists("doctype",I),ve.checkFnExists("instruction",I),ve.checkFnExists("cdata",I),ve.checkFnExists("comment",I),ve.checkFnExists("text",I),ve.checkFnExists("instructionName",I),ve.checkFnExists("elementName",I),ve.checkFnExists("attributeName",I),ve.checkFnExists("attributeValue",I),ve.checkFnExists("attributes",I),I}r(zC,"validateOptions");function hb(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}r(hb,"nativeType");function Ma(e,t){var n;if(I.compact){if(!ue[I[e+"Key"]]&&(Uo(I.alwaysArray)?I.alwaysArray.indexOf(I[e+"Key"])!==-1:I.alwaysArray)&&(ue[I[e+"Key"]]=[]),ue[I[e+"Key"]]&&!Uo(ue[I[e+"Key"]])&&(ue[I[e+"Key"]]=[ue[I[e+"Key"]]]),e+"Fn"in I&&typeof t=="string"&&(t=I[e+"Fn"](t,ue)),e==="instruction"&&("instructionFn"in I||"instructionNameFn"in I)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in I)t[n]=I.instructionFn(t[n],n,ue);else{var i=t[n];delete t[n],t[I.instructionNameFn(n,i,ue)]=i}}Uo(ue[I[e+"Key"]])?ue[I[e+"Key"]].push(t):ue[I[e+"Key"]]=t}else{ue[I.elementsKey]||(ue[I.elementsKey]=[]);var o={};if(o[I.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;o[I.nameKey]="instructionNameFn"in I?I.instructionNameFn(n,t,ue):n,I.instructionHasAttributes?(o[I.attributesKey]=t[n][I.attributesKey],"instructionFn"in I&&(o[I.attributesKey]=I.instructionFn(o[I.attributesKey],n,ue))):("instructionFn"in I&&(t[n]=I.instructionFn(t[n],n,ue)),o[I.instructionKey]=t[n])}else e+"Fn"in I&&(t=I[e+"Fn"](t,ue)),o[I[e+"Key"]]=t;I.addParent&&(o[I.parentKey]=ue),ue[I.elementsKey].push(o)}}r(Ma,"addField");function bb(e){if("attributesFn"in I&&e&&(e=I.attributesFn(e,ue)),(I.trim||"attributeValueFn"in I||"attributeNameFn"in I||I.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(I.trim&&(e[t]=e[t].trim()),I.nativeTypeAttributes&&(e[t]=hb(e[t])),"attributeValueFn"in I&&(e[t]=I.attributeValueFn(e[t],t,ue)),"attributeNameFn"in I)){var n=e[t];delete e[t],e[I.attributeNameFn(t,e[t],ue)]=n}}return e}r(bb,"manipulateAttributes");function YC(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||I.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=bb(t)}if(e.name.toLowerCase()==="xml"){if(I.ignoreDeclaration)return;ue[I.declarationKey]={},Object.keys(t).length&&(ue[I.declarationKey][I.attributesKey]=t),I.addParent&&(ue[I.declarationKey][I.parentKey]=ue)}else{if(I.ignoreInstruction)return;I.trim&&(e.body=e.body.trim());var o={};I.instructionHasAttributes&&Object.keys(t).length?(o[e.name]={},o[e.name][I.attributesKey]=t):o[e.name]=e.body,Ma("instruction",o)}}r(YC,"onInstruction");function ub(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=bb(t),"elementNameFn"in I&&(e=I.elementNameFn(e,ue)),I.compact){if(n={},!I.ignoreAttributes&&t&&Object.keys(t).length){n[I.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[I.attributesKey][i]=t[i])}!(e in ue)&&(Uo(I.alwaysArray)?I.alwaysArray.indexOf(e)!==-1:I.alwaysArray)&&(ue[e]=[]),ue[e]&&!Uo(ue[e])&&(ue[e]=[ue[e]]),Uo(ue[e])?ue[e].push(n):ue[e]=n}else ue[I.elementsKey]||(ue[I.elementsKey]=[]),n={},n[I.typeKey]="element",n[I.nameKey]=e,!I.ignoreAttributes&&t&&Object.keys(t).length&&(n[I.attributesKey]=t),I.alwaysChildren&&(n[I.elementsKey]=[]),ue[I.elementsKey].push(n);n[I.parentKey]=ue,ue=n}r(ub,"onStartElement");function db(e){I.ignoreText||!e.trim()&&!I.captureSpacesBetweenElements||(I.trim&&(e=e.trim()),I.nativeType&&(e=hb(e)),I.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),Ma("text",e))}r(db,"onText");function gb(e){I.ignoreComment||(I.trim&&(e=e.trim()),Ma("comment",e))}r(gb,"onComment");function mb(e){var t=ue[I.parentKey];I.addParent||delete ue[I.parentKey],ue=t}r(mb,"onEndElement");function ZC(e){I.ignoreCdata||(I.trim&&(e=e.trim()),Ma("cdata",e))}r(ZC,"onCdata");function eE(e){I.ignoreDoctype||(e=e.replace(/^ /,""),I.trim&&(e=e.trim()),Ma("doctype",e))}r(eE,"onDoctype");function yb(e){e.note=e}r(yb,"onError");Tb.exports=function(e,t){var n=Bp?qC.parser(!0,{}):n=new XC.Parser("UTF-8"),i={};if(ue=i,I=zC(t),Bp?(n.opt={strictEntities:!0},n.onopentag=ub,n.ontext=db,n.oncomment=gb,n.onclosetag=mb,n.onerror=yb,n.oncdata=ZC,n.ondoctype=eE,n.onprocessinginstruction=YC):(n.on("startElement",ub),n.on("text",db),n.on("comment",gb),n.on("endElement",mb),n.on("error",yb)),Bp)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[I.elementsKey]){var o=i[I.elementsKey];delete i[I.elementsKey],i[I.elementsKey]=o,delete i.text}return i}});var Pb=Re((BD,Sb)=>{var vb=Ns(),tE=Hp();function nE(e){var t=vb.copyOptions(e);return vb.ensureSpacesExists(t),t}r(nE,"validateOptions");Sb.exports=function(e,t){var n,i,o,a;return n=nE(t),i=tE(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?o=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):o=JSON.stringify(i,null,n.spaces),o.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var Wp=Re((GD,Vb)=>{var Ce=Ns(),iE=Fs().isArray,Pt,At;function oE(e){var t=Ce.copyOptions(e);return Ce.ensureFlagExists("ignoreDeclaration",t),Ce.ensureFlagExists("ignoreInstruction",t),Ce.ensureFlagExists("ignoreAttributes",t),Ce.ensureFlagExists("ignoreText",t),Ce.ensureFlagExists("ignoreComment",t),Ce.ensureFlagExists("ignoreCdata",t),Ce.ensureFlagExists("ignoreDoctype",t),Ce.ensureFlagExists("compact",t),Ce.ensureFlagExists("indentText",t),Ce.ensureFlagExists("indentCdata",t),Ce.ensureFlagExists("indentAttributes",t),Ce.ensureFlagExists("indentInstruction",t),Ce.ensureFlagExists("fullTagEmptyElement",t),Ce.ensureFlagExists("noQuotesForNativeAttributes",t),Ce.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),Ce.ensureKeyExists("declaration",t),Ce.ensureKeyExists("instruction",t),Ce.ensureKeyExists("attributes",t),Ce.ensureKeyExists("text",t),Ce.ensureKeyExists("comment",t),Ce.ensureKeyExists("cdata",t),Ce.ensureKeyExists("doctype",t),Ce.ensureKeyExists("type",t),Ce.ensureKeyExists("name",t),Ce.ensureKeyExists("elements",t),Ce.checkFnExists("doctype",t),Ce.checkFnExists("instruction",t),Ce.checkFnExists("cdata",t),Ce.checkFnExists("comment",t),Ce.checkFnExists("text",t),Ce.checkFnExists("instructionName",t),Ce.checkFnExists("elementName",t),Ce.checkFnExists("attributeName",t),Ce.checkFnExists("attributeValue",t),Ce.checkFnExists("attributes",t),Ce.checkFnExists("fullTagEmptyElement",t),t}r(oE,"validateOptions");function Ln(e,t,n){return(!n&&e.spaces?`
|
|
28
|
-
`:"")+Array(t+1).join(e.spaces)}r(
|
|
29
|
-
`+Array(n+1).join(t.spaces):""),i.push("</"+o+">")):i.push("/>"),i.join("")}r(rE,"writeElement");function Ob(e,t,n,i){return e.reduce(function(o,a){var s=Ln(t,n,i&&!o);switch(a.type){case"element":return o+s+rE(a,t,n);case"comment":return o+s+Eb(a[t.commentKey],t);case"doctype":return o+s+Ib(a[t.doctypeKey],t);case"cdata":return o+(t.indentCdata?s:"")+xb(a[t.cdataKey],t);case"text":return o+(t.indentText?s:"")+Gp(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],o+(t.indentInstruction?s:"")+Cb(l,t,n)}},"")}r(Ob,"writeElements");function Fb(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}r(Fb,"hasContentCompact");function sE(e,t,n,i,o){Pt=e,At=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(">"+Gp(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Vs(e[n.attributesKey],n,i));var l=Fb(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(Nb(e,n,i+1,!1)),Pt=e,At=t,t&&s.push((o?Ln(n,i,!1):"")+"</"+a+">"),s.join("")}r(sE,"writeElementCompact");function Nb(e,t,n,i){var o,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=iE(e[a])?e[a]:[e[a]],o=0;o<s.length;++o){switch(a){case t.declarationKey:l.push(Ab(s[o],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Ln(t,n,i):"")+Cb(s[o],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Ln(t,n,i):"")+Gp(s[o],t));break;case t.cdataKey:l.push((t.indentCdata?Ln(t,n,i):"")+xb(s[o],t));break;case t.doctypeKey:l.push(Ln(t,n,i)+Ib(s[o],t));break;case t.commentKey:l.push(Ln(t,n,i)+Eb(s[o],t));break;default:l.push(Ln(t,n,i)+sE(s[o],a,t,n,Fb(s[o],t)))}i=i&&!l.length}return l.join("")}r(Nb,"writeElementsCompact");Vb.exports=function(e,t){t=oE(t);var n=[];return Pt=e,At="_root_",t.compact?n.push(Nb(e,t,0,!0)):(e[t.declarationKey]&&n.push(Ab(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(Ob(e[t.elementsKey],t,0,!n.length))),n.join("")}});var Db=Re((QD,Lb)=>{var lE=Wp();Lb.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 lE(n,t)}});var Ua=Re((KD,jb)=>{var cE=Hp(),pE=Pb(),fE=Wp(),uE=Db();jb.exports={xml2js:cE,xml2json:pE,js2xml:fE,json2xml:uE}});var kb=Re(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.convertEntityTypeAnnotations=wt.convertPropertyAnnotations=wt.convertNavigationPropertyAnnotations=wt.convertEntitySetAnnotations=wt.convertGenericAnnotations=wt.convertV2Annotations=void 0;function dE(e,t,n){let i=[];switch(t){case"EntitySet":$b(e,i);break;case"EntityType":Ub(e,i);break;case"NavigationProperty":wb(e,n,i);break;case"Property":Mb(e,n,i);break;case"Singleton":break;default:break}return Rb(e,n,i),i}r(dE,"convertV2Annotations");wt.convertV2Annotations=dE;function Rb(e,t,n){function i(o,a){o&&n.push(a)}if(r(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 o=[];e["sap:lower-boundary"]&&o.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&o.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:o}})}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}]}})}r(Rb,"convertGenericAnnotations");wt.convertGenericAnnotations=Rb;function $b(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"]}}]}})}r($b,"convertEntitySetAnnotations");wt.convertEntitySetAnnotations=$b;function wb(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}}]}}}]}]}}]}})}r(wb,"convertNavigationPropertyAnnotations");wt.convertNavigationPropertyAnnotations=wb;function Mb(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}]}}]}})}r(Mb,"convertPropertyAnnotations");wt.convertPropertyAnnotations=Mb;function Ub(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:[]}}]}})}r(Ub,"convertEntityTypeAnnotations");wt.convertEntityTypeAnnotations=Ub});var Qb=Re(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.parse=void 0;var gE=Ua(),me=_p(),ka=kb(),js=/^Collection\((.+)\)$/;function mE(e){return e.Type!==null&&e.Type!==void 0}r(mE,"isV4NavProperty");function yE(e){return e.map(t=>t._attributes.Name)}r(yE,"getEntityTypeKeys");function Hb(e,t,n,i){return e.reduce((o,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:ko(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}o.entityProperties.push(s),t.indexOf(s.name)!==-1&&o.entityKeys.push(s);let l=(0,ka.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(Hi(s.fullyQualifiedName,l)),o},{entityProperties:[],entityKeys:[]})}r(Hb,"parseProperties");function hE(e,t,n){return e.reduce((i,o)=>(i.push({sourceTypeName:t,sourceProperty:o._attributes.Property,targetTypeName:n,targetProperty:o._attributes.ReferencedProperty}),i),[])}r(hE,"parseReferentialConstraint");function bE(e,t){return e.reduce((n,i)=>{let o=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(o!==void 0&&a!==void 0){let s=(0,me.ensureArray)(i.Principal.PropertyRef),l=(0,me.ensureArray)(i.Dependent.PropertyRef);o.multiplicity!=="1"&&(a=o,o=t.find(c=>c.role===i.Dependent._attributes.Role),l=s,s=(0,me.ensureArray)(i.Dependent.PropertyRef));for(let c of s){let p=s.indexOf(c);n.push({sourceTypeName:o.type,sourceProperty:c._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}r(bE,"parseV2ReferentialConstraint");function Gb(e,t,n,i){return e.reduce((o,a)=>{let s=a._attributes;if(mE(s)){let l=s.Type.match(js),c=l!==null,p=Dn(l?l[1]:s.Type);o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:c,targetTypeName:p,referentialConstraint:hE((0,me.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:c,FromRole:p}=s;o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:c,fromRole:p});let f=(0,ka.convertV2Annotations)(s,"NavigationProperty",s.Name);f.length>0&&i.push(Hi(`${n}/${s.Name}`,f))}return o},[])}r(Gb,"parseNavigationProperties");function TE(e,t,n){return e.map(i=>{let o=`${t}.${i._attributes.Name}`,a=(0,me.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:o,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}r(TE,"parseAssociationSets");function vE(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,o=(0,me.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:o,referentialConstraints:bE((0,me.ensureArray)(n.ReferentialConstraint),o)}})}r(vE,"parseAssociations");function SE(e,t,n){return e.reduce((i,o)=>{let a=o.Key?yE((0,me.ensureArray)(o.Key.PropertyRef)):[],s=`${n}.${o._attributes.Name}`,{entityProperties:l,entityKeys:c}=Hb((0,me.ensureArray)(o.Property),a,s,t),p=Gb((0,me.ensureArray)(o.NavigationProperty),o,s,t),f={_type:"EntityType",name:o._attributes.Name,fullyQualifiedName:s,keys:c,entityProperties:l,actions:{},navigationProperties:p},u=(0,ka.convertV2Annotations)(o._attributes,"EntityType",o._attributes.Name);return u.length>0&&t.push(Hi(f.fullyQualifiedName,u)),i.push(f),i},[])}r(SE,"parseEntityTypes");function PE(e,t,n){return e.reduce((i,o)=>{let a=`${n}.${o._attributes.Name}`,{entityProperties:s}=Hb((0,me.ensureArray)(o.Property),[],a,t),l=Gb((0,me.ensureArray)(o.NavigationProperty),o,a,t);return i.push({_type:"ComplexType",name:o._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}r(PE,"parseComplexTypes");function AE(e,t){return e.reduce((n,i)=>{let o=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:o,underlyingType:i._attributes.UnderlyingType}),n},[])}r(AE,"parseTypeDefinitions");function CE(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,me.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Dn(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,ka.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return c.length>0&&i.push(Hi(l.fullyQualifiedName,c)),l})}r(CE,"parseEntitySets");function EE(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,me.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:Dn(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,ka.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return c.length>0&&i.push(Hi(l.fullyQualifiedName,c)),l})}r(EE,"parseSingletons");function _b(e,t,n){return e.map(i=>{let o=(0,me.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=o.map(c=>ko(c._attributes.Type).type).join(","):s=a?ko(o[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?ko(o[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:o.map(c=>{let{isCollection:p,type:f}=ko(c._attributes.Type),u={_type:"ActionParameter",fullyQualifiedName:`${l}/${c._attributes.Name}`,name:`${c._attributes.Name}`,type:f,isCollection:p};return c._attributes.MaxLength&&(u.maxLength=parseInt(c._attributes.MaxLength,10)),c._attributes.Precision&&(u.precision=parseInt(c._attributes.Precision,10)),c._attributes.Scale&&(u.scale=parseInt(c._attributes.Scale,10)),u.nullable=c._attributes.Nullable!=="false",u}),returnType:i.ReturnType?ko(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(js)!==null:!1}})}r(_b,"parseActions");function xE(e,t,n){return e.map(i=>{let o=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:o?o.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,me.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(js)!==null:!1}})}r(xE,"parseV2FunctionImport");function Bb(e,t){return e.map(n=>{var i;let o=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:Dn(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Dn(o)}})}r(Bb,"parseActionImports");function IE(e,t,n){return e.map(i=>{let{Annotation:o,_attributes:a,...s}=i,l={};if(a){let c=Object.keys(a).find(f=>f!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Ds(s,p,n,!1):c&&(l.value=Wb({[c]:a[c]},p,n)),i.Annotation){let f=$s((0,me.ensureArray)(i.Annotation),p,n);f&&f.length>0&&n.push(Hi(p,f))}}return l})}r(IE,"parsePropertyValues");function Rs(e,t,n){let i=$s((0,me.ensureArray)(e.Annotation),t,n),o={type:e._attributes?Dn(e._attributes.Type):void 0,propertyValues:IE((0,me.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(o.annotations=i),o}r(Rs,"parseRecord");function Yn(e,t){return e[t]!=null}r(Yn,"isExpressionOfType");function Ls(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}}}r(Ls,"parseModelPath");function Kp(e,t,n){if(Yn(e,"Record")){let i=(0,me.ensureArray)(e.Record).map((o,a)=>Rs(o,t+"/"+a,n));return i.type="Record",i}else if(Yn(e,"PropertyPath")){let i=(0,me.ensureArray)(e.PropertyPath).map(o=>Ls(o,"PropertyPath"));return i.type="PropertyPath",i}else if(Yn(e,"NavigationPropertyPath")){let i=(0,me.ensureArray)(e.NavigationPropertyPath).map(o=>Ls(o,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(Yn(e,"String")){let i=(0,me.ensureArray)(e.String).map(o=>o._text);return i.type="String",i}else if(Yn(e,"AnnotationPath")){let i=(0,me.ensureArray)(e.AnnotationPath).map(o=>Ls(o,"AnnotationPath"));return i.type="AnnotationPath",i}else if(Yn(e,"Path")){let i=(0,me.ensureArray)(e.Path).map(o=>Ls(o,"Path"));return i.type="Path",i}else if(Yn(e,"If")){let i=(0,me.ensureArray)(e.If).map(o=>o._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[]}r(Kp,"parseCollection");function Ze(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(o=>Ds({[i]:o},"",[],!0))):n.push(Ds({[i]:e[i]},"",[],!0))}),n}r(Ze,"parseChildren");function Wb(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 o=i[0];switch(o){case"String":return{type:"String",String:e[o]};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[o]};case"Collection":return{type:"Collection",Collection:Kp(e.Collection,t,n)};case"Record":return{type:"Record",Record:Rs(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ze(e.Apply),$Function:Ze(e.Function)};case"And":return{type:"And",$And:Ze(e.And)};case"Or":return{type:"Or",$Or:Ze(e.Or)};case"Eq":return{type:"Eq",$Eq:Ze(e.Eq)};case"Gt":return{type:"Gt",$Gt:Ze(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ze(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ze(e.Lt)};case"Le":return{type:"Le",$Le:Ze(e.Le)};case"If":return{type:"If",$If:Ze(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+o),{type:"Unknown"}}}r(Wb,"parseInlineExpression");function Ds(e,t,n,i){let o=Object.keys(e);if(o.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=o[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:Ze(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:Kp(e.Collection,t,n)};case"Record":return{type:"Record",Record:Rs(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ze(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:Ze(e.And)};case"Ne":return{type:"Ne",$Ne:Ze(e.Ne)};case"Not":return{type:"Not",$Not:Ze(e.Not)[0]};case"Or":return{type:"Or",$Or:Ze(e.Or)};case"Eq":return{type:"Eq",$Eq:Ze(e.Eq)};case"If":return{type:"If",$If:Ze(e.If)};case"Gt":return{type:"Gt",$Gt:Ze(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ze(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ze(e.Lt)};case"Le":return{type:"Le",$Le:Ze(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}r(Ds,"parseExpression");function OE(e,t,n){let{Term:i,Qualifier:o,...a}=e._attributes,s={term:Dn(i),qualifier:o},l=`${t}@${Dn(i)}`;if(o!==""&&o!==void 0&&(l+=`#${o}`),a&&Object.keys(a).length>0&&(s.value=Wb(a,l,n)),e.Annotation){let p=$s((0,me.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let c=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return Yn(e,"Record")?s.record=Rs(e.Record,l,n):Yn(e,"Collection")?s.collection=Kp(e.Collection,l,n):c.length===1?s.value=Ds({[c[0]]:e[c[0]]},l,n,!1):c.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}r(OE,"parseAnnotation");function $s(e,t,n){return e.map(i=>OE(i,t,n))}r($s,"parseAnnotations");function Hi(e,t){return{target:e,annotations:t}}r(Hi,"createAnnotationList");function FE(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Hi(Dn(n._attributes.Target),$s((0,me.ensureArray)(n.Annotation),n._attributes.Target,t)))})}r(FE,"parseAnnotationLists");function NE(e,t,n){let i=e._attributes.Namespace,o=[],a=SE((0,me.ensureArray)(e.EntityType),o,i),s=PE((0,me.ensureArray)(e.ComplexType),o,i),l=AE((0,me.ensureArray)(e.TypeDefinition),i),c=[],p=[],f=[],u={_type:"EntityContainer",fullyQualifiedName:""},m=[],b=[];if(e.EntityContainer)if(c=CE((0,me.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,o),p=EE((0,me.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,o),f=TE((0,me.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),u={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")m=m.concat(xE((0,me.ensureArray)(e.EntityContainer.FunctionImport),c,u.fullyQualifiedName));else if(t==="4.0")b=b.concat(Bb((0,me.ensureArray)(e.EntityContainer.FunctionImport),u.fullyQualifiedName)),b=b.concat(Bb((0,me.ensureArray)(e.EntityContainer.ActionImport),u.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(m=m.concat(_b((0,me.ensureArray)(e.Action),i,!1)),m=m.concat(_b((0,me.ensureArray)(e.Function),i,!0)));let S=vE((0,me.ensureArray)(e.Association),i);FE((0,me.ensureArray)(e.Annotations),o);let N={};return N[n]=o,{associations:S,associationSets:f,annotations:N,entityContainer:u,namespace:i,entitySets:c,singletons:p,complexTypes:s,typeDefinitions:l,actions:m,actionImports:b,entityTypes:a}}r(NE,"parseSchema");function VE(e){return e.reduce((t,n)=>((0,me.ensureArray)(n["edmx:Include"]).forEach(o=>{t.push({uri:n._attributes.Uri,alias:o._attributes.Alias,namespace:o._attributes.Namespace})}),t),[])}r(VE,"parseReferences");var Qp={};function ko(e){let t=e.match(js),n=t?t[1]:e,i=Dn(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}r(ko,"unaliasType");function Dn(e){var t;if(!e)return e;let n=["@","/","("],i=[],o=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let c=e.substring(o,a);i.push((t=Qp[c])!==null&&t!==void 0?t:c),o=a,s=!1}n.includes(l)&&(i.push(e.substring(o,a+1)),o=a+1,s=!0)}return i.push(e.substring(o)),i.join("")}r(Dn,"unalias");function LE(e){let t=e.reduce((b,S)=>b.concat(S.associations),[]),n=e.reduce((b,S)=>b.concat(S.associationSets),[]),i=e.reduce((b,S)=>b.concat(S.entitySets),[]),o=e.reduce((b,S)=>b.concat(S.singletons),[]),a=e.reduce((b,S)=>b.concat(S.entityTypes),[]),s=e.reduce((b,S)=>b.concat(S.actions),[]),l=e.reduce((b,S)=>b.concat(S.actionImports),[]),c=e.reduce((b,S)=>b.concat(S.complexTypes),[]),p=e.reduce((b,S)=>b.concat(S.typeDefinitions),[]),f={};e.forEach(b=>{f=Object.assign(f,b.annotations)});let u,m;return e.forEach(b=>{b.entityContainer&&Object.keys(b.entityContainer).length>0&&(u=b.entityContainer,m=b.namespace)}),i.forEach(b=>{let S=a.find(N=>N.fullyQualifiedName===b.entityTypeName);S==null||S.navigationProperties.forEach(N=>{let L=N,z=n.find(ne=>ne.association===L.relationship);if(z){let ne=z.associationEnd.find(ie=>ie.entitySet!==b.fullyQualifiedName);ne&&(b.navigationPropertyBinding[N.name]=ne.entitySet)}})}),a.forEach(b=>{b.navigationProperties.forEach(S=>{let N=S,L=t.find(z=>z.fullyQualifiedName===N.relationship);L&&L.referentialConstraints&&L.referentialConstraints.length>0&&(L.referentialConstraints[0].sourceTypeName===b.fullyQualifiedName?N.referentialConstraint=L.referentialConstraints:N.referentialConstraint=L.referentialConstraints.map(z=>({sourceTypeName:z.targetTypeName,sourceProperty:z.targetProperty,targetTypeName:z.sourceTypeName,targetProperty:z.sourceProperty})))})}),{associations:t,associationSets:n,annotations:f,entityContainer:u,namespace:m,entitySets:i,singletons:o,complexTypes:c,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}r(LE,"mergeSchemas");function DE(e,t){Qp=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{Qp[n._attributes.Alias]=n._attributes.Namespace})}r(DE,"createAliasMap");function jE(e,t="serviceFile"){let n=(0,gE.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,o=(0,me.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=VE((0,me.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));DE(a,o);let s=o.map(c=>NE(c,i,t));return new me.RawMetadataInstance(t,i,LE(s),a)}r(jE,"parse");ws.parse=jE});var Kb=Re(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.parse=_o.merge=void 0;var RE=lb();Object.defineProperty(_o,"merge",{enumerable:!0,get:r(function(){return RE.merge},"get")});var $E=Qb();Object.defineProperty(_o,"parse",{enumerable:!0,get:r(function(){return $E.parse},"get")})});var lT=Re(()=>{var sT;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=o(e);typeof n.Reflect<"u"&&(i=o(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function o(c,p){return function(f,u){Object.defineProperty(c,f,{configurable:!0,writable:!0,value:u}),p&&p(f,u)}}r(o,"makeExporter");function a(){try{return Function("return this;")()}catch{}}r(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}r(s,"indirectEvalThis");function l(){return a()||s()}r(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",a=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",c={__proto__:[]}instanceof Array,p=!l&&!c,f={create:l?function(){return ap(Object.create(null))}:c?function(){return ap({__proto__:null})}:function(){return ap({})},has:p?function(C,x){return i.call(C,x)}:function(C,x){return x in C},get:p?function(C,x){return i.call(C,x)?C[x]:void 0}:function(C,x){return C[x]}},u=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:sP(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:lP(),S=typeof WeakMap=="function"?WeakMap:cP(),N=o?Symbol.for("@reflect-metadata:registry"):void 0,L=oP(),z=aP(L);function ne(C,x,V,M){if(pe(V)){if(!Ye(C))throw new TypeError;if(!yt(x))throw new TypeError;return ui(C,x)}else{if(!Ye(C))throw new TypeError;if(!qe(x))throw new TypeError;if(!qe(M)&&!pe(M)&&!Jn(M))throw new TypeError;return Jn(M)&&(M=void 0),V=Te(V),No(C,x,V,M)}}r(ne,"decorate"),t("decorate",ne);function ie(C,x){function V(M,ae){if(!qe(M))throw new TypeError;if(!pe(ae)&&!vt(ae))throw new TypeError;at(C,x,M,ae)}return r(V,"decorator"),V}r(ie,"metadata"),t("metadata",ie);function ce(C,x,V,M){if(!qe(V))throw new TypeError;return pe(M)||(M=Te(M)),at(C,x,V,M)}r(ce,"defineMetadata"),t("defineMetadata",ce);function Y(C,x,V){if(!qe(x))throw new TypeError;return pe(V)||(V=Te(V)),Rt(C,x,V)}r(Y,"hasMetadata"),t("hasMetadata",Y);function oe(C,x,V){if(!qe(x))throw new TypeError;return pe(V)||(V=Te(V)),Zt(C,x,V)}r(oe,"hasOwnMetadata"),t("hasOwnMetadata",oe);function Pe(C,x,V){if(!qe(x))throw new TypeError;return pe(V)||(V=Te(V)),Ie(C,x,V)}r(Pe,"getMetadata"),t("getMetadata",Pe);function P(C,x,V){if(!qe(x))throw new TypeError;return pe(V)||(V=Te(V)),_i(C,x,V)}r(P,"getOwnMetadata"),t("getOwnMetadata",P);function Ft(C,x){if(!qe(C))throw new TypeError;return pe(x)||(x=Te(x)),$t(C,x)}r(Ft,"getMetadataKeys"),t("getMetadataKeys",Ft);function Yt(C,x){if(!qe(C))throw new TypeError;return pe(x)||(x=Te(x)),Tt(C,x)}r(Yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",Yt);function Me(C,x,V){if(!qe(x))throw new TypeError;if(pe(V)||(V=Te(V)),!qe(x))throw new TypeError;pe(V)||(V=Te(V));var M=Va(x,V,!1);return pe(M)?!1:M.OrdinaryDeleteMetadata(C,x,V)}r(Me,"deleteMetadata"),t("deleteMetadata",Me);function ui(C,x){for(var V=C.length-1;V>=0;--V){var M=C[V],ae=M(x);if(!pe(ae)&&!Jn(ae)){if(!yt(ae))throw new TypeError;x=ae}}return x}r(ui,"DecorateConstructor");function No(C,x,V,M){for(var ae=C.length-1;ae>=0;--ae){var nt=C[ae],ct=nt(x,V,M);if(!pe(ct)&&!Jn(ct)){if(!qe(ct))throw new TypeError;M=ct}}return M}r(No,"DecorateProperty");function Rt(C,x,V){var M=Zt(C,x,V);if(M)return!0;var ae=Lo(x);return Jn(ae)?!1:Rt(C,ae,V)}r(Rt,"OrdinaryHasMetadata");function Zt(C,x,V){var M=Va(x,V,!1);return pe(M)?!1:D(M.OrdinaryHasOwnMetadata(C,x,V))}r(Zt,"OrdinaryHasOwnMetadata");function Ie(C,x,V){var M=Zt(C,x,V);if(M)return _i(C,x,V);var ae=Lo(x);if(!Jn(ae))return Ie(C,ae,V)}r(Ie,"OrdinaryGetMetadata");function _i(C,x,V){var M=Va(x,V,!1);if(!pe(M))return M.OrdinaryGetOwnMetadata(C,x,V)}r(_i,"OrdinaryGetOwnMetadata");function at(C,x,V,M){var ae=Va(V,M,!0);ae.OrdinaryDefineOwnMetadata(C,x,V,M)}r(at,"OrdinaryDefineOwnMetadata");function $t(C,x){var V=Tt(C,x),M=Lo(C);if(M===null)return V;var ae=$t(M,x);if(ae.length<=0)return V;if(V.length<=0)return ae;for(var nt=new b,ct=[],Ae=0,H=V;Ae<H.length;Ae++){var J=H[Ae],X=nt.has(J);X||(nt.add(J),ct.push(J))}for(var ee=0,xe=ae;ee<xe.length;ee++){var J=xe[ee],X=nt.has(J);X||(nt.add(J),ct.push(J))}return ct}r($t,"OrdinaryMetadataKeys");function Tt(C,x){var V=Va(C,x,!1);return V?V.OrdinaryOwnMetadataKeys(C,x):[]}r(Tt,"OrdinaryOwnMetadataKeys");function Kn(C){if(C===null)return 1;switch(typeof C){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return C===null?1:6;default:return 6}}r(Kn,"Type");function pe(C){return C===void 0}r(pe,"IsUndefined");function Jn(C){return C===null}r(Jn,"IsNull");function cs(C){return typeof C=="symbol"}r(cs,"IsSymbol");function qe(C){return typeof C=="object"?C!==null:typeof C=="function"}r(qe,"IsObject");function h(C,x){switch(Kn(C)){case 0:return C;case 1:return C;case 2:return C;case 3:return C;case 4:return C;case 5:return C}var V=x===3?"string":x===5?"number":"default",M=rt(C,a);if(M!==void 0){var ae=M.call(C,V);if(qe(ae))throw new TypeError;return ae}return y(C,V==="default"?"number":V)}r(h,"ToPrimitive");function y(C,x){if(x==="string"){var V=C.toString;if(Ge(V)){var M=V.call(C);if(!qe(M))return M}var ae=C.valueOf;if(Ge(ae)){var M=ae.call(C);if(!qe(M))return M}}else{var ae=C.valueOf;if(Ge(ae)){var M=ae.call(C);if(!qe(M))return M}var nt=C.toString;if(Ge(nt)){var M=nt.call(C);if(!qe(M))return M}}throw new TypeError}r(y,"OrdinaryToPrimitive");function D(C){return!!C}r(D,"ToBoolean");function A(C){return""+C}r(A,"ToString");function Te(C){var x=h(C,3);return cs(x)?x:A(x)}r(Te,"ToPropertyKey");function Ye(C){return Array.isArray?Array.isArray(C):C instanceof Object?C instanceof Array:Object.prototype.toString.call(C)==="[object Array]"}r(Ye,"IsArray");function Ge(C){return typeof C=="function"}r(Ge,"IsCallable");function yt(C){return typeof C=="function"}r(yt,"IsConstructor");function vt(C){switch(Kn(C)){case 3:return!0;case 4:return!0;default:return!1}}r(vt,"IsPropertyKey");function Nn(C,x){return C===x||C!==C&&x!==x}r(Nn,"SameValueZero");function rt(C,x){var V=C[x];if(V!=null){if(!Ge(V))throw new TypeError;return V}}r(rt,"GetMethod");function en(C){var x=rt(C,s);if(!Ge(x))throw new TypeError;var V=x.call(C);if(!qe(V))throw new TypeError;return V}r(en,"GetIterator");function ps(C){return C.value}r(ps,"IteratorValue");function Na(C){var x=C.next();return x.done?!1:x}r(Na,"IteratorStep");function Vo(C){var x=C.return;x&&x.call(C)}r(Vo,"IteratorClose");function Lo(C){var x=Object.getPrototypeOf(C);if(typeof C!="function"||C===u||x!==u)return x;var V=C.prototype,M=V&&Object.getPrototypeOf(V);if(M==null||M===Object.prototype)return x;var ae=M.constructor;return typeof ae!="function"||ae===C?x:ae}r(Lo,"OrdinaryGetPrototypeOf");function iP(){var C;!pe(N)&&typeof n.Reflect<"u"&&!(N in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(C=rP(n.Reflect));var x,V,M,ae=new S,nt={registerProvider:ct,getProvider:H,setProvider:X};return nt;function ct(ee){if(!Object.isExtensible(nt))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case C===ee:break;case pe(x):x=ee;break;case x===ee:break;case pe(V):V=ee;break;case V===ee:break;default:M===void 0&&(M=new b),M.add(ee);break}}function Ae(ee,xe){if(!pe(x)){if(x.isProviderFor(ee,xe))return x;if(!pe(V)){if(V.isProviderFor(ee,xe))return x;if(!pe(M))for(var Ke=en(M);;){var it=Na(Ke);if(!it)return;var gn=ps(it);if(gn.isProviderFor(ee,xe))return Vo(Ke),gn}}}if(!pe(C)&&C.isProviderFor(ee,xe))return C}function H(ee,xe){var Ke=ae.get(ee),it;return pe(Ke)||(it=Ke.get(xe)),pe(it)&&(it=Ae(ee,xe),pe(it)||(pe(Ke)&&(Ke=new m,ae.set(ee,Ke)),Ke.set(xe,it))),it}function J(ee){if(pe(ee))throw new TypeError;return x===ee||V===ee||!pe(M)&&M.has(ee)}function X(ee,xe,Ke){if(!J(Ke))throw new Error("Metadata provider not registered.");var it=H(ee,xe);if(it!==Ke){if(!pe(it))return!1;var gn=ae.get(ee);pe(gn)&&(gn=new m,ae.set(ee,gn)),gn.set(xe,Ke)}return!0}}r(iP,"CreateMetadataRegistry");function oP(){var C;return!pe(N)&&qe(n.Reflect)&&Object.isExtensible(n.Reflect)&&(C=n.Reflect[N]),pe(C)&&(C=iP()),!pe(N)&&qe(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,N,{enumerable:!1,configurable:!1,writable:!1,value:C}),C}r(oP,"GetOrCreateMetadataRegistry");function aP(C){var x=new S,V={isProviderFor:r(function(J,X){var ee=x.get(J);return pe(ee)?!1:ee.has(X)},"isProviderFor"),OrdinaryDefineOwnMetadata:ct,OrdinaryHasOwnMetadata:ae,OrdinaryGetOwnMetadata:nt,OrdinaryOwnMetadataKeys:Ae,OrdinaryDeleteMetadata:H};return L.registerProvider(V),V;function M(J,X,ee){var xe=x.get(J),Ke=!1;if(pe(xe)){if(!ee)return;xe=new m,x.set(J,xe),Ke=!0}var it=xe.get(X);if(pe(it)){if(!ee)return;if(it=new m,xe.set(X,it),!C.setProvider(J,X,V))throw xe.delete(X),Ke&&x.delete(J),new Error("Wrong provider for target.")}return it}r(M,"GetOrCreateMetadataMap");function ae(J,X,ee){var xe=M(X,ee,!1);return pe(xe)?!1:D(xe.has(J))}r(ae,"OrdinaryHasOwnMetadata");function nt(J,X,ee){var xe=M(X,ee,!1);if(!pe(xe))return xe.get(J)}r(nt,"OrdinaryGetOwnMetadata");function ct(J,X,ee,xe){var Ke=M(ee,xe,!0);Ke.set(J,X)}r(ct,"OrdinaryDefineOwnMetadata");function Ae(J,X){var ee=[],xe=M(J,X,!1);if(pe(xe))return ee;for(var Ke=xe.keys(),it=en(Ke),gn=0;;){var Qg=Na(it);if(!Qg)return ee.length=gn,ee;var pP=ps(Qg);try{ee[gn]=pP}catch(fP){try{Vo(it)}finally{throw fP}}gn++}}r(Ae,"OrdinaryOwnMetadataKeys");function H(J,X,ee){var xe=M(X,ee,!1);if(pe(xe)||!xe.delete(J))return!1;if(xe.size===0){var Ke=x.get(X);pe(Ke)||(Ke.delete(ee),Ke.size===0&&x.delete(Ke))}return!0}r(H,"OrdinaryDeleteMetadata")}r(aP,"CreateMetadataProvider");function rP(C){var x=C.defineMetadata,V=C.hasOwnMetadata,M=C.getOwnMetadata,ae=C.getOwnMetadataKeys,nt=C.deleteMetadata,ct=new S,Ae={isProviderFor:r(function(H,J){var X=ct.get(H);return!pe(X)&&X.has(J)?!0:ae(H,J).length?(pe(X)&&(X=new b,ct.set(H,X)),X.add(J),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:M,OrdinaryOwnMetadataKeys:ae,OrdinaryDeleteMetadata:nt};return Ae}r(rP,"CreateFallbackProvider");function Va(C,x,V){var M=L.getProvider(C,x);if(!pe(M))return M;if(V){if(L.setProvider(C,x,z))return z;throw new Error("Illegal state.")}}r(Va,"GetMetadataProvider");function sP(){var C={},x=[],V=function(){function Ae(H,J,X){this._index=0,this._keys=H,this._values=J,this._selector=X}return r(Ae,"MapIterator"),Ae.prototype["@@iterator"]=function(){return this},Ae.prototype[s]=function(){return this},Ae.prototype.next=function(){var H=this._index;if(H>=0&&H<this._keys.length){var J=this._selector(this._keys[H],this._values[H]);return H+1>=this._keys.length?(this._index=-1,this._keys=x,this._values=x):this._index++,{value:J,done:!1}}return{value:void 0,done:!0}},Ae.prototype.throw=function(H){throw this._index>=0&&(this._index=-1,this._keys=x,this._values=x),H},Ae.prototype.return=function(H){return this._index>=0&&(this._index=-1,this._keys=x,this._values=x),{value:H,done:!0}},Ae}(),M=function(){function Ae(){this._keys=[],this._values=[],this._cacheKey=C,this._cacheIndex=-2}return r(Ae,"Map"),Object.defineProperty(Ae.prototype,"size",{get:r(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),Ae.prototype.has=function(H){return this._find(H,!1)>=0},Ae.prototype.get=function(H){var J=this._find(H,!1);return J>=0?this._values[J]:void 0},Ae.prototype.set=function(H,J){var X=this._find(H,!0);return this._values[X]=J,this},Ae.prototype.delete=function(H){var J=this._find(H,!1);if(J>=0){for(var X=this._keys.length,ee=J+1;ee<X;ee++)this._keys[ee-1]=this._keys[ee],this._values[ee-1]=this._values[ee];return this._keys.length--,this._values.length--,Nn(H,this._cacheKey)&&(this._cacheKey=C,this._cacheIndex=-2),!0}return!1},Ae.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=C,this._cacheIndex=-2},Ae.prototype.keys=function(){return new V(this._keys,this._values,ae)},Ae.prototype.values=function(){return new V(this._keys,this._values,nt)},Ae.prototype.entries=function(){return new V(this._keys,this._values,ct)},Ae.prototype["@@iterator"]=function(){return this.entries()},Ae.prototype[s]=function(){return this.entries()},Ae.prototype._find=function(H,J){if(!Nn(this._cacheKey,H)){this._cacheIndex=-1;for(var X=0;X<this._keys.length;X++)if(Nn(this._keys[X],H)){this._cacheIndex=X;break}}return this._cacheIndex<0&&J&&(this._cacheIndex=this._keys.length,this._keys.push(H),this._values.push(void 0)),this._cacheIndex},Ae}();return M;function ae(Ae,H){return Ae}function nt(Ae,H){return H}function ct(Ae,H){return[Ae,H]}}r(sP,"CreateMapPolyfill");function lP(){var C=function(){function x(){this._map=new m}return r(x,"Set"),Object.defineProperty(x.prototype,"size",{get:r(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),x.prototype.has=function(V){return this._map.has(V)},x.prototype.add=function(V){return this._map.set(V,V),this},x.prototype.delete=function(V){return this._map.delete(V)},x.prototype.clear=function(){this._map.clear()},x.prototype.keys=function(){return this._map.keys()},x.prototype.values=function(){return this._map.keys()},x.prototype.entries=function(){return this._map.entries()},x.prototype["@@iterator"]=function(){return this.keys()},x.prototype[s]=function(){return this.keys()},x}();return C}r(lP,"CreateSetPolyfill");function cP(){var C=16,x=f.create(),V=M();return function(){function H(){this._key=M()}return r(H,"WeakMap"),H.prototype.has=function(J){var X=ae(J,!1);return X!==void 0?f.has(X,this._key):!1},H.prototype.get=function(J){var X=ae(J,!1);return X!==void 0?f.get(X,this._key):void 0},H.prototype.set=function(J,X){var ee=ae(J,!0);return ee[this._key]=X,this},H.prototype.delete=function(J){var X=ae(J,!1);return X!==void 0?delete X[this._key]:!1},H.prototype.clear=function(){this._key=M()},H}();function M(){var H;do H="@@WeakMap@@"+Ae();while(f.has(x,H));return x[H]=!0,H}function ae(H,J){if(!i.call(H,V)){if(!J)return;Object.defineProperty(H,V,{value:f.create()})}return H[V]}function nt(H,J){for(var X=0;X<J;++X)H[X]=Math.random()*255|0;return H}function ct(H){if(typeof Uint8Array=="function"){var J=new Uint8Array(H);return typeof crypto<"u"?crypto.getRandomValues(J):typeof msCrypto<"u"?msCrypto.getRandomValues(J):nt(J,H),J}return nt(new Array(H),H)}function Ae(){var H=ct(C);H[6]=H[6]&79|64,H[8]=H[8]&191|128;for(var J="",X=0;X<C;++X){var ee=H[X];(X===4||X===6||X===8)&&(J+="-"),ee<16&&(J+="0"),J+=ee.toString(16).toLowerCase()}return J}}r(cP,"CreateWeakMapPolyfill");function ap(C){return C.__=void 0,delete C.__,C}r(ap,"MakeDictionary")})})(sT||(sT={}))});var gT=Re((m1,dT)=>{var rx=0,uT="changeUtils: ";function sx(){return"id-"+new Date().valueOf()+"-"+rx++}r(sx,"uid");function lx(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}r(lx,"appendComponentToReference");function cx(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return lx(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}r(cx,"getFlexReference");function px(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}r(px,"getAppVersion");function fx(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}r(fx,"getProjectId");function fT(e){return JSON.stringify({fileName:e.id||sx().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:uT+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})}r(fT,"createString");dT.exports={parse:r(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(uT,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:r(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=cx(t),e.appVersion=px(t),e.projectId=fx(t,e.reference),fT(e)},"createChangeString"),toString:r(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 fT(e)},"toString")}});var yT=Re((h1,mT)=>{mT.exports={change:gT()}});var rv=Re(rn=>{"use strict";var Mx=/[|\\{}()[\]^$+*?.]/g,Ux=Object.prototype.hasOwnProperty,Lf=r(function(e,t){return Ux.apply(e,[t])},"hasOwn");rn.escapeRegExpChars=function(e){return e?String(e).replace(Mx,"\\$&"):""};var kx={"&":"&","<":"<",">":">",'"':""","'":"'"},_x=/[&<>'"]/g;function Bx(e){return kx[e]||e}r(Bx,"encode_char");var Hx=`var _ENCODE_HTML_RULES = {
|
|
25
|
+
Actual: `+h.attribValue);else{var Te=h.tag,Ye=h.tags[h.tags.length-1]||h;Te.ns===Ye.ns&&(Te.ns=Object.create(Ye.ns)),Te.ns[A]=h.attribValue}h.attribList.push([h.attribName,h.attribValue])}else h.tag.attributes[h.attribName]=h.attribValue,Me(h,"onattribute",{name:h.attribName,value:h.attribValue});h.attribName=h.attribValue=""}r($t,"attrib");function Tt(h,y){if(h.opt.xmlns){var D=h.tag,A=at(h.tagName);D.prefix=A.prefix,D.local=A.local,D.uri=D.ns[A.prefix]||"",D.prefix&&!D.uri&&(Ie(h,"Unbound namespace prefix: "+JSON.stringify(h.tagName)),D.uri=A.prefix);var Te=h.tags[h.tags.length-1]||h;D.ns&&Te.ns!==D.ns&&Object.keys(D.ns).forEach(function(Bo){Me(h,"onopennamespace",{prefix:Bo,uri:D.ns[Bo]})});for(var Ye=0,Ge=h.attribList.length;Ye<Ge;Ye++){var yt=h.attribList[Ye],St=yt[0],Dn=yt[1],rt=at(St,!0),an=rt.prefix,As=rt.local,_a=an===""?"":D.ns[an]||"",_o={name:St,value:Dn,prefix:an,local:As,uri:_a};an&&an!=="xmlns"&&!_a&&(Ie(h,"Unbound namespace prefix: "+JSON.stringify(an)),_o.uri=an),h.tag.attributes[St]=_o,Me(h,"onattribute",_o)}h.attribList.length=0}h.tag.isSelfClosing=!!y,h.sawRoot=!0,h.tags.push(h.tag),Me(h,"onopentag",h.tag),y||(!h.noscript&&h.tagName.toLowerCase()==="script"?h.state=P.SCRIPT:h.state=P.TEXT,h.tag=null,h.tagName=""),h.attribName=h.attribValue="",h.attribList.length=0}r(Tt,"openTag");function Yn(h){if(!h.tagName){Ie(h,"Weird empty close tag."),h.textNode+="</>",h.state=P.TEXT;return}if(h.script){if(h.tagName!=="script"){h.script+="</"+h.tagName+">",h.tagName="",h.state=P.SCRIPT;return}Me(h,"onscript",h.script),h.script=""}var y=h.tags.length,D=h.tagName;h.strict||(D=D[h.looseCase]());for(var A=D;y--;){var Te=h.tags[y];if(Te.name!==A)Ie(h,"Unexpected close tag");else break}if(y<0){Ie(h,"Unmatched closing tag: "+h.tagName),h.textNode+="</"+h.tagName+">",h.state=P.TEXT;return}h.tagName=D;for(var Ye=h.tags.length;Ye-- >y;){var Ge=h.tag=h.tags.pop();h.tagName=h.tag.name,Me(h,"onclosetag",h.tagName);var yt={};for(var St in Ge.ns)yt[St]=Ge.ns[St];var Dn=h.tags[h.tags.length-1]||h;h.opt.xmlns&&Ge.ns!==Dn.ns&&Object.keys(Ge.ns).forEach(function(rt){var an=Ge.ns[rt];Me(h,"onclosenamespace",{prefix:rt,uri:an})})}y===0&&(h.closedRoot=!0),h.tagName=h.attribValue=h.attribName="",h.attribList.length=0,h.state=P.TEXT}r(Yn,"closeTag");function pe(h){var y=h.entity,D=y.toLowerCase(),A,Te="";return h.ENTITIES[y]?h.ENTITIES[y]:h.ENTITIES[D]?h.ENTITIES[D]:(y=D,y.charAt(0)==="#"&&(y.charAt(1)==="x"?(y=y.slice(2),A=parseInt(y,16),Te=A.toString(16)):(y=y.slice(1),A=parseInt(y,10),Te=A.toString(10))),y=y.replace(/^0+/,""),isNaN(A)||Te.toLowerCase()!==y?(Ie(h,"Invalid character entity"),"&"+h.entity+";"):String.fromCodePoint(A))}r(pe,"parseEntity");function Zn(h,y){y==="<"?(h.state=P.OPEN_WAKA,h.startTagPosition=h.position):te(y)||(Ie(h,"Non-whitespace before first tag."),h.textNode=y,h.state=P.TEXT)}r(Zn,"beginWhiteSpace");function Ps(h,y){var D="";return y<h.length&&(D=h.charAt(y)),D}r(Ps,"charAt");function qe(h){var y=this;if(this.error)throw this.error;if(y.closed)return wt(y,"Cannot write after close. Assign an onready handler.");if(h===null)return on(y);typeof h=="object"&&(h=h.toString());for(var D=0,A="";A=Ps(h,D++),y.c=A,!!A;)switch(y.trackPosition&&(y.position++,A===`
|
|
26
|
+
`?(y.line++,y.column=0):y.column++),y.state){case P.BEGIN:if(y.state=P.BEGIN_WHITESPACE,A==="\uFEFF")continue;Zn(y,A);continue;case P.BEGIN_WHITESPACE:Zn(y,A);continue;case P.TEXT:if(y.sawRoot&&!y.closedRoot){for(var Te=D-1;A&&A!=="<"&&A!=="&";)A=Ps(h,D++),A&&y.trackPosition&&(y.position++,A===`
|
|
27
|
+
`?(y.line++,y.column=0):y.column++);y.textNode+=h.substring(Te,D-1)}A==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=P.OPEN_WAKA,y.startTagPosition=y.position):(!te(A)&&(!y.sawRoot||y.closedRoot)&&Ie(y,"Text data outside of root node."),A==="&"?y.state=P.TEXT_ENTITY:y.textNode+=A);continue;case P.SCRIPT:A==="<"?y.state=P.SCRIPT_ENDING:y.script+=A;continue;case P.SCRIPT_ENDING:A==="/"?y.state=P.CLOSE_TAG:(y.script+="<"+A,y.state=P.SCRIPT);continue;case P.OPEN_WAKA:if(A==="!")y.state=P.SGML_DECL,y.sgmlDecl="";else if(!te(A))if(oe(L,A))y.state=P.OPEN_TAG,y.tagName=A;else if(A==="/")y.state=P.CLOSE_TAG,y.tagName="";else if(A==="?")y.state=P.PROC_INST,y.procInstName=y.procInstBody="";else{if(Ie(y,"Unencoded <"),y.startTagPosition+1<y.position){var Ye=y.position-y.startTagPosition;A=new Array(Ye).join(" ")+A}y.textNode+="<"+A,y.state=P.TEXT}continue;case P.SGML_DECL:if(y.sgmlDecl+A==="--"){y.state=P.COMMENT,y.comment="",y.sgmlDecl="";continue}y.doctype&&y.doctype!==!0&&y.sgmlDecl?(y.state=P.DOCTYPE_DTD,y.doctype+="<!"+y.sgmlDecl+A,y.sgmlDecl=""):(y.sgmlDecl+A).toUpperCase()===f?(Me(y,"onopencdata"),y.state=P.CDATA,y.sgmlDecl="",y.cdata=""):(y.sgmlDecl+A).toUpperCase()===u?(y.state=P.DOCTYPE,(y.doctype||y.sawRoot)&&Ie(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):A===">"?(Me(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=P.TEXT):(re(A)&&(y.state=P.SGML_DECL_QUOTED),y.sgmlDecl+=A);continue;case P.SGML_DECL_QUOTED:A===y.q&&(y.state=P.SGML_DECL,y.q=""),y.sgmlDecl+=A;continue;case P.DOCTYPE:A===">"?(y.state=P.TEXT,Me(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=A,A==="["?y.state=P.DOCTYPE_DTD:re(A)&&(y.state=P.DOCTYPE_QUOTED,y.q=A));continue;case P.DOCTYPE_QUOTED:y.doctype+=A,A===y.q&&(y.q="",y.state=P.DOCTYPE);continue;case P.DOCTYPE_DTD:A==="]"?(y.doctype+=A,y.state=P.DOCTYPE):A==="<"?(y.state=P.OPEN_WAKA,y.startTagPosition=y.position):re(A)?(y.doctype+=A,y.state=P.DOCTYPE_DTD_QUOTED,y.q=A):y.doctype+=A;continue;case P.DOCTYPE_DTD_QUOTED:y.doctype+=A,A===y.q&&(y.state=P.DOCTYPE_DTD,y.q="");continue;case P.COMMENT:A==="-"?y.state=P.COMMENT_ENDING:y.comment+=A;continue;case P.COMMENT_ENDING:A==="-"?(y.state=P.COMMENT_ENDED,y.comment=ko(y.opt,y.comment),y.comment&&Me(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+A,y.state=P.COMMENT);continue;case P.COMMENT_ENDED:A!==">"?(Ie(y,"Malformed comment"),y.comment+="--"+A,y.state=P.COMMENT):y.doctype&&y.doctype!==!0?y.state=P.DOCTYPE_DTD:y.state=P.TEXT;continue;case P.CDATA:A==="]"?y.state=P.CDATA_ENDING:y.cdata+=A;continue;case P.CDATA_ENDING:A==="]"?y.state=P.CDATA_ENDING_2:(y.cdata+="]"+A,y.state=P.CDATA);continue;case P.CDATA_ENDING_2:A===">"?(y.cdata&&Me(y,"oncdata",y.cdata),Me(y,"onclosecdata"),y.cdata="",y.state=P.TEXT):A==="]"?y.cdata+="]":(y.cdata+="]]"+A,y.state=P.CDATA);continue;case P.PROC_INST:A==="?"?y.state=P.PROC_INST_ENDING:te(A)?y.state=P.PROC_INST_BODY:y.procInstName+=A;continue;case P.PROC_INST_BODY:if(!y.procInstBody&&te(A))continue;A==="?"?y.state=P.PROC_INST_ENDING:y.procInstBody+=A;continue;case P.PROC_INST_ENDING:A===">"?(Me(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=P.TEXT):(y.procInstBody+="?"+A,y.state=P.PROC_INST_BODY);continue;case P.OPEN_TAG:oe(V,A)?y.tagName+=A:(Xi(y),A===">"?Tt(y):A==="/"?y.state=P.OPEN_TAG_SLASH:(te(A)||Ie(y,"Invalid character in tag name"),y.state=P.ATTRIB));continue;case P.OPEN_TAG_SLASH:A===">"?(Tt(y,!0),Yn(y)):(Ie(y,"Forward-slash in opening tag not followed by >"),y.state=P.ATTRIB);continue;case P.ATTRIB:if(te(A))continue;A===">"?Tt(y):A==="/"?y.state=P.OPEN_TAG_SLASH:oe(L,A)?(y.attribName=A,y.attribValue="",y.state=P.ATTRIB_NAME):Ie(y,"Invalid attribute name");continue;case P.ATTRIB_NAME:A==="="?y.state=P.ATTRIB_VALUE:A===">"?(Ie(y,"Attribute without value"),y.attribValue=y.attribName,$t(y),Tt(y)):te(A)?y.state=P.ATTRIB_NAME_SAW_WHITE:oe(V,A)?y.attribName+=A:Ie(y,"Invalid attribute name");continue;case P.ATTRIB_NAME_SAW_WHITE:if(A==="=")y.state=P.ATTRIB_VALUE;else{if(te(A))continue;Ie(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",Me(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",A===">"?Tt(y):oe(L,A)?(y.attribName=A,y.state=P.ATTRIB_NAME):(Ie(y,"Invalid attribute name"),y.state=P.ATTRIB)}continue;case P.ATTRIB_VALUE:if(te(A))continue;re(A)?(y.q=A,y.state=P.ATTRIB_VALUE_QUOTED):(y.opt.unquotedAttributeValues||wt(y,"Unquoted attribute value"),y.state=P.ATTRIB_VALUE_UNQUOTED,y.attribValue=A);continue;case P.ATTRIB_VALUE_QUOTED:if(A!==y.q){A==="&"?y.state=P.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=A;continue}$t(y),y.q="",y.state=P.ATTRIB_VALUE_CLOSED;continue;case P.ATTRIB_VALUE_CLOSED:te(A)?y.state=P.ATTRIB:A===">"?Tt(y):A==="/"?y.state=P.OPEN_TAG_SLASH:oe(L,A)?(Ie(y,"No whitespace between attributes"),y.attribName=A,y.attribValue="",y.state=P.ATTRIB_NAME):Ie(y,"Invalid attribute name");continue;case P.ATTRIB_VALUE_UNQUOTED:if(!X(A)){A==="&"?y.state=P.ATTRIB_VALUE_ENTITY_U:y.attribValue+=A;continue}$t(y),A===">"?Tt(y):y.state=P.ATTRIB;continue;case P.CLOSE_TAG:if(y.tagName)A===">"?Yn(y):oe(V,A)?y.tagName+=A:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=P.SCRIPT):(te(A)||Ie(y,"Invalid tagname in closing tag"),y.state=P.CLOSE_TAG_SAW_WHITE);else{if(te(A))continue;Pe(L,A)?y.script?(y.script+="</"+A,y.state=P.SCRIPT):Ie(y,"Invalid tagname in closing tag."):y.tagName=A}continue;case P.CLOSE_TAG_SAW_WHITE:if(te(A))continue;A===">"?Yn(y):Ie(y,"Invalid characters in closing tag");continue;case P.TEXT_ENTITY:case P.ATTRIB_VALUE_ENTITY_Q:case P.ATTRIB_VALUE_ENTITY_U:var Ge,yt;switch(y.state){case P.TEXT_ENTITY:Ge=P.TEXT,yt="textNode";break;case P.ATTRIB_VALUE_ENTITY_Q:Ge=P.ATTRIB_VALUE_QUOTED,yt="attribValue";break;case P.ATTRIB_VALUE_ENTITY_U:Ge=P.ATTRIB_VALUE_UNQUOTED,yt="attribValue";break}if(A===";"){var St=pe(y);y.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(St)?(y.entity="",y.state=Ge,y.write(St)):(y[yt]+=St,y.entity="",y.state=Ge)}else oe(y.entity.length?ee:H,A)?y.entity+=A:(Ie(y,"Invalid character in entity name"),y[yt]+="&"+y.entity+A,y.entity="",y.state=Ge);continue;default:throw new Error(y,"Unknown state: "+y.state)}return y.position>=y.bufferCheckPosition&&i(y),y}r(qe,"write");String.fromCodePoint||function(){var h=String.fromCharCode,y=Math.floor,D=r(function(){var A=16384,Te=[],Ye,Ge,yt=-1,St=arguments.length;if(!St)return"";for(var Dn="";++yt<St;){var rt=Number(arguments[yt]);if(!isFinite(rt)||rt<0||rt>1114111||y(rt)!==rt)throw RangeError("Invalid code point: "+rt);rt<=65535?Te.push(rt):(rt-=65536,Ye=(rt>>10)+55296,Ge=rt%1024+56320,Te.push(Ye,Ge)),(yt+1===St||Te.length>A)&&(Dn+=h.apply(null,Te),Te.length=0)}return Dn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:D,configurable:!0,writable:!0}):String.fromCodePoint=D}()})(typeof _s>"u"?_s.sax={}:_s)});var Bs=je((_R,jb)=>{jb.exports={isArray:r(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Hs=je((HR,wb)=>{var ME=Bs().isArray;wb.exports={copyOptions:r(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:r(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:r(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:r(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!ME(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:r(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:r(function(e,t){return e+"Fn"in t},"checkFnExists")}});var sf=je((WR,Gb)=>{var UE=Rb(),kE={on:r(function(){},"on"),parse:r(function(){},"parse")},Se=Hs(),Xo=Bs().isArray,I,rf=!0,ue;function _E(e){return I=Se.copyOptions(e),Se.ensureFlagExists("ignoreDeclaration",I),Se.ensureFlagExists("ignoreInstruction",I),Se.ensureFlagExists("ignoreAttributes",I),Se.ensureFlagExists("ignoreText",I),Se.ensureFlagExists("ignoreComment",I),Se.ensureFlagExists("ignoreCdata",I),Se.ensureFlagExists("ignoreDoctype",I),Se.ensureFlagExists("compact",I),Se.ensureFlagExists("alwaysChildren",I),Se.ensureFlagExists("addParent",I),Se.ensureFlagExists("trim",I),Se.ensureFlagExists("nativeType",I),Se.ensureFlagExists("nativeTypeAttributes",I),Se.ensureFlagExists("sanitize",I),Se.ensureFlagExists("instructionHasAttributes",I),Se.ensureFlagExists("captureSpacesBetweenElements",I),Se.ensureAlwaysArrayExists(I),Se.ensureKeyExists("declaration",I),Se.ensureKeyExists("instruction",I),Se.ensureKeyExists("attributes",I),Se.ensureKeyExists("text",I),Se.ensureKeyExists("comment",I),Se.ensureKeyExists("cdata",I),Se.ensureKeyExists("doctype",I),Se.ensureKeyExists("type",I),Se.ensureKeyExists("name",I),Se.ensureKeyExists("elements",I),Se.ensureKeyExists("parent",I),Se.checkFnExists("doctype",I),Se.checkFnExists("instruction",I),Se.checkFnExists("cdata",I),Se.checkFnExists("comment",I),Se.checkFnExists("text",I),Se.checkFnExists("instructionName",I),Se.checkFnExists("elementName",I),Se.checkFnExists("attributeName",I),Se.checkFnExists("attributeValue",I),Se.checkFnExists("attributes",I),I}r(_E,"validateOptions");function Bb(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}r(Bb,"nativeType");function Xa(e,t){var n;if(I.compact){if(!ue[I[e+"Key"]]&&(Xo(I.alwaysArray)?I.alwaysArray.indexOf(I[e+"Key"])!==-1:I.alwaysArray)&&(ue[I[e+"Key"]]=[]),ue[I[e+"Key"]]&&!Xo(ue[I[e+"Key"]])&&(ue[I[e+"Key"]]=[ue[I[e+"Key"]]]),e+"Fn"in I&&typeof t=="string"&&(t=I[e+"Fn"](t,ue)),e==="instruction"&&("instructionFn"in I||"instructionNameFn"in I)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in I)t[n]=I.instructionFn(t[n],n,ue);else{var i=t[n];delete t[n],t[I.instructionNameFn(n,i,ue)]=i}}Xo(ue[I[e+"Key"]])?ue[I[e+"Key"]].push(t):ue[I[e+"Key"]]=t}else{ue[I.elementsKey]||(ue[I.elementsKey]=[]);var o={};if(o[I.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;o[I.nameKey]="instructionNameFn"in I?I.instructionNameFn(n,t,ue):n,I.instructionHasAttributes?(o[I.attributesKey]=t[n][I.attributesKey],"instructionFn"in I&&(o[I.attributesKey]=I.instructionFn(o[I.attributesKey],n,ue))):("instructionFn"in I&&(t[n]=I.instructionFn(t[n],n,ue)),o[I.instructionKey]=t[n])}else e+"Fn"in I&&(t=I[e+"Fn"](t,ue)),o[I[e+"Key"]]=t;I.addParent&&(o[I.parentKey]=ue),ue[I.elementsKey].push(o)}}r(Xa,"addField");function Hb(e){if("attributesFn"in I&&e&&(e=I.attributesFn(e,ue)),(I.trim||"attributeValueFn"in I||"attributeNameFn"in I||I.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(I.trim&&(e[t]=e[t].trim()),I.nativeTypeAttributes&&(e[t]=Bb(e[t])),"attributeValueFn"in I&&(e[t]=I.attributeValueFn(e[t],t,ue)),"attributeNameFn"in I)){var n=e[t];delete e[t],e[I.attributeNameFn(t,e[t],ue)]=n}}return e}r(Hb,"manipulateAttributes");function BE(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||I.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=Hb(t)}if(e.name.toLowerCase()==="xml"){if(I.ignoreDeclaration)return;ue[I.declarationKey]={},Object.keys(t).length&&(ue[I.declarationKey][I.attributesKey]=t),I.addParent&&(ue[I.declarationKey][I.parentKey]=ue)}else{if(I.ignoreInstruction)return;I.trim&&(e.body=e.body.trim());var o={};I.instructionHasAttributes&&Object.keys(t).length?(o[e.name]={},o[e.name][I.attributesKey]=t):o[e.name]=e.body,Xa("instruction",o)}}r(BE,"onInstruction");function $b(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=Hb(t),"elementNameFn"in I&&(e=I.elementNameFn(e,ue)),I.compact){if(n={},!I.ignoreAttributes&&t&&Object.keys(t).length){n[I.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[I.attributesKey][i]=t[i])}!(e in ue)&&(Xo(I.alwaysArray)?I.alwaysArray.indexOf(e)!==-1:I.alwaysArray)&&(ue[e]=[]),ue[e]&&!Xo(ue[e])&&(ue[e]=[ue[e]]),Xo(ue[e])?ue[e].push(n):ue[e]=n}else ue[I.elementsKey]||(ue[I.elementsKey]=[]),n={},n[I.typeKey]="element",n[I.nameKey]=e,!I.ignoreAttributes&&t&&Object.keys(t).length&&(n[I.attributesKey]=t),I.alwaysChildren&&(n[I.elementsKey]=[]),ue[I.elementsKey].push(n);n[I.parentKey]=ue,ue=n}r($b,"onStartElement");function Mb(e){I.ignoreText||!e.trim()&&!I.captureSpacesBetweenElements||(I.trim&&(e=e.trim()),I.nativeType&&(e=Bb(e)),I.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),Xa("text",e))}r(Mb,"onText");function Ub(e){I.ignoreComment||(I.trim&&(e=e.trim()),Xa("comment",e))}r(Ub,"onComment");function kb(e){var t=ue[I.parentKey];I.addParent||delete ue[I.parentKey],ue=t}r(kb,"onEndElement");function HE(e){I.ignoreCdata||(I.trim&&(e=e.trim()),Xa("cdata",e))}r(HE,"onCdata");function GE(e){I.ignoreDoctype||(e=e.replace(/^ /,""),I.trim&&(e=e.trim()),Xa("doctype",e))}r(GE,"onDoctype");function _b(e){e.note=e}r(_b,"onError");Gb.exports=function(e,t){var n=rf?UE.parser(!0,{}):n=new kE.Parser("UTF-8"),i={};if(ue=i,I=_E(t),rf?(n.opt={strictEntities:!0},n.onopentag=$b,n.ontext=Mb,n.oncomment=Ub,n.onclosetag=kb,n.onerror=_b,n.oncdata=HE,n.ondoctype=GE,n.onprocessinginstruction=BE):(n.on("startElement",$b),n.on("text",Mb),n.on("comment",Ub),n.on("endElement",kb),n.on("error",_b)),rf)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[I.elementsKey]){var o=i[I.elementsKey];delete i[I.elementsKey],i[I.elementsKey]=o,delete i.text}return i}});var Kb=je((KR,Qb)=>{var Wb=Hs(),WE=sf();function QE(e){var t=Wb.copyOptions(e);return Wb.ensureSpacesExists(t),t}r(QE,"validateOptions");Qb.exports=function(e,t){var n,i,o,a;return n=QE(t),i=WE(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?o=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):o=JSON.stringify(i,null,n.spaces),o.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var cf=je((XR,nT)=>{var Ce=Hs(),KE=Bs().isArray,Pt,At;function JE(e){var t=Ce.copyOptions(e);return Ce.ensureFlagExists("ignoreDeclaration",t),Ce.ensureFlagExists("ignoreInstruction",t),Ce.ensureFlagExists("ignoreAttributes",t),Ce.ensureFlagExists("ignoreText",t),Ce.ensureFlagExists("ignoreComment",t),Ce.ensureFlagExists("ignoreCdata",t),Ce.ensureFlagExists("ignoreDoctype",t),Ce.ensureFlagExists("compact",t),Ce.ensureFlagExists("indentText",t),Ce.ensureFlagExists("indentCdata",t),Ce.ensureFlagExists("indentAttributes",t),Ce.ensureFlagExists("indentInstruction",t),Ce.ensureFlagExists("fullTagEmptyElement",t),Ce.ensureFlagExists("noQuotesForNativeAttributes",t),Ce.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),Ce.ensureKeyExists("declaration",t),Ce.ensureKeyExists("instruction",t),Ce.ensureKeyExists("attributes",t),Ce.ensureKeyExists("text",t),Ce.ensureKeyExists("comment",t),Ce.ensureKeyExists("cdata",t),Ce.ensureKeyExists("doctype",t),Ce.ensureKeyExists("type",t),Ce.ensureKeyExists("name",t),Ce.ensureKeyExists("elements",t),Ce.checkFnExists("doctype",t),Ce.checkFnExists("instruction",t),Ce.checkFnExists("cdata",t),Ce.checkFnExists("comment",t),Ce.checkFnExists("text",t),Ce.checkFnExists("instructionName",t),Ce.checkFnExists("elementName",t),Ce.checkFnExists("attributeName",t),Ce.checkFnExists("attributeValue",t),Ce.checkFnExists("attributes",t),Ce.checkFnExists("fullTagEmptyElement",t),t}r(JE,"validateOptions");function jn(e,t,n){return(!n&&e.spaces?`
|
|
28
|
+
`:"")+Array(t+1).join(e.spaces)}r(jn,"writeIndentation");function Gs(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,At,Pt));var i,o,a,s,l=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(s=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',o=""+e[i],o=o.replace(/"/g,"""),a="attributeNameFn"in t?t.attributeNameFn(i,o,At,Pt):i,l.push(t.spaces&&t.indentAttributes?jn(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(o,i,At,Pt):o)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(jn(t,n,!1)),l.join("")}r(Gs,"writeAttributes");function Jb(e,t,n){return Pt=e,At="xml",t.ignoreDeclaration?"":"<?xml"+Gs(e[t.attributesKey],t,n)+"?>"}r(Jb,"writeDeclaration");function Xb(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var o="instructionNameFn"in t?t.instructionNameFn(i,e[i],At,Pt):i;if(typeof e[i]=="object")return Pt=e,At=o,"<?"+o+Gs(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,At,Pt)),"<?"+o+(a?" "+a:"")+"?>"}r(Xb,"writeInstruction");function qb(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,At,Pt):e)+"-->"}r(qb,"writeComment");function zb(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,At,Pt):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}r(zb,"writeCdata");function Yb(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,At,Pt):e)+">"}r(Yb,"writeDoctype");function lf(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,At,Pt):e)}r(lf,"writeText");function XE(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}r(XE,"hasContent");function qE(e,t,n){Pt=e,At=e.name;var i=[],o="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+o),e[t.attributesKey]&&i.push(Gs(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(Zb(e[t.elementsKey],t,n+1)),Pt=e,At=e.name),i.push(t.spaces&&XE(e,t)?`
|
|
29
|
+
`+Array(n+1).join(t.spaces):""),i.push("</"+o+">")):i.push("/>"),i.join("")}r(qE,"writeElement");function Zb(e,t,n,i){return e.reduce(function(o,a){var s=jn(t,n,i&&!o);switch(a.type){case"element":return o+s+qE(a,t,n);case"comment":return o+s+qb(a[t.commentKey],t);case"doctype":return o+s+Yb(a[t.doctypeKey],t);case"cdata":return o+(t.indentCdata?s:"")+zb(a[t.cdataKey],t);case"text":return o+(t.indentText?s:"")+lf(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],o+(t.indentInstruction?s:"")+Xb(l,t,n)}},"")}r(Zb,"writeElements");function eT(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}r(eT,"hasContentCompact");function zE(e,t,n,i,o){Pt=e,At=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(">"+lf(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Gs(e[n.attributesKey],n,i));var l=eT(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(tT(e,n,i+1,!1)),Pt=e,At=t,t&&s.push((o?jn(n,i,!1):"")+"</"+a+">"),s.join("")}r(zE,"writeElementCompact");function tT(e,t,n,i){var o,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=KE(e[a])?e[a]:[e[a]],o=0;o<s.length;++o){switch(a){case t.declarationKey:l.push(Jb(s[o],t,n));break;case t.instructionKey:l.push((t.indentInstruction?jn(t,n,i):"")+Xb(s[o],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?jn(t,n,i):"")+lf(s[o],t));break;case t.cdataKey:l.push((t.indentCdata?jn(t,n,i):"")+zb(s[o],t));break;case t.doctypeKey:l.push(jn(t,n,i)+Yb(s[o],t));break;case t.commentKey:l.push(jn(t,n,i)+qb(s[o],t));break;default:l.push(jn(t,n,i)+zE(s[o],a,t,n,eT(s[o],t)))}i=i&&!l.length}return l.join("")}r(tT,"writeElementsCompact");nT.exports=function(e,t){t=JE(t);var n=[];return Pt=e,At="_root_",t.compact?n.push(tT(e,t,0,!0)):(e[t.declarationKey]&&n.push(Jb(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(Zb(e[t.elementsKey],t,0,!n.length))),n.join("")}});var oT=je((zR,iT)=>{var YE=cf();iT.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 YE(n,t)}});var qa=je((YR,aT)=>{var ZE=sf(),ex=Kb(),tx=cf(),nx=oT();aT.exports={xml2js:ZE,xml2json:ex,js2xml:tx,json2xml:nx}});var fT=je(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.convertEntityTypeAnnotations=Mt.convertPropertyAnnotations=Mt.convertNavigationPropertyAnnotations=Mt.convertEntitySetAnnotations=Mt.convertGenericAnnotations=Mt.convertV2Annotations=void 0;function ix(e,t,n){let i=[];switch(t){case"EntitySet":sT(e,i);break;case"EntityType":pT(e,i);break;case"NavigationProperty":lT(e,n,i);break;case"Property":cT(e,n,i);break;case"Singleton":break;default:break}return rT(e,n,i),i}r(ix,"convertV2Annotations");Mt.convertV2Annotations=ix;function rT(e,t,n){function i(o,a){o&&n.push(a)}if(r(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 o=[];e["sap:lower-boundary"]&&o.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&o.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:o}})}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}]}})}r(rT,"convertGenericAnnotations");Mt.convertGenericAnnotations=rT;function sT(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"]}}]}})}r(sT,"convertEntitySetAnnotations");Mt.convertEntitySetAnnotations=sT;function lT(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}}]}}}]}]}}]}})}r(lT,"convertNavigationPropertyAnnotations");Mt.convertNavigationPropertyAnnotations=lT;function cT(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}]}}]}})}r(cT,"convertPropertyAnnotations");Mt.convertPropertyAnnotations=cT;function pT(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:[]}}]}})}r(pT,"convertEntityTypeAnnotations");Mt.convertEntityTypeAnnotations=pT});var hT=je(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.parse=void 0;var ox=qa(),me=af(),za=fT(),Ks=/^Collection\((.+)\)$/;function ax(e){return e.Type!==null&&e.Type!==void 0}r(ax,"isV4NavProperty");function rx(e){return e.map(t=>t._attributes.Name)}r(rx,"getEntityTypeKeys");function gT(e,t,n,i){return e.reduce((o,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:qo(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}o.entityProperties.push(s),t.indexOf(s.name)!==-1&&o.entityKeys.push(s);let l=(0,za.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(zi(s.fullyQualifiedName,l)),o},{entityProperties:[],entityKeys:[]})}r(gT,"parseProperties");function sx(e,t,n){return e.reduce((i,o)=>(i.push({sourceTypeName:t,sourceProperty:o._attributes.Property,targetTypeName:n,targetProperty:o._attributes.ReferencedProperty}),i),[])}r(sx,"parseReferentialConstraint");function lx(e,t){return e.reduce((n,i)=>{let o=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(o!==void 0&&a!==void 0){let s=(0,me.ensureArray)(i.Principal.PropertyRef),l=(0,me.ensureArray)(i.Dependent.PropertyRef);o.multiplicity!=="1"&&(a=o,o=t.find(c=>c.role===i.Dependent._attributes.Role),l=s,s=(0,me.ensureArray)(i.Dependent.PropertyRef));for(let c of s){let p=s.indexOf(c);n.push({sourceTypeName:o.type,sourceProperty:c._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}r(lx,"parseV2ReferentialConstraint");function mT(e,t,n,i){return e.reduce((o,a)=>{let s=a._attributes;if(ax(s)){let l=s.Type.match(Ks),c=l!==null,p=wn(l?l[1]:s.Type);o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:c,targetTypeName:p,referentialConstraint:sx((0,me.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:c,FromRole:p}=s;o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:c,fromRole:p});let f=(0,za.convertV2Annotations)(s,"NavigationProperty",s.Name);f.length>0&&i.push(zi(`${n}/${s.Name}`,f))}return o},[])}r(mT,"parseNavigationProperties");function cx(e,t,n){return e.map(i=>{let o=`${t}.${i._attributes.Name}`,a=(0,me.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:o,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}r(cx,"parseAssociationSets");function px(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,o=(0,me.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:o,referentialConstraints:lx((0,me.ensureArray)(n.ReferentialConstraint),o)}})}r(px,"parseAssociations");function fx(e,t,n){return e.reduce((i,o)=>{let a=o.Key?rx((0,me.ensureArray)(o.Key.PropertyRef)):[],s=`${n}.${o._attributes.Name}`,{entityProperties:l,entityKeys:c}=gT((0,me.ensureArray)(o.Property),a,s,t),p=mT((0,me.ensureArray)(o.NavigationProperty),o,s,t),f={_type:"EntityType",name:o._attributes.Name,fullyQualifiedName:s,keys:c,entityProperties:l,actions:{},navigationProperties:p},u=(0,za.convertV2Annotations)(o._attributes,"EntityType",o._attributes.Name);return u.length>0&&t.push(zi(f.fullyQualifiedName,u)),i.push(f),i},[])}r(fx,"parseEntityTypes");function ux(e,t,n){return e.reduce((i,o)=>{let a=`${n}.${o._attributes.Name}`,{entityProperties:s}=gT((0,me.ensureArray)(o.Property),[],a,t),l=mT((0,me.ensureArray)(o.NavigationProperty),o,a,t);return i.push({_type:"ComplexType",name:o._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}r(ux,"parseComplexTypes");function dx(e,t){return e.reduce((n,i)=>{let o=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:o,underlyingType:i._attributes.UnderlyingType}),n},[])}r(dx,"parseTypeDefinitions");function gx(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,me.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:wn(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,za.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return c.length>0&&i.push(zi(l.fullyQualifiedName,c)),l})}r(gx,"parseEntitySets");function mx(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,me.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:wn(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,za.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return c.length>0&&i.push(zi(l.fullyQualifiedName,c)),l})}r(mx,"parseSingletons");function uT(e,t,n){return e.map(i=>{let o=(0,me.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=o.map(c=>qo(c._attributes.Type).type).join(","):s=a?qo(o[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?qo(o[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:o.map(c=>{let{isCollection:p,type:f}=qo(c._attributes.Type),u={_type:"ActionParameter",fullyQualifiedName:`${l}/${c._attributes.Name}`,name:`${c._attributes.Name}`,type:f,isCollection:p};return c._attributes.MaxLength&&(u.maxLength=parseInt(c._attributes.MaxLength,10)),c._attributes.Precision&&(u.precision=parseInt(c._attributes.Precision,10)),c._attributes.Scale&&(u.scale=parseInt(c._attributes.Scale,10)),u.nullable=c._attributes.Nullable!=="false",u}),returnType:i.ReturnType?qo(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Ks)!==null:!1}})}r(uT,"parseActions");function yx(e,t,n){return e.map(i=>{let o=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:o?o.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,me.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(Ks)!==null:!1}})}r(yx,"parseV2FunctionImport");function dT(e,t){return e.map(n=>{var i;let o=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:wn(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:wn(o)}})}r(dT,"parseActionImports");function hx(e,t,n){return e.map(i=>{let{Annotation:o,_attributes:a,...s}=i,l={};if(a){let c=Object.keys(a).find(f=>f!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Qs(s,p,n,!1):c&&(l.value=yT({[c]:a[c]},p,n)),i.Annotation){let f=Xs((0,me.ensureArray)(i.Annotation),p,n);f&&f.length>0&&n.push(zi(p,f))}}return l})}r(hx,"parsePropertyValues");function Js(e,t,n){let i=Xs((0,me.ensureArray)(e.Annotation),t,n),o={type:e._attributes?wn(e._attributes.Type):void 0,propertyValues:hx((0,me.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(o.annotations=i),o}r(Js,"parseRecord");function ii(e,t){return e[t]!=null}r(ii,"isExpressionOfType");function Ws(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}}}r(Ws,"parseModelPath");function ff(e,t,n){if(ii(e,"Record")){let i=(0,me.ensureArray)(e.Record).map((o,a)=>Js(o,t+"/"+a,n));return i.type="Record",i}else if(ii(e,"PropertyPath")){let i=(0,me.ensureArray)(e.PropertyPath).map(o=>Ws(o,"PropertyPath"));return i.type="PropertyPath",i}else if(ii(e,"NavigationPropertyPath")){let i=(0,me.ensureArray)(e.NavigationPropertyPath).map(o=>Ws(o,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(ii(e,"String")){let i=(0,me.ensureArray)(e.String).map(o=>o._text);return i.type="String",i}else if(ii(e,"AnnotationPath")){let i=(0,me.ensureArray)(e.AnnotationPath).map(o=>Ws(o,"AnnotationPath"));return i.type="AnnotationPath",i}else if(ii(e,"Path")){let i=(0,me.ensureArray)(e.Path).map(o=>Ws(o,"Path"));return i.type="Path",i}else if(ii(e,"If")){let i=(0,me.ensureArray)(e.If).map(o=>o._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[]}r(ff,"parseCollection");function Ze(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(o=>Qs({[i]:o},"",[],!0))):n.push(Qs({[i]:e[i]},"",[],!0))}),n}r(Ze,"parseChildren");function yT(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 o=i[0];switch(o){case"String":return{type:"String",String:e[o]};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[o]};case"Collection":return{type:"Collection",Collection:ff(e.Collection,t,n)};case"Record":return{type:"Record",Record:Js(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ze(e.Apply),$Function:Ze(e.Function)};case"And":return{type:"And",$And:Ze(e.And)};case"Or":return{type:"Or",$Or:Ze(e.Or)};case"Eq":return{type:"Eq",$Eq:Ze(e.Eq)};case"Gt":return{type:"Gt",$Gt:Ze(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ze(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ze(e.Lt)};case"Le":return{type:"Le",$Le:Ze(e.Le)};case"If":return{type:"If",$If:Ze(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+o),{type:"Unknown"}}}r(yT,"parseInlineExpression");function Qs(e,t,n,i){let o=Object.keys(e);if(o.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=o[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:Ze(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:ff(e.Collection,t,n)};case"Record":return{type:"Record",Record:Js(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ze(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:Ze(e.And)};case"Ne":return{type:"Ne",$Ne:Ze(e.Ne)};case"Not":return{type:"Not",$Not:Ze(e.Not)[0]};case"Or":return{type:"Or",$Or:Ze(e.Or)};case"Eq":return{type:"Eq",$Eq:Ze(e.Eq)};case"If":return{type:"If",$If:Ze(e.If)};case"Gt":return{type:"Gt",$Gt:Ze(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ze(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ze(e.Lt)};case"Le":return{type:"Le",$Le:Ze(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}r(Qs,"parseExpression");function bx(e,t,n){let{Term:i,Qualifier:o,...a}=e._attributes,s={term:wn(i),qualifier:o},l=`${t}@${wn(i)}`;if(o!==""&&o!==void 0&&(l+=`#${o}`),a&&Object.keys(a).length>0&&(s.value=yT(a,l,n)),e.Annotation){let p=Xs((0,me.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let c=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return ii(e,"Record")?s.record=Js(e.Record,l,n):ii(e,"Collection")?s.collection=ff(e.Collection,l,n):c.length===1?s.value=Qs({[c[0]]:e[c[0]]},l,n,!1):c.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}r(bx,"parseAnnotation");function Xs(e,t,n){return e.map(i=>bx(i,t,n))}r(Xs,"parseAnnotations");function zi(e,t){return{target:e,annotations:t}}r(zi,"createAnnotationList");function Tx(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(zi(wn(n._attributes.Target),Xs((0,me.ensureArray)(n.Annotation),n._attributes.Target,t)))})}r(Tx,"parseAnnotationLists");function Sx(e,t,n){let i=e._attributes.Namespace,o=[],a=fx((0,me.ensureArray)(e.EntityType),o,i),s=ux((0,me.ensureArray)(e.ComplexType),o,i),l=dx((0,me.ensureArray)(e.TypeDefinition),i),c=[],p=[],f=[],u={_type:"EntityContainer",fullyQualifiedName:""},m=[],b=[];if(e.EntityContainer)if(c=gx((0,me.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,o),p=mx((0,me.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,o),f=cx((0,me.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),u={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")m=m.concat(yx((0,me.ensureArray)(e.EntityContainer.FunctionImport),c,u.fullyQualifiedName));else if(t==="4.0")b=b.concat(dT((0,me.ensureArray)(e.EntityContainer.FunctionImport),u.fullyQualifiedName)),b=b.concat(dT((0,me.ensureArray)(e.EntityContainer.ActionImport),u.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(m=m.concat(uT((0,me.ensureArray)(e.Action),i,!1)),m=m.concat(uT((0,me.ensureArray)(e.Function),i,!0)));let S=px((0,me.ensureArray)(e.Association),i);Tx((0,me.ensureArray)(e.Annotations),o);let L={};return L[n]=o,{associations:S,associationSets:f,annotations:L,entityContainer:u,namespace:i,entitySets:c,singletons:p,complexTypes:s,typeDefinitions:l,actions:m,actionImports:b,entityTypes:a}}r(Sx,"parseSchema");function vx(e){return e.reduce((t,n)=>((0,me.ensureArray)(n["edmx:Include"]).forEach(o=>{t.push({uri:n._attributes.Uri,alias:o._attributes.Alias,namespace:o._attributes.Namespace})}),t),[])}r(vx,"parseReferences");var pf={};function qo(e){let t=e.match(Ks),n=t?t[1]:e,i=wn(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}r(qo,"unaliasType");function wn(e){var t;if(!e)return e;let n=["@","/","("],i=[],o=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let c=e.substring(o,a);i.push((t=pf[c])!==null&&t!==void 0?t:c),o=a,s=!1}n.includes(l)&&(i.push(e.substring(o,a+1)),o=a+1,s=!0)}return i.push(e.substring(o)),i.join("")}r(wn,"unalias");function Px(e){let t=e.reduce((b,S)=>b.concat(S.associations),[]),n=e.reduce((b,S)=>b.concat(S.associationSets),[]),i=e.reduce((b,S)=>b.concat(S.entitySets),[]),o=e.reduce((b,S)=>b.concat(S.singletons),[]),a=e.reduce((b,S)=>b.concat(S.entityTypes),[]),s=e.reduce((b,S)=>b.concat(S.actions),[]),l=e.reduce((b,S)=>b.concat(S.actionImports),[]),c=e.reduce((b,S)=>b.concat(S.complexTypes),[]),p=e.reduce((b,S)=>b.concat(S.typeDefinitions),[]),f={};e.forEach(b=>{f=Object.assign(f,b.annotations)});let u,m;return e.forEach(b=>{b.entityContainer&&Object.keys(b.entityContainer).length>0&&(u=b.entityContainer,m=b.namespace)}),i.forEach(b=>{let S=a.find(L=>L.fullyQualifiedName===b.entityTypeName);S==null||S.navigationProperties.forEach(L=>{let V=L,H=n.find(ee=>ee.association===V.relationship);if(H){let ee=H.associationEnd.find(te=>te.entitySet!==b.fullyQualifiedName);ee&&(b.navigationPropertyBinding[L.name]=ee.entitySet)}})}),a.forEach(b=>{b.navigationProperties.forEach(S=>{let L=S,V=t.find(H=>H.fullyQualifiedName===L.relationship);V&&V.referentialConstraints&&V.referentialConstraints.length>0&&(V.referentialConstraints[0].sourceTypeName===b.fullyQualifiedName?L.referentialConstraint=V.referentialConstraints:L.referentialConstraint=V.referentialConstraints.map(H=>({sourceTypeName:H.targetTypeName,sourceProperty:H.targetProperty,targetTypeName:H.sourceTypeName,targetProperty:H.sourceProperty})))})}),{associations:t,associationSets:n,annotations:f,entityContainer:u,namespace:m,entitySets:i,singletons:o,complexTypes:c,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}r(Px,"mergeSchemas");function Ax(e,t){pf=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{pf[n._attributes.Alias]=n._attributes.Namespace})}r(Ax,"createAliasMap");function Cx(e,t="serviceFile"){let n=(0,ox.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,o=(0,me.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=vx((0,me.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));Ax(a,o);let s=o.map(c=>Sx(c,i,t));return new me.RawMetadataInstance(t,i,Px(s),a)}r(Cx,"parse");qs.parse=Cx});var bT=je(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.parse=zo.merge=void 0;var Ex=Db();Object.defineProperty(zo,"merge",{enumerable:!0,get:r(function(){return Ex.merge},"get")});var xx=hT();Object.defineProperty(zo,"parse",{enumerable:!0,get:r(function(){return xx.parse},"get")})});var RT=je(()=>{var DT;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=o(e);typeof n.Reflect<"u"&&(i=o(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function o(c,p){return function(f,u){Object.defineProperty(c,f,{configurable:!0,writable:!0,value:u}),p&&p(f,u)}}r(o,"makeExporter");function a(){try{return Function("return this;")()}catch{}}r(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}r(s,"indirectEvalThis");function l(){return a()||s()}r(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",a=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",c={__proto__:[]}instanceof Array,p=!l&&!c,f={create:l?function(){return Pp(Object.create(null))}:c?function(){return Pp({__proto__:null})}:function(){return Pp({})},has:p?function(C,x){return i.call(C,x)}:function(C,x){return x in C},get:p?function(C,x){return i.call(C,x)?C[x]:void 0}:function(C,x){return C[x]}},u=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:zP(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:YP(),S=typeof WeakMap=="function"?WeakMap:ZP(),L=o?Symbol.for("@reflect-metadata:registry"):void 0,V=JP(),H=XP(V);function ee(C,x,N,U){if(pe(N)){if(!Ye(C))throw new TypeError;if(!yt(x))throw new TypeError;return Ti(C,x)}else{if(!Ye(C))throw new TypeError;if(!qe(x))throw new TypeError;if(!qe(U)&&!pe(U)&&!Zn(U))throw new TypeError;return Zn(U)&&(U=void 0),N=Te(N),ko(C,x,N,U)}}r(ee,"decorate"),t("decorate",ee);function te(C,x){function N(U,ae){if(!qe(U))throw new TypeError;if(!pe(ae)&&!St(ae))throw new TypeError;at(C,x,U,ae)}return r(N,"decorator"),N}r(te,"metadata"),t("metadata",te);function re(C,x,N,U){if(!qe(N))throw new TypeError;return pe(U)||(U=Te(U)),at(C,x,N,U)}r(re,"defineMetadata"),t("defineMetadata",re);function X(C,x,N){if(!qe(x))throw new TypeError;return pe(N)||(N=Te(N)),wt(C,x,N)}r(X,"hasMetadata"),t("hasMetadata",X);function oe(C,x,N){if(!qe(x))throw new TypeError;return pe(N)||(N=Te(N)),on(C,x,N)}r(oe,"hasOwnMetadata"),t("hasOwnMetadata",oe);function Pe(C,x,N){if(!qe(x))throw new TypeError;return pe(N)||(N=Te(N)),Ie(C,x,N)}r(Pe,"getMetadata"),t("getMetadata",Pe);function P(C,x,N){if(!qe(x))throw new TypeError;return pe(N)||(N=Te(N)),Xi(C,x,N)}r(P,"getOwnMetadata"),t("getOwnMetadata",P);function Lt(C,x){if(!qe(C))throw new TypeError;return pe(x)||(x=Te(x)),$t(C,x)}r(Lt,"getMetadataKeys"),t("getMetadataKeys",Lt);function nn(C,x){if(!qe(C))throw new TypeError;return pe(x)||(x=Te(x)),Tt(C,x)}r(nn,"getOwnMetadataKeys"),t("getOwnMetadataKeys",nn);function Me(C,x,N){if(!qe(x))throw new TypeError;if(pe(N)||(N=Te(N)),!qe(x))throw new TypeError;pe(N)||(N=Te(N));var U=Ba(x,N,!1);return pe(U)?!1:U.OrdinaryDeleteMetadata(C,x,N)}r(Me,"deleteMetadata"),t("deleteMetadata",Me);function Ti(C,x){for(var N=C.length-1;N>=0;--N){var U=C[N],ae=U(x);if(!pe(ae)&&!Zn(ae)){if(!yt(ae))throw new TypeError;x=ae}}return x}r(Ti,"DecorateConstructor");function ko(C,x,N,U){for(var ae=C.length-1;ae>=0;--ae){var nt=C[ae],pt=nt(x,N,U);if(!pe(pt)&&!Zn(pt)){if(!qe(pt))throw new TypeError;U=pt}}return U}r(ko,"DecorateProperty");function wt(C,x,N){var U=on(C,x,N);if(U)return!0;var ae=Bo(x);return Zn(ae)?!1:wt(C,ae,N)}r(wt,"OrdinaryHasMetadata");function on(C,x,N){var U=Ba(x,N,!1);return pe(U)?!1:D(U.OrdinaryHasOwnMetadata(C,x,N))}r(on,"OrdinaryHasOwnMetadata");function Ie(C,x,N){var U=on(C,x,N);if(U)return Xi(C,x,N);var ae=Bo(x);if(!Zn(ae))return Ie(C,ae,N)}r(Ie,"OrdinaryGetMetadata");function Xi(C,x,N){var U=Ba(x,N,!1);if(!pe(U))return U.OrdinaryGetOwnMetadata(C,x,N)}r(Xi,"OrdinaryGetOwnMetadata");function at(C,x,N,U){var ae=Ba(N,U,!0);ae.OrdinaryDefineOwnMetadata(C,x,N,U)}r(at,"OrdinaryDefineOwnMetadata");function $t(C,x){var N=Tt(C,x),U=Bo(C);if(U===null)return N;var ae=$t(U,x);if(ae.length<=0)return N;if(N.length<=0)return ae;for(var nt=new b,pt=[],Ae=0,G=N;Ae<G.length;Ae++){var q=G[Ae],Y=nt.has(q);Y||(nt.add(q),pt.push(q))}for(var ne=0,xe=ae;ne<xe.length;ne++){var q=xe[ne],Y=nt.has(q);Y||(nt.add(q),pt.push(q))}return pt}r($t,"OrdinaryMetadataKeys");function Tt(C,x){var N=Ba(C,x,!1);return N?N.OrdinaryOwnMetadataKeys(C,x):[]}r(Tt,"OrdinaryOwnMetadataKeys");function Yn(C){if(C===null)return 1;switch(typeof C){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return C===null?1:6;default:return 6}}r(Yn,"Type");function pe(C){return C===void 0}r(pe,"IsUndefined");function Zn(C){return C===null}r(Zn,"IsNull");function Ps(C){return typeof C=="symbol"}r(Ps,"IsSymbol");function qe(C){return typeof C=="object"?C!==null:typeof C=="function"}r(qe,"IsObject");function h(C,x){switch(Yn(C)){case 0:return C;case 1:return C;case 2:return C;case 3:return C;case 4:return C;case 5:return C}var N=x===3?"string":x===5?"number":"default",U=rt(C,a);if(U!==void 0){var ae=U.call(C,N);if(qe(ae))throw new TypeError;return ae}return y(C,N==="default"?"number":N)}r(h,"ToPrimitive");function y(C,x){if(x==="string"){var N=C.toString;if(Ge(N)){var U=N.call(C);if(!qe(U))return U}var ae=C.valueOf;if(Ge(ae)){var U=ae.call(C);if(!qe(U))return U}}else{var ae=C.valueOf;if(Ge(ae)){var U=ae.call(C);if(!qe(U))return U}var nt=C.toString;if(Ge(nt)){var U=nt.call(C);if(!qe(U))return U}}throw new TypeError}r(y,"OrdinaryToPrimitive");function D(C){return!!C}r(D,"ToBoolean");function A(C){return""+C}r(A,"ToString");function Te(C){var x=h(C,3);return Ps(x)?x:A(x)}r(Te,"ToPropertyKey");function Ye(C){return Array.isArray?Array.isArray(C):C instanceof Object?C instanceof Array:Object.prototype.toString.call(C)==="[object Array]"}r(Ye,"IsArray");function Ge(C){return typeof C=="function"}r(Ge,"IsCallable");function yt(C){return typeof C=="function"}r(yt,"IsConstructor");function St(C){switch(Yn(C)){case 3:return!0;case 4:return!0;default:return!1}}r(St,"IsPropertyKey");function Dn(C,x){return C===x||C!==C&&x!==x}r(Dn,"SameValueZero");function rt(C,x){var N=C[x];if(N!=null){if(!Ge(N))throw new TypeError;return N}}r(rt,"GetMethod");function an(C){var x=rt(C,s);if(!Ge(x))throw new TypeError;var N=x.call(C);if(!qe(N))throw new TypeError;return N}r(an,"GetIterator");function As(C){return C.value}r(As,"IteratorValue");function _a(C){var x=C.next();return x.done?!1:x}r(_a,"IteratorStep");function _o(C){var x=C.return;x&&x.call(C)}r(_o,"IteratorClose");function Bo(C){var x=Object.getPrototypeOf(C);if(typeof C!="function"||C===u||x!==u)return x;var N=C.prototype,U=N&&Object.getPrototypeOf(N);if(U==null||U===Object.prototype)return x;var ae=U.constructor;return typeof ae!="function"||ae===C?x:ae}r(Bo,"OrdinaryGetPrototypeOf");function KP(){var C;!pe(L)&&typeof n.Reflect<"u"&&!(L in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(C=qP(n.Reflect));var x,N,U,ae=new S,nt={registerProvider:pt,getProvider:G,setProvider:Y};return nt;function pt(ne){if(!Object.isExtensible(nt))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case C===ne:break;case pe(x):x=ne;break;case x===ne:break;case pe(N):N=ne;break;case N===ne:break;default:U===void 0&&(U=new b),U.add(ne);break}}function Ae(ne,xe){if(!pe(x)){if(x.isProviderFor(ne,xe))return x;if(!pe(N)){if(N.isProviderFor(ne,xe))return x;if(!pe(U))for(var Ke=an(U);;){var it=_a(Ke);if(!it)return;var hn=As(it);if(hn.isProviderFor(ne,xe))return _o(Ke),hn}}}if(!pe(C)&&C.isProviderFor(ne,xe))return C}function G(ne,xe){var Ke=ae.get(ne),it;return pe(Ke)||(it=Ke.get(xe)),pe(it)&&(it=Ae(ne,xe),pe(it)||(pe(Ke)&&(Ke=new m,ae.set(ne,Ke)),Ke.set(xe,it))),it}function q(ne){if(pe(ne))throw new TypeError;return x===ne||N===ne||!pe(U)&&U.has(ne)}function Y(ne,xe,Ke){if(!q(Ke))throw new Error("Metadata provider not registered.");var it=G(ne,xe);if(it!==Ke){if(!pe(it))return!1;var hn=ae.get(ne);pe(hn)&&(hn=new m,ae.set(ne,hn)),hn.set(xe,Ke)}return!0}}r(KP,"CreateMetadataRegistry");function JP(){var C;return!pe(L)&&qe(n.Reflect)&&Object.isExtensible(n.Reflect)&&(C=n.Reflect[L]),pe(C)&&(C=KP()),!pe(L)&&qe(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,L,{enumerable:!1,configurable:!1,writable:!1,value:C}),C}r(JP,"GetOrCreateMetadataRegistry");function XP(C){var x=new S,N={isProviderFor:r(function(q,Y){var ne=x.get(q);return pe(ne)?!1:ne.has(Y)},"isProviderFor"),OrdinaryDefineOwnMetadata:pt,OrdinaryHasOwnMetadata:ae,OrdinaryGetOwnMetadata:nt,OrdinaryOwnMetadataKeys:Ae,OrdinaryDeleteMetadata:G};return V.registerProvider(N),N;function U(q,Y,ne){var xe=x.get(q),Ke=!1;if(pe(xe)){if(!ne)return;xe=new m,x.set(q,xe),Ke=!0}var it=xe.get(Y);if(pe(it)){if(!ne)return;if(it=new m,xe.set(Y,it),!C.setProvider(q,Y,N))throw xe.delete(Y),Ke&&x.delete(q),new Error("Wrong provider for target.")}return it}r(U,"GetOrCreateMetadataMap");function ae(q,Y,ne){var xe=U(Y,ne,!1);return pe(xe)?!1:D(xe.has(q))}r(ae,"OrdinaryHasOwnMetadata");function nt(q,Y,ne){var xe=U(Y,ne,!1);if(!pe(xe))return xe.get(q)}r(nt,"OrdinaryGetOwnMetadata");function pt(q,Y,ne,xe){var Ke=U(ne,xe,!0);Ke.set(q,Y)}r(pt,"OrdinaryDefineOwnMetadata");function Ae(q,Y){var ne=[],xe=U(q,Y,!1);if(pe(xe))return ne;for(var Ke=xe.keys(),it=an(Ke),hn=0;;){var hm=_a(it);if(!hm)return ne.length=hn,ne;var eA=As(hm);try{ne[hn]=eA}catch(tA){try{_o(it)}finally{throw tA}}hn++}}r(Ae,"OrdinaryOwnMetadataKeys");function G(q,Y,ne){var xe=U(Y,ne,!1);if(pe(xe)||!xe.delete(q))return!1;if(xe.size===0){var Ke=x.get(Y);pe(Ke)||(Ke.delete(ne),Ke.size===0&&x.delete(Ke))}return!0}r(G,"OrdinaryDeleteMetadata")}r(XP,"CreateMetadataProvider");function qP(C){var x=C.defineMetadata,N=C.hasOwnMetadata,U=C.getOwnMetadata,ae=C.getOwnMetadataKeys,nt=C.deleteMetadata,pt=new S,Ae={isProviderFor:r(function(G,q){var Y=pt.get(G);return!pe(Y)&&Y.has(q)?!0:ae(G,q).length?(pe(Y)&&(Y=new b,pt.set(G,Y)),Y.add(q),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:N,OrdinaryGetOwnMetadata:U,OrdinaryOwnMetadataKeys:ae,OrdinaryDeleteMetadata:nt};return Ae}r(qP,"CreateFallbackProvider");function Ba(C,x,N){var U=V.getProvider(C,x);if(!pe(U))return U;if(N){if(V.setProvider(C,x,H))return H;throw new Error("Illegal state.")}}r(Ba,"GetMetadataProvider");function zP(){var C={},x=[],N=function(){function Ae(G,q,Y){this._index=0,this._keys=G,this._values=q,this._selector=Y}return r(Ae,"MapIterator"),Ae.prototype["@@iterator"]=function(){return this},Ae.prototype[s]=function(){return this},Ae.prototype.next=function(){var G=this._index;if(G>=0&&G<this._keys.length){var q=this._selector(this._keys[G],this._values[G]);return G+1>=this._keys.length?(this._index=-1,this._keys=x,this._values=x):this._index++,{value:q,done:!1}}return{value:void 0,done:!0}},Ae.prototype.throw=function(G){throw this._index>=0&&(this._index=-1,this._keys=x,this._values=x),G},Ae.prototype.return=function(G){return this._index>=0&&(this._index=-1,this._keys=x,this._values=x),{value:G,done:!0}},Ae}(),U=function(){function Ae(){this._keys=[],this._values=[],this._cacheKey=C,this._cacheIndex=-2}return r(Ae,"Map"),Object.defineProperty(Ae.prototype,"size",{get:r(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),Ae.prototype.has=function(G){return this._find(G,!1)>=0},Ae.prototype.get=function(G){var q=this._find(G,!1);return q>=0?this._values[q]:void 0},Ae.prototype.set=function(G,q){var Y=this._find(G,!0);return this._values[Y]=q,this},Ae.prototype.delete=function(G){var q=this._find(G,!1);if(q>=0){for(var Y=this._keys.length,ne=q+1;ne<Y;ne++)this._keys[ne-1]=this._keys[ne],this._values[ne-1]=this._values[ne];return this._keys.length--,this._values.length--,Dn(G,this._cacheKey)&&(this._cacheKey=C,this._cacheIndex=-2),!0}return!1},Ae.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=C,this._cacheIndex=-2},Ae.prototype.keys=function(){return new N(this._keys,this._values,ae)},Ae.prototype.values=function(){return new N(this._keys,this._values,nt)},Ae.prototype.entries=function(){return new N(this._keys,this._values,pt)},Ae.prototype["@@iterator"]=function(){return this.entries()},Ae.prototype[s]=function(){return this.entries()},Ae.prototype._find=function(G,q){if(!Dn(this._cacheKey,G)){this._cacheIndex=-1;for(var Y=0;Y<this._keys.length;Y++)if(Dn(this._keys[Y],G)){this._cacheIndex=Y;break}}return this._cacheIndex<0&&q&&(this._cacheIndex=this._keys.length,this._keys.push(G),this._values.push(void 0)),this._cacheIndex},Ae}();return U;function ae(Ae,G){return Ae}function nt(Ae,G){return G}function pt(Ae,G){return[Ae,G]}}r(zP,"CreateMapPolyfill");function YP(){var C=function(){function x(){this._map=new m}return r(x,"Set"),Object.defineProperty(x.prototype,"size",{get:r(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),x.prototype.has=function(N){return this._map.has(N)},x.prototype.add=function(N){return this._map.set(N,N),this},x.prototype.delete=function(N){return this._map.delete(N)},x.prototype.clear=function(){this._map.clear()},x.prototype.keys=function(){return this._map.keys()},x.prototype.values=function(){return this._map.keys()},x.prototype.entries=function(){return this._map.entries()},x.prototype["@@iterator"]=function(){return this.keys()},x.prototype[s]=function(){return this.keys()},x}();return C}r(YP,"CreateSetPolyfill");function ZP(){var C=16,x=f.create(),N=U();return function(){function G(){this._key=U()}return r(G,"WeakMap"),G.prototype.has=function(q){var Y=ae(q,!1);return Y!==void 0?f.has(Y,this._key):!1},G.prototype.get=function(q){var Y=ae(q,!1);return Y!==void 0?f.get(Y,this._key):void 0},G.prototype.set=function(q,Y){var ne=ae(q,!0);return ne[this._key]=Y,this},G.prototype.delete=function(q){var Y=ae(q,!1);return Y!==void 0?delete Y[this._key]:!1},G.prototype.clear=function(){this._key=U()},G}();function U(){var G;do G="@@WeakMap@@"+Ae();while(f.has(x,G));return x[G]=!0,G}function ae(G,q){if(!i.call(G,N)){if(!q)return;Object.defineProperty(G,N,{value:f.create()})}return G[N]}function nt(G,q){for(var Y=0;Y<q;++Y)G[Y]=Math.random()*255|0;return G}function pt(G){if(typeof Uint8Array=="function"){var q=new Uint8Array(G);return typeof crypto<"u"?crypto.getRandomValues(q):typeof msCrypto<"u"?msCrypto.getRandomValues(q):nt(q,G),q}return nt(new Array(G),G)}function Ae(){var G=pt(C);G[6]=G[6]&79|64,G[8]=G[8]&191|128;for(var q="",Y=0;Y<C;++Y){var ne=G[Y];(Y===4||Y===6||Y===8)&&(q+="-"),ne<16&&(q+="0"),q+=ne.toString(16).toLowerCase()}return q}}r(ZP,"CreateWeakMapPolyfill");function Pp(C){return C.__=void 0,delete C.__,C}r(Pp,"MakeDictionary")})})(DT||(DT={}))});var kT=je((Sj,UT)=>{var qx=0,MT="changeUtils: ";function zx(){return"id-"+new Date().valueOf()+"-"+qx++}r(zx,"uid");function Yx(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}r(Yx,"appendComponentToReference");function Zx(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return Yx(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}r(Zx,"getFlexReference");function eI(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}r(eI,"getAppVersion");function tI(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}r(tI,"getProjectId");function $T(e){return JSON.stringify({fileName:e.id||zx().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:MT+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})}r($T,"createString");UT.exports={parse:r(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(MT,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:r(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=Zx(t),e.appVersion=eI(t),e.projectId=tI(t,e.reference),$T(e)},"createChangeString"),toString:r(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 $T(e)},"toString")}});var BT=je((Pj,_T)=>{_T.exports={change:kT()}});var RS=je(cn=>{"use strict";var OI=/[|\\{}()[\]^$+*?.]/g,FI=Object.prototype.hasOwnProperty,Xf=r(function(e,t){return FI.apply(e,[t])},"hasOwn");cn.escapeRegExpChars=function(e){return e?String(e).replace(OI,"\\$&"):""};var LI={"&":"&","<":"<",">":">",'"':""","'":"'"},VI=/[&<>'"]/g;function NI(e){return LI[e]||e}r(NI,"encode_char");var DI=`var _ENCODE_HTML_RULES = {
|
|
30
30
|
"&": "&"
|
|
31
31
|
, "<": "<"
|
|
32
32
|
, ">": ">"
|
|
@@ -37,17 +37,17 @@ Actual: `+h.attribValue);else{var Te=h.tag,Ye=h.tags[h.tags.length-1]||h;Te.ns==
|
|
|
37
37
|
function encode_char(c) {
|
|
38
38
|
return _ENCODE_HTML_RULES[c] || c;
|
|
39
39
|
};
|
|
40
|
-
`;
|
|
41
|
-
`+
|
|
40
|
+
`;cn.escapeXML=function(e){return e==null?"":String(e).replace(VI,NI)};function DS(){return Function.prototype.toString.call(this)+`;
|
|
41
|
+
`+DI}r(DS,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(cn.escapeXML,"toString",{value:DS}):cn.escapeXML.toString=DS}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}cn.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)Xf(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};cn.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var o=n[i];if(typeof t[o]<"u"){if(!Xf(t,o)||o==="__proto__"||o==="constructor")continue;e[o]=t[o]}}return e};cn.cache={_data:{},set:r(function(e,t){this._data[e]=t},"set"),get:r(function(e){return this._data[e]},"get"),remove:r(function(e){delete this._data[e]},"remove"),reset:r(function(){this._data={}},"reset")};cn.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};cn.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();cn.hasOwnOnlyObject=function(e){var t=cn.createNullProtoObjWherePossible();for(var n in e)Xf(e,n)&&(t[n]=e[n]);return t}});var jS=je((k1,RI)=>{RI.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var GS=je(Ne=>{"use strict";var zf=require("fs"),dr=require("path"),ot=RS(),wS=!1,jI=jS().version,wI="<",$I=">",MI="%",BS="locals",UI="ejs",kI="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",HS=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],_I=HS.concat("cache"),$S=/^\uFEFF/,qf=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Ne.cache=ot.cache;Ne.fileLoader=zf.readFileSync;Ne.localsName=BS;Ne.promiseImpl=new Function("return this;")().Promise;Ne.resolveInclude=function(e,t,n){var i=dr.dirname,o=dr.extname,a=dr.resolve,s=a(n?t:i(t),e),l=o(e);return l||(s+=".ejs"),s};function MS(e,t){var n;if(t.some(function(i){return n=Ne.resolveInclude(e,i,!0),zf.existsSync(n)}))return n}r(MS,"resolvePaths");function BI(e,t){var n,i,o=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=MS(e,t.root):n=Ne.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Ne.resolveInclude(e,t.filename),zf.existsSync(i)&&(n=i)),!n&&Array.isArray(o)&&(n=MS(e,o)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}r(BI,"getIncludePath");function gr(e,t){var n,i=e.filename,o=arguments.length>1;if(e.cache){if(!i)throw new Error("cache option requires a filename");if(n=Ne.cache.get(i),n)return n;o||(t=US(i).toString().replace($S,""))}else if(!o){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=US(i).toString().replace($S,"")}return n=Ne.compile(t,e),e.cache&&Ne.cache.set(i,n),n}r(gr,"handleCache");function HI(e,t,n){var i;if(n){try{i=gr(e)(t)}catch(o){return n(o)}n(null,i)}else{if(typeof Ne.promiseImpl=="function")return new Ne.promiseImpl(function(o,a){try{i=gr(e)(t),o(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}r(HI,"tryHandleCache");function US(e){return Ne.fileLoader(e)}r(US,"fileLoader");function GI(e,t){var n=ot.shallowCopy(ot.createNullProtoObjWherePossible(),t);if(n.filename=BI(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return gr(n,i.template)}return gr(n)}r(GI,"includeFile");function kS(e,t,n,i,o){var a=t.split(`
|
|
42
42
|
`),s=Math.max(i-3,0),l=Math.min(a.length,i+3),c=o(n),p=a.slice(s,l).map(function(f,u){var m=u+s+1;return(m==i?" >> ":" ")+m+"| "+f}).join(`
|
|
43
43
|
`);throw e.path=c,e.message=(c||"ejs")+":"+i+`
|
|
44
44
|
`+p+`
|
|
45
45
|
|
|
46
|
-
`+e.message,e}r(
|
|
46
|
+
`+e.message,e}r(kS,"rethrow");function _S(e){return e.replace(/;(\s*$)/,"$1")}r(_S,"stripSemi");Ne.compile=r(function(t,n){var i;return n&&n.scope&&(wS||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),wS=!0),n.context||(n.context=n.scope),delete n.scope),i=new ut(t,n),i.compile()},"compile");Ne.render=function(e,t,n){var i=t||ot.createNullProtoObjWherePossible(),o=n||ot.createNullProtoObjWherePossible();return arguments.length==2&&ot.shallowCopyFromList(o,i,HS),gr(o,e)(i)};Ne.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},o,a;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(o=e.shift(),e.length?ot.shallowCopy(i,e.pop()):(o.settings&&(o.settings.views&&(i.views=o.settings.views),o.settings["view cache"]&&(i.cache=!0),a=o.settings["view options"],a&&ot.shallowCopy(i,a)),ot.shallowCopyFromList(i,o,_I)),i.filename=t):o=ot.createNullProtoObjWherePossible(),HI(i,o,n)};Ne.Template=ut;Ne.clearCache=function(){Ne.cache.reset()};function ut(e,t){var n=ot.hasOwnOnlyObject(t),i=ot.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",i.client=n.client||!1,i.escapeFunction=n.escape||n.escapeFunction||ot.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Ne.openDelimiter||wI,i.closeDelimiter=n.closeDelimiter||Ne.closeDelimiter||$I,i.delimiter=n.delimiter||Ne.delimiter||MI,i.strict=n.strict||!1,i.context=n.context,i.cache=n.cache||!1,i.rmWhitespace=n.rmWhitespace,i.root=n.root,i.includer=n.includer,i.outputFunctionName=n.outputFunctionName,i.localsName=n.localsName||Ne.localsName||BS,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}r(ut,"Template");ut.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};ut.prototype={createRegex:r(function(){var e=kI,t=ot.escapeRegExpChars(this.opts.delimiter),n=ot.escapeRegExpChars(this.opts.openDelimiter),i=ot.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},"createRegex"),compile:r(function(){var e,t,n=this.opts,i="",o="",a=n.escapeFunction,s,l=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),i+=` var __output = "";
|
|
47
47
|
function __append(s) { if (s !== undefined && s !== null) __output += s }
|
|
48
|
-
`,n.outputFunctionName){if(!
|
|
49
|
-
`}if(n.localsName&&!
|
|
50
|
-
`,p=0;p<n.destructuredLocals.length;p++){var f=n.destructuredLocals[p];if(!
|
|
48
|
+
`,n.outputFunctionName){if(!qf.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
|
|
49
|
+
`}if(n.localsName&&!qf.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var c=" var __locals = ("+n.localsName+` || {}),
|
|
50
|
+
`,p=0;p<n.destructuredLocals.length;p++){var f=n.destructuredLocals[p];if(!qf.test(f))throw new Error("destructuredLocals["+p+"] is not a valid JS identifier.");p>0&&(c+=`,
|
|
51
51
|
`),c+=f+" = __locals."+f}i+=c+`;
|
|
52
52
|
`}n._with!==!1&&(i+=" with ("+n.localsName+` || {}) {
|
|
53
53
|
`,o+=` }
|
|
@@ -60,7 +60,7 @@ try {
|
|
|
60
60
|
rethrow(e, __lines, __filename, __line, escapeFn);
|
|
61
61
|
}
|
|
62
62
|
`:e=this.source,n.client&&(e="escapeFn = escapeFn || "+a.toString()+`;
|
|
63
|
-
`+e,n.compileDebug&&(e="rethrow = rethrow || "+
|
|
63
|
+
`+e,n.compileDebug&&(e="rethrow = rethrow || "+kS.toString()+`;
|
|
64
64
|
`+e)),n.strict&&(e=`"use strict";
|
|
65
65
|
`+e),n.debug&&console.log(e),n.compileDebug&&n.filename&&(e=e+`
|
|
66
66
|
//# sourceURL=`+l+`
|
|
@@ -68,24 +68,24 @@ try {
|
|
|
68
68
|
|
|
69
69
|
`,S.message+=`If the above error is not helpful, you may want to try EJS-Lint:
|
|
70
70
|
`,S.message+="https://github.com/RyanZim/EJS-Lint",n.async||(S.message+=`
|
|
71
|
-
`,S.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),S}var u=n.client?t:r(function(
|
|
71
|
+
`,S.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),S}var u=n.client?t:r(function(L){var V=r(function(H,ee){var te=ot.shallowCopy(ot.createNullProtoObjWherePossible(),L);return ee&&(te=ot.shallowCopy(te,ee)),GI(H,n)(te)},"include");return t.apply(n.context,[L||ot.createNullProtoObjWherePossible(),a,V,kS])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var m=n.filename,b=dr.basename(m,dr.extname(m));try{Object.defineProperty(u,"name",{value:b,writable:!1,enumerable:!1,configurable:!0})}catch{}}return u},"compile"),generateSource:r(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
|
|
72
72
|
`).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var t=this,n=this.parseTemplateText(),i=this.opts.delimiter,o=this.opts.openDelimiter,a=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(s,l){var c;if(s.indexOf(o+i)===0&&s.indexOf(o+i+i)!==0&&(c=n[l+2],!(c==i+a||c=="-"+i+a||c=="_"+i+a)))throw new Error('Could not find matching close tag for "'+s+'".');t.scanLine(s)})},"generateSource"),parseTemplateText:r(function(){for(var e=this.templateText,t=this.regex,n=t.exec(e),i=[],o;n;)o=n.index,o!==0&&(i.push(e.substring(0,o)),e=e.slice(o)),i.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&i.push(e),i},"parseTemplateText"),_addOutput:r(function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=e.replace(/\\/g,"\\\\"),e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/"/g,'\\"'),this.source+=' ; __append("'+e+`")
|
|
73
73
|
`},"_addOutput"),scanLine:r(function(e){var t=this,n=this.opts.delimiter,i=this.opts.openDelimiter,o=this.opts.closeDelimiter,a=0;switch(a=e.split(`
|
|
74
|
-
`).length-1,e){case i+n:case i+n+"_":this.mode=
|
|
75
|
-
`;break;case n+n+o:this.mode=
|
|
76
|
-
`;break;case n+o:case"-"+n+o:case"_"+n+o:this.mode==
|
|
74
|
+
`).length-1,e){case i+n:case i+n+"_":this.mode=ut.modes.EVAL;break;case i+n+"=":this.mode=ut.modes.ESCAPED;break;case i+n+"-":this.mode=ut.modes.RAW;break;case i+n+"#":this.mode=ut.modes.COMMENT;break;case i+n+n:this.mode=ut.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
|
|
75
|
+
`;break;case n+n+o:this.mode=ut.modes.LITERAL,this.source+=' ; __append("'+e.replace(n+n+o,n+o)+`")
|
|
76
|
+
`;break;case n+o:case"-"+n+o:case"_"+n+o:this.mode==ut.modes.LITERAL&&this._addOutput(e),this.mode=null,this.truncate=e.indexOf("-")===0||e.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case ut.modes.EVAL:case ut.modes.ESCAPED:case ut.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
|
|
77
77
|
`)&&(e+=`
|
|
78
|
-
`)}switch(this.mode){case
|
|
79
|
-
`;break;case
|
|
80
|
-
`;break;case
|
|
81
|
-
`;break;case
|
|
82
|
-
`)},"scanLine")};Le.escapeXML=ot.escapeXML;Le.__express=Le.renderFile;Le.VERSION=Wx;Le.name=qx;typeof window<"u"&&(window.ejs=Le)});var Xt={};jo(Xt,{deleteConfigEntityByPath:()=>wL,exportConfig:()=>RL,exportConfigEntityByPath:()=>$L,generateSchema:()=>jL,getApiVersion:()=>_L,getChanges:()=>nP,getGenericSchema:()=>ip,getPathToGenericSchema:()=>SS,getProject:()=>KL,importConfig:()=>ML,importProject:()=>UL,importProjectSchema:()=>kL,isDirectory:()=>HL,log:()=>k,readDirectory:()=>Wg});module.exports=yP(Xt);var Z=U(B());var F=U(B());var ge=r(e=>typeof e=="string","isString"),La=r(()=>{let e,t,n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n},"defer"),Ch=r(e=>e==null?"":""+e,"makeString"),_A=r((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),BA=/###/g,Eh=r(e=>e&&e.indexOf("###")>-1?e.replace(BA,"."):e,"cleanKey"),xh=r(e=>!e||ge(e),"canNotTraverseDeeper"),Da=r((e,t,n)=>{let i=ge(t)?t.split("."):t,o=0;for(;o<i.length-1;){if(xh(e))return{};let a=Eh(i[o]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return xh(e)?{}:{obj:e,k:Eh(i[o])}},"getLastOfPath"),Ih=r((e,t,n)=>{let{obj:i,k:o}=Da(e,t,Object);if(i!==void 0||t.length===1){i[o]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=Da(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=Da(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),HA=r((e,t,n,i)=>{let{obj:o,k:a}=Da(e,t,Object);o[a]=o[a]||[],o[a].push(n)},"pushPath"),ds=r((e,t)=>{let{obj:n,k:i}=Da(e,t);if(n)return n[i]},"getPath"),GA=r((e,t,n)=>{let i=ds(e,n);return i!==void 0?i:ds(t,n)},"getPathWithDefaults"),Dh=r((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?ge(e[i])||e[i]instanceof String||ge(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):Dh(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),Ro=r(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),WA={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},QA=r(e=>ge(e)?e.replace(/[&<>"'\/]/g,t=>WA[t]):e,"escape"),Sp=class Sp{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}};r(Sp,"RegExpCache");var gp=Sp,KA=[" ",",","?","!",";"],JA=new gp(20),qA=r((e,t,n)=>{t=t||"",n=n||"";let i=KA.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let o=JA.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!o.test(e);if(!a){let s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),mp=r(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),o=e;for(let a=0;a<i.length;){if(!o||typeof o!="object")return;let s,l="";for(let c=a;c<i.length;++c)if(c!==a&&(l+=n),l+=i[c],s=o[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&c<i.length-1)continue;a+=c-a+1;break}o=s}return o},"deepFind"),gs=r(e=>e&&e.replace("_","-"),"getCleanedCode"),XA={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},ja=class ja{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||XA,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,o){return o&&!this.debug?null:(ge(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new ja(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ja(this.logger,t)}};r(ja,"Logger");var yp=ja,Vn=new yp,Pp=class Pp{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let o=this.observers[i].get(n)||0;this.observers[i].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,c]=s;for(let p=0;p<c;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,c]=s;for(let p=0;p<c;p++)l.apply(l,[t,...i])})}};r(Pp,"EventEmitter");var wo=Pp,Ap=class Ap extends wo{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):ge(i)&&a?l.push(...i.split(a)):l.push(i)));let c=ds(this.data,l);return!c&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),c||!s||!ge(i)?c:mp(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,o){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),o=n,n=l[1]),this.addNamespaces(n),Ih(this.data,l,o),a.silent||this.emit("added",t,n,i,o)}addResources(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(ge(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});o.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,o,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),o=i,i=n,n=l[1]),this.addNamespaces(n);let c=ds(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),o?Dh(c,i,a):c={...c,...i},Ih(this.data,l,c),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}};r(Ap,"ResourceStore");var ms=Ap,jh={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,o){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,o))}),t}},Oh={},Ts=class Ts extends wo{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),_A(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Vn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let o=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&&!qA(t,i,o);if(s&&!l){let c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:ge(a)?[a]:a};let p=t.split(i);(i!==o||i===o&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(o)}return{key:t,namespaces:ge(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),c=l[l.length-1],p=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(f){let ce=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${ce}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${ce}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:s}let u=this.resolve(t,n),m=u&&u.res,b=u&&u.usedKey||s,S=u&&u.exactUsedKey||s,N=Object.prototype.toString.apply(m),L=["[object Number]","[object Function]","[object RegExp]"],z=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,ne=!this.i18nFormat||this.i18nFormat.handleAsObject,ie=!ge(m)&&typeof m!="boolean"&&typeof m!="number";if(ne&&m&&ie&&L.indexOf(N)<0&&!(ge(z)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ce=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,m,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(u.res=ce,u.usedParams=this.getUsedParamsDetails(n),u):ce}if(a){let ce=Array.isArray(m),Y=ce?[]:{},oe=ce?S:b;for(let Pe in m)if(Object.prototype.hasOwnProperty.call(m,Pe)){let P=`${oe}${a}${Pe}`;Y[Pe]=this.translate(P,{...n,joinArrays:!1,ns:l}),Y[Pe]===P&&(Y[Pe]=m[Pe])}m=Y}}else if(ne&&ge(z)&&Array.isArray(m))m=m.join(z),m&&(m=this.extendTranslation(m,t,n,i));else{let ce=!1,Y=!1,oe=n.count!==void 0&&!ge(n.count),Pe=Ts.hasDefaultValue(n),P=oe?this.pluralResolver.getSuffix(p,n.count,n):"",Ft=n.ordinal&&oe?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",Yt=oe&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Me=Yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${P}`]||n[`defaultValue${Ft}`]||n.defaultValue;!this.isValidLookup(m)&&Pe&&(ce=!0,m=Me),this.isValidLookup(m)||(Y=!0,m=s);let No=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:m,Rt=Pe&&Me!==m&&this.options.updateMissing;if(Y||ce||Rt){if(this.logger.log(Rt?"updateKey":"missingKey",p,c,s,Rt?Me:m),a){let at=this.resolve(s,{...n,keySeparator:!1});at&&at.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 Zt=[],Ie=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ie&&Ie[0])for(let at=0;at<Ie.length;at++)Zt.push(Ie[at]);else this.options.saveMissingTo==="all"?Zt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Zt.push(n.lng||this.language);let _i=r((at,$t,Tt)=>{let Kn=Pe&&Tt!==m?Tt:No;this.options.missingKeyHandler?this.options.missingKeyHandler(at,c,$t,Kn,Rt,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(at,c,$t,Kn,Rt,n),this.emit("missingKey",at,c,$t,m)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&oe?Zt.forEach(at=>{let $t=this.pluralResolver.getSuffixes(at,n);Yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&$t.indexOf(`${this.options.pluralSeparator}zero`)<0&&$t.push(`${this.options.pluralSeparator}zero`),$t.forEach(Tt=>{_i([at],s+Tt,n[`defaultValue${Tt}`]||Me)})}):_i(Zt,s,Me))}m=this.extendTranslation(m,t,n,u,i),Y&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${c}:${s}`),(Y||ce)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${s}`:s,ce?m:void 0):m=this.options.parseMissingKeyHandler(m))}return o?(u.res=m,u.usedParams=this.getUsedParamsDetails(n),u):m}extendTranslation(t,n,i,o,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=ge(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(p){let m=t.match(this.interpolator.nestingRegexp);f=m&&m.length}let u=i.replace&&!ge(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),t=this.interpolator.interpolate(t,u,i.lng||this.language||o.usedLng,i),p){let m=t.match(this.interpolator.nestingRegexp),b=m&&m.length;f<b&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(i.lng=this.language||o.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var m=arguments.length,b=new Array(m),S=0;S<m;S++)b[S]=arguments[S];return a&&a[0]===b[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${n[0]}`),null):s.translate(...b,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,c=ge(l)?[l]:l;return t!=null&&c&&c.length&&i.applyPostProcessor!==!1&&(t=jh.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,o,a,s,l;return ge(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(c,n),f=p.key;o=f;let u=p.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let m=n.count!==void 0&&!ge(n.count),b=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),S=n.context!==void 0&&(ge(n.context)||typeof n.context=="number")&&n.context!=="",N=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);u.forEach(L=>{this.isValidLookup(i)||(l=L,!Oh[`${N[0]}-${L}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Oh[`${N[0]}-${L}`]=!0,this.logger.warn(`key "${o}" for languages "${N.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!!!")),N.forEach(z=>{if(this.isValidLookup(i))return;s=z;let ne=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(ne,f,z,L,n);else{let ce;m&&(ce=this.pluralResolver.getSuffix(z,n.count,n));let Y=`${this.options.pluralSeparator}zero`,oe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(ne.push(f+ce),n.ordinal&&ce.indexOf(oe)===0&&ne.push(f+ce.replace(oe,this.options.pluralSeparator)),b&&ne.push(f+Y)),S){let Pe=`${f}${this.options.contextSeparator}${n.context}`;ne.push(Pe),m&&(ne.push(Pe+ce),n.ordinal&&ce.indexOf(oe)===0&&ne.push(Pe+ce.replace(oe,this.options.pluralSeparator)),b&&ne.push(Pe+Y))}}let ie;for(;ie=ne.pop();)this.isValidLookup(i)||(a=ie,i=this.getResource(z,L,ie,n))}))})}),{res:i,usedKey:o,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,o):this.resourceStore.getResource(t,n,i,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!ge(t.replace),o=i?t.replace:t;if(i&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!i){o={...o};for(let a of n)delete o[a]}return o}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}};r(Ts,"Translator");var ys=Ts,up=r(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Cp=class Cp{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vn.create("languageUtils")}getScriptPartFromCode(t){if(t=gs(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=gs(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(ge(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(o=>o.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=up(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=up(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=up(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let o=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let o=this.getLanguagePartFromCode(i);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),ge(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],a=r(s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return ge(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))):ge(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{o.indexOf(s)<0&&a(this.formatLanguageCode(s))}),o}};r(Cp,"LanguageUtil");var hs=Cp,zA=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],YA={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},ZA=["v1","v2","v3"],eC=["v4"],Fh={zero:0,one:1,two:2,few:3,many:4,other:5},tC=r(()=>{let e={};return zA.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:YA[t.fc]}})}),e},"createRules"),Ep=class Ep{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Vn.create("pluralResolver"),(!this.options.compatibilityJSON||eC.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=tC(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let i=gs(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:o});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:o})}catch{if(!t.match(/-|_/))return;let c=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(c,n)}return this.pluralRulesCache[a]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((o,a)=>Fh[o]-Fh[a]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):i.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(t,i);return o?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),o=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));let a=r(()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!ZA.includes(this.options.compatibilityJSON)}};r(Ep,"PluralResolver");var hp=Ep,Nh=r(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=GA(e,t,n);return!a&&o&&ge(n)&&(a=mp(e,n,i),a===void 0&&(a=mp(t,n,i))),a},"deepFindWithDefaults"),dp=r(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),xp=class xp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Vn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:o,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:c,formatSeparator:p,unescapeSuffix:f,unescapePrefix:u,nestingPrefix:m,nestingPrefixEscaped:b,nestingSuffix:S,nestingSuffixEscaped:N,nestingOptionsSeparator:L,maxReplaces:z,alwaysFormat:ne}=t.interpolation;this.escape=n!==void 0?n:QA,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?Ro(a):s||"{{",this.suffix=l?Ro(l):c||"}}",this.formatSeparator=p||",",this.unescapePrefix=f?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=m?Ro(m):b||Ro("$t("),this.nestingSuffix=S?Ro(S):N||Ro(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=z||1e3,this.alwaysFormat=ne!==void 0?ne:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=r((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,o){let a,s,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=r(b=>{if(b.indexOf(this.formatSeparator)<0){let z=Nh(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(z,void 0,i,{...o,...n,interpolationkey:b}):z}let S=b.split(this.formatSeparator),N=S.shift().trim(),L=S.join(this.formatSeparator).trim();return this.format(Nh(n,c,N,this.options.keySeparator,this.options.ignoreJSONStructure),L,i,{...o,...n,interpolationkey:N})},"handleFormat");this.resetRegExp();let f=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,u=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:r(b=>dp(b),"safeValue")},{regex:this.regexp,safeValue:r(b=>this.escapeValue?dp(this.escape(b)):dp(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let S=a[1].trim();if(s=p(S),s===void 0)if(typeof f=="function"){let L=f(t,a,o);s=ge(L)?L:""}else if(o&&Object.prototype.hasOwnProperty.call(o,S))s="";else if(u){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),s="";else!ge(s)&&!this.useRawValueToEscape&&(s=Ch(s));let N=b.safeValue(s);if(t=t.replace(a[0],N),u?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,a,s,l=r((c,p)=>{let f=this.nestingOptionsSeparator;if(c.indexOf(f)<0)return c;let u=c.split(new RegExp(`${f}[ ]*{`)),m=`{${u[1]}`;c=u[0],m=this.interpolate(m,s);let b=m.match(/'/g),S=m.match(/"/g);(b&&b.length%2===0&&!S||S.length%2!==0)&&(m=m.replace(/'/g,'"'));try{s=JSON.parse(m),p&&(s={...p,...s})}catch(N){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,N),`${c}${f}${m}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,c},"handleHasOptions");for(;o=this.nestingRegexp.exec(t);){let c=[];s={...i},s=s.replace&&!ge(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){let f=o[1].split(this.formatSeparator).map(u=>u.trim());o[1]=f.shift(),c=f,p=!0}if(a=n(l.call(this,o[1].trim(),s),s),a&&o[0]===t&&!ge(a))return a;ge(a)||(a=Ch(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),p&&(a=c.reduce((f,u)=>this.format(f,u,i.lng,{...i,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}};r(xp,"Interpolator");var bp=xp,nC=r(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let o=i[1].substring(0,i[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(s){let[l,...c]=s.split(":"),p=c.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=p),p==="false"&&(n[f]=!1),p==="true"&&(n[f]=!0),isNaN(p)||(n[f]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),$o=r(e=>{let t={};return(n,i,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={...a,[o.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(gs(i),o),t[s]=l),l(n)}},"createCachedFormatter"),Ip=class Ip{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Vn.create("formatter"),this.options=t,this.formats={number:$o((n,i)=>{let o=new Intl.NumberFormat(n,{...i});return a=>o.format(a)}),currency:$o((n,i)=>{let o=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>o.format(a)}),datetime:$o((n,i)=>{let o=new Intl.DateTimeFormat(n,{...i});return a=>o.format(a)}),relativetime:$o((n,i)=>{let o=new Intl.RelativeTimeFormat(n,{...i});return a=>o.format(a,i.range||"day")}),list:$o((n,i)=>{let o=new Intl.ListFormat(n,{...i});return a=>o.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=$o(n)}format(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{let{formatName:p,formatOptions:f}=nC(c);if(this.formats[p]){let u=l;try{let m=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=m.locale||m.lng||o.locale||o.lng||i;u=this.formats[p](l,b,{...f,...o,...m})}catch(m){this.logger.warn(m)}return u}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};r(Ip,"Formatter");var Tp=Ip,iC=r((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Op=class Op extends wo{constructor(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=o,this.logger=Vn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,o.backend,o)}queueLoad(t,n,i,o){let a={},s={},l={},c={};return t.forEach(p=>{let f=!0;n.forEach(u=>{let m=`${p}|${u}`;!i.reload&&this.store.hasResourceBundle(p,u)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?s[m]===void 0&&(s[m]=!0):(this.state[m]=1,f=!1,s[m]===void 0&&(s[m]=!0),a[m]===void 0&&(a[m]=!0),c[u]===void 0&&(c[u]=!0)))}),f||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,n,i){let o=t.split("|"),a=o[0],s=o[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(c=>{HA(c.loaded,[a],s),iC(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(p=>{l[p]||(l[p]={});let f=c.loaded[p];f.length&&f.forEach(u=>{l[p][u]===void 0&&(l[p][u]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:o,wait:a,callback:s});return}this.readingCalls++;let l=r((p,f)=>{if(this.readingCalls--,this.waitingReads.length>0){let u=this.waitingReads.shift();this.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(p&&f&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,o+1,a*2,s)},a);return}s(p,f)},"resolver"),c=this.backend[i].bind(this.backend);if(c.length===2){try{let p=c(t,n);p&&typeof p.then=="function"?p.then(f=>l(null,f)).catch(l):l(null,p)}catch(p){l(p)}return}return c(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();ge(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ge(n)&&(n=[n]);let a=this.queueLoad(t,n,i,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),o=i[0],a=i[1];this.read(o,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${o} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${o}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,o,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let c={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let f;p.length===5?f=p(t,n,i,o,c):f=p(t,n,i,o),f&&typeof f.then=="function"?f.then(u=>l(null,u)).catch(l):l(null,f)}catch(f){l(f)}else p(t,n,i,o,l,c)}!t||!t[0]||this.store.addResource(t[0],n,i,o)}}};r(Op,"Connector");var vp=Op,Vh=r(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:r(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ge(e[1])&&(t.defaultValue=e[1]),ge(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:r(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),Lh=r(e=>(ge(e.ns)&&(e.ns=[e.ns]),ge(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ge(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),us=r(()=>{},"noop"),oC=r(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Ra=class Ra extends wo{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Lh(t),this.services={},this.logger=Vn,this.modules={external:[]},oC(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(ge(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let o=Vh();this.options={...o,...this.options,...Lh(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=r(f=>f?typeof f=="function"?new f:f:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Vn.init(a(this.modules.logger),this.options):Vn.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Tp);let u=new hs(this.options);this.store=new ms(this.options.resources,this.options);let m=this.services;m.logger=Vn,m.resourceStore=this.store,m.languageUtils=u,m.pluralResolver=new hp(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(m.formatter=a(f),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new bp(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new vp(a(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(b){for(var S=arguments.length,N=new Array(S>1?S-1:0),L=1;L<S;L++)N[L-1]=arguments[L];t.emit(b,...N)}),this.modules.languageDetector&&(m.languageDetector=a(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=a(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new ys(this.services,this.options),this.translator.on("*",function(b){for(var S=arguments.length,N=new Array(S>1?S-1:0),L=1;L<S;L++)N[L-1]=arguments[L];t.emit(b,...N)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,i||(i=us),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[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(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});let c=La(),p=r(()=>{let f=r((u,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),c.resolve(m),i(u,m)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),c}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:us,o=ge(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=r(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>s(c)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let o=La();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=us),this.services.backendConnector.reload(t,n,a=>{o.resolve(),i(a)}),o}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"&&jh.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let o=La();this.emit("languageChanging",t);let a=r(c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},"setLngProps"),s=r((c,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,o.resolve(function(){return i.t(...arguments)}),n&&n(c,function(){return i.t(...arguments)})},"done"),l=r(c=>{!t&&!c&&this.services.languageDetector&&(c=[]);let p=ge(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,f=>{s(f,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),o}getFixedT(t,n,i){var o=this;let a=r(function(s,l){let c;if(typeof l!="object"){for(var p=arguments.length,f=new Array(p>2?p-2:0),u=2;u<p;u++)f[u-2]=arguments[u];c=o.options.overloadTranslationOptionHandler([s,l].concat(f))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||i||a.keyPrefix);let m=o.options.keySeparator||".",b;return c.keyPrefix&&Array.isArray(s)?b=s.map(S=>`${c.keyPrefix}${m}${S}`):b=c.keyPrefix?`${c.keyPrefix}${m}${s}`:s,o.t(b,c)},"fixedT");return ge(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=r((l,c)=>{let p=this.services.backendConnector.state[`${l}|${c}`];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)&&(!o||s(a,t)))}loadNamespaces(t,n){let i=La();return this.options.ns?(ge(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{i.resolve(),n&&n(o)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=La();ge(t)&&(t=[t]);let o=this.options.preload||[],a=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=o.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new hs(Vh());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Ra(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:us,i=t.forkResourceStore;i&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},a=new Ra(o);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new ms(this.store.data,o),a.services.resourceStore=a.store),a.translator=new ys(a.services,o),a.translator.on("*",function(l){for(var c=arguments.length,p=new Array(c>1?c-1:0),f=1;f<c;f++)p[f-1]=arguments[f];a.emit(l,...p)}),a.init(o,n),a.translator.options=o,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}}};r(Ra,"I18n");var bs=Ra,j=bs.createInstance();j.createInstance=bs.createInstance;var oD=j.createInstance,aD=j.dir,rD=j.init,sD=j.loadResources,lD=j.reloadResources,cD=j.use,pD=j.changeLanguage,fD=j.getFixedT,uD=j.t,dD=j.exists,gD=j.setDefaultNamespace,mD=j.hasLoadedNamespace,yD=j.loadNamespaces,hD=j.loadLanguages;var Xb=U(Fp()),zb=U(sb()),_s=U(Kb()),be=require("@sap-ux/vocabularies-types/vocabularies/UI"),_a=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Ms=U(B());var k=r((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(`${Ms.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Ms.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Ms.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var O="#/definitions/",wE=[F.v4.FE_TEMPLATE_V4_LIST_REPORT,F.v4.FE_TEMPLATE_V4_ALP,F.v4.FE_TEMPLATE_V4_OBJECT_PAGE,F.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],ME=["sap.fe.core","sap.fe.templates"],Ho=r((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Mt=r((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function ei(e,t){let n=[],i;if(e&&e.forEach(function(o){try{n.push((0,_s.parse)(o.fileContent,o.dataSourceUri))}catch(a){return k(t,{severity:F.LogSeverity.Error,message:j.t("ANNOERR"),location:{path:j.t("ANNOTATIONFILE",{file:o.dataSourceUri})}},a),i}}),n.length>0){let o=(0,_s.merge)(...n);i=(0,zb.convert)(o)}return i}r(ei,"parseAndMergeAndConvert");var Bo=r(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Jp(e,t,n){var i,o,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((o=l==null?void 0:l.Common)==null?void 0:o.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}r(Jp,"evaluateCommonLabel");function Bs(e,t){let n=e.value;return e.$target&&(n=Jp(e.$target.annotations,t,n)),n}r(Bs,"getLabelForPropertyPath");function Us(e,t){var o,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=(o=i==null?void 0:i.annotations)==null?void 0:o.Common)!=null&&a.Label&&(n=Jp(i.annotations,t,n)),n}r(Us,"getLabelForDataField");function UE(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let o=t&&t.resolvePath(e.path);if(!o||o.length===0)return;{let a=o[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return Jp(a.annotations,t,s)}}}else return}r(UE,"getLabel");function Jb(e,t,n){let i=Us(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}r(Jb,"getTitleForDataField");function Ct(e,t){var s,l,c,p;let n="",i,o,a="";try{let f=UE(e.Label,t);switch(e.$Type){case be.UIAnnotationTypes.DataField:n=Jb(e,t,f);break;case be.UIAnnotationTypes.DataFieldWithUrl:i=Us(e,t),n=f||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case be.UIAnnotationTypes.DataFieldForAnnotation:o=e,i=Us(e,t),n=f||i||((l=(s=o.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((c=o.Target)==null?void 0:c.value.split("UI.v1.")[1]);break;case be.UIAnnotationTypes.DataFieldForAction:case be.UIAnnotationTypes.DataFieldWithAction:case be.UIAnnotationTypes.DataFieldForIntentBasedNavigation:o=e,a=typeof e.Action=="string"?o.Action:(p=o.Action)==null?void 0:p.path,f?n=typeof f=="string"?f:a:n=a;break;case be.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Us(e,t),n=i||e.Value.path;break;case be.UIAnnotationTypes.DataFieldWithNavigationPath:o=e,n=Jb(o,t,f);break;default:break}return n}catch{return n}}r(Ct,"getDataFieldDescription");function Oe(e){return e.replace("#","::").replace(/\//g,":2f")}r(Oe,"prepareRef");function Zn(e){if(e){let t=`${F.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}r(Zn,"getPageTypeV2");function qp(e){let t="name"in e&&typeof e.name=="string"?ks(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return F.PageTypeV4.CustomPage}r(qp,"getPageTypeV4");function kE(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}r(kE,"getTargetAnnotationName");function Ut(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}r(Ut,"findAlias");function _E(e,t,n){var s,l;let i=e[e.length-1],o=i.substring(i.lastIndexOf(".")+1,i.length),a=Ut(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[o]}r(_E,"determineTargetAnnotation");function BE(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let o=e.split("::");o[o.length-1]=`${n?"":"@"}${be.UIAnnotationTerms.LineItem}`,e=o.join("::")}else e=i.replace("@UI",`${n?"":"@"}${F.UIVOCABULARY}`);return e}r(BE,"adjustKey");function HE(e,t,n,i,o=F.FioriElementsVersion.v2,a=!1){var u,m;let s=!1,l,c=i.split("/"),p=c.length>1;p&&n&&(n=(u=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:u.targetType),t=BE(t,c,a);let f=_E(c,n,e);if(f){let b=o===F.FioriElementsVersion.v2?"::":"#";t=kE(f,a).replace("#",b),l=(m=f.fullyQualifiedName)==null?void 0:m.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let b=o===F.FioriElementsVersion.v2?"::":"/";c.pop(),t=`${[...c].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}r(HE,"getKeyAndEntityTypeOfReferenceFacet");function Yb(e,t,n,i,o=F.FioriElementsVersion.v2,a=!1){var f,u,m;let s=(u=e.fullyQualifiedName)==null?void 0:u.substring((f=e.fullyQualifiedName)==null?void 0:f.lastIndexOf("@")),l=e.ID?e.ID.toString():s,c=(m=e.fullyQualifiedName)==null?void 0:m.split("@")[0],p=t;if(e.$Type!==be.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=Bo(e.Target);if(!b){k(i,{severity:F.LogSeverity.Error,message:j.t("NOTARGET",{target:e.Target})});return}let{key:S,entityType:N,stopProcessing:L,namespace:z}=HE(n,l,p,b,o,a);if(L)return;l=S,p=N,c=z}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:c}}r(Yb,"getSectionFacet");var ti=r((e,t,n,i,o=!1)=>{if(!t)return;let a=e,s=t.split("/");for(let l=0;l<s.length;l++){let c=s[l];if(c==="[]")continue;let p=i&&i===c?n:c.replace("??","/");if(!a[p]){if(o)return;s[l+1]==="[]"?a[p]=[]:a[p]={}}a=a[p]}return a},"getManifestSectionByPathV4");function Xp(e){let t,n,i;switch(e.$Type){case be.UIAnnotationTypes.DataField:t=Bo(e.Value);break;case be.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Bo(e.Value);break;case be.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${F.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case be.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${Oe(e.Action)}`);break;case be.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Bo(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case be.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${Oe(e.Action)}`);break;case be.UIAnnotationTypes.DataFieldWithNavigationPath:i=Bo(e.Value),n=Bo(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}r(Xp,"getSchemaKeyOfLineItemRecord");function GE(e,t,n){return e.includes(be.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?be.UIAnnotationTerms.Chart:e.includes(be.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?be.UIAnnotationTerms.Identification:n&&e.includes(be.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?be.UIAnnotationTerms.LineItem:e.includes(be.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?be.UIAnnotationTerms.FieldGroup:e.includes(be.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?be.UIAnnotationTerms.DataPoint:e.includes(be.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?be.UIAnnotationTerms.PresentationVariant:void 0}r(GE,"getUIAnnotationTerm");function WE(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?_a.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?_a.CommunicationAnnotationTerms.Address:void 0}r(WE,"getCommunicationAnnotationTerm");function QE(e,t,n){return GE(e,t,n)||WE(e,t)}r(QE,"getAnnotationTerm");function KE(e,t,n,i,o){var p,f,u,m,b,S,N,L,z;let a=Ut(F.UIVOCABULARY,o),s=e?e.key:"",l=e.entityType;switch(QE(s,a,i)){case be.UIAnnotationTerms.Chart:{n[s]={base:F.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 be.UIAnnotationTerms.Identification:{n[s]={base:F.FacetBase.Identification},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 be.UIAnnotationTerms.LineItem:{if(!s.includes(be.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let ne=s.split("::");ne[ne.length-1]=`@${be.UIAnnotationTerms.LineItem}`,s=ne.join("::")}n[s]={base:F.FacetBase.LineItem},n[s].target=(u=t==null?void 0:t.Target)==null?void 0:u.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case be.UIAnnotationTerms.FieldGroup:{n[s]={base:F.FacetBase.Form},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 be.UIAnnotationTerms.DataPoint:{n[s]={base:F.FacetBase.DataPoint},n[s].Label=(b=t==null?void 0:t.Target)==null?void 0:b.$target.Title,n[s].target=(S=t==null?void 0:t.Target)==null?void 0:S.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case be.UIAnnotationTerms.PresentationVariant:{n[s]={base:F.FacetBase.PresentationVariant},n[s].target=(N=t==null?void 0:t.Target)==null?void 0:N.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case _a.CommunicationAnnotationTerms.Contact:{n[s]={base:F.FacetBase.Contact},n[s].target=(L=t==null?void 0:t.Target)==null?void 0:L.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case _a.CommunicationAnnotationTerms.Address:{n[s]={base:F.FacetBase.Address},n[s].target=(z=t==null?void 0:t.Target)==null?void 0:z.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:F.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",F.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}r(KE,"evaluateTargetAnnotation");function zp(e,t,n,i,o,a=F.FioriElementsVersion.v2,s){var c;let l=Yb(e,i,t,s,a,!1);if(l)switch(e.$Type){case be.UIAnnotationTypes.ReferenceFacet:{KE(l,e,o,i,t);break}case be.UIAnnotationTypes.CollectionFacet:{let p=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,f=o[l.key]={base:F.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!f.ID&&a===F.FioriElementsVersion.v4&&k(s,{severity:F.LogSeverity.Error,message:j.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(c=e.Facets)==null||c.forEach(u=>{zp(u,t,n,i,f.facets,a,s)});break}}}r(zp,"addFacetToConfig");function Hs(e,t,n=F.FioriElementsVersion.v2,i){var l,c;let o={};if(!e||!e.annotations)return;let a=Ut(F.UIVOCABULARY,t),s=a&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:c.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),f=e&&e.fullyQualifiedName.substring(0,p);s.forEach(u=>{zp(u,t,f,e,o,n,i)})}return o}r(Hs,"getObjectPageHeaderFacets");function Gs(e,t,n=F.FioriElementsVersion.v2,i){var l;let o={};if(!e||!e.annotations)return;let a=Ut(F.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let c=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,c);s.forEach(f=>{zp(f,t,p,e,o,n,i)})}return o}r(Gs,"getObjectPageFacets");function Yp(e){var t,n,i,o;if(e[F.ManifestSection.generic]&&Object.keys(e[F.ManifestSection.generic]).length>0||e[F.ManifestSection.ovp]&&Object.keys(e[F.ManifestSection.ovp]).length>0)return F.FioriElementsVersion.v2;{let a=(n=(t=e[F.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(o=(i=e[F.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:o.libs;return a&&Object.keys(a).find(l=>{let c=typeof a[l].name=="string"?a[l].name:"";return wE.indexOf(c)>-1||ks(c)})||s&&Object.keys(s).find(l=>ME.indexOf(l)>-1)?F.FioriElementsVersion.v4:void 0}}r(Yp,"getFEVersionFromManifest");function JE(e){var n,i,o,a;let t=typeof((n=e==null?void 0:e[F.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[F.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(o=(i=e==null?void 0:e[F.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:o[t])==null?void 0:a.dataSource)=="string"?e[F.ManifestSection.ui5].models[t].dataSource:void 0}r(JE,"getMainService");function Zb(e){var i,o;let t=JE(e);if(!t)return F.OdataVersion.v2;let n=(i=e[F.ManifestSection.app].dataSources)==null?void 0:i[t];return((o=n==null?void 0:n.settings)==null?void 0:o.odataVersion)==="4.0"?F.OdataVersion.v4:F.OdataVersion.v2}r(Zb,"getODataVersionFromManifest");function qE(e,t){var i,o;let n;if(e[F.ManifestSection.generic]){let a=e[F.ManifestSection.generic].pages;if(!a){k(t,{severity:F.LogSeverity.Error,message:j.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(Zn((i=l.component)==null?void 0:i.name)===F.PageTypeV2.AnalyticalListPage){n=F.TemplateType.AnalyticalListPageV2;break}else if(Zn((o=l.component)==null?void 0:o.name)===F.PageTypeV2.ListReport){n=F.TemplateType.ListReportObjectPageV2;break}}}else n||k(t,{severity:F.LogSeverity.Error,message:j.t("NOTEMPLATE",{section:F.ManifestSection.generic}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.generic]}});return n}r(qE,"determineV2Template");function Ba(e){var i,o,a,s;let t,n=qp(e);if(n===F.PageTypeV4.AnalyticalListPage)t=F.TemplateType.AnalyticalListPageV4;else if(n===F.PageTypeV4.ListReport){let l=(s=(a=(o=(i=e.options)==null?void 0:i.settings)==null?void 0:o.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[F.ALPViewType.Primary]||l[F.ALPViewType.Secondary])?t=F.TemplateType.AnalyticalListPageV4:t=F.TemplateType.ListReportObjectPageV4}else n===F.PageTypeV4.ObjectPage?t=F.TemplateType.ListReportObjectPageV4:n===F.PageTypeV4.CustomPage&&(t=F.TemplateType.FreestylePageV4);return t}r(Ba,"determineV4PageTemplateType");function XE(e){let t;for(let n in e){let i=e[n];if(t=Ba(i),t)break}return t}r(XE,"determineV4TemplateFromPages");function zE(e,t){let n=e[F.ManifestSection.ui5].routing&&e[F.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return k(t,{severity:F.LogSeverity.Info,message:j.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.ui5,"routing"]}}),F.TemplateType.ListReportObjectPageV4;let i=XE(n);return i||k(t,{severity:F.LogSeverity.Error,message:j.t("NOTEMPLATE",{section:F.ManifestSection.ui5}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.ui5,"routing","targets"]}}),i}r(zE,"determineV4Template");function Zp(e,t,n){let i;return e[F.ManifestSection.ovp]?i=F.TemplateType.OverviewPageV2:t===F.FioriElementsVersion.v2?i=qE(e,n):t===F.FioriElementsVersion.v4&&(i=zE(e,n)),i}r(Zp,"getTemplateTypeFromManifest");function ni(e,t,n){e!=null&&e.ID?(t.title=F.FACETTITLEPREFIX+e.ID,t[F.SchemaTag.keys]=[{name:F.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[F.SchemaTag.keys]=[{name:F.SchemaKeyName.id,value:n.replace(F.UIVOCABULARYALPHADOT,"")}])}r(ni,"addSectionTitle");function gi(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)}r(gi,"addSectionDescription");function Go(e,t,n){var i,o;ni(e,t,n),gi(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:(o=e==null?void 0:e.target)!=null&&o.Label&&(t.description=e.target.Label))}r(Go,"addTargetTitleAndSectionDescription");function eT(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}r(eT,"addChartFacetID");function jn(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[F.SchemaTag.isViewNode]=!0,i[F.SchemaTag.annotationPath]=t.annotationPath,Go(t,i,n),i}r(jn,"createDefaultSection");function tT(e,t,n,i=F.FioriElementsVersion.v2,o=!1){var l,c;let a=Ut(F.UIVOCABULARY,t),s=[];if(e){let p=a&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:c.Facets);return p&&(s=p.reduce(function(f,u){if(o&&!u.ID&&!("Target"in u&&u.Target))return f;let m=Yb(u,e,t,n,i,!0);return m&&f.push(m),f},s)),s}}r(tT,"getObjectPageFacetSection");var mi=r((e,t,n,i,o,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(c){let p=a&&a===c?o:c.replace("??","/");if(!(!s[p]&&(a===c&&(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(),mi(e,l.join("/"),n,i,o,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),qb=r(e=>e===F.SchemaType.FreestylePage?F.PageTypeV2.CustomPage:`${e}`,"getGenericSchemaFileName"),Je=r((e,t)=>{let n={filename:"",path:""};switch(e){case F.SchemaType.Application:{n.filename="App",n.path=`./${F.DirName.Schemas}/${n.filename}`;break}case F.SchemaType.ListReport:case F.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:qb(e),n.path=`../${F.DirName.Schemas}/${n.filename}`;break}default:{n.filename=qb(e),n.path=`../${F.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function Wo(e,t,n,i){if(e===F.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let o=[];return o.push(e),t?o.push(t):i&&o.push(i.replace("|","").replace(e,"")),o.join("_")}r(Wo,"generatePageId");function nT(e,t,n){let i=t==null?void 0:t.properties,o=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(O)[1]];typeof l=="object"&&(i=l.properties,o=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];o=o||[];for(let s in n){let l=n[s];typeof l=="object"&&o.every(c=>l[c]!==void 0)&&a.push(s)}return a}r(nT,"findMatchingKeysByAdditionalProperties");function YE(e,t,n,i){let o=e.$ref;if(o){let a=o.split(O)[1];if(t.definitions[a]){let s=t.definitions[a].controlProperty;o.includes(n[s])&&i.push(a)}}}r(YE,"fillArrayFromAnyOfReference");function ZE(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(O)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(o=>{YE(o,n,t,i)}),i.length===0))return;return i}r(ZE,"fillArrayFromPropertyDefinition");function ex(e,t,n,i,o,a,s,l){var p,f,u,m;let c={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(c.targetDefinition=t.definitions[b],(p=c==null?void 0:c.targetDefinition)!=null&&p.$ref||((f=c==null?void 0:c.targetDefinition)==null?void 0:f.type)==="array")return c=Rn(t,n,i,c.targetDefinition,o,a,s),c;e.length>1&&e.forEach(L=>{L!==""&&(c.targetDefinition.properties={...c.targetDefinition.properties,...t.definitions[L].properties})}),c.title=(u=c==null?void 0:c.targetDefinition)!=null&&u.title?c.targetDefinition.title:n;let S=b==null?void 0:b.split("<")[0],N=i||{};c.configObject=a.createInstance(s,S,N,(m=c==null?void 0:c.targetDefinition)==null?void 0:m.controlProperty)}else c.targetDefinition=l,c.title=c.targetDefinition.title?c.targetDefinition.title:o,c.configObject=i;return c}r(ex,"determineNextDefinitionFromDefinitionArray");function Rn(e,t,n,i,o,a,s){let l;if(i.type==="array")return l=Rn(e,t,n,i.items,o,a,s),l;let c=ZE(i,n,e);if(c)return l=ex(c,e,t,n,o,a,s,i),l}r(Rn,"getNextTargetDefinition");var ef=r((e,t,n)=>{let i=e.slice();return t.forEach((o,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(o,n):n.isMergeableObject(o)?i[a]=(0,Xb.default)(e[a],o,n):e.indexOf(o)===-1&&i.push(o)}),i},"arrayCombineMerge");function kt(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}r(kt,"convertActionKeyToStableId");function Qo(e){return e==null?void 0:e.split(O)[1]}r(Qo,"getDefinitionKey");function iT(e){return e instanceof Error?e.message:String(e)}r(iT,"getErrorMessage");function $n(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}r($n,"updatePropertyIndices");function oT(e){return e=e.replace(F.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}r(oT,"removeNamespaces");function Ko(e){return e=e.replace(F.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}r(Ko,"replaceNamespaces");function ks(e){if(e!=null&&e.startsWith(`${F.v4.FE_NAMESPACE_V4}.`)){let t=e.split(".").at(-1);if(t in F.PageTypeV4)return F.PageTypeV4[t]}}r(ks,"convertTemplateNameToPageTypeV4");function Ws(e,t){if(e===t)return!0;let n=ks(e);return n?n===ks(t):!1}r(Ws,"compareTemplateNames");var Fn=require("@sap-ux/vocabularies-types/vocabularies/UI"),R=U(B());var _t=U(B());var We=r((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Qs=r((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),ut=r((e,t)=>{let n,i=_t.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 tx(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}r(tx,"escapeId");var aT=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(aT||{});function nx(e,t,n){let i;return e=e.map(function(o){if(o===_t.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===_t.PropertyName.sections)return i=t[a+1],t[a+1]=ut(i,n)+"::Table",t[a+1]}return o}),{idBreadcrumbs:e}}r(nx,"mapBreadcrumbs");var tf=r((e,t,n,i,o)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=nx(t,s,o)),s[0]===_t.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,_t.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,_t.VOCWITHSLASH):t[0]===_t.PropertyName.table&&(a=t[0]);let c=s[s.length-1].replace(/::com.sap.vocabularies/g,_t.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,_t.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,f=c.indexOf(":::");return c.startsWith("DataField")&&f>-1?(c=c.replace("/",":2f"),p=`${e}template:::TableColumn:::${c.substring(0,f)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${c.substring(f+3)}`):(c=c.replace("/","_"),p=`${e}${t.join("::")}-${c}`),tx(p)},"buildColumnControlId"),Bt=r(e=>{let t=e[e.length-1].split(":::"),n,i,o;return t.length>2?(n=t[0],i=t[1].split("::")[1],o=t[2].split("::")[1]):t.length===2?(n=t[0],o=t[1].split("sAction::")[1]):o=t[0],{actionType:n,semanticObjectId:i,actionId:o}},"getActionBreadcrumbParts");function ix(e){let t=_t.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}r(ix,"determinePattern");var rT=r((e,t,n,i)=>{let o=t&&t.properties;if(o[n].pattern)return;let a=o[n],s=a,l=a.$ref?e.definitions[a.$ref.split(O)[1]]:a,c=a.description?a.description:l.description,p=ix(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(f=>{s.enum.indexOf(f)===-1&&s.enum.push(f)}),o[n]={pattern:p,anyOf:[s,{type:"string"}]},c&&(o[n].description=c,delete a.description)},"addPatternForBindingChangeOfEnum"),wn=r((e,t,n)=>{rT(e,t,n)},"addPatternForBindingChangeOfEnumLR"),Fe=r((e,t,n)=>{let i=Object.values(aT);rT(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function Gi(){}r(Gi,"doNotDelete");var u1=U(lT());var cT=Symbol("specificationMetadataKey"),g=r(e=>Reflect.metadata(cT,e),"syncRule");function dt(e,t){let n;return e&&(n=Reflect.getMetadata(cT,e,t)),n}r(dt,"getReflectMetadata");var nn=r(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),pT=Symbol("childId"),_e=r(e=>Reflect.metadata(pT,e),"childId"),Ks=r((e,t)=>Reflect.getMetadata(pT,e,t),"getChildId"),Js=r(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),ox=Symbol("descriptionSrcURL"),ye=r(e=>Reflect.metadata(ox,e),"descriptionSrcURL");var ax=Symbol("validityMetadataKey"),T=r(e=>Reflect.metadata(ax,e),"validity");function Jo(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}r(Jo,"getTextForDeprecated");var bT=U(yT()),TT=U(B());var vT=bT.default.change,hT={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function ST(e,t){let n="";try{for(let i in hT)e[i]===void 0&&(e[i]=hT[i]);n=vT.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}r(ST,"createChangeString");function yn(e){try{return vT.parse(e)}catch{return!1}}r(yn,"parseChangeString");function PT(e,t,n,i,o){let a=n.layer?n.layer===TT.FlexChangeLayer.Customer:!0,s={controlId:o,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}r(PT,"fillFlexChangeContent");function _(e,t){return ST(e,t)}r(_,"exportToFlexChange");var Wi=U(B());function qo(e,t,n,i,o,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let c=l(t,o,n,a);c!==void 0&&(i[n]=c)}else t[s]!==void 0&&(i[n]=t[s])}r(qo,"importProperty");function qs(e,t,n,i){if(t&&e)for(let o in t){let a=e[o];a&&(k(i,{severity:Wi.LogSeverity.Warning,message:Jo(o,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[o])}}r(qs,"checkDeprecatedProperties");function nf(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(O)[1]];return nf(n,t)}else return e.title?e.title.startsWith(Wi.FACETTITLEPREFIX)?e.title.split(Wi.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}r(nf,"getSectionTitle");function Xs(e){let t=e.split(`${Wi.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}r(Xs,"getTargetFromCustomColumnRef");function Qi(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}r(Qi,"removeEmptyStructure");var Ue=require("@sap-ux/vocabularies-types/vocabularies/UI");var ii=require("@sap-ux/vocabularies-types/vocabularies/UI");function zs(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}}r(zs,"replaceSpecialChars");var Ki=r(function(e){return zs(oT(e))},"prepareId");function ux(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}r(ux,"evaluateConcat");function Ji(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 ux(e);if(e&&typeof e=="string")return zs(e.replace(/ /g,"_"))}r(Ji,"getStableIdPartFromValue");var AT=r(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"),oi=r(function(e){let t="";if(e.$Type&&e.$Type===ii.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Ki(t);if(e.$Type&&e.$Type===ii.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=AT(e),t;if(e.$Type&&e.$Type===ii.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Ki(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ii.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=Ji(e.Value)+"::"),t+=e.Action,Ki(t);if(e.$Type&&e.$Type===ii.UIAnnotationTypes.DataField)return t="DataField::",t+=Ji(e.Value),Ki(t);if(e.$Type&&e.$Type===ii.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=Ji(e.Value)+"::",t+=AT(e),Ki(t);if(e.$Type&&e.$Type===ii.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=Ji(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Ki(t);if(e.$Type&&e.$Type===ii.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=Ji(e.Value),Ki(t)},"getStableIdPartFromDataField");var w=U(B());var se=U(B());var Ht=require("@sap-ux/vocabularies-types/vocabularies/UI"),IT=require("path"),OT=U(Ua());var qi="ResponsiveTableWithMultiSelect<LineItems>",Xi="ResponsiveTableWithInlineDelete<LineItems>",Ys="TreeTable<LineItems>",Zs="AnalyticalTable<LineItems>",el="GridTable<LineItems>",of=[qi,Xi,Ys,Zs,el],CT=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],ET="template::",tl="template:::ObjectPageAction:::";function dx(e,t,n){e.definitions[se.DefinitionName.LineItems]&&(e.definitions[se.DefinitionName.LineItems].properties.custom={$ref:`${O}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${O}${n}`},description:"Custom Columns"},e.definitions[t][se.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[se.SchemaTag.artifactType]=se.ArtifactType.Manifest)}r(dx,"addCustomColumnDefinition");function gx(e,t){let n;return e==="TableColumnActionIntentBased"?n=Xp(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=Oe(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Ht.UIAnnotationTypes.DataFieldForAction?n=Oe(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=Oe(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}r(gx,"getActionId");function af(e,t,n,i,o){let a,s=n.lineItemId===se.DefinitionName.LineItems?"":"ObjectPage",l=gx(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let c=`${s}${i}<${l}>`,p=Ct(n.lineItemRecord,n.entityType);t.properties[l]={$ref:O+c},t.properties[l][se.SchemaTag.propertyIndex]=o;let{key:f,ns:u}=Yi(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[c]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:f}],annotationPath:`${n.lineItemPath}/${o}`},u&&(e.definitions[c][se.SchemaTag.target]=u)):(e.definitions[c]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[c][se.SchemaTag.isViewNode]=!0,e.definitions[c][se.SchemaTag.keys]=[{name:se.SchemaKeyName.action,value:f}],u&&(e.definitions[c][se.SchemaTag.target]=u),e.definitions[c][se.SchemaTag.annotationPath]=`${n.lineItemPath}/${o}`)}r(af,"handleActionRecord");function mx(e,t,n){e!==se.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Ht.UIAnnotationTypes.DataFieldForAction||t.$Type===Ht.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Ht.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Ht.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}r(mx,"getColumnActionType");function yx(e,t){let n=[];if(!(e.$Type!==Ht.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Ht.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Ht.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Ht.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Ht.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Ht.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),mx(t,e,n),n}r(yx,"getActionType");function FT(e,t,n){let i=Xp(e.lineItemRecord);if(i){let o=t.definitions[e.lineItemId];o.properties[i]={$ref:O+se.DefinitionName.TableColumn,description:Ct(e.lineItemRecord,e.entityType)},o.properties[i][se.SchemaTag.propertyIndex]=n,o.properties[i][se.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,rl(o.properties[i],e.lineItemRecord),sl(e.lineItemRecord,o.properties,i)}}r(FT,"generateGenericColumn");function hx(e,t,n,i,o,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{af(t,n,i,e,o);break}case"FooterAction":case"FooterActionIntentBased":{a&&af(t,a,i,e,o);break}case"TableColumnAction":case"TableColumnActionIntentBased":{af(t,t.definitions[s],i,e,o);break}case"ObjectPageTableColumnAction":FT(i,t,o)}}r(hx,"handleAnyAction");function Xo(e,t,n,i,o,a){o=o||se.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:c}=al(e,t,n,i,o);if(n){let p=0;n.forEach(f=>{let u={lineItemPath:c,lineItemRecord:f,lineItemId:o,entityType:i},m=yx(f,o);m?m.forEach(b=>{hx(b,t,s,u,p,l,o)}):FT(u,t,p),p++})}a&&(t.definitions[o].properties.custom={$ref:`${O}${a}`})}r(Xo,"addLineItemsType");function bx(e,t,n){var o,a;let i=(a=(o=e.definitions[n])==null?void 0:o.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,c)=>(l.includes(c.name)||l.push(c.name),l),[])}}r(bx,"addListReportLeadingProperties");function Tx(e,t,n,i){var s,l,c,p,f,u;let o=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(o.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",o.enum=[i]);return}let a=(f=(p=(c=n.component)==null?void 0:c.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:f.variants;if(a){let m=[];for(let b in a){let S=(u=a[b])==null?void 0:u.key;S!==void 0&&!m.includes(S)&&m.push(S)}zi(m,o)}}r(Tx,"addTabkeyEnum");function nl(e,t,n,i,o){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(c=>{let p=c.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let f=JSON.parse((0,OT.xml2json)(c.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!f||f.Column||f["table:Column"]||f["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!f||!f.Column&&!f["table:Column"]&&!f["table:AnalyticalColumn"]&&!f["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+IT.sep,"g"),"/");let u=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(u)}}}),zi(a,(l=(s=e.definitions[o])==null?void 0:s.properties)==null?void 0:l[i])}r(nl,"addFragmentEnum");function zo(e,t,n,i,o,a=se.DefinitionName.CustomColumns,s=se.DefinitionName.CustomColumn,l){dx(e,a,s),bx(e,t,s),Tx(e,s,n,l);let c=i&&i["sap.app"]&&i["sap.app"].id;nl(e,o,c,"fragmentName",s),nl(e,o,c,"fragmentName",se.DefinitionName.CustomColumn),nl(e,o,c,"cellsFragmentName",s),nl(e,o,c,"cellsFragmentName",se.DefinitionName.CustomColumn)}r(zo,"addTableColumnExtensions");function NT(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}r(NT,"removeElementsFromEnum");function il(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,o=Mt(n==null?void 0:n.fullyQualifiedName,Ht.UIAnnotationTerms.SelectionFields);if(o&&(i[se.SchemaTag.annotationPath]=o),!t)return;let a=0;t.forEach(s=>{let l=s.value,c=`SelectionField<${Oe(s.value)}>`,p=hn(s);s.type==="PropertyPath"&&(l=Bs(s,n)),i.properties[s.value]={$ref:O+c},i.properties[s.value][se.SchemaTag.propertyIndex]=a,e.definitions[c]={type:"object",description:l,additionalProperties:!1},e.definitions[c][se.SchemaTag.isViewNode]=!0,e.definitions[c][se.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[c][se.SchemaTag.dataType]=p,e.definitions[c][se.SchemaTag.keys]=[{name:se.SchemaKeyName.value,value:`${s.value}`}],e.definitions[c][se.SchemaTag.annotationPath]=`${i[se.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[c].$ref=`${O}SelectionFieldDateSettings`:e.definitions[c].properties={},a++})}r(il,"addSelectionFields");function ol(e){var t,n,i,o;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((o=(i=e.annotations)==null?void 0:i.Common)!=null&&o.DraftNode)}r(ol,"isDraftEnabled");function VT(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}r(VT,"isEntityDeletable");function LT(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}r(LT,"isEntityUpdatable");function Yo(e,t=!1,n){let i=se.DefinitionName.HeaderActionsStandard,o=se.DefinitionName.HeaderActionsStandard,a=se.DefinitionName.HeaderActionStandard;t&&(i=se.DefinitionName.GenericActions,o=se.DefinitionName.HeaderActions,a=se.DefinitionName.ObjectPageHeaderActionStandard);let s=e.definitions[i],l=e.definitions[o];l[se.SchemaTag.isViewNode]=!0,l.description="Actions",Object.entries((n||s).properties).forEach(([p,f])=>{let u=f.$ref.split(O)[1],m=`${a}<${u}>`;l.properties[p]={$ref:`${O}${m}`},e.definitions[m]=e.definitions[u],e.definitions[u][se.SchemaTag.actionType]=se.ActionType.Standard})}r(Yo,"addStandardHeaderActions");function DT(e,t){let n=e.definitions[se.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let o=n.properties[i].$ref.split(O)[1],a=`${se.DefinitionName.ObjectPageFooterActionStandard}<${o}>`;t.properties[i]={$ref:`${O}${a}`},e.definitions[a]=e.definitions[o],e.definitions[o][se.SchemaTag.actionType]=se.ActionType.Standard}}r(DT,"addStandardFooterActionsOP");function vx(e,t,n,i){if(e===w.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ue.UIAnnotationTypes.DataField:case Ue.UIAnnotationTypes.DataFieldForAnnotation:case Ue.UIAnnotationTypes.DataFieldWithNavigationPath:case Ue.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===w.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ue.UIAnnotationTypes.DataField:case Ue.UIAnnotationTypes.DataFieldForAnnotation:case Ue.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}r(vx,"copyFieldProperties");function Sx(e,t,n,i){let o=e===w.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===w.FioriElementsVersion.v2?`${o}<${n}::${i}>`:`${n}::${i}`}r(Sx,"determineFieldDefinitionName");function Px(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][w.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][w.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][w.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][w.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(Px,"addKeysTagForDataField");function Ax(e,t,n){if(e.$Type===Ue.UIAnnotationTypes.DataField||e.$Type===Ue.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ue.UIAnnotationTypes.DataFieldWithNavigationPath)Px(e,t,n);else if(e.$Type===Ue.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][w.SchemaTag.keys]=[{name:"Target",value:Ko(e.Target.value)}],t.definitions[n][w.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ue.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][w.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][w.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][w.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ue.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][w.SchemaTag.keys]=[{name:w.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][w.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][w.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(Ax,"addKeysTagToField");function Cx(e){var t,n;return e.$Type===Ue.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Ue.UIAnnotationTypes.ConnectedFieldsType}r(Cx,"isConnectedField");function Ex(e,t,n,i,o){let a=n.Target.$target,s={};if(a.$Type===Ue.UIAnnotationTypes.ConnectedFieldsType){let c=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,f=c.length;for(let u in p){let m=p[u];if(typeof m=="object"&&"$Type"in m){let b=c.findIndex(S=>S===u);b===-1&&(b=f,f++),rf(e,t,m,`ConnectedFields::${a.qualifier}`,b.toString(),i,o,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}r(Ex,"addConnectedFields");function jT(e,t,n){if(n)return n;let i=Oe(t);return e.definitions[i].properties}r(jT,"getFieldsSchemaContainer");function rf(e,t,n,i,o,a,s,l=!0,c={},p=a.entityType.fullyQualifiedName){var S;let f=oi(n),u=s===w.FioriElementsVersion.v2&&f&&f.includes("::")?f.split("::").splice(1).join("::"):f,m=Sx(s,f,i,u),b={};if(!(!n||!n.$Type)){if(n.$Type===Ue.UIAnnotationTypes.DataFieldForAction||n.$Type===Ue.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===w.SectionType.Section){let N=jT(t,`${e}${w.DefinitionName.Actions}<${i}>`,c.actions),L=N[u]={$ref:`${O}${m}`};L[w.SchemaTag.propertyIndex]=parseInt(o)}}else{let N=jT(t,`${e}${w.DefinitionName.Fields}<${i}>`,c.fields);N[u]={$ref:`${O}${m}`,propertyIndex:parseInt(o)},Cx(n)&&(b=Ex(e,t,n,a,s))}t.definitions[m]={type:"object",properties:b,description:Ct(n,a.entityType),additionalProperties:!1},Ax(n,t,m),t.definitions[m][w.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[m][w.SchemaTag.annotationType]=n.$Type,t.definitions[m][w.SchemaTag.isViewNode]=!0,rl(t.definitions[m],n),vx(s,t,n,m),n.$Type===Ue.UIAnnotationTypes.DataFieldForAction&&((S=t.definitions)!=null&&S.FormAction)&&(t.definitions[m].properties=t.definitions[w.DefinitionName.FormAction].properties)}}r(rf,"addField");function xx(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}r(xx,"determineTargetIdOfForm");function Ix(e,t,n,i,o,a=!0){var p;if(!e.target)return;let s=Oe(`${t}${w.DefinitionName.Form}<${i}>`),l=Oe(`${t}${w.DefinitionName.Fields}<${i}>`),c=Oe(`${t}${w.DefinitionName.Actions}<${i}>`);if(n.properties.form={$ref:`${O}${s}`},t===w.SectionType.Section&&a?(n.definitions[s]={type:"object",properties:{actions:{$ref:`${O}${c}`},fields:{$ref:`${O}${l}`}},description:"Form",additionalProperties:!1},n.definitions[c]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[c][w.SchemaTag.isViewNode]=!0):n.definitions[s]={type:"object",properties:{fields:{$ref:`${O}${l}`}},description:"Form",additionalProperties:!1},n.definitions[s][w.SchemaTag.isViewNode]=!0,(p=e.entityType)!=null&&p.name&&(n.definitions[s][w.SchemaTag.annotationPath]=Mt(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[l][w.SchemaTag.isViewNode]=!0,e.base===w.FacetBase.Identification)for(let f in e.target){let u=e.target[f];u&&rf(t,n,u,i,f,e,o,a)}else for(let f in e.target.Data){let u=e.target.Data[f];rf(t,n,u,i,f,e,o)}}r(Ix,"addFieldsToFormDefinition");function Ox(e,t,n){var i,o;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][w.SchemaTag.keys]=[{name:w.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][w.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][w.SchemaTag.isViewNode]=!0,(o=e.entityType)!=null&&o.name&&(t.definitions[n][w.SchemaTag.annotationPath]=Mt(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}r(Ox,"addTagsToFormDefinition");function ll(e,t,n,i,o,a){if(!t.target)return;let s=xx(t),l=Oe(`${e}${w.DefinitionName.Form}<${s}>`),c=Oe(`${e}${w.DefinitionName.Fields}<${s}>`),p=Oe(`${e}${w.DefinitionName.Actions}<${s}>`),f=!(t.base===w.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${O}${l}`},e===w.SectionType.Section&&f?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${O}${p}`},fields:{$ref:`${O}${c}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][w.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${O}${c}`}},description:"Form",additionalProperties:!1},Ox(t,i,l),i.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[c][w.SchemaTag.isViewNode]=!0,Ix(t,e,i,s,o,f),s}r(ll,"handleForm");function sf(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let o=n.replace("SAP__",""),a=t.references.find(s=>s.alias===o);a&&(i=e.replace(n,a.namespace))}return i}r(sf,"replaceAlias");function cl(e,t){let n=sf(e.Action,t),i=n,o=n.indexOf("(");o>0&&(i=n.substring(0,o)),o=i.lastIndexOf("/"),o===-1&&(o=i.lastIndexOf("."));let a,s,l;return o>-1?(a=i.substring(o+1),l=i.substring(0,o),s=`${i.substring(0,o)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}r(cl,"getActionNameAndId");function RT(e,t){var n,i;for(let o in e){let a=e[o];return((n=a.component)==null?void 0:n.name)===w.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:RT(a.pages,t)}}r(RT,"isFirstObjectPage");function pl(e,t,n,i,o){var f,u;e.definitions[w.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${w.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${O}${w.DefinitionName.ObjectPageFooter}`},e.definitions[w.DefinitionName.ObjectPageFooter].properties[w.PropertyName.actions]={$ref:`${O}${w.DefinitionName.FooterActions}`};let a=e.definitions[w.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[w.SchemaTag.isViewNode]=!0;let s=Ut(w.UIVOCABULARY,t.serviceAVT),l=t.entitySet,c=l==null?void 0:l.entityType,p=s&&((u=(f=c==null?void 0:c.annotations)==null?void 0:f[s])==null?void 0:u.Identification);if(p){let m=p.fullyQualifiedName.replace(`@${Ue.UIAnnotationTerms.Identification}`,`/@${Ue.UIAnnotationTerms.Identification}`);a[w.SchemaTag.annotationPath]=`/${m}`,i(c,e,a,p)}else c&&(a[w.SchemaTag.annotationPath]=`/${c.fullyQualifiedName}/@${Ue.UIAnnotationTerms.Identification}`);n===w.FioriElementsVersion.v2&&RT(o,t)&&!ol(l)&&DT(e,a),delete e.definitions[w.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${w.DefinitionName.ObjectPageFooter}<${w.DefinitionName.ObjectPageFooterActions}>`]}r(pl,"addFooterActions");function fl(e,t,n,i,o,a=!1){var u,m;let s=w.DefinitionName.HeaderActions,l=e.definitions[s];e.definitions[w.DefinitionName.ObjectPageHeader].properties[w.PropertyName.actions]={$ref:`${O}${s}`};let c=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};c[w.SchemaTag.isViewNode]=!0;let p=Ut(w.UIVOCABULARY,i),f=p&&((m=(u=t==null?void 0:t.annotations)==null?void 0:u[p])==null?void 0:m.Identification);f?c[w.SchemaTag.annotationPath]="/"+f.fullyQualifiedName.replace(`@${Ue.UIAnnotationTerms.Identification}`,`/@${Ue.UIAnnotationTerms.Identification}`):t&&(c[w.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ue.UIAnnotationTerms.Identification}`),o(t,e,f,c,i,n),a&&Yo(e,!0,l),delete e.definitions[w.DefinitionName.GenericActions],delete e.definitions[`${w.DefinitionName.ObjectPageHeader}<${w.DefinitionName.GenericActions}>`]}r(fl,"addHeaderActions");function ul(e,t){e.properties.header={$ref:`${O}${w.DefinitionName.ObjectPageHeader}`},e.definitions[w.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${w.DefinitionName.ObjectPageHeader}<${w.DefinitionName.GenericActions}>`])),t&&(e.definitions[w.DefinitionName.ObjectPageHeader][w.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ue.UIAnnotationTerms.HeaderInfo}`)}r(ul,"addCommonHeaderSchema");function $T(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}r($T,"determineEntitySetOfEntityType");var bn=require("@sap-ux/vocabularies-types/vocabularies/UI");var de=U(B());function zi(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}r(zi,"addEnumToSchema");function wT(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let o=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let c=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;o.indexOf(c)===-1&&o.push(c)}}zi(o,n)}r(wT,"addEnumForValidAnnotations");function yi(e,t,n){let i=t.definitions[n].properties[de.SchemaTag.annotationPath],o=[bn.UIAnnotationTerms.SelectionVariant,bn.UIAnnotationTerms.SelectionPresentationVariant];wT(e,o,i)}r(yi,"addEnumForSingleTabVariant");function MT(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,o=[bn.UIAnnotationTerms.SelectionVariant,bn.UIAnnotationTerms.SelectionPresentationVariant];wT(n.entityType,o,i)}r(MT,"addEnumForMultiTabVariant");function UT(e,t,n){let i=t.definitions[n].properties.entitySet,o=[];e.entitySets.forEach(a=>{o.push(a.name)}),zi(o,i)}r(UT,"addEnumForVariantEntitySet");function kT(e,t,n,i){let o=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],c=a.label||a.title;return{const:l,...c&&{description:c},...a.custom&&{custom:a.custom}}});if(o.length){e.definitions[de.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:o};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:`${O}${de.DefinitionName.RelatedFacetKeys}`},l]}}}}r(kT,"addDefinitionForRelatedFacetKeys");function Zo(e){return e.replace("#","::")}r(Zo,"getFacetKeyInSchema");function dl(e,t){return`${e}<${Zo(t)}>`}r(dl,"getFacetDefinitionKey");function gt(e,t,n,i=!0,o){let a=t;if(i&&(a=dl(o||e,t)),e&&e!==a)try{let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=s}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[a]}r(gt,"parseSchemaDefinition");function al(e,t,n,i,o,a){let s;t.definitions[o]={type:"object",properties:{},description:"Columns"},t.definitions[o].additionalProperties=!1,t.definitions[o][de.SchemaTag.isViewNode]=!0;let l;o===de.DefinitionName.LineItems||o==="LineItemsOfSPV::LineItem"||o==="@com.sap.vocabularies.UI.v1.LineItem"?l=`${O}${a}`:(l=`${O}${a}<${o}>`,gt(a,o,t,!0)),t.definitions[o].additionalProperties=a?{$ref:`${l}`}:!1;let c=e?de.DefinitionName.ObjectPageToolBar:de.DefinitionName.ToolBar,p=`${c}<${o}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${c}`]))}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${c}`}))}let f=`${de.DefinitionName.Actions}<${Oe(o)}>`;t.definitions[p].properties.actions.$ref=O+f;let u=o.startsWith(de.DefinitionName.LineItems)?de.DefinitionName.Actions:de.DefinitionName.ObjectPageToolBarActions,m;try{m=t.definitions[f]=JSON.parse(JSON.stringify(t.definitions[u])),m.properties={},m.additionalProperties=!1}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let b,S;if(o===de.DefinitionName.LineItems&&t.properties.footer){S=`${de.DefinitionName.Footer}<${o}>`,t.properties.footer.$ref=`${O}${S}`;try{t.definitions[S]=JSON.parse(JSON.stringify(t.definitions[de.DefinitionName.GenericFooter]))}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:de.DefinitionName.GenericFooter}))}let N=`${de.DefinitionName.FooterActions}<${Oe(o)}>`;t.definitions[S].properties.actions.$ref=O+N;try{b=t.definitions[N]=JSON.parse(JSON.stringify(t.definitions[de.DefinitionName.Actions]))}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:de.DefinitionName.Actions}))}b.properties={},b.additionalProperties=!1}return n&&(s=Mt(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),s&&(t.definitions[o][de.SchemaTag.annotationPath]=t.definitions[p][de.SchemaTag.annotationPath]=s,b&&(t.definitions[S][de.SchemaTag.annotationPath]=s))),{actions:m,footerActions:b,lineItemPath:s}}r(al,"addCommonLineItemDefinitions");function _T(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}r(_T,"getDataTypeFromAnnotation");function Zi(e){var n,i,o;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.",""):(o=e==null?void 0:e.$Type)!=null&&o.startsWith("com.sap.vocabularies.")&&(t=_T(e.$Type)),t}r(Zi,"determineDataTypeOfTarget");function hn(e){var n,i,o;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=Zi((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(o=e.$Type)!=null&&o.startsWith("com.sap.vocabularies.")?t=_T(e.$Type):e.type&&(t=e.type),t}catch{return t}}r(hn,"determineDataType");function rl(e,t){let n=hn(t);n&&(e[de.SchemaTag.dataType]=n)}r(rl,"addDataTypeToDefinition");function Gt(e,t){return`${O}${dl(e,t)}`}r(Gt,"getFacetDefinitionLink");function eo(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${O}${i}`}r(eo,"addDefinitionRef");function gl(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${de.UIVOCABULARY}`);t=`/${n}/@${de.UIVOCABULARY}${i}`}return t}r(gl,"getFacetAnnotationPath");function Ha(e,t,n,i,o,a,s=""){let l=`ObjectPage${o}${e.base}${s}`,c=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:Gt(a?c:l,t)};let p=gt(a?c:l,t,i,!0,a?c:void 0);ni(e,p,t),gi(e,p,t),p[de.SchemaTag.annotationPath]=e.annotationPath,p[de.SchemaTag.isViewNode]=!0}r(Ha,"handleAddressContact");function lf(e,t,n){typeof e=="object"&&(e[t]=n)}r(lf,"updateSchemaProperty");function ea(e,t,n=Oe("")){let i=t.entityProperties.map(a=>a.name),o=e.definitions[`${de.DefinitionName.Fields4Dialog}${n}`];lf(o.properties.fields.items,"enum",i)}r(ea,"addFieldsType");function Fx(e,t){if(!(!t||!e))for(let n of t){let i=e.find(o=>o.name===n);if(i)return i}}r(Fx,"findFirstSchemaDefinitionKey");function cf(e,t,n,i){var p;let o=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let f=Qo(t.$ref),u=(p=e.definitions)==null?void 0:p[f];typeof u=="object"&&(s=!u.annotationPath,i!=null&&i.resolveDefinition&&!o&&(o=u.description,a=u.keys))}let l=n,c=Fx(a,i==null?void 0:i.keyProperties);return c?l=c.value:i!=null&&i.descriptionAsFallback&&o&&(l=o),{const:l,...o&&{description:o},...s&&{custom:s}}}r(cf,"getEnumEntry");function BT(e,t,n,i){var s;if(typeof t!="object")return;let o=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let c=t.properties[l],p=cf(e,c,l,i);o.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];lf(l,"oneOf",o)}else lf(a,"oneOf",o)}r(BT,"addDescriptiveEnumDefinition");function Yi(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let o=n.indexOf("/"),a=n.lastIndexOf(".");i=o>0?n.substring(0,o):n.substring(0,a),n=o>0?n.substring(o+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}r(Yi,"getActionKey");function sl(e,t,n){var i,o,a;try{if(e.Value)t[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.value,value:Ji(e.Value)}];else if(e.$Type===bn.UIAnnotationTypes.DataFieldWithAction||e.$Type===bn.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Yi(e.Action,!0);t[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.action,value:s}],l&&(t[n][de.SchemaTag.target]=l)}else if(e.$Type===bn.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Yi(e.Target.value,!1);t[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.target,value:Ko(s)}],t[n][de.SchemaTag.target]=(a=(o=(i=e.Target)==null?void 0:i.$target)==null?void 0:o.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===bn.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===bn.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:c}=Yi(s,!0);t[n][de.SchemaTag.keys]=[{name:"SemanticObject",value:e[de.SchemaKeyName.semanticObject]},{name:"Action",value:l}],c&&(t[n][de.SchemaTag.target]=c)}}catch{return}}r(sl,"addKeyToDefinition");function HT(e,t){e[de.SchemaTag.messages]||(e[de.SchemaTag.messages]=[]),Array.isArray(e[de.SchemaTag.messages])&&e[de.SchemaTag.messages].push({text:t})}r(HT,"addMessageToSchema");var ta=U(B());var GT=[{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 QT="1.84.115";var KT={name:"@sap/ux-specification",version:QT,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 copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/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",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 copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/vocabularies-types":"0.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.84.115","@sapui5/ts-types":"latest-1.84","@types/d3":"7.4.3","@types/jquery":"3.5.32","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.9.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2",path:"0.12.7","reflect-metadata":"0.2.2","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var hi=class hi{constructor(){hi.distTagsOfSpec.length===0&&(hi.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){hi.distTagsOfSpec=[]}getSpecVersion(){return QT}getDistTagsOfVersion(){let t=[],n=GT,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let o=n.find(a=>a.version.startsWith(i));o&&(t=o.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let o=j.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});k(n,{severity:ta.LogSeverity.Info,message:o,location:{path:ta.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(hi.distTagsOfSpec.findIndex(o=>o.endsWith(i))===-1){let o=j.t("WRONGMINUI5VERSION",{minUI5Version:t});k(n,{severity:ta.LogSeverity.Warning,message:o,location:{path:ta.MANIFESTPATH}})}}};r(hi,"DistTagEvaluator"),hi.distTagsOfSpec=[];var Ga=hi;var Q=U(B());var lt=U(B());var Ti=U(B());var pf=class pf{constructor(t,n,i,o){this.unhandledControllers=[];let a=Je(Ti.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...o&&{settings:o}},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(){let t={},n={},i;for(let a in this.app.pages)if(i=this.app.pages[a],i.config){let s=i.config;if(i.pageType!==Ti.PageType.CustomPage){let l=Je(i.pageType,i.entitySet);if(this.schemas[l.filename])s.$schema=l.path;else{let c=Je(i.pageType);s.$schema=c.path}t[`${Ti.DirName.Pages}/${a}.json`]=s}}let o=JSON.parse(JSON.stringify(this.app));for(let a in o.pages)delete o.pages[a].config;return n[Ti.FileName.App]=o,{appConfig:n,pageConfigs:t}}};r(pf,"AppProvider");var bi=pf;var Ee=U(B());var na=U(B());var pt=r((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),JT=r((e,t)=>{let n=e,i=t.split("/");for(let o of i){if(!n[o])return;n=n&&n[o]}return n||{}},"getManifestSectionByPathV2"),qT=r((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let o=t.split("/")[i];i===t.split("/").length-1?delete n[o]:n=n&&n[o]}},"deleteManifestSectionByPathV2");function ff(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}r(ff,"getNewPageTemplate");function Lx(e,t,n){if(e)for(let i in e){let o=e[i];if(o.entitySet===t&&o.navigationProperty===n)return o}}r(Lx,"findPageInManifest");function Dx(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=ff(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:ff(e[t].pageType)}),!Array.isArray(n.pages))){let i=Lx(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=ff(e[t].pageType)),uf(t,e,i)}}r(Dx,"transformPageFromAssociation");function jx(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let o=e.pages[i];if(((a=o.component)==null?void 0:a.name)===na.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${o.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===na.PageTypeV2.ListReport||n.pageType===na.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}r(jx,"deletePage");function uf(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===na.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 o in i.navigation)Dx(t,o,n);Array.isArray(n.pages)||jx(n,t,i)}}r(uf,"transformPageToNewManifestV2");var Rv=U(Ua());var zu={};jo(zu,{ALPAnalyticalTable:()=>Xf,ALPGridTable:()=>qf,ALPResponsiveTable:()=>Jf,Action:()=>eu,AnalyticalCard:()=>sa,AnalyticalCardSettings:()=>bl,AnalyticalCardSettingsv4:()=>bf,AnalyticalListPageFilterBar:()=>If,AnalyticalTable:()=>Kf,BaseCustomSection:()=>vr,ChartSettings:()=>bu,ChartSettingsType:()=>gf,CommonCardSettings:()=>Ai,CommonHeaderFacetSettings:()=>uo,CommonTableSettings:()=>xi,CommonTableSettingsForSections:()=>bo,CreateWithFilters:()=>_f,CustomCard:()=>yf,DataLoadSettings:()=>Bf,DateRange:()=>Af,DefaultSpanObject:()=>mf,FRAGMENT_DEFINITION:()=>kn,Field:()=>Pf,FieldForAction:()=>Vf,Fields4Dialog:()=>Hf,Fields4DialogOP:()=>Wu,FooterAction:()=>nu,FormAction:()=>Nf,GlobalChartSettings:()=>Hu,GlobalTableSettings:()=>qu,GridTable:()=>zf,HeaderAction:()=>Su,HeaderActionStandard:()=>su,HeaderSections:()=>xu,KPISettings:()=>Tu,LinkListCardSettings:()=>vf,LinklistCard:()=>Za,ListCard:()=>ra,ListCardSettings:()=>hf,ListReportFilterBar:()=>Al,ObjectPageAnalyticalTable:()=>Qu,ObjectPageChart:()=>Bu,ObjectPageCustomSectionFragment:()=>Sr,ObjectPageCustomSectionView:()=>Pr,ObjectPageFooterAction:()=>Ou,ObjectPageFooterActionStandard:()=>cu,ObjectPageGridTable:()=>Ku,ObjectPageHeader:()=>vu,ObjectPageHeaderActionStandard:()=>lu,ObjectPageHeaderSectionAddress:()=>Eu,ObjectPageHeaderSectionChart:()=>Au,ObjectPageHeaderSectionDataPoint:()=>Cu,ObjectPageHeaderSectionForm:()=>Pu,ObjectPageLayout:()=>Nu,ObjectPageResponsiveTable:()=>To,ObjectPageSectionAddressV2:()=>Ru,ObjectPageSectionChartV2:()=>Du,ObjectPageSectionContactV2:()=>$u,ObjectPageSectionFormV2:()=>Lu,ObjectPageSectionTableV2:()=>ju,ObjectPageSectionV2:()=>Vu,ObjectPageSubSectionChartV2:()=>Uu,ObjectPageSubSectionContactV2:()=>ku,ObjectPageSubSectionFormV2:()=>Mu,ObjectPageSubSectionTableV2:()=>_u,ObjectPageSubSectionV2:()=>wu,ObjectPageToolBarAction:()=>Xu,ObjectPageTreeTable:()=>Ju,QuickVariantSelection:()=>Gf,QuickVariantSelectionOP:()=>Gu,QuickVariantSelectionX:()=>Wf,ResponsiveTable:()=>so,SAP_UI_TABLE:()=>Cl,SaveAndEditOP:()=>ru,SelectionFieldDateSettings:()=>Ef,SelectionFields:()=>xf,Share:()=>iu,ShareOP:()=>ou,StackCard:()=>Ya,StackCardSettings:()=>Tf,TableALP:()=>ua,TableCard:()=>la,TableCardSettings:()=>Sf,TableColumn:()=>uu,TableColumnAction:()=>Gl,TableColumnActionIntentBased:()=>du,TableCustomColumn:()=>gu,ToolBar:()=>yu,ToolBarAction:()=>tu,TreeTable:()=>Qf,UpAndDownNavigationOP:()=>au,buildIntentBasedActionId:()=>pu,deleteColumnFromFragment:()=>Il,deleteType:()=>ga,exportColorPalette:()=>ZT,exportCreateParametersFields:()=>jl,exportCustomColumnsToFragment:()=>kf,exportDateSettings:()=>iv,exportDateSettingsField:()=>ov,exportDefaultSpan:()=>ev,exportType:()=>da,getChartSectionControlId:()=>Nv,getContactSubSectionControlId:()=>Lv,getCustomColumnPath:()=>Ol,getFormSectionControlId:()=>Fv,getRootCustomColumnFromFragmentJSON:()=>ir,getSectionControlId:()=>yo,getSmartChartControlId:()=>ur,getSmartTableControlId:()=>ro,getSubSectionControlId:()=>Vv,getTableSectionControlId:()=>Ov,importCreateParameters:()=>Dl,importDateSettings:()=>Of});var Et=U(B());var fe=r(e=>`${Et.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),to=r(e=>fe(e)+"/tableSettings","getTableSettingPathV2"),XT=r(e=>fe(e)+"/chartSettings","getChartSettingPathV2"),zT=r(e=>fe(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var et=r(()=>Et.ManifestSection.ovp,"getOVPsettingPath"),q=r(e=>{let t=[Et.ManifestSection.ovp];return e.forEach(n=>{n in Et.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var no=r((e,t)=>`${Et.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),hl=r(e=>{let t=[Et.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Nt=r(e=>{let t=[];return t.push(hl(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),io=r(e=>Nt(e)+"/tableSettings","getGlobalTableSettingsPathV2"),Tn=r((e,t,n)=>{let i=[];i.push(hl(e));let o=n.replace(Et.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+o),i.join("/")},"getAppSettingOBJsectionPathV2"),on=r((e,t,n)=>Tn(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),YT=r((e,t,n)=>Tn(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),df=r(()=>`sap.ui5/extends/extensions/${Et.v2.SAPUI5_VIEW_EXTENSION}/${Et.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),ai=r((e,t,n,...i)=>{let o="|",a=n.split(o),s=e[e.length-1].split(o),l="";a.length===4?l=[a[2],a[3]].join(o):a.length===3&&(l=a[2]);let c=[a[0],s[s.length-1],l].join(o);return i.unshift(c),`${df()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),yl=class yl{};r(yl,"ApplicationV2"),d([_e("settings")],yl.prototype,"settings",2);var ml=yl,Mn=class Mn{};r(Mn,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],Mn.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],Mn.prototype,"description",2),d([g({manifest:{path:r(()=>"sap.fiori","path")}})],Mn.prototype,"cloudDevAdaptationStatus",2),d([g({manifest:{path:r(()=>Et.GENERICAPPSETTINGS,"path")}}),T({since:"1.50.0"})],Mn.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>Et.GENERICAPPSETTINGS,"path")}}),T({since:"1.46.0"})],Mn.prototype,"forceGlobalRefresh",2),d([g({manifest:{path:r(()=>Et.GENERICAPPSETTINGS,"path")}}),T({since:"1.74.0"})],Mn.prototype,"tableColumnVerticalAlignment",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),T({since:"1.56.0"}),ye("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Mn.prototype,"flexEnabled",2);var vi=Mn;var Wa=U(B());function Rx(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=Wa.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=Wa.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:Wa.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}r(Rx,"importColorPalette");function ZT(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===Wa.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}r(ZT,"exportColorPalette");function ev(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}r(ev,"exportDefaultSpan");var Tl=class Tl{};r(Tl,"ChartSettingsType"),d([g({manifest:{path:r(()=>et()+"/chartSettings","path")}})],Tl.prototype,"showDataLabel",2);var gf=Tl,Si=class Si{};r(Si,"DefaultSpanObject"),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"cols",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"rows",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"showOnlyHeader",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"minimumTitleRow",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Si.prototype,"minimumSubTitleRow",2);var mf=Si,Be=class Be{};r(Be,"CommonCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"entitySet",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"title",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"subTitle",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"dataPointAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"selectionPresentationAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"kpiAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"category",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"dynamicSubtitleAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"valueSelectionInfo",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"showFilterInHeader",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"sortBy",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"sortOrder",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"identificationAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"selectionAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"presentationAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"enableLocaleCurrencyFormatting",2),d([g({manifest:{path:r(t=>q(t),"path"),export:ev}})],Be.prototype,"defaultSpan",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"requireAppAuthorization",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"showSortingInHeader",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"tabs",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"addODataSelect",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"showRefresh",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Be.prototype,"customParams",2);var Ai=Be,ia=class ia{};r(ia,"CustomCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],ia.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],ia.prototype,"template",2),d([g({manifest:{path:r(t=>q(t),"path")}})],ia.prototype,"settings",2);var yf=ia,Pi=class Pi extends Ai{};r(Pi,"ListCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],Pi.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Pi.prototype,"imageSupported",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Pi.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Pi.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Pi.prototype,"listType",2);var hf=Pi,Qa=class Qa{};r(Qa,"ListCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],Qa.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Qa.prototype,"template",2);var ra=Qa,vn=class vn extends Ai{};r(vn,"AnalyticalCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],vn.prototype,"chartAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],vn.prototype,"ignoreSapText",2),d([g({manifest:{path:r(t=>q(t),"path")}})],vn.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>q(t),"path")}})],vn.prototype,"navigation",2),d([g({manifest:{path:r(t=>q(t),"path")}})],vn.prototype,"valueSelectionInfo",2),d([g({manifest:{path:r(t=>q(t),"path")}})],vn.prototype,"chartProperties",2),d([g({manifest:{path:r(t=>q(t),"path"),import:Rx,export:ZT}})],vn.prototype,"colorPalette",2),d([g({manifest:{path:r(t=>q(t),"path")}})],vn.prototype,"bEnableStableColors",2);var bl=vn,vl=class vl extends bl{};r(vl,"AnalyticalCardSettingsv4"),d([g({manifest:{path:r(t=>q(t),"path")}})],vl.prototype,"measureAggregate",2);var bf=vl,Ka=class Ka{};r(Ka,"AnalyticalCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],Ka.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Ka.prototype,"template",2);var sa=Ka,oa=class oa extends Ai{};r(oa,"StackCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],oa.prototype,"itemText",2),d([g({manifest:{path:r(t=>q(t),"path")}})],oa.prototype,"objectStreamCardsNavigationProperty",2),d([g({manifest:{path:r(t=>q(t),"path")}})],oa.prototype,"objectStreamCardsSettings",2);var Tf=oa,Ja=class Ja{};r(Ja,"StackCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],Ja.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Ja.prototype,"template",2);var Ya=Ja,aa=class aa extends Ai{};r(aa,"LinkListCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],aa.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>q(t),"path")}})],aa.prototype,"headerAnnotationPath",2),d([g({manifest:{path:r(t=>q(t),"path")}})],aa.prototype,"staticContent",2);var vf=aa,qa=class qa{};r(qa,"LinklistCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],qa.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],qa.prototype,"template",2);var Za=qa,Xa=class Xa extends Ai{};r(Xa,"TableCardSettings"),d([g({manifest:{path:r(t=>q(t),"path")}})],Xa.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>q(t),"path")}})],Xa.prototype,"enableAddToInsights",2);var Sf=Xa,za=class za{};r(za,"TableCard"),d([g({manifest:{path:r(t=>q(t),"path")}})],za.prototype,"model",2),d([g({manifest:{path:r(t=>q(t),"path")}})],za.prototype,"template",2);var la=za;var tv=U(B());var $x=r((e,t,n,i,o)=>{let a=ut(n[1],o),s=n.slice(-1)[0];return We(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Sl=class Sl{};r(Sl,"Field"),d([g({flex:{controlId:$x,controlType:r(()=>tv.ControlType.GroupElement,"controlType"),createFlexChange:_},generate:Fe})],Sl.prototype,"visible",2);var Pf=Sl;var ao=U(B());function Of(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}r(Of,"importDateSettings");function iv(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];n==="selectedValues"&&(e[n]=i.join())}r(iv,"exportDateSettings");function wx(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,o;return n==="selectedValues"&&typeof i=="string"&&(o=i.split(",")),n==="filter"&&typeof i=="object"&&(o=[],i.forEach((a,s)=>{o[s]=a,a.equals&&typeof a.equals=="string"&&(o[s].equals=a.equals.split(","))})),o}r(wx,"importDateSettingsField");function ov(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 o in i){let a=i[o];e[n][o]=a,a.equals&&Array.isArray(a.equals)&&(e[n][o].equals=a.equals.join())}}r(ov,"exportDateSettingsField");var ca=class ca{};r(ca,"DateRange"),d([g({manifest:{path:r(t=>fe(t)+ao.DATESETTINGSPATH,"path")}}),T({since:"1.77.0"})],ca.prototype,"useDateRange",2),d([g({manifest:{path:r(t=>fe(t)+ao.DATESETTINGSPATH,"path"),import:Of,export:iv}}),T({since:"1.77.0"})],ca.prototype,"selectedValues",2),d([g({manifest:{path:r(t=>fe(t)+ao.DATESETTINGSPATH,"path")}}),T({since:"1.77.0"})],ca.prototype,"exclude",2);var Af=ca,Pl={controlId:We,controlType:r(()=>ao.ControlType.SmartFilterBar,"controlType"),createFlexChange:_},Cf={path:r((e,t,n)=>`${fe(e)}${ao.DATESETTINGSPATH}/fields/${n}`,"path")},nv={...Cf,import:wx,export:ov},oo=class oo{};r(oo,"SelectionFieldDateSettings"),d([g({manifest:nv}),T({since:"1.77.0"})],oo.prototype,"selectedValues",2),d([g({manifest:Cf}),T({since:"1.77.0"})],oo.prototype,"exclude",2),d([g({manifest:Cf}),T({since:"1.77.0"})],oo.prototype,"customDateRangeImplementation",2),d([g({manifest:nv}),T({since:"1.77.0"})],oo.prototype,"filter",2);var Ef=oo,Ff=class Ff{};r(Ff,"SelectionFields");var xf=Ff,Sn=class Sn{};r(Sn,"ListReportFilterBar"),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.38.0"})],Sn.prototype,"smartVariantManagement",2),d([g({flex:Pl}),T({since:"1.40.0"})],Sn.prototype,"liveMode",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.48.0"})],Sn.prototype,"variantManagementHidden",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.52.0"})],Sn.prototype,"subTitleIfVariantMgmtHidden",2),d([g({manifest:{path:r(t=>fe(t)+"/filterSettings","path"),import:Of}}),T({since:"1.77.0"})],Sn.prototype,"dateSettings",2),d([g({flex:Pl}),T({since:"1.28.0"})],Sn.prototype,"showClearOnFB",2),d([g({flex:Pl}),T({since:"1.38.0"})],Sn.prototype,"showFilterConfiguration",2),d([g({flex:Pl}),T({since:"1.28.0"})],Sn.prototype,"showRestoreOnFB",2);var Al=Sn,er=class er extends Al{};r(er,"AnalyticalListPageFilterBar"),d([g({manifest:{path:r(t=>fe(t),"path")}})],er.prototype,"showGoButtonOnFilterBar",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.60.0"})],er.prototype,"filterDefaultsFromSelectionVariant",2);var If=er;var an=U(B());var Un=r((e,t,n,i,o)=>{if(i()===an.ControlType.Button){let a=n[n.length-1],s=ut(n[1],o);return`${e}action::${a}::${s}::FormAction`}return We(e,t)},"getFormActionButtonId"),Ci=class Ci{};r(Ci,"FormAction"),d([g({flex:{controlId:Un,controlType:r(()=>an.ControlType.Button,"controlType"),createFlexChange:_},generate:Fe})],Ci.prototype,"visible",2),d([g({flex:{controlId:Un,controlType:r(()=>an.ControlType.Button,"controlType"),createFlexChange:_}})],Ci.prototype,"tooltip",2),d([g({flex:{controlId:Un,controlType:r(()=>an.ControlType.Button,"controlType"),createFlexChange:_}})],Ci.prototype,"icon",2),d([g({flex:{controlId:Un,controlType:r(()=>an.ControlType.Button,"controlType"),createFlexChange:_}})],Ci.prototype,"activeIcon",2),d([g({flex:{controlId:Un,controlType:r(()=>an.ControlType.Button,"controlType"),createFlexChange:_}}),T({since:"1.73.0"})],Ci.prototype,"type",2);var Nf=Ci,Ei=class Ei{};r(Ei,"FieldForAction"),d([g({flex:{controlId:Un,controlType:r(()=>an.ControlType.Button,"controlType"),createFlexChange:_},generate:Fe})],Ei.prototype,"visible",2),d([g({flex:{controlId:Un,controlType:r(()=>an.ControlType.Button,"controlType"),createFlexChange:_}})],Ei.prototype,"tooltip",2),d([g({flex:{controlId:Un,controlType:r(()=>an.ControlType.Button,"controlType"),createFlexChange:_}})],Ei.prototype,"icon",2),d([g({flex:{controlId:Un,controlType:r(()=>an.ControlType.Button,"controlType"),createFlexChange:_}})],Ei.prototype,"activeIcon",2),d([g({flex:{controlId:Un,controlType:r(()=>an.ControlType.Button,"controlType"),createFlexChange:_}}),T({since:"1.73.0"})],Ei.prototype,"type",2);var Vf=Ei;var Ve=U(B()),Pn=U(Ua());var Rf=require("path"),tI=U(B()),hv=U(yv()),bv=require("fs");var nI=(0,Rf.join)(__dirname,"templates");var iI=r((e,t)=>{let n=(0,bv.readFileSync)(e,"utf8");return(0,hv.render)(n,t)},"renderTemplate");var $f=r((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 iI((0,Rf.join)(nI,t+".xml"),n)},"getSingleColumnContent"),wf=r((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 o=$f(i,t);n=n+`
|
|
78
|
+
`)}switch(this.mode){case ut.modes.EVAL:this.source+=" ; "+e+`
|
|
79
|
+
`;break;case ut.modes.ESCAPED:this.source+=" ; __append(escapeFn("+_S(e)+`))
|
|
80
|
+
`;break;case ut.modes.RAW:this.source+=" ; __append("+_S(e)+`)
|
|
81
|
+
`;break;case ut.modes.COMMENT:break;case ut.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
|
|
82
|
+
`)},"scanLine")};Ne.escapeXML=ot.escapeXML;Ne.__express=Ne.renderFile;Ne.VERSION=jI;Ne.name=UI;typeof window<"u"&&(window.ejs=Ne)});var Zt={};Go(Zt,{deleteConfigEntityByPath:()=>BD,exportConfig:()=>kD,exportConfigEntityByPath:()=>_D,generateSchema:()=>UD,getApiVersion:()=>QD,getChanges:()=>QP,getGenericSchema:()=>Sp,getPathToGenericSchema:()=>bP,getProject:()=>YD,importConfig:()=>HD,importProject:()=>GD,importProjectSchema:()=>WD,isDirectory:()=>JD,log:()=>k,readDirectory:()=>ym});module.exports=rA(Zt);var Z=$(B());var F=$(B());var ge=r(e=>typeof e=="string","isString"),Ha=r(()=>{let e,t,n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n},"defer"),Xh=r(e=>e==null?"":""+e,"makeString"),VC=r((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),NC=/###/g,qh=r(e=>e&&e.indexOf("###")>-1?e.replace(NC,"."):e,"cleanKey"),zh=r(e=>!e||ge(e),"canNotTraverseDeeper"),Ga=r((e,t,n)=>{let i=ge(t)?t.split("."):t,o=0;for(;o<i.length-1;){if(zh(e))return{};let a=qh(i[o]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return zh(e)?{}:{obj:e,k:qh(i[o])}},"getLastOfPath"),Yh=r((e,t,n)=>{let{obj:i,k:o}=Ga(e,t,Object);if(i!==void 0||t.length===1){i[o]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=Ga(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=Ga(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),DC=r((e,t,n,i)=>{let{obj:o,k:a}=Ga(e,t,Object);o[a]=o[a]||[],o[a].push(n)},"pushPath"),xs=r((e,t)=>{let{obj:n,k:i}=Ga(e,t);if(n)return n[i]},"getPath"),RC=r((e,t,n)=>{let i=xs(e,n);return i!==void 0?i:xs(t,n)},"getPathWithDefaults"),ob=r((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?ge(e[i])||e[i]instanceof String||ge(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):ob(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),Wo=r(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),jC={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},wC=r(e=>ge(e)?e.replace(/[&<>"'\/]/g,t=>jC[t]):e,"escape"),Mp=class Mp{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}};r(Mp,"RegExpCache");var Vp=Mp,$C=[" ",",","?","!",";"],MC=new Vp(20),UC=r((e,t,n)=>{t=t||"",n=n||"";let i=$C.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let o=MC.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!o.test(e);if(!a){let s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),Np=r(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),o=e;for(let a=0;a<i.length;){if(!o||typeof o!="object")return;let s,l="";for(let c=a;c<i.length;++c)if(c!==a&&(l+=n),l+=i[c],s=o[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&c<i.length-1)continue;a+=c-a+1;break}o=s}return o},"deepFind"),Is=r(e=>e&&e.replace("_","-"),"getCleanedCode"),kC={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Wa=class Wa{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||kC,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,o){return o&&!this.debug?null:(ge(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Wa(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Wa(this.logger,t)}};r(Wa,"Logger");var Dp=Wa,Rn=new Dp,Up=class Up{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let o=this.observers[i].get(n)||0;this.observers[i].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,c]=s;for(let p=0;p<c;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,c]=s;for(let p=0;p<c;p++)l.apply(l,[t,...i])})}};r(Up,"EventEmitter");var Ko=Up,kp=class kp extends Ko{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):ge(i)&&a?l.push(...i.split(a)):l.push(i)));let c=xs(this.data,l);return!c&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),c||!s||!ge(i)?c:Np(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,o){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),o=n,n=l[1]),this.addNamespaces(n),Yh(this.data,l,o),a.silent||this.emit("added",t,n,i,o)}addResources(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(ge(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});o.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,o,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),o=i,i=n,n=l[1]),this.addNamespaces(n);let c=xs(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),o?ob(c,i,a):c={...c,...i},Yh(this.data,l,c),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}};r(kp,"ResourceStore");var Os=kp,ab={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,o){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,o))}),t}},Zh={},Ns=class Ns extends Ko{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),VC(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Rn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let o=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&&!UC(t,i,o);if(s&&!l){let c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:ge(a)?[a]:a};let p=t.split(i);(i!==o||i===o&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(o)}return{key:t,namespaces:ge(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),c=l[l.length-1],p=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(f){let re=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${re}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${re}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:s}let u=this.resolve(t,n),m=u&&u.res,b=u&&u.usedKey||s,S=u&&u.exactUsedKey||s,L=Object.prototype.toString.apply(m),V=["[object Number]","[object Function]","[object RegExp]"],H=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,ee=!this.i18nFormat||this.i18nFormat.handleAsObject,te=!ge(m)&&typeof m!="boolean"&&typeof m!="number";if(ee&&m&&te&&V.indexOf(L)<0&&!(ge(H)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let re=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,m,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(u.res=re,u.usedParams=this.getUsedParamsDetails(n),u):re}if(a){let re=Array.isArray(m),X=re?[]:{},oe=re?S:b;for(let Pe in m)if(Object.prototype.hasOwnProperty.call(m,Pe)){let P=`${oe}${a}${Pe}`;X[Pe]=this.translate(P,{...n,joinArrays:!1,ns:l}),X[Pe]===P&&(X[Pe]=m[Pe])}m=X}}else if(ee&&ge(H)&&Array.isArray(m))m=m.join(H),m&&(m=this.extendTranslation(m,t,n,i));else{let re=!1,X=!1,oe=n.count!==void 0&&!ge(n.count),Pe=Ns.hasDefaultValue(n),P=oe?this.pluralResolver.getSuffix(p,n.count,n):"",Lt=n.ordinal&&oe?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",nn=oe&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Me=nn&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${P}`]||n[`defaultValue${Lt}`]||n.defaultValue;!this.isValidLookup(m)&&Pe&&(re=!0,m=Me),this.isValidLookup(m)||(X=!0,m=s);let ko=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&X?void 0:m,wt=Pe&&Me!==m&&this.options.updateMissing;if(X||re||wt){if(this.logger.log(wt?"updateKey":"missingKey",p,c,s,wt?Me:m),a){let at=this.resolve(s,{...n,keySeparator:!1});at&&at.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 on=[],Ie=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ie&&Ie[0])for(let at=0;at<Ie.length;at++)on.push(Ie[at]);else this.options.saveMissingTo==="all"?on=this.languageUtils.toResolveHierarchy(n.lng||this.language):on.push(n.lng||this.language);let Xi=r((at,$t,Tt)=>{let Yn=Pe&&Tt!==m?Tt:ko;this.options.missingKeyHandler?this.options.missingKeyHandler(at,c,$t,Yn,wt,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(at,c,$t,Yn,wt,n),this.emit("missingKey",at,c,$t,m)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&oe?on.forEach(at=>{let $t=this.pluralResolver.getSuffixes(at,n);nn&&n[`defaultValue${this.options.pluralSeparator}zero`]&&$t.indexOf(`${this.options.pluralSeparator}zero`)<0&&$t.push(`${this.options.pluralSeparator}zero`),$t.forEach(Tt=>{Xi([at],s+Tt,n[`defaultValue${Tt}`]||Me)})}):Xi(on,s,Me))}m=this.extendTranslation(m,t,n,u,i),X&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${c}:${s}`),(X||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${s}`:s,re?m:void 0):m=this.options.parseMissingKeyHandler(m))}return o?(u.res=m,u.usedParams=this.getUsedParamsDetails(n),u):m}extendTranslation(t,n,i,o,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=ge(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(p){let m=t.match(this.interpolator.nestingRegexp);f=m&&m.length}let u=i.replace&&!ge(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),t=this.interpolator.interpolate(t,u,i.lng||this.language||o.usedLng,i),p){let m=t.match(this.interpolator.nestingRegexp),b=m&&m.length;f<b&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(i.lng=this.language||o.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var m=arguments.length,b=new Array(m),S=0;S<m;S++)b[S]=arguments[S];return a&&a[0]===b[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${n[0]}`),null):s.translate(...b,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,c=ge(l)?[l]:l;return t!=null&&c&&c.length&&i.applyPostProcessor!==!1&&(t=ab.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,o,a,s,l;return ge(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(c,n),f=p.key;o=f;let u=p.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let m=n.count!==void 0&&!ge(n.count),b=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),S=n.context!==void 0&&(ge(n.context)||typeof n.context=="number")&&n.context!=="",L=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);u.forEach(V=>{this.isValidLookup(i)||(l=V,!Zh[`${L[0]}-${V}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Zh[`${L[0]}-${V}`]=!0,this.logger.warn(`key "${o}" for languages "${L.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!!!")),L.forEach(H=>{if(this.isValidLookup(i))return;s=H;let ee=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(ee,f,H,V,n);else{let re;m&&(re=this.pluralResolver.getSuffix(H,n.count,n));let X=`${this.options.pluralSeparator}zero`,oe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(ee.push(f+re),n.ordinal&&re.indexOf(oe)===0&&ee.push(f+re.replace(oe,this.options.pluralSeparator)),b&&ee.push(f+X)),S){let Pe=`${f}${this.options.contextSeparator}${n.context}`;ee.push(Pe),m&&(ee.push(Pe+re),n.ordinal&&re.indexOf(oe)===0&&ee.push(Pe+re.replace(oe,this.options.pluralSeparator)),b&&ee.push(Pe+X))}}let te;for(;te=ee.pop();)this.isValidLookup(i)||(a=te,i=this.getResource(H,V,te,n))}))})}),{res:i,usedKey:o,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,o):this.resourceStore.getResource(t,n,i,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!ge(t.replace),o=i?t.replace:t;if(i&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!i){o={...o};for(let a of n)delete o[a]}return o}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}};r(Ns,"Translator");var Fs=Ns,Fp=r(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),_p=class _p{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Rn.create("languageUtils")}getScriptPartFromCode(t){if(t=Is(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=Is(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(ge(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(o=>o.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Fp(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Fp(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Fp(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let o=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let o=this.getLanguagePartFromCode(i);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),ge(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],a=r(s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return ge(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))):ge(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{o.indexOf(s)<0&&a(this.formatLanguageCode(s))}),o}};r(_p,"LanguageUtil");var Ls=_p,_C=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],BC={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},HC=["v1","v2","v3"],GC=["v4"],eb={zero:0,one:1,two:2,few:3,many:4,other:5},WC=r(()=>{let e={};return _C.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:BC[t.fc]}})}),e},"createRules"),Bp=class Bp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Rn.create("pluralResolver"),(!this.options.compatibilityJSON||GC.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=WC(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let i=Is(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:o});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:o})}catch{if(!t.match(/-|_/))return;let c=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(c,n)}return this.pluralRulesCache[a]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((o,a)=>eb[o]-eb[a]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):i.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(t,i);return o?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),o=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));let a=r(()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!HC.includes(this.options.compatibilityJSON)}};r(Bp,"PluralResolver");var Rp=Bp,tb=r(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=RC(e,t,n);return!a&&o&&ge(n)&&(a=Np(e,n,i),a===void 0&&(a=Np(t,n,i))),a},"deepFindWithDefaults"),Lp=r(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),Hp=class Hp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Rn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:o,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:c,formatSeparator:p,unescapeSuffix:f,unescapePrefix:u,nestingPrefix:m,nestingPrefixEscaped:b,nestingSuffix:S,nestingSuffixEscaped:L,nestingOptionsSeparator:V,maxReplaces:H,alwaysFormat:ee}=t.interpolation;this.escape=n!==void 0?n:wC,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?Wo(a):s||"{{",this.suffix=l?Wo(l):c||"}}",this.formatSeparator=p||",",this.unescapePrefix=f?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=m?Wo(m):b||Wo("$t("),this.nestingSuffix=S?Wo(S):L||Wo(")"),this.nestingOptionsSeparator=V||",",this.maxReplaces=H||1e3,this.alwaysFormat=ee!==void 0?ee:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=r((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,o){let a,s,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=r(b=>{if(b.indexOf(this.formatSeparator)<0){let H=tb(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(H,void 0,i,{...o,...n,interpolationkey:b}):H}let S=b.split(this.formatSeparator),L=S.shift().trim(),V=S.join(this.formatSeparator).trim();return this.format(tb(n,c,L,this.options.keySeparator,this.options.ignoreJSONStructure),V,i,{...o,...n,interpolationkey:L})},"handleFormat");this.resetRegExp();let f=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,u=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:r(b=>Lp(b),"safeValue")},{regex:this.regexp,safeValue:r(b=>this.escapeValue?Lp(this.escape(b)):Lp(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let S=a[1].trim();if(s=p(S),s===void 0)if(typeof f=="function"){let V=f(t,a,o);s=ge(V)?V:""}else if(o&&Object.prototype.hasOwnProperty.call(o,S))s="";else if(u){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),s="";else!ge(s)&&!this.useRawValueToEscape&&(s=Xh(s));let L=b.safeValue(s);if(t=t.replace(a[0],L),u?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,a,s,l=r((c,p)=>{let f=this.nestingOptionsSeparator;if(c.indexOf(f)<0)return c;let u=c.split(new RegExp(`${f}[ ]*{`)),m=`{${u[1]}`;c=u[0],m=this.interpolate(m,s);let b=m.match(/'/g),S=m.match(/"/g);(b&&b.length%2===0&&!S||S.length%2!==0)&&(m=m.replace(/'/g,'"'));try{s=JSON.parse(m),p&&(s={...p,...s})}catch(L){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,L),`${c}${f}${m}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,c},"handleHasOptions");for(;o=this.nestingRegexp.exec(t);){let c=[];s={...i},s=s.replace&&!ge(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){let f=o[1].split(this.formatSeparator).map(u=>u.trim());o[1]=f.shift(),c=f,p=!0}if(a=n(l.call(this,o[1].trim(),s),s),a&&o[0]===t&&!ge(a))return a;ge(a)||(a=Xh(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),p&&(a=c.reduce((f,u)=>this.format(f,u,i.lng,{...i,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}};r(Hp,"Interpolator");var jp=Hp,QC=r(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let o=i[1].substring(0,i[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(s){let[l,...c]=s.split(":"),p=c.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=p),p==="false"&&(n[f]=!1),p==="true"&&(n[f]=!0),isNaN(p)||(n[f]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),Qo=r(e=>{let t={};return(n,i,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={...a,[o.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(Is(i),o),t[s]=l),l(n)}},"createCachedFormatter"),Gp=class Gp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Rn.create("formatter"),this.options=t,this.formats={number:Qo((n,i)=>{let o=new Intl.NumberFormat(n,{...i});return a=>o.format(a)}),currency:Qo((n,i)=>{let o=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>o.format(a)}),datetime:Qo((n,i)=>{let o=new Intl.DateTimeFormat(n,{...i});return a=>o.format(a)}),relativetime:Qo((n,i)=>{let o=new Intl.RelativeTimeFormat(n,{...i});return a=>o.format(a,i.range||"day")}),list:Qo((n,i)=>{let o=new Intl.ListFormat(n,{...i});return a=>o.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Qo(n)}format(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{let{formatName:p,formatOptions:f}=QC(c);if(this.formats[p]){let u=l;try{let m=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=m.locale||m.lng||o.locale||o.lng||i;u=this.formats[p](l,b,{...f,...o,...m})}catch(m){this.logger.warn(m)}return u}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};r(Gp,"Formatter");var wp=Gp,KC=r((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Wp=class Wp extends Ko{constructor(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=o,this.logger=Rn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,o.backend,o)}queueLoad(t,n,i,o){let a={},s={},l={},c={};return t.forEach(p=>{let f=!0;n.forEach(u=>{let m=`${p}|${u}`;!i.reload&&this.store.hasResourceBundle(p,u)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?s[m]===void 0&&(s[m]=!0):(this.state[m]=1,f=!1,s[m]===void 0&&(s[m]=!0),a[m]===void 0&&(a[m]=!0),c[u]===void 0&&(c[u]=!0)))}),f||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,n,i){let o=t.split("|"),a=o[0],s=o[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(c=>{DC(c.loaded,[a],s),KC(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(p=>{l[p]||(l[p]={});let f=c.loaded[p];f.length&&f.forEach(u=>{l[p][u]===void 0&&(l[p][u]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:o,wait:a,callback:s});return}this.readingCalls++;let l=r((p,f)=>{if(this.readingCalls--,this.waitingReads.length>0){let u=this.waitingReads.shift();this.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(p&&f&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,o+1,a*2,s)},a);return}s(p,f)},"resolver"),c=this.backend[i].bind(this.backend);if(c.length===2){try{let p=c(t,n);p&&typeof p.then=="function"?p.then(f=>l(null,f)).catch(l):l(null,p)}catch(p){l(p)}return}return c(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();ge(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ge(n)&&(n=[n]);let a=this.queueLoad(t,n,i,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),o=i[0],a=i[1];this.read(o,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${o} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${o}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,o,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let c={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let f;p.length===5?f=p(t,n,i,o,c):f=p(t,n,i,o),f&&typeof f.then=="function"?f.then(u=>l(null,u)).catch(l):l(null,f)}catch(f){l(f)}else p(t,n,i,o,l,c)}!t||!t[0]||this.store.addResource(t[0],n,i,o)}}};r(Wp,"Connector");var $p=Wp,nb=r(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:r(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ge(e[1])&&(t.defaultValue=e[1]),ge(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:r(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),ib=r(e=>(ge(e.ns)&&(e.ns=[e.ns]),ge(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ge(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),Es=r(()=>{},"noop"),JC=r(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Qa=class Qa extends Ko{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ib(t),this.services={},this.logger=Rn,this.modules={external:[]},JC(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(ge(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let o=nb();this.options={...o,...this.options,...ib(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=r(f=>f?typeof f=="function"?new f:f:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Rn.init(a(this.modules.logger),this.options):Rn.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=wp);let u=new Ls(this.options);this.store=new Os(this.options.resources,this.options);let m=this.services;m.logger=Rn,m.resourceStore=this.store,m.languageUtils=u,m.pluralResolver=new Rp(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(m.formatter=a(f),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new jp(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new $p(a(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(b){for(var S=arguments.length,L=new Array(S>1?S-1:0),V=1;V<S;V++)L[V-1]=arguments[V];t.emit(b,...L)}),this.modules.languageDetector&&(m.languageDetector=a(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=a(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new Fs(this.services,this.options),this.translator.on("*",function(b){for(var S=arguments.length,L=new Array(S>1?S-1:0),V=1;V<S;V++)L[V-1]=arguments[V];t.emit(b,...L)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Es),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[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(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});let c=Ha(),p=r(()=>{let f=r((u,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),c.resolve(m),i(u,m)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),c}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Es,o=ge(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=r(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>s(c)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let o=Ha();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=Es),this.services.backendConnector.reload(t,n,a=>{o.resolve(),i(a)}),o}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"&&ab.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let o=Ha();this.emit("languageChanging",t);let a=r(c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},"setLngProps"),s=r((c,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,o.resolve(function(){return i.t(...arguments)}),n&&n(c,function(){return i.t(...arguments)})},"done"),l=r(c=>{!t&&!c&&this.services.languageDetector&&(c=[]);let p=ge(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,f=>{s(f,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),o}getFixedT(t,n,i){var o=this;let a=r(function(s,l){let c;if(typeof l!="object"){for(var p=arguments.length,f=new Array(p>2?p-2:0),u=2;u<p;u++)f[u-2]=arguments[u];c=o.options.overloadTranslationOptionHandler([s,l].concat(f))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||i||a.keyPrefix);let m=o.options.keySeparator||".",b;return c.keyPrefix&&Array.isArray(s)?b=s.map(S=>`${c.keyPrefix}${m}${S}`):b=c.keyPrefix?`${c.keyPrefix}${m}${s}`:s,o.t(b,c)},"fixedT");return ge(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=r((l,c)=>{let p=this.services.backendConnector.state[`${l}|${c}`];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)&&(!o||s(a,t)))}loadNamespaces(t,n){let i=Ha();return this.options.ns?(ge(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{i.resolve(),n&&n(o)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Ha();ge(t)&&(t=[t]);let o=this.options.preload||[],a=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=o.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new Ls(nb());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Qa(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Es,i=t.forkResourceStore;i&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},a=new Qa(o);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new Os(this.store.data,o),a.services.resourceStore=a.store),a.translator=new Fs(a.services,o),a.translator.on("*",function(l){for(var c=arguments.length,p=new Array(c>1?c-1:0),f=1;f<c;f++)p[f-1]=arguments[f];a.emit(l,...p)}),a.init(o,n),a.translator.options=o,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}}};r(Qa,"I18n");var Vs=Qa,R=Vs.createInstance();R.createInstance=Vs.createInstance;var cR=R.createInstance,pR=R.dir,fR=R.init,uR=R.loadResources,dR=R.reloadResources,gR=R.use,mR=R.changeLanguage,yR=R.getFixedT,hR=R.t,bR=R.exists,TR=R.setDefaultNamespace,SR=R.hasLoadedNamespace,vR=R.loadNamespaces,PR=R.loadLanguages;var vT=$(Qp()),PT=$(Nb()),el=$(bT()),be=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ya=require("@sap-ux/vocabularies-types/vocabularies/Communication");var zs=$(B());var k=r((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(`${zs.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${zs.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${zs.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var O="#/definitions/",Ix=[F.v4.FE_TEMPLATE_V4_LIST_REPORT,F.v4.FE_TEMPLATE_V4_ALP,F.v4.FE_TEMPLATE_V4_OBJECT_PAGE,F.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],Ox=["sap.fe.core","sap.fe.templates"],Zo=r((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Ut=r((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Tn(e,t){let n=[],i;if(e&&e.forEach(function(o){try{n.push((0,el.parse)(o.fileContent,o.dataSourceUri))}catch(a){return k(t,{severity:F.LogSeverity.Error,message:R.t("ANNOERR"),location:{path:R.t("ANNOTATIONFILE",{file:o.dataSourceUri})}},a),i}}),n.length>0){let o=(0,el.merge)(...n);i=(0,PT.convert)(o)}return i}r(Tn,"parseAndMergeAndConvert");var Yo=r(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function uf(e,t,n){var i,o,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((o=l==null?void 0:l.Common)==null?void 0:o.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}r(uf,"evaluateCommonLabel");function tl(e,t){let n=e.value;return e.$target&&(n=uf(e.$target.annotations,t,n)),n}r(tl,"getLabelForPropertyPath");function Ys(e,t){var o,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=(o=i==null?void 0:i.annotations)==null?void 0:o.Common)!=null&&a.Label&&(n=uf(i.annotations,t,n)),n}r(Ys,"getLabelForDataField");function Fx(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let o=t&&t.resolvePath(e.path);if(!o||o.length===0)return;{let a=o[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return uf(a.annotations,t,s)}}}else return}r(Fx,"getLabel");function TT(e,t,n){let i=Ys(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}r(TT,"getTitleForDataField");function Ct(e,t){var s,l,c,p;let n="",i,o,a="";try{let f=Fx(e.Label,t);switch(e.$Type){case be.UIAnnotationTypes.DataField:n=TT(e,t,f);break;case be.UIAnnotationTypes.DataFieldWithUrl:i=Ys(e,t),n=f||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case be.UIAnnotationTypes.DataFieldForAnnotation:o=e,i=Ys(e,t),n=f||i||((l=(s=o.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((c=o.Target)==null?void 0:c.value.split("UI.v1.")[1]);break;case be.UIAnnotationTypes.DataFieldForAction:case be.UIAnnotationTypes.DataFieldWithAction:case be.UIAnnotationTypes.DataFieldForIntentBasedNavigation:o=e,a=typeof e.Action=="string"?o.Action:(p=o.Action)==null?void 0:p.path,f?n=typeof f=="string"?f:a:n=a;break;case be.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Ys(e,t),n=i||e.Value.path;break;case be.UIAnnotationTypes.DataFieldWithNavigationPath:o=e,n=TT(o,t,f);break;default:break}return n}catch{return n}}r(Ct,"getDataFieldDescription");function Le(e){return e.replace("#","::").replace(/\//g,":2f")}r(Le,"prepareRef");function oi(e){if(e){let t=`${F.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}r(oi,"getPageTypeV2");function df(e){let t="name"in e&&typeof e.name=="string"?Zs(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return F.PageTypeV4.CustomPage}r(df,"getPageTypeV4");function Lx(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}r(Lx,"getTargetAnnotationName");function kt(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}r(kt,"findAlias");function Vx(e,t,n){var s,l;let i=e[e.length-1],o=i.substring(i.lastIndexOf(".")+1,i.length),a=kt(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[o]}r(Vx,"determineTargetAnnotation");function Nx(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let o=e.split("::");o[o.length-1]=`${n?"":"@"}${be.UIAnnotationTerms.LineItem}`,e=o.join("::")}else e=i.replace("@UI",`${n?"":"@"}${F.UIVOCABULARY}`);return e}r(Nx,"adjustKey");function Dx(e,t,n,i,o=F.FioriElementsVersion.v2,a=!1){var u,m;let s=!1,l,c=i.split("/"),p=c.length>1;p&&n&&(n=(u=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:u.targetType),t=Nx(t,c,a);let f=Vx(c,n,e);if(f){let b=o===F.FioriElementsVersion.v2?"::":"#";t=Lx(f,a).replace("#",b),l=(m=f.fullyQualifiedName)==null?void 0:m.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let b=o===F.FioriElementsVersion.v2?"::":"/";c.pop(),t=`${[...c].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}r(Dx,"getKeyAndEntityTypeOfReferenceFacet");function AT(e,t,n,i,o=F.FioriElementsVersion.v2,a=!1){var f,u,m;let s=(u=e.fullyQualifiedName)==null?void 0:u.substring((f=e.fullyQualifiedName)==null?void 0:f.lastIndexOf("@")),l=e.ID?e.ID.toString():s,c=(m=e.fullyQualifiedName)==null?void 0:m.split("@")[0],p=t;if(e.$Type!==be.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=Yo(e.Target);if(!b){k(i,{severity:F.LogSeverity.Error,message:R.t("NOTARGET",{target:e.Target})});return}let{key:S,entityType:L,stopProcessing:V,namespace:H}=Dx(n,l,p,b,o,a);if(V)return;l=S,p=L,c=H}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:c}}r(AT,"getSectionFacet");var ai=r((e,t,n,i,o=!1)=>{if(!t)return;let a=e,s=t.split("/");for(let l=0;l<s.length;l++){let c=s[l];if(c==="[]")continue;let p=i&&i===c?n:c.replace("??","/");if(!a[p]){if(o)return;s[l+1]==="[]"?a[p]=[]:a[p]={}}a=a[p]}return a},"getManifestSectionByPathV4");function gf(e){let t,n,i;switch(e.$Type){case be.UIAnnotationTypes.DataField:t=Yo(e.Value);break;case be.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Yo(e.Value);break;case be.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${F.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case be.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${Le(e.Action)}`);break;case be.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Yo(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case be.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${Le(e.Action)}`);break;case be.UIAnnotationTypes.DataFieldWithNavigationPath:i=Yo(e.Value),n=Yo(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}r(gf,"getSchemaKeyOfLineItemRecord");function Rx(e,t,n){return e.includes(be.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?be.UIAnnotationTerms.Chart:e.includes(be.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?be.UIAnnotationTerms.Identification:n&&e.includes(be.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?be.UIAnnotationTerms.LineItem:e.includes(be.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?be.UIAnnotationTerms.FieldGroup:e.includes(be.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?be.UIAnnotationTerms.DataPoint:e.includes(be.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?be.UIAnnotationTerms.PresentationVariant:void 0}r(Rx,"getUIAnnotationTerm");function jx(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Ya.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Ya.CommunicationAnnotationTerms.Address:void 0}r(jx,"getCommunicationAnnotationTerm");function wx(e,t,n){return Rx(e,t,n)||jx(e,t)}r(wx,"getAnnotationTerm");function $x(e,t,n,i,o){var p,f,u,m,b,S,L,V,H;let a=kt(F.UIVOCABULARY,o),s=e?e.key:"",l=e.entityType;switch(wx(s,a,i)){case be.UIAnnotationTerms.Chart:{n[s]={base:F.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 be.UIAnnotationTerms.Identification:{n[s]={base:F.FacetBase.Identification},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 be.UIAnnotationTerms.LineItem:{if(!s.includes(be.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let ee=s.split("::");ee[ee.length-1]=`@${be.UIAnnotationTerms.LineItem}`,s=ee.join("::")}n[s]={base:F.FacetBase.LineItem},n[s].target=(u=t==null?void 0:t.Target)==null?void 0:u.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case be.UIAnnotationTerms.FieldGroup:{n[s]={base:F.FacetBase.Form},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 be.UIAnnotationTerms.DataPoint:{n[s]={base:F.FacetBase.DataPoint},n[s].Label=(b=t==null?void 0:t.Target)==null?void 0:b.$target.Title,n[s].target=(S=t==null?void 0:t.Target)==null?void 0:S.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case be.UIAnnotationTerms.PresentationVariant:{n[s]={base:F.FacetBase.PresentationVariant},n[s].target=(L=t==null?void 0:t.Target)==null?void 0:L.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ya.CommunicationAnnotationTerms.Contact:{n[s]={base:F.FacetBase.Contact},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 Ya.CommunicationAnnotationTerms.Address:{n[s]={base:F.FacetBase.Address},n[s].target=(H=t==null?void 0:t.Target)==null?void 0:H.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:F.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",F.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}r($x,"evaluateTargetAnnotation");function mf(e,t,n,i,o,a=F.FioriElementsVersion.v2,s){var c;let l=AT(e,i,t,s,a,!1);if(l)switch(e.$Type){case be.UIAnnotationTypes.ReferenceFacet:{$x(l,e,o,i,t);break}case be.UIAnnotationTypes.CollectionFacet:{let p=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,f=o[l.key]={base:F.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!f.ID&&a===F.FioriElementsVersion.v4&&k(s,{severity:F.LogSeverity.Error,message:R.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(c=e.Facets)==null||c.forEach(u=>{mf(u,t,n,i,f.facets,a,s)});break}}}r(mf,"addFacetToConfig");function nl(e,t,n=F.FioriElementsVersion.v2,i){var l,c;let o={};if(!e||!e.annotations)return;let a=kt(F.UIVOCABULARY,t),s=a&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:c.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),f=e&&e.fullyQualifiedName.substring(0,p);s.forEach(u=>{mf(u,t,f,e,o,n,i)})}return o}r(nl,"getObjectPageHeaderFacets");function il(e,t,n=F.FioriElementsVersion.v2,i){var l;let o={};if(!e||!e.annotations)return;let a=kt(F.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let c=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,c);s.forEach(f=>{mf(f,t,p,e,o,n,i)})}return o}r(il,"getObjectPageFacets");function yf(e){var t,n,i,o;if(e[F.ManifestSection.generic]&&Object.keys(e[F.ManifestSection.generic]).length>0||e[F.ManifestSection.ovp]&&Object.keys(e[F.ManifestSection.ovp]).length>0)return F.FioriElementsVersion.v2;{let a=(n=(t=e[F.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(o=(i=e[F.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:o.libs;return a&&Object.keys(a).find(l=>{let c=typeof a[l].name=="string"?a[l].name:"";return Ix.indexOf(c)>-1||Zs(c)})||s&&Object.keys(s).find(l=>Ox.indexOf(l)>-1)?F.FioriElementsVersion.v4:void 0}}r(yf,"getFEVersionFromManifest");function Mx(e){var n,i,o,a;let t=typeof((n=e==null?void 0:e[F.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[F.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(o=(i=e==null?void 0:e[F.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:o[t])==null?void 0:a.dataSource)=="string"?e[F.ManifestSection.ui5].models[t].dataSource:void 0}r(Mx,"getMainService");function CT(e){var i,o;let t=Mx(e);if(!t)return F.OdataVersion.v2;let n=(i=e[F.ManifestSection.app].dataSources)==null?void 0:i[t];return((o=n==null?void 0:n.settings)==null?void 0:o.odataVersion)==="4.0"?F.OdataVersion.v4:F.OdataVersion.v2}r(CT,"getODataVersionFromManifest");function Ux(e,t){var i,o;let n;if(e[F.ManifestSection.generic]){let a=e[F.ManifestSection.generic].pages;if(!a){k(t,{severity:F.LogSeverity.Error,message:R.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(oi((i=l.component)==null?void 0:i.name)===F.PageTypeV2.AnalyticalListPage){n=F.TemplateType.AnalyticalListPageV2;break}else if(oi((o=l.component)==null?void 0:o.name)===F.PageTypeV2.ListReport){n=F.TemplateType.ListReportObjectPageV2;break}}}else n||k(t,{severity:F.LogSeverity.Error,message:R.t("NOTEMPLATE",{section:F.ManifestSection.generic}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.generic]}});return n}r(Ux,"determineV2Template");function Za(e){var i,o,a,s;let t,n=df(e);if(n===F.PageTypeV4.AnalyticalListPage)t=F.TemplateType.AnalyticalListPageV4;else if(n===F.PageTypeV4.ListReport){let l=(s=(a=(o=(i=e.options)==null?void 0:i.settings)==null?void 0:o.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[F.ALPViewType.Primary]||l[F.ALPViewType.Secondary])?t=F.TemplateType.AnalyticalListPageV4:t=F.TemplateType.ListReportObjectPageV4}else n===F.PageTypeV4.ObjectPage?t=F.TemplateType.ListReportObjectPageV4:n===F.PageTypeV4.CustomPage&&(t=F.TemplateType.FreestylePageV4);return t}r(Za,"determineV4PageTemplateType");function kx(e){let t;for(let n in e){let i=e[n];if(t=Za(i),t)break}return t}r(kx,"determineV4TemplateFromPages");function _x(e,t){let n=e[F.ManifestSection.ui5].routing&&e[F.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return k(t,{severity:F.LogSeverity.Info,message:R.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.ui5,"routing"]}}),F.TemplateType.ListReportObjectPageV4;let i=kx(n);return i||k(t,{severity:F.LogSeverity.Error,message:R.t("NOTEMPLATE",{section:F.ManifestSection.ui5}),location:{path:F.MANIFESTPATH,range:[F.ManifestSection.ui5,"routing","targets"]}}),i}r(_x,"determineV4Template");function Yi(e,t,n){let i;return e[F.ManifestSection.ovp]?i=F.TemplateType.OverviewPageV2:t===F.FioriElementsVersion.v2?i=Ux(e,n):t===F.FioriElementsVersion.v4&&(i=_x(e,n)),i}r(Yi,"getTemplateTypeFromManifest");function ri(e,t,n){e!=null&&e.ID?(t.title=F.FACETTITLEPREFIX+e.ID,t[F.SchemaTag.keys]=[{name:F.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[F.SchemaTag.keys]=[{name:F.SchemaKeyName.id,value:n.replace(F.UIVOCABULARYALPHADOT,"")}])}r(ri,"addSectionTitle");function vi(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)}r(vi,"addSectionDescription");function ea(e,t,n){var i,o;ri(e,t,n),vi(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:(o=e==null?void 0:e.target)!=null&&o.Label&&(t.description=e.target.Label))}r(ea,"addTargetTitleAndSectionDescription");function ET(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}r(ET,"addChartFacetID");function $n(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[F.SchemaTag.isViewNode]=!0,i[F.SchemaTag.annotationPath]=t.annotationPath,ea(t,i,n),i}r($n,"createDefaultSection");function xT(e,t,n,i=F.FioriElementsVersion.v2,o=!1){var l,c;let a=kt(F.UIVOCABULARY,t),s=[];if(e){let p=a&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:c.Facets);return p&&(s=p.reduce(function(f,u){if(o&&!u.ID&&!("Target"in u&&u.Target))return f;let m=AT(u,e,t,n,i,!0);return m&&f.push(m),f},s)),s}}r(xT,"getObjectPageFacetSection");var Pi=r((e,t,n,i,o,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(c){let p=a&&a===c?o:c.replace("??","/");if(!(!s[p]&&(a===c&&(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(),Pi(e,l.join("/"),n,i,o,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),ST=r(e=>e===F.SchemaType.FreestylePage?F.PageTypeV2.CustomPage:`${e}`,"getGenericSchemaFileName"),Xe=r((e,t)=>{let n={filename:"",path:""};switch(e){case F.SchemaType.Application:{n.filename="App",n.path=`./${F.DirName.Schemas}/${n.filename}`;break}case F.SchemaType.ListReport:case F.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:ST(e),n.path=`../${F.DirName.Schemas}/${n.filename}`;break}default:{n.filename=ST(e),n.path=`../${F.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function ta(e,t,n,i){if(e===F.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let o=[];return o.push(e),t?o.push(t):i&&o.push(i.replace("|","").replace(e,"")),o.join("_")}r(ta,"generatePageId");function IT(e,t,n){let i=t==null?void 0:t.properties,o=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(O)[1]];typeof l=="object"&&(i=l.properties,o=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];o=o||[];for(let s in n){let l=n[s];typeof l=="object"&&o.every(c=>l[c]!==void 0)&&a.push(s)}return a}r(IT,"findMatchingKeysByAdditionalProperties");function Bx(e,t,n,i){let o=e.$ref;if(o){let a=o.split(O)[1];if(t.definitions[a]){let s=t.definitions[a].controlProperty;o.includes(n[s])&&i.push(a)}}}r(Bx,"fillArrayFromAnyOfReference");function Hx(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(O)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(o=>{Bx(o,n,t,i)}),i.length===0))return;return i}r(Hx,"fillArrayFromPropertyDefinition");function Gx(e,t,n,i,o,a,s,l){var p,f,u,m;let c={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(c.targetDefinition=t.definitions[b],(p=c==null?void 0:c.targetDefinition)!=null&&p.$ref||((f=c==null?void 0:c.targetDefinition)==null?void 0:f.type)==="array")return c=Mn(t,n,i,c.targetDefinition,o,a,s),c;e.length>1&&e.forEach(V=>{V!==""&&(c.targetDefinition.properties={...c.targetDefinition.properties,...t.definitions[V].properties})}),c.title=(u=c==null?void 0:c.targetDefinition)!=null&&u.title?c.targetDefinition.title:n;let S=b==null?void 0:b.split("<")[0],L=i||{};c.configObject=a.createInstance(s,S,L,(m=c==null?void 0:c.targetDefinition)==null?void 0:m.controlProperty)}else c.targetDefinition=l,c.title=c.targetDefinition.title?c.targetDefinition.title:o,c.configObject=i;return c}r(Gx,"determineNextDefinitionFromDefinitionArray");function Mn(e,t,n,i,o,a,s){let l;if(i.type==="array")return l=Mn(e,t,n,i.items,o,a,s),l;let c=Hx(i,n,e);if(c)return l=Gx(c,e,t,n,o,a,s,i),l}r(Mn,"getNextTargetDefinition");var hf=r((e,t,n)=>{let i=e.slice();return t.forEach((o,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(o,n):n.isMergeableObject(o)?i[a]=(0,vT.default)(e[a],o,n):e.indexOf(o)===-1&&i.push(o)}),i},"arrayCombineMerge");function _t(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}r(_t,"convertActionKeyToStableId");function na(e){return e==null?void 0:e.split(O)[1]}r(na,"getDefinitionKey");function OT(e){return`#/definitions/${e}`}r(OT,"getDefinitionsRef");function FT(e){return e instanceof Error?e.message:String(e)}r(FT,"getErrorMessage");function Un(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}r(Un,"updatePropertyIndices");function LT(e){return e=e.replace(F.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}r(LT,"removeNamespaces");function ia(e){return e=e.replace(F.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}r(ia,"replaceNamespaces");function si(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith(O))return t.substring(O.length)}r(si,"getRefType");function Zs(e){if(e!=null&&e.startsWith(`${F.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in F.PageTypeV4)return F.PageTypeV4[n]}}r(Zs,"convertTemplateNameToPageTypeV4");function ol(e,t){if(e===t)return!0;let n=Zs(e);return n?n===Zs(t):!1}r(ol,"compareTemplateNames");var Nn=require("@sap-ux/vocabularies-types/vocabularies/UI"),j=$(B());var Bt=$(B());var We=r((e,t)=>e+t.join("::"),"buildControlIdFromParent"),al=r((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),dt=r((e,t)=>{let n,i=Bt.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 Wx(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}r(Wx,"escapeId");var VT=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(VT||{});function Qx(e,t,n){let i;return e=e.map(function(o){if(o===Bt.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Bt.PropertyName.sections)return i=t[a+1],t[a+1]=dt(i,n)+"::Table",t[a+1]}return o}),{idBreadcrumbs:e}}r(Qx,"mapBreadcrumbs");var bf=r((e,t,n,i,o)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=Qx(t,s,o)),s[0]===Bt.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Bt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Bt.VOCWITHSLASH):t[0]===Bt.PropertyName.table&&(a=t[0]);let c=s[s.length-1].replace(/::com.sap.vocabularies/g,Bt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Bt.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,f=c.indexOf(":::");return c.startsWith("DataField")&&f>-1?(c=c.replace("/",":2f"),p=`${e}template:::TableColumn:::${c.substring(0,f)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${c.substring(f+3)}`):(c=c.replace("/","_"),p=`${e}${t.join("::")}-${c}`),Wx(p)},"buildColumnControlId"),Ht=r(e=>{let t=e[e.length-1].split(":::"),n,i,o;return t.length>2?(n=t[0],i=t[1].split("::")[1],o=t[2].split("::")[1]):t.length===2?(n=t[0],o=t[1].split("sAction::")[1]):o=t[0],{actionType:n,semanticObjectId:i,actionId:o}},"getActionBreadcrumbParts");function Kx(e){let t=Bt.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}r(Kx,"determinePattern");var NT=r((e,t,n,i)=>{let o=t&&t.properties;if(o[n].pattern)return;let a=o[n],s=a,l=a.$ref?e.definitions[a.$ref.split(O)[1]]:a,c=a.description?a.description:l.description,p=Kx(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(f=>{s.enum.indexOf(f)===-1&&s.enum.push(f)}),o[n]={pattern:p,anyOf:[s,{type:"string"}]},c&&(o[n].description=c,delete a.description)},"addPatternForBindingChangeOfEnum"),kn=r((e,t,n)=>{NT(e,t,n)},"addPatternForBindingChangeOfEnumLR"),Oe=r((e,t,n)=>{let i=Object.values(VT);NT(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function Zi(){}r(Zi,"doNotDelete");var hj=$(RT());var Tf=Symbol("specificationMetadataKey"),g=r(e=>Reflect.metadata(Tf,e),"syncRule");function st(e,t){let n;return e&&(n=Reflect.getMetadata(Tf,e,t)),n}r(st,"getReflectMetadata");function jT(e){let t;return e&&(t=Reflect.getMetadata(Tf,e)),t}r(jT,"getReflectTypeMetadata");var Gt=r(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),wT=Symbol("childId"),_e=r(e=>Reflect.metadata(wT,e),"childId"),rl=r((e,t)=>Reflect.getMetadata(wT,e,t),"getChildId"),sl=r(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),Jx=Symbol("descriptionSrcURL"),ye=r(e=>Reflect.metadata(Jx,e),"descriptionSrcURL");var Xx=Symbol("validityMetadataKey"),T=r(e=>Reflect.metadata(Xx,e),"validity");function oa(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}r(oa,"getTextForDeprecated");var GT=$(BT()),WT=$(B());var QT=GT.default.change,HT={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function KT(e,t){let n="";try{for(let i in HT)e[i]===void 0&&(e[i]=HT[i]);n=QT.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}r(KT,"createChangeString");function qt(e){try{return QT.parse(e)}catch{return!1}}r(qt,"parseChangeString");function JT(e,t,n,i,o){let a=n.layer?n.layer===WT.FlexChangeLayer.Customer:!0,s={controlId:o,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}r(JT,"fillFlexChangeContent");function _(e,t){return KT(e,t)}r(_,"exportToFlexChange");var eo=$(B());function aa(e,t,n,i,o,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let c=l(t,o,n,a);c!==void 0&&(i[n]=c)}else t[s]!==void 0&&(i[n]=t[s])}r(aa,"importProperty");function ll(e,t,n,i){if(t&&e)for(let o in t){let a=e[o];a&&(k(i,{severity:eo.LogSeverity.Warning,message:oa(o,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[o])}}r(ll,"checkDeprecatedProperties");function Sf(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(O)[1]];return Sf(n,t)}else return e.title?e.title.startsWith(eo.FACETTITLEPREFIX)?e.title.split(eo.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}r(Sf,"getSectionTitle");function cl(e){let t=e.split(`${eo.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}r(cl,"getTargetFromCustomColumnRef");function to(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}r(to,"removeEmptyStructure");var Ue=require("@sap-ux/vocabularies-types/vocabularies/UI");var li=require("@sap-ux/vocabularies-types/vocabularies/UI");function pl(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}}r(pl,"replaceSpecialChars");var no=r(function(e){return pl(LT(e))},"prepareId");function nI(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}r(nI,"evaluateConcat");function io(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 nI(e);if(e&&typeof e=="string")return pl(e.replace(/ /g,"_"))}r(io,"getStableIdPartFromValue");var XT=r(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"),ci=r(function(e){let t="";if(e.$Type&&e.$Type===li.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,no(t);if(e.$Type&&e.$Type===li.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=XT(e),t;if(e.$Type&&e.$Type===li.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=no(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===li.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=io(e.Value)+"::"),t+=e.Action,no(t);if(e.$Type&&e.$Type===li.UIAnnotationTypes.DataField)return t="DataField::",t+=io(e.Value),no(t);if(e.$Type&&e.$Type===li.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=io(e.Value)+"::",t+=XT(e),no(t);if(e.$Type&&e.$Type===li.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=io(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),no(t);if(e.$Type&&e.$Type===li.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=io(e.Value),no(t)},"getStableIdPartFromDataField");var M=$(B());var se=$(B());var Wt=require("@sap-ux/vocabularies-types/vocabularies/UI"),ZT=require("path"),eS=$(qa());var oo="ResponsiveTableWithMultiSelect<LineItems>",ao="ResponsiveTableWithInlineDelete<LineItems>",fl="TreeTable<LineItems>",ul="AnalyticalTable<LineItems>",dl="GridTable<LineItems>",vf=[oo,ao,fl,ul,dl],qT=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],zT="template::",gl="template:::ObjectPageAction:::";function iI(e,t,n){e.definitions[se.DefinitionName.LineItems]&&(e.definitions[se.DefinitionName.LineItems].properties.custom={$ref:`${O}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${O}${n}`},description:"Custom Columns"},e.definitions[t][se.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[se.SchemaTag.artifactType]=se.ArtifactType.Manifest)}r(iI,"addCustomColumnDefinition");function oI(e,t){let n;return e==="TableColumnActionIntentBased"?n=gf(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=Le(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Wt.UIAnnotationTypes.DataFieldForAction?n=Le(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=Le(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}r(oI,"getActionId");function Pf(e,t,n,i,o){let a,s=n.lineItemId===se.DefinitionName.LineItems?"":"ObjectPage",l=oI(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let c=`${s}${i}<${l}>`,p=Ct(n.lineItemRecord,n.entityType);t.properties[l]={$ref:O+c},t.properties[l][se.SchemaTag.propertyIndex]=o;let{key:f,ns:u}=so(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[c]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:f}],annotationPath:`${n.lineItemPath}/${o}`},u&&(e.definitions[c][se.SchemaTag.target]=u)):(e.definitions[c]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[c][se.SchemaTag.isViewNode]=!0,e.definitions[c][se.SchemaTag.keys]=[{name:se.SchemaKeyName.action,value:f}],u&&(e.definitions[c][se.SchemaTag.target]=u),e.definitions[c][se.SchemaTag.annotationPath]=`${n.lineItemPath}/${o}`)}r(Pf,"handleActionRecord");function aI(e,t,n){e!==se.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Wt.UIAnnotationTypes.DataFieldForAction||t.$Type===Wt.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Wt.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Wt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}r(aI,"getColumnActionType");function rI(e,t){let n=[];if(!(e.$Type!==Wt.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Wt.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Wt.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Wt.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Wt.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Wt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),aI(t,e,n),n}r(rI,"getActionType");function tS(e,t,n){let i=gf(e.lineItemRecord);if(i){let o=t.definitions[e.lineItemId];o.properties[i]={$ref:O+se.DefinitionName.TableColumn,description:Ct(e.lineItemRecord,e.entityType)},o.properties[i][se.SchemaTag.propertyIndex]=n,o.properties[i][se.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Tl(o.properties[i],e.lineItemRecord),Sl(e.lineItemRecord,o.properties,i)}}r(tS,"generateGenericColumn");function sI(e,t,n,i,o,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{Pf(t,n,i,e,o);break}case"FooterAction":case"FooterActionIntentBased":{a&&Pf(t,a,i,e,o);break}case"TableColumnAction":case"TableColumnActionIntentBased":{Pf(t,t.definitions[s],i,e,o);break}case"ObjectPageTableColumnAction":tS(i,t,o)}}r(sI,"handleAnyAction");function ra(e,t,n,i,o,a){o=o||se.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:c}=bl(e,t,n,i,o);if(n){let p=0;n.forEach(f=>{let u={lineItemPath:c,lineItemRecord:f,lineItemId:o,entityType:i},m=rI(f,o);m?m.forEach(b=>{sI(b,t,s,u,p,l,o)}):tS(u,t,p),p++})}a&&(t.definitions[o].properties.custom={$ref:`${O}${a}`})}r(ra,"addLineItemsType");function lI(e,t,n){var o,a;let i=(a=(o=e.definitions[n])==null?void 0:o.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,c)=>(l.includes(c.name)||l.push(c.name),l),[])}}r(lI,"addListReportLeadingProperties");function cI(e,t,n,i){var s,l,c,p,f,u;let o=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(o.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",o.enum=[i]);return}let a=(f=(p=(c=n.component)==null?void 0:c.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:f.variants;if(a){let m=[];for(let b in a){let S=(u=a[b])==null?void 0:u.key;S!==void 0&&!m.includes(S)&&m.push(S)}ro(m,o)}}r(cI,"addTabkeyEnum");function ml(e,t,n,i,o){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(c=>{let p=c.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let f=JSON.parse((0,eS.xml2json)(c.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!f||f.Column||f["table:Column"]||f["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!f||!f.Column&&!f["table:Column"]&&!f["table:AnalyticalColumn"]&&!f["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+ZT.sep,"g"),"/");let u=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(u)}}}),ro(a,(l=(s=e.definitions[o])==null?void 0:s.properties)==null?void 0:l[i])}r(ml,"addFragmentEnum");function sa(e,t,n,i,o,a=se.DefinitionName.CustomColumns,s=se.DefinitionName.CustomColumn,l){iI(e,a,s),lI(e,t,s),cI(e,s,n,l);let c=i&&i["sap.app"]&&i["sap.app"].id;ml(e,o,c,"fragmentName",s),ml(e,o,c,"fragmentName",se.DefinitionName.CustomColumn),ml(e,o,c,"cellsFragmentName",s),ml(e,o,c,"cellsFragmentName",se.DefinitionName.CustomColumn)}r(sa,"addTableColumnExtensions");function nS(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}r(nS,"removeElementsFromEnum");function yl(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,o=Ut(n==null?void 0:n.fullyQualifiedName,Wt.UIAnnotationTerms.SelectionFields);if(o&&(i[se.SchemaTag.annotationPath]=o),!t)return;let a=0;t.forEach(s=>{let l=s.value,c=`SelectionField<${Le(s.value)}>`,p=Sn(s);s.type==="PropertyPath"&&(l=tl(s,n)),i.properties[s.value]={$ref:O+c},i.properties[s.value][se.SchemaTag.propertyIndex]=a,e.definitions[c]={type:"object",description:l,additionalProperties:!1},e.definitions[c][se.SchemaTag.isViewNode]=!0,e.definitions[c][se.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[c][se.SchemaTag.dataType]=p,e.definitions[c][se.SchemaTag.keys]=[{name:se.SchemaKeyName.value,value:`${s.value}`}],e.definitions[c][se.SchemaTag.annotationPath]=`${i[se.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[c].$ref=`${O}SelectionFieldDateSettings`:e.definitions[c].properties={},a++})}r(yl,"addSelectionFields");function hl(e){var t,n,i,o;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((o=(i=e.annotations)==null?void 0:i.Common)!=null&&o.DraftNode)}r(hl,"isDraftEnabled");function iS(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}r(iS,"isEntityDeletable");function oS(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}r(oS,"isEntityUpdatable");function la(e,t=!1,n){let i=se.DefinitionName.HeaderActionsStandard,o=se.DefinitionName.HeaderActionsStandard,a=se.DefinitionName.HeaderActionStandard;t&&(i=se.DefinitionName.GenericActions,o=se.DefinitionName.HeaderActions,a=se.DefinitionName.ObjectPageHeaderActionStandard);let s=e.definitions[i],l=e.definitions[o];l[se.SchemaTag.isViewNode]=!0,l.description="Actions",Object.entries((n||s).properties).forEach(([p,f])=>{let u=f.$ref.split(O)[1],m=`${a}<${u}>`;l.properties[p]={$ref:`${O}${m}`},e.definitions[m]=e.definitions[u],e.definitions[u][se.SchemaTag.actionType]=se.ActionType.Standard})}r(la,"addStandardHeaderActions");function aS(e,t){let n=e.definitions[se.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let o=n.properties[i].$ref.split(O)[1],a=`${se.DefinitionName.ObjectPageFooterActionStandard}<${o}>`;t.properties[i]={$ref:`${O}${a}`},e.definitions[a]=e.definitions[o],e.definitions[o][se.SchemaTag.actionType]=se.ActionType.Standard}}r(aS,"addStandardFooterActionsOP");function rS(e){var i,o,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(o=t==null?void 0:t.annotations)==null?void 0:o.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?R.t("NOUIANNOTATIONS",{entityType:t.name}):R.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});k(e.logger,{severity:se.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}r(rS,"getUIAnnotationForEntitySet");function pI(e,t,n,i){if(e===M.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ue.UIAnnotationTypes.DataField:case Ue.UIAnnotationTypes.DataFieldForAnnotation:case Ue.UIAnnotationTypes.DataFieldWithNavigationPath:case Ue.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===M.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ue.UIAnnotationTypes.DataField:case Ue.UIAnnotationTypes.DataFieldForAnnotation:case Ue.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}r(pI,"copyFieldProperties");function fI(e,t,n,i){let o=e===M.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===M.FioriElementsVersion.v2?`${o}<${n}::${i}>`:`${n}::${i}`}r(fI,"determineFieldDefinitionName");function uI(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][M.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][M.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][M.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][M.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(uI,"addKeysTagForDataField");function dI(e,t,n){if(e.$Type===Ue.UIAnnotationTypes.DataField||e.$Type===Ue.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ue.UIAnnotationTypes.DataFieldWithNavigationPath)uI(e,t,n);else if(e.$Type===Ue.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][M.SchemaTag.keys]=[{name:"Target",value:ia(e.Target.value)}],t.definitions[n][M.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ue.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][M.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][M.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][M.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ue.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][M.SchemaTag.keys]=[{name:M.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][M.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][M.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(dI,"addKeysTagToField");function gI(e){var t,n;return e.$Type===Ue.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Ue.UIAnnotationTypes.ConnectedFieldsType}r(gI,"isConnectedField");function mI(e,t,n,i,o){let a=n.Target.$target,s={};if(a.$Type===Ue.UIAnnotationTypes.ConnectedFieldsType){let c=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,f=c.length;for(let u in p){let m=p[u];if(typeof m=="object"&&"$Type"in m){let b=c.findIndex(S=>S===u);b===-1&&(b=f,f++),Af(e,t,m,`ConnectedFields::${a.qualifier}`,b.toString(),i,o,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}r(mI,"addConnectedFields");function sS(e,t,n){if(n)return n;let i=Le(t);return e.definitions[i].properties}r(sS,"getFieldsSchemaContainer");function Af(e,t,n,i,o,a,s,l=!0,c={},p=a.entityType.fullyQualifiedName){var S;let f=ci(n),u=s===M.FioriElementsVersion.v2&&f&&f.includes("::")?f.split("::").splice(1).join("::"):f,m=fI(s,f,i,u),b={};if(!(!n||!n.$Type)){if(n.$Type===Ue.UIAnnotationTypes.DataFieldForAction||n.$Type===Ue.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===M.SectionType.Section){let L=sS(t,`${e}${M.DefinitionName.Actions}<${i}>`,c.actions),V=L[u]={$ref:`${O}${m}`};V[M.SchemaTag.propertyIndex]=parseInt(o)}}else{let L=sS(t,`${e}${M.DefinitionName.Fields}<${i}>`,c.fields);L[u]={$ref:`${O}${m}`,propertyIndex:parseInt(o)},gI(n)&&(b=mI(e,t,n,a,s))}t.definitions[m]={type:"object",properties:b,description:Ct(n,a.entityType),additionalProperties:!1},dI(n,t,m),t.definitions[m][M.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[m][M.SchemaTag.annotationType]=n.$Type,t.definitions[m][M.SchemaTag.isViewNode]=!0,Tl(t.definitions[m],n),pI(s,t,n,m),n.$Type===Ue.UIAnnotationTypes.DataFieldForAction&&((S=t.definitions)!=null&&S.FormAction)&&(t.definitions[m].properties=t.definitions[M.DefinitionName.FormAction].properties)}}r(Af,"addField");function yI(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}r(yI,"determineTargetIdOfForm");function hI(e,t,n,i,o,a=!0){var p;if(!e.target)return;let s=Le(`${t}${M.DefinitionName.Form}<${i}>`),l=Le(`${t}${M.DefinitionName.Fields}<${i}>`),c=Le(`${t}${M.DefinitionName.Actions}<${i}>`);if(n.properties.form={$ref:`${O}${s}`},t===M.SectionType.Section&&a?(n.definitions[s]={type:"object",properties:{actions:{$ref:`${O}${c}`},fields:{$ref:`${O}${l}`}},description:"Form",additionalProperties:!1},n.definitions[c]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[c][M.SchemaTag.isViewNode]=!0):n.definitions[s]={type:"object",properties:{fields:{$ref:`${O}${l}`}},description:"Form",additionalProperties:!1},n.definitions[s][M.SchemaTag.isViewNode]=!0,(p=e.entityType)!=null&&p.name&&(n.definitions[s][M.SchemaTag.annotationPath]=Ut(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[l][M.SchemaTag.isViewNode]=!0,e.base===M.FacetBase.Identification)for(let f in e.target){let u=e.target[f];u&&Af(t,n,u,i,f,e,o,a)}else for(let f in e.target.Data){let u=e.target.Data[f];Af(t,n,u,i,f,e,o)}}r(hI,"addFieldsToFormDefinition");function bI(e,t,n){var i,o;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][M.SchemaTag.keys]=[{name:M.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][M.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][M.SchemaTag.isViewNode]=!0,(o=e.entityType)!=null&&o.name&&(t.definitions[n][M.SchemaTag.annotationPath]=Ut(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}r(bI,"addTagsToFormDefinition");function vl(e,t,n,i,o,a){if(!t.target)return;let s=yI(t),l=Le(`${e}${M.DefinitionName.Form}<${s}>`),c=Le(`${e}${M.DefinitionName.Fields}<${s}>`),p=Le(`${e}${M.DefinitionName.Actions}<${s}>`),f=!(t.base===M.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${O}${l}`},e===M.SectionType.Section&&f?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${O}${p}`},fields:{$ref:`${O}${c}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][M.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${O}${c}`}},description:"Form",additionalProperties:!1},bI(t,i,l),i.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[c][M.SchemaTag.isViewNode]=!0,hI(t,e,i,s,o,f),s}r(vl,"handleForm");function Cf(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let o=n.replace("SAP__",""),a=t.references.find(s=>s.alias===o);a&&(i=e.replace(n,a.namespace))}return i}r(Cf,"replaceAlias");function Pl(e,t){let n=Cf(e.Action,t),i=n,o=n.indexOf("(");o>0&&(i=n.substring(0,o)),o=i.lastIndexOf("/"),o===-1&&(o=i.lastIndexOf("."));let a,s,l;return o>-1?(a=i.substring(o+1),l=i.substring(0,o),s=`${i.substring(0,o)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}r(Pl,"getActionNameAndId");function lS(e,t){var n,i;for(let o in e){let a=e[o];return((n=a.component)==null?void 0:n.name)===M.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:lS(a.pages,t)}}r(lS,"isFirstObjectPage");function Al(e,t,n,i,o){var f,u;e.definitions[M.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${M.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${O}${M.DefinitionName.ObjectPageFooter}`},e.definitions[M.DefinitionName.ObjectPageFooter].properties[M.PropertyName.actions]={$ref:`${O}${M.DefinitionName.FooterActions}`};let a=e.definitions[M.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[M.SchemaTag.isViewNode]=!0;let s=kt(M.UIVOCABULARY,t.serviceAVT),l=t.entitySet,c=l==null?void 0:l.entityType,p=s&&((u=(f=c==null?void 0:c.annotations)==null?void 0:f[s])==null?void 0:u.Identification);if(p){let m=p.fullyQualifiedName.replace(`@${Ue.UIAnnotationTerms.Identification}`,`/@${Ue.UIAnnotationTerms.Identification}`);a[M.SchemaTag.annotationPath]=`/${m}`,i(c,e,a,p)}else c&&(a[M.SchemaTag.annotationPath]=`/${c.fullyQualifiedName}/@${Ue.UIAnnotationTerms.Identification}`);n===M.FioriElementsVersion.v2&&lS(o,t)&&!hl(l)&&aS(e,a),delete e.definitions[M.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${M.DefinitionName.ObjectPageFooter}<${M.DefinitionName.ObjectPageFooterActions}>`]}r(Al,"addFooterActions");function Cl(e,t,n,i,o,a=!1){var u,m;let s=M.DefinitionName.HeaderActions,l=e.definitions[s];e.definitions[M.DefinitionName.ObjectPageHeader].properties[M.PropertyName.actions]={$ref:`${O}${s}`};let c=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};c[M.SchemaTag.isViewNode]=!0;let p=kt(M.UIVOCABULARY,i),f=p&&((m=(u=t==null?void 0:t.annotations)==null?void 0:u[p])==null?void 0:m.Identification);f?c[M.SchemaTag.annotationPath]="/"+f.fullyQualifiedName.replace(`@${Ue.UIAnnotationTerms.Identification}`,`/@${Ue.UIAnnotationTerms.Identification}`):t&&(c[M.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ue.UIAnnotationTerms.Identification}`),o(t,e,f,c,i,n),a&&la(e,!0,l),delete e.definitions[M.DefinitionName.GenericActions],delete e.definitions[`${M.DefinitionName.ObjectPageHeader}<${M.DefinitionName.GenericActions}>`]}r(Cl,"addHeaderActions");function El(e,t){e.properties.header={$ref:`${O}${M.DefinitionName.ObjectPageHeader}`},e.definitions[M.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${M.DefinitionName.ObjectPageHeader}<${M.DefinitionName.GenericActions}>`])),t&&(e.definitions[M.DefinitionName.ObjectPageHeader][M.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ue.UIAnnotationTerms.HeaderInfo}`)}r(El,"addCommonHeaderSchema");function cS(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}r(cS,"determineEntitySetOfEntityType");var vn=require("@sap-ux/vocabularies-types/vocabularies/UI");var de=$(B());function ro(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}r(ro,"addEnumToSchema");function pS(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let o=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let c=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;o.indexOf(c)===-1&&o.push(c)}}ro(o,n)}r(pS,"addEnumForValidAnnotations");function Ai(e,t,n){let i=t.definitions[n].properties[de.SchemaTag.annotationPath],o=[vn.UIAnnotationTerms.SelectionVariant,vn.UIAnnotationTerms.SelectionPresentationVariant];pS(e,o,i)}r(Ai,"addEnumForSingleTabVariant");function fS(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,o=[vn.UIAnnotationTerms.SelectionVariant,vn.UIAnnotationTerms.SelectionPresentationVariant];pS(n.entityType,o,i)}r(fS,"addEnumForMultiTabVariant");function uS(e,t,n){let i=t.definitions[n].properties.entitySet,o=[];e.entitySets.forEach(a=>{o.push(a.name)}),ro(o,i)}r(uS,"addEnumForVariantEntitySet");function dS(e,t,n,i){let o=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],c=a.label||a.title;return{const:l,...c&&{description:c},...a.custom&&{custom:a.custom}}});if(o.length){e.definitions[de.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:o};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:`${O}${de.DefinitionName.RelatedFacetKeys}`},l]}}}}r(dS,"addDefinitionForRelatedFacetKeys");function ca(e){return e.replace("#","::")}r(ca,"getFacetKeyInSchema");function er(e,t){return`${e}<${ca(t)}>`}r(er,"getFacetDefinitionKey");function gt(e,t,n,i=!0,o){let a=t;if(i&&(a=er(o||e,t)),e&&e!==a)try{let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=s}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[a]}r(gt,"parseSchemaDefinition");function bl(e,t,n,i,o,a){let s;t.definitions[o]={type:"object",properties:{},description:"Columns"},t.definitions[o].additionalProperties=!1,t.definitions[o][de.SchemaTag.isViewNode]=!0;let l;o===de.DefinitionName.LineItems||o==="LineItemsOfSPV::LineItem"||o==="@com.sap.vocabularies.UI.v1.LineItem"?l=`${O}${a}`:(l=`${O}${a}<${o}>`,gt(a,o,t,!0)),t.definitions[o].additionalProperties=a?{$ref:`${l}`}:!1;let c=e?de.DefinitionName.ObjectPageToolBar:de.DefinitionName.ToolBar,p=`${c}<${o}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${c}`]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${c}`}))}let f=`${de.DefinitionName.Actions}<${Le(o)}>`;t.definitions[p].properties.actions.$ref=O+f;let u=o.startsWith(de.DefinitionName.LineItems)?de.DefinitionName.Actions:de.DefinitionName.ObjectPageToolBarActions,m;try{m=t.definitions[f]=JSON.parse(JSON.stringify(t.definitions[u])),m.properties={},m.additionalProperties=!1}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let b,S;if(o===de.DefinitionName.LineItems&&t.properties.footer){S=`${de.DefinitionName.Footer}<${o}>`,t.properties.footer.$ref=`${O}${S}`;try{t.definitions[S]=JSON.parse(JSON.stringify(t.definitions[de.DefinitionName.GenericFooter]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:de.DefinitionName.GenericFooter}))}let L=`${de.DefinitionName.FooterActions}<${Le(o)}>`;t.definitions[S].properties.actions.$ref=O+L;try{b=t.definitions[L]=JSON.parse(JSON.stringify(t.definitions[de.DefinitionName.Actions]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:de.DefinitionName.Actions}))}b.properties={},b.additionalProperties=!1}return n&&(s=Ut(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),s&&(t.definitions[o][de.SchemaTag.annotationPath]=t.definitions[p][de.SchemaTag.annotationPath]=s,b&&(t.definitions[S][de.SchemaTag.annotationPath]=s))),{actions:m,footerActions:b,lineItemPath:s}}r(bl,"addCommonLineItemDefinitions");function gS(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}r(gS,"getDataTypeFromAnnotation");function lo(e){var n,i,o;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.",""):(o=e==null?void 0:e.$Type)!=null&&o.startsWith("com.sap.vocabularies.")&&(t=gS(e.$Type)),t}r(lo,"determineDataTypeOfTarget");function Sn(e){var n,i,o;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=lo((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(o=e.$Type)!=null&&o.startsWith("com.sap.vocabularies.")?t=gS(e.$Type):e.type&&(t=e.type),t}catch{return t}}r(Sn,"determineDataType");function Tl(e,t){let n=Sn(t);n&&(e[de.SchemaTag.dataType]=n)}r(Tl,"addDataTypeToDefinition");function zt(e,t){return`${O}${er(e,t)}`}r(zt,"getFacetDefinitionLink");function mS(e,t,n,i){let o=0,a=!1,s="";do{let l=`${t}${o===0?"":"."+o}`;s=zt(e,l),o++;let c=n.definitions[er(e,l)],p=((c==null?void 0:c.annotationPath)??"").split("/").slice(0,-1).join("/");a=!c||p===i}while(!a);return s}r(mS,"getUniqueFacetDefinitionLink");function co(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${O}${i}`}r(co,"addDefinitionRef");function xl(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${de.UIVOCABULARY}`);t=`/${n}/@${de.UIVOCABULARY}${i}`}return t}r(xl,"getFacetAnnotationPath");function tr(e,t,n,i,o,a,s=""){let l=`ObjectPage${o}${e.base}${s}`,c=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:zt(a?c:l,t)};let p=gt(a?c:l,t,i,!0,a?c:void 0);ri(e,p,t),vi(e,p,t),p[de.SchemaTag.annotationPath]=e.annotationPath,p[de.SchemaTag.isViewNode]=!0}r(tr,"handleAddressContact");function Ef(e,t,n){typeof e=="object"&&(e[t]=n)}r(Ef,"updateSchemaProperty");function pa(e,t,n=Le("")){let i=t.entityProperties.map(a=>a.name),o=e.definitions[`${de.DefinitionName.Fields4Dialog}${n}`];Ef(o.properties.fields.items,"enum",i)}r(pa,"addFieldsType");function TI(e,t){if(!(!t||!e))for(let n of t){let i=e.find(o=>o.name===n);if(i)return i}}r(TI,"findFirstSchemaDefinitionKey");function xf(e,t,n,i){var p;let o=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let f=na(t.$ref),u=(p=e.definitions)==null?void 0:p[f];typeof u=="object"&&(s=!u.annotationPath,i!=null&&i.resolveDefinition&&!o&&(o=u.description,a=u.keys))}let l=n,c=TI(a,i==null?void 0:i.keyProperties);return c?l=c.value:i!=null&&i.descriptionAsFallback&&o&&(l=o),{const:l,...o&&{description:o},...s&&{custom:s}}}r(xf,"getEnumEntry");function yS(e,t,n,i){var s;if(typeof t!="object")return;let o=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let c=t.properties[l],p=xf(e,c,l,i);o.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];Ef(l,"oneOf",o)}else Ef(a,"oneOf",o)}r(yS,"addDescriptiveEnumDefinition");function so(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let o=n.indexOf("/"),a=n.lastIndexOf(".");i=o>0?n.substring(0,o):n.substring(0,a),n=o>0?n.substring(o+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}r(so,"getActionKey");function Sl(e,t,n){var i,o,a;try{if(e.Value)t[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.value,value:io(e.Value)}];else if(e.$Type===vn.UIAnnotationTypes.DataFieldWithAction||e.$Type===vn.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=so(e.Action,!0);t[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.action,value:s}],l&&(t[n][de.SchemaTag.target]=l)}else if(e.$Type===vn.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=so(e.Target.value,!1);t[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.target,value:ia(s)}],t[n][de.SchemaTag.target]=(a=(o=(i=e.Target)==null?void 0:i.$target)==null?void 0:o.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===vn.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===vn.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:c}=so(s,!0);t[n][de.SchemaTag.keys]=[{name:"SemanticObject",value:e[de.SchemaKeyName.semanticObject]},{name:"Action",value:l}],c&&(t[n][de.SchemaTag.target]=c)}}catch{return}}r(Sl,"addKeyToDefinition");function hS(e,t){e[de.SchemaTag.messages]||(e[de.SchemaTag.messages]=[]),Array.isArray(e[de.SchemaTag.messages])&&e[de.SchemaTag.messages].push({text:t})}r(hS,"addMessageToSchema");var fa=$(B());var bS=[{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 SS="1.84.117";var vS={name:"@sap/ux-specification",version:SS,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 copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/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",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 copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/vocabularies-types":"0.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.84.117","@sapui5/ts-types":"latest-1.84","@types/d3":"7.4.3","@types/jquery":"3.5.32","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.10.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2",path:"0.12.7","reflect-metadata":"0.2.2","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var Ci=class Ci{constructor(){Ci.distTagsOfSpec.length===0&&(Ci.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Ci.distTagsOfSpec=[]}getSpecVersion(){return SS}getDistTagsOfVersion(){let t=[],n=bS,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let o=n.find(a=>a.version.startsWith(i));o&&(t=o.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let o=R.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});k(n,{severity:fa.LogSeverity.Info,message:o,location:{path:fa.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(Ci.distTagsOfSpec.findIndex(o=>o.endsWith(i))===-1){let o=R.t("WRONGMINUI5VERSION",{minUI5Version:t});k(n,{severity:fa.LogSeverity.Warning,message:o,location:{path:fa.MANIFESTPATH}})}}};r(Ci,"DistTagEvaluator"),Ci.distTagsOfSpec=[];var nr=Ci;var K=$(B());var ct=$(B());var xi=$(B());var If=class If{constructor(t,n,i,o){this.unhandledControllers=[];let a=Xe(xi.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...o&&{settings:o}},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(){let t={},n={},i;for(let a in this.app.pages)if(i=this.app.pages[a],i.config){let s=i.config;if(i.pageType!==xi.PageType.CustomPage){let l=Xe(i.pageType,i.entitySet);if(this.schemas[l.filename])s.$schema=l.path;else{let c=Xe(i.pageType);s.$schema=c.path}t[`${xi.DirName.Pages}/${a}.json`]=s}}let o=JSON.parse(JSON.stringify(this.app));for(let a in o.pages)delete o.pages[a].config;return n[xi.FileName.App]=o,{appConfig:n,pageConfigs:t}}};r(If,"AppProvider");var Ei=If;var Ee=$(B());var ua=$(B());var ft=r((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),PS=r((e,t)=>{let n=e,i=t.split("/");for(let o of i){if(!n[o])return;n=n&&n[o]}return n||{}},"getManifestSectionByPathV2"),AS=r((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let o=t.split("/")[i];i===t.split("/").length-1?delete n[o]:n=n&&n[o]}},"deleteManifestSectionByPathV2");function Of(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}r(Of,"getNewPageTemplate");function PI(e,t,n){if(e)for(let i in e){let o=e[i];if(o.entitySet===t&&o.navigationProperty===n)return o}}r(PI,"findPageInManifest");function AI(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=Of(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:Of(e[t].pageType)}),!Array.isArray(n.pages))){let i=PI(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=Of(e[t].pageType)),Ff(t,e,i)}}r(AI,"transformPageFromAssociation");function CI(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let o=e.pages[i];if(((a=o.component)==null?void 0:a.name)===ua.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${o.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===ua.PageTypeV2.ListReport||n.pageType===ua.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}r(CI,"deletePage");function Ff(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===ua.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 o in i.navigation)AI(t,o,n);Array.isArray(n.pages)||CI(n,t,i)}}r(Ff,"transformPageToNewManifestV2");var cv=$(qa());var gd={};Go(gd,{ALPAnalyticalTable:()=>du,ALPGridTable:()=>uu,ALPResponsiveTable:()=>fu,Action:()=>hu,AnalyticalCard:()=>ha,AnalyticalCardSettings:()=>Ll,AnalyticalCardSettingsv4:()=>jf,AnalyticalListPageFilterBar:()=>Gf,AnalyticalTable:()=>pu,BaseCustomSection:()=>Nr,ChartSettings:()=>ju,ChartSettingsType:()=>Vf,CommonCardSettings:()=>Li,CommonHeaderFacetSettings:()=>Po,CommonTableSettings:()=>Di,CommonTableSettingsForSections:()=>Io,CreateWithFilters:()=>ou,CustomCard:()=>Df,DataLoadSettings:()=>au,DateRange:()=>kf,DefaultSpanObject:()=>Nf,FRAGMENT_DEFINITION:()=>Hn,Field:()=>Uf,FieldForAction:()=>Jf,Fields4Dialog:()=>ru,Fields4DialogOP:()=>ld,FooterAction:()=>Tu,FormAction:()=>Kf,GlobalChartSettings:()=>rd,GlobalTableSettings:()=>ud,GridTable:()=>gu,HeaderAction:()=>Mu,HeaderActionStandard:()=>Cu,HeaderSections:()=>Hu,KPISettings:()=>wu,LinkListCardSettings:()=>$f,LinklistCard:()=>fr,ListCard:()=>ya,ListCardSettings:()=>Rf,ListReportFilterBar:()=>jl,ObjectPageAnalyticalTable:()=>cd,ObjectPageChart:()=>ad,ObjectPageCustomSectionFragment:()=>Dr,ObjectPageCustomSectionView:()=>Rr,ObjectPageFooterAction:()=>Wu,ObjectPageFooterActionStandard:()=>xu,ObjectPageGridTable:()=>pd,ObjectPageHeader:()=>$u,ObjectPageHeaderActionStandard:()=>Eu,ObjectPageHeaderSectionAddress:()=>Bu,ObjectPageHeaderSectionChart:()=>ku,ObjectPageHeaderSectionDataPoint:()=>_u,ObjectPageHeaderSectionForm:()=>Uu,ObjectPageLayout:()=>Ku,ObjectPageResponsiveTable:()=>Oo,ObjectPageSectionAddressV2:()=>Yu,ObjectPageSectionChartV2:()=>qu,ObjectPageSectionContactV2:()=>Zu,ObjectPageSectionFormV2:()=>Xu,ObjectPageSectionTableV2:()=>zu,ObjectPageSectionV2:()=>Ju,ObjectPageSubSectionChartV2:()=>nd,ObjectPageSubSectionContactV2:()=>id,ObjectPageSubSectionFormV2:()=>td,ObjectPageSubSectionTableV2:()=>od,ObjectPageSubSectionV2:()=>ed,ObjectPageToolBarAction:()=>dd,ObjectPageTreeTable:()=>fd,QuickVariantSelection:()=>su,QuickVariantSelectionOP:()=>sd,QuickVariantSelectionX:()=>lu,ResponsiveTable:()=>ho,SAP_UI_TABLE:()=>wl,SaveAndEditOP:()=>Au,SelectionFieldDateSettings:()=>Bf,SelectionFields:()=>Hf,Share:()=>Su,ShareOP:()=>vu,StackCard:()=>pr,StackCardSettings:()=>wf,TableALP:()=>Pa,TableCard:()=>ba,TableCardSettings:()=>Mf,TableColumn:()=>Fu,TableColumnAction:()=>nc,TableColumnActionIntentBased:()=>Lu,TableCustomColumn:()=>Vu,ToolBar:()=>Du,ToolBarAction:()=>bu,TreeTable:()=>cu,UpAndDownNavigationOP:()=>Pu,buildIntentBasedActionId:()=>Iu,deleteColumnFromFragment:()=>Ul,deleteType:()=>Ca,exportColorPalette:()=>IS,exportCreateParametersFields:()=>Ql,exportCustomColumnsToFragment:()=>iu,exportDateSettings:()=>VS,exportDateSettingsField:()=>NS,exportDefaultSpan:()=>OS,exportType:()=>Aa,getChartSectionControlId:()=>ov,getContactSubSectionControlId:()=>rv,getCustomColumnPath:()=>kl,getFormSectionControlId:()=>iv,getRootCustomColumnFromFragmentJSON:()=>mr,getSectionControlId:()=>Eo,getSmartChartControlId:()=>Cr,getSmartTableControlId:()=>yo,getSubSectionControlId:()=>av,getTableSectionControlId:()=>nv,importCreateParameters:()=>Wl,importDateSettings:()=>Wf});var Et=$(B());var fe=r(e=>`${Et.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),po=r(e=>fe(e)+"/tableSettings","getTableSettingPathV2"),CS=r(e=>fe(e)+"/chartSettings","getChartSettingPathV2"),ES=r(e=>fe(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var et=r(()=>Et.ManifestSection.ovp,"getOVPsettingPath"),z=r(e=>{let t=[Et.ManifestSection.ovp];return e.forEach(n=>{n in Et.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var fo=r((e,t)=>`${Et.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Fl=r(e=>{let t=[Et.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Vt=r(e=>{let t=[];return t.push(Fl(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),uo=r(e=>Vt(e)+"/tableSettings","getGlobalTableSettingsPathV2"),Pn=r((e,t,n)=>{let i=[];i.push(Fl(e));let o=n.replace(Et.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+o),i.join("/")},"getAppSettingOBJsectionPathV2"),sn=r((e,t,n)=>Pn(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),xS=r((e,t,n)=>Pn(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),Lf=r(()=>`sap.ui5/extends/extensions/${Et.v2.SAPUI5_VIEW_EXTENSION}/${Et.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),pi=r((e,t,n,...i)=>{let o="|",a=n.split(o),s=e[e.length-1].split(o),l="";a.length===4?l=[a[2],a[3]].join(o):a.length===3&&(l=a[2]);let c=[a[0],s[s.length-1],l].join(o);return i.unshift(c),`${Lf()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Ol=class Ol{};r(Ol,"ApplicationV2"),d([_e("settings")],Ol.prototype,"settings",2);var Il=Ol,_n=class _n{};r(_n,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],_n.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],_n.prototype,"description",2),d([g({manifest:{path:r(()=>"sap.fiori","path")}})],_n.prototype,"cloudDevAdaptationStatus",2),d([g({manifest:{path:r(()=>Et.GENERICAPPSETTINGS,"path")}}),T({since:"1.50.0"})],_n.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>Et.GENERICAPPSETTINGS,"path")}}),T({since:"1.46.0"})],_n.prototype,"forceGlobalRefresh",2),d([g({manifest:{path:r(()=>Et.GENERICAPPSETTINGS,"path")}}),T({since:"1.74.0"})],_n.prototype,"tableColumnVerticalAlignment",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),T({since:"1.56.0"}),ye("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],_n.prototype,"flexEnabled",2);var Ii=_n;var ir=$(B());function EI(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=ir.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=ir.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:ir.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}r(EI,"importColorPalette");function IS(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===ir.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}r(IS,"exportColorPalette");function OS(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}r(OS,"exportDefaultSpan");var Vl=class Vl{};r(Vl,"ChartSettingsType"),d([g({manifest:{path:r(()=>et()+"/chartSettings","path")}})],Vl.prototype,"showDataLabel",2);var Vf=Vl,Oi=class Oi{};r(Oi,"DefaultSpanObject"),d([g({manifest:{path:r(t=>z(t),"path")}})],Oi.prototype,"cols",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Oi.prototype,"rows",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Oi.prototype,"showOnlyHeader",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Oi.prototype,"minimumTitleRow",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Oi.prototype,"minimumSubTitleRow",2);var Nf=Oi,Be=class Be{};r(Be,"CommonCardSettings"),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"entitySet",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"title",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"subTitle",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"dataPointAnnotationPath",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"selectionPresentationAnnotationPath",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"kpiAnnotationPath",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"category",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"dynamicSubtitleAnnotationPath",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"valueSelectionInfo",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"showFilterInHeader",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"sortBy",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"sortOrder",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"identificationAnnotationPath",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"selectionAnnotationPath",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"presentationAnnotationPath",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"enableLocaleCurrencyFormatting",2),d([g({manifest:{path:r(t=>z(t),"path"),export:OS}})],Be.prototype,"defaultSpan",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"requireAppAuthorization",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"showSortingInHeader",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"tabs",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"addODataSelect",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"showRefresh",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Be.prototype,"customParams",2);var Li=Be,da=class da{};r(da,"CustomCard"),d([g({manifest:{path:r(t=>z(t),"path")}})],da.prototype,"model",2),d([g({manifest:{path:r(t=>z(t),"path")}})],da.prototype,"template",2),d([g({manifest:{path:r(t=>z(t),"path")}})],da.prototype,"settings",2);var Df=da,Fi=class Fi extends Li{};r(Fi,"ListCardSettings"),d([g({manifest:{path:r(t=>z(t),"path")}})],Fi.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Fi.prototype,"imageSupported",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Fi.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Fi.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>z(t),"path")}})],Fi.prototype,"listType",2);var Rf=Fi,or=class or{};r(or,"ListCard"),d([g({manifest:{path:r(t=>z(t),"path")}})],or.prototype,"model",2),d([g({manifest:{path:r(t=>z(t),"path")}})],or.prototype,"template",2);var ya=or,An=class An extends Li{};r(An,"AnalyticalCardSettings"),d([g({manifest:{path:r(t=>z(t),"path")}})],An.prototype,"chartAnnotationPath",2),d([g({manifest:{path:r(t=>z(t),"path")}})],An.prototype,"ignoreSapText",2),d([g({manifest:{path:r(t=>z(t),"path")}})],An.prototype,"enableAddToInsights",2),d([g({manifest:{path:r(t=>z(t),"path")}})],An.prototype,"navigation",2),d([g({manifest:{path:r(t=>z(t),"path")}})],An.prototype,"valueSelectionInfo",2),d([g({manifest:{path:r(t=>z(t),"path")}})],An.prototype,"chartProperties",2),d([g({manifest:{path:r(t=>z(t),"path"),import:EI,export:IS}})],An.prototype,"colorPalette",2),d([g({manifest:{path:r(t=>z(t),"path")}})],An.prototype,"bEnableStableColors",2);var Ll=An,Nl=class Nl extends Ll{};r(Nl,"AnalyticalCardSettingsv4"),d([g({manifest:{path:r(t=>z(t),"path")}})],Nl.prototype,"measureAggregate",2);var jf=Nl,ar=class ar{};r(ar,"AnalyticalCard"),d([g({manifest:{path:r(t=>z(t),"path")}})],ar.prototype,"model",2),d([g({manifest:{path:r(t=>z(t),"path")}})],ar.prototype,"template",2);var ha=ar,ga=class ga extends Li{};r(ga,"StackCardSettings"),d([g({manifest:{path:r(t=>z(t),"path")}})],ga.prototype,"itemText",2),d([g({manifest:{path:r(t=>z(t),"path")}})],ga.prototype,"objectStreamCardsNavigationProperty",2),d([g({manifest:{path:r(t=>z(t),"path")}})],ga.prototype,"objectStreamCardsSettings",2);var wf=ga,rr=class rr{};r(rr,"StackCard"),d([g({manifest:{path:r(t=>z(t),"path")}})],rr.prototype,"model",2),d([g({manifest:{path:r(t=>z(t),"path")}})],rr.prototype,"template",2);var pr=rr,ma=class ma extends Li{};r(ma,"LinkListCardSettings"),d([g({manifest:{path:r(t=>z(t),"path")}})],ma.prototype,"listFlavor",2),d([g({manifest:{path:r(t=>z(t),"path")}})],ma.prototype,"headerAnnotationPath",2),d([g({manifest:{path:r(t=>z(t),"path")}})],ma.prototype,"staticContent",2);var $f=ma,sr=class sr{};r(sr,"LinklistCard"),d([g({manifest:{path:r(t=>z(t),"path")}})],sr.prototype,"model",2),d([g({manifest:{path:r(t=>z(t),"path")}})],sr.prototype,"template",2);var fr=sr,lr=class lr extends Li{};r(lr,"TableCardSettings"),d([g({manifest:{path:r(t=>z(t),"path")}})],lr.prototype,"showLineItemDetail",2),d([g({manifest:{path:r(t=>z(t),"path")}})],lr.prototype,"enableAddToInsights",2);var Mf=lr,cr=class cr{};r(cr,"TableCard"),d([g({manifest:{path:r(t=>z(t),"path")}})],cr.prototype,"model",2),d([g({manifest:{path:r(t=>z(t),"path")}})],cr.prototype,"template",2);var ba=cr;var FS=$(B());var xI=r((e,t,n,i,o)=>{let a=dt(n[1],o),s=n.slice(-1)[0];return We(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Dl=class Dl{};r(Dl,"Field"),d([g({flex:{controlId:xI,controlType:r(()=>FS.ControlType.GroupElement,"controlType"),createFlexChange:_},generate:Oe})],Dl.prototype,"visible",2);var Uf=Dl;var mo=$(B());function Wf(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}r(Wf,"importDateSettings");function VS(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];n==="selectedValues"&&(e[n]=i.join())}r(VS,"exportDateSettings");function II(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,o;return n==="selectedValues"&&typeof i=="string"&&(o=i.split(",")),n==="filter"&&typeof i=="object"&&(o=[],i.forEach((a,s)=>{o[s]=a,a.equals&&typeof a.equals=="string"&&(o[s].equals=a.equals.split(","))})),o}r(II,"importDateSettingsField");function NS(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 o in i){let a=i[o];e[n][o]=a,a.equals&&Array.isArray(a.equals)&&(e[n][o].equals=a.equals.join())}}r(NS,"exportDateSettingsField");var Ta=class Ta{};r(Ta,"DateRange"),d([g({manifest:{path:r(t=>fe(t)+mo.DATESETTINGSPATH,"path")}}),T({since:"1.77.0"})],Ta.prototype,"useDateRange",2),d([g({manifest:{path:r(t=>fe(t)+mo.DATESETTINGSPATH,"path"),import:Wf,export:VS}}),T({since:"1.77.0"})],Ta.prototype,"selectedValues",2),d([g({manifest:{path:r(t=>fe(t)+mo.DATESETTINGSPATH,"path")}}),T({since:"1.77.0"})],Ta.prototype,"exclude",2);var kf=Ta,Rl={controlId:We,controlType:r(()=>mo.ControlType.SmartFilterBar,"controlType"),createFlexChange:_},_f={path:r((e,t,n)=>`${fe(e)}${mo.DATESETTINGSPATH}/fields/${n}`,"path")},LS={..._f,import:II,export:NS},go=class go{};r(go,"SelectionFieldDateSettings"),d([g({manifest:LS}),T({since:"1.77.0"})],go.prototype,"selectedValues",2),d([g({manifest:_f}),T({since:"1.77.0"})],go.prototype,"exclude",2),d([g({manifest:_f}),T({since:"1.77.0"})],go.prototype,"customDateRangeImplementation",2),d([g({manifest:LS}),T({since:"1.77.0"})],go.prototype,"filter",2);var Bf=go,Qf=class Qf{};r(Qf,"SelectionFields");var Hf=Qf,Cn=class Cn{};r(Cn,"ListReportFilterBar"),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.38.0"})],Cn.prototype,"smartVariantManagement",2),d([g({flex:Rl}),T({since:"1.40.0"})],Cn.prototype,"liveMode",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.48.0"})],Cn.prototype,"variantManagementHidden",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.52.0"})],Cn.prototype,"subTitleIfVariantMgmtHidden",2),d([g({manifest:{path:r(t=>fe(t)+"/filterSettings","path"),import:Wf}}),T({since:"1.77.0"})],Cn.prototype,"dateSettings",2),d([g({flex:Rl}),T({since:"1.28.0"})],Cn.prototype,"showClearOnFB",2),d([g({flex:Rl}),T({since:"1.38.0"})],Cn.prototype,"showFilterConfiguration",2),d([g({flex:Rl}),T({since:"1.28.0"})],Cn.prototype,"showRestoreOnFB",2);var jl=Cn,ur=class ur extends jl{};r(ur,"AnalyticalListPageFilterBar"),d([g({manifest:{path:r(t=>fe(t),"path")}})],ur.prototype,"showGoButtonOnFilterBar",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.60.0"})],ur.prototype,"filterDefaultsFromSelectionVariant",2);var Gf=ur;var ln=$(B());var Bn=r((e,t,n,i,o)=>{if(i()===ln.ControlType.Button){let a=n[n.length-1],s=dt(n[1],o);return`${e}action::${a}::${s}::FormAction`}return We(e,t)},"getFormActionButtonId"),Vi=class Vi{};r(Vi,"FormAction"),d([g({flex:{controlId:Bn,controlType:r(()=>ln.ControlType.Button,"controlType"),createFlexChange:_},generate:Oe})],Vi.prototype,"visible",2),d([g({flex:{controlId:Bn,controlType:r(()=>ln.ControlType.Button,"controlType"),createFlexChange:_}})],Vi.prototype,"tooltip",2),d([g({flex:{controlId:Bn,controlType:r(()=>ln.ControlType.Button,"controlType"),createFlexChange:_}})],Vi.prototype,"icon",2),d([g({flex:{controlId:Bn,controlType:r(()=>ln.ControlType.Button,"controlType"),createFlexChange:_}})],Vi.prototype,"activeIcon",2),d([g({flex:{controlId:Bn,controlType:r(()=>ln.ControlType.Button,"controlType"),createFlexChange:_}}),T({since:"1.73.0"})],Vi.prototype,"type",2);var Kf=Vi,Ni=class Ni{};r(Ni,"FieldForAction"),d([g({flex:{controlId:Bn,controlType:r(()=>ln.ControlType.Button,"controlType"),createFlexChange:_},generate:Oe})],Ni.prototype,"visible",2),d([g({flex:{controlId:Bn,controlType:r(()=>ln.ControlType.Button,"controlType"),createFlexChange:_}})],Ni.prototype,"tooltip",2),d([g({flex:{controlId:Bn,controlType:r(()=>ln.ControlType.Button,"controlType"),createFlexChange:_}})],Ni.prototype,"icon",2),d([g({flex:{controlId:Bn,controlType:r(()=>ln.ControlType.Button,"controlType"),createFlexChange:_}})],Ni.prototype,"activeIcon",2),d([g({flex:{controlId:Bn,controlType:r(()=>ln.ControlType.Button,"controlType"),createFlexChange:_}}),T({since:"1.73.0"})],Ni.prototype,"type",2);var Jf=Ni;var Ve=$(B()),En=$(qa());var Yf=require("path"),WI=$(B()),WS=$(GS()),QS=require("fs");var QI=(0,Yf.join)(__dirname,"templates");var KI=r((e,t)=>{let n=(0,QS.readFileSync)(e,"utf8");return(0,WS.render)(n,t)},"renderTemplate");var Zf=r((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 KI((0,Yf.join)(QI,t+".xml"),n)},"getSingleColumnContent"),eu=r((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 o=Zf(i,t);n=n+`
|
|
83
83
|
`+o}return n+`
|
|
84
|
-
</core:FragmentDefinition>`},"getColumnFragmentContent"),
|
|
84
|
+
</core:FragmentDefinition>`},"getColumnFragmentContent"),tu=r(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
|
|
85
85
|
<Text text="Placeholder"/>`}),t+`
|
|
86
|
-
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var El=require("path");var kn="core:FragmentDefinition",Cl="sap.ui.table",Uf=new Map([[Ve.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Ve.ViewTemplateType.TreeTableColumnsExtension,{namespace:Cl,name:"Column"}],[Ve.ViewTemplateType.GridTableColumnsExtension,{namespace:Cl,name:"Column"}],[Ve.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Cl,name:"AnalyticalColumn"}]]),oI=new Map([[Ve.v2.FE_TEMPLATE_V2_LIST_REPORT,Ve.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Ve.v2.FE_TEMPLATE_V2_ALP,Ve.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Ve.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Ve.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),vv={type:"element",name:"Text",attributes:{text:"Placeholder"}},aI=JSON.stringify(vv);function rI(e,t){var i;let n=t?(i=e==null?void 0:e[kn])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let o=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=o.get(n[a]);o.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),o}else throw new Error("Invalid fragment, please check content")}r(rI,"getFragmentNamespaces");function Tv(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}r(Tv,"getTagName");function xl(e,t,n=e){let i=rI(n,!!(t||n!==e));if(t){let o=Uf.get(t);return Tv(o,i.get(o.namespace))}else{let o=Uf.keys();for(let a of o){let s=Uf.get(a),l=i?Tv(s,i.get(s.namespace)):s.name;if(e[l])return l}}}r(xl,"getTagNameFromFragmentJSON");function ir(e,t=e){let n=xl(e,void 0,t);return e[n]}r(ir,"getRootCustomColumnFromFragmentJSON");function sI(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let o in e[t]){let a=e[t][o];!n.includes(o)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${o}": "${a.toString()}"`)}return i+="}",i}r(sI,"addP13nData");function Sv(e,t){var l,c,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let o=i["core:CustomData"]._attributes.value,a=JSON.parse(o.substr(1,o.length)),s=t.findIndex(f=>f.columnKey===a.columnKey);return s<0?!1:(n=!0,o=sI(t,s),i["core:CustomData"]._attributes.value=o,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(c=t[s])==null?void 0:c.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}r(Sv,"handleFragmentColumn");function lI(e,t,n,i){let o=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=o.split("."),l=s[s.length-1]+Ve.FRAGMENTNAMEPART+a;for(let c of t){let p=c.dataSourceUri.split(El.sep);if(p[p.length-1]===l){let f=JSON.parse((0,Pn.xml2json)(c.fileContent,{compact:!0}));try{let u=xl(f[kn]);u&&(delete f[kn][u],c.fileContent=(0,Pn.json2xml)(JSON.stringify(f),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${c.dataSourceUri}, please check content`)}break}}}r(lI,"deleteColumnsFromFragment");function Pv(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===aI&&(e.splice(n,1),t-=1,t===0));n++);}r(Pv,"deleteNumberOfCells");function cI(e,t,n){let i=e.type?e.type.toLowerCase():"xml",o=e.fragmentName.substr(n.length+1).split("."),a=o[o.length-1]+Ve.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,Pn.xml2json)(s.fileContent)),c=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");c&&Pv(l.elements[0].elements,c.length),s.fileContent=(0,Pn.json2xml)(JSON.stringify(l),{spaces:4});break}}r(cI,"deleteCellsFromFragment");function Il(e,t,n,i){if(i){lI(e,i,t,n);let o=t.replace(Ve.ViewTemplateType.ResponsiveTableColumnsExtension,Ve.ViewTemplateType.ResponsiveTableCellsExtension),a=e[o];a&&cI(a,i,n)}}r(Il,"deleteColumnFromFragment");function pI(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let o=i;o<Object.keys(n).length;o++)t.elements[0].elements.push(vv)}r(pI,"addNewColumnsInFragment");function fI(e,t){let n=JSON.parse((0,Pn.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(o=>o.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)pI(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let o=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;Pv(a,o)}e.fileContent=(0,Pn.json2xml)(JSON.stringify(n),{spaces:4})}}r(fI,"updateNonEmptyCellsFragment");function uI(e,t,n){let i=!1;for(let o of e){let a=o.dataSourceUri.split(El.sep);if(a[a.length-1]===t){i=!0,o.changeIndicator=Ve.ChangeIndicator.Updated,!o.fileContent||Object.keys(o.fileContent).length===0?o.fileContent=Mf(n):fI(o,n);break}}return i}r(uI,"updateCellsFragment");function dI(e,t,n,i,o){var f;let a,s,l=t.manifest,c=pt(l,e),p=c.type?c.type.toLowerCase():"xml";c.type=p.toUpperCase();for(let u of n){if(!u.fragmentName){k(o,{severity:Ve.LogSeverity.Error,message:j.t("NOFRAGMENT",{columnKey:u.columnKey})});continue}t.manifestChangeIndicator=Ve.ChangeIndicator.Updated,c.fragmentName=u.fragmentName,c.className=u.className,a=((f=u.fragmentName)==null?void 0:f.replace(i,"<root>/webapp").replace(/[.]/g,El.sep))+Ve.FRAGMENTNAMEPART+p}if(e.indexOf(Ve.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Ve.ChangeIndicator.Updated;let u=e.replace(Ve.ViewTemplateType.ResponsiveTableColumnsExtension,Ve.ViewTemplateType.ResponsiveTableCellsExtension),m=pt(l,u),b=n.reduce((S,N)=>N.cellsFragmentName?N:S);b&&b.cellsFragmentName?(m.fragmentName=s=b.cellsFragmentName,m.className=n[0].className,m.type=p.toUpperCase()):qT(l,u)}return{manifestSection:c,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}r(dI,"exportCustomColumnsToManifest");function gI(e,t,n,i,o){let a=$f(e,t);if(a){let s=JSON.parse((0,Pn.xml2json)(a,{compact:!0})),l=ir(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let c=[n];c.splice(o,0,l),n=c}else n=[l]}return n}r(gI,"insertNewColumnInFragment");function mI(e,t){let n=[];for(let i=0;i<e.length;i++)Sv(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}r(mI,"processCustomColumnInArray");function yI(e,t,n){if(e){if(Array.isArray(e))mI(e,t);else if(!Sv(e,t)){let o=xl(n[kn]);o&&(delete n[kn][o],e=void 0)}}return e}r(yI,"maintainExistingColumnInFragment");function hI(e,t,n,i,o){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=gI(a,i,n,o,s)}return n}r(hI,"insertNewColumnsInFragment");function bI(e,t,n,i,o){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Ve.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=wf(i,o);else{let c=JSON.parse((0,Pn.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(c);l=ir(c[kn]),l=yI(l,i,c),l=hI(i,n,l,o,c);let f=xl(c,o);c[kn][f]=l;let u=JSON.stringify(c);u!==p&&(s.fileContent=(0,Pn.json2xml)(u,{compact:!0,spaces:4}))}break}return a}r(bI,"updateColumnsInFragment");function kf(e,t,n,i,o,a){let s=e.fragments,{manifestSection:l,lsFilePath:c,cellsFragmentName:p,fragmentType:f}=dI(t,e,n,i,a),u=JSON.parse(JSON.stringify(n)),m=l.fragmentName,b=m.substr(i.length+1),S=b.split(".");m=S[S.length-1]+Ve.FRAGMENTNAMEPART+f;let L=p==null?void 0:p.split("."),z=L?L[L.length-1]:null,ne=z?z+Ve.FRAGMENTNAMEPART+f:null,ie=bI(s,m,b,u,o),ce=!1;if(p?ce=uI(s,ne,n):ce=!0,!ie){let Y={fileContent:wf(u,o),dataSourceUri:c,changeIndicator:Ve.ChangeIndicator.Deleted};e.fragments.push(Y)}if(!ce){let Y={fileContent:Mf(n),dataSourceUri:c.replace(m,ne),changeIndicator:Ve.ChangeIndicator.Deleted};e.fragments.push(Y)}}r(kf,"exportCustomColumnsToFragment");var Ol=r((e,t,n,i)=>{var c,p,f,u;if(!e)return;let o=oI.get((c=e.component)==null?void 0:c.name);if(!i){let m=(u=(f=(p=e.component)==null?void 0:p.settings)==null?void 0:f.tableSettings)==null?void 0:u.type;m||(m="ResponsiveTable"),o==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(m="AnalyticalTable"),i=m+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+o+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var tt=U(B());var ro=r((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+tt.PropertyName.table:We(e,t),"getSmartTableControlId");function Dl(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let o in t)n.fields.push(o);return n}r(Dl,"importCreateParameters");function jl(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let o={};e[n]||(e[n]={}),i.forEach(a=>o[a]=e[n][a]||{path:a}),e[n]=o}r(jl,"exportCreateParametersFields");function TI(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let c in s)l.indexOf(c)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[c]=s[c],delete s[c]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}r(TI,"exportVariants");function vI(e,t){t.variants&&(Object.keys(t.variants).length>0?TI(e,t):delete e.variants)}r(vI,"exportQuickVariantSelectionX");var Fl=class Fl{};r(Fl,"CreateWithFilters"),d([g({manifest:{path:r(t=>fe(t)+"/createWithFilters","path")}})],Fl.prototype,"strategy",2);var _f=Fl;function rr(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}r(rr,"importType");function da(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}r(da,"exportType");function ga(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}r(ga,"deleteType");var Nl=class Nl{};r(Nl,"DataLoadSettings"),d([g({manifest:{path:r(t=>zT(t),"path")}}),T({since:"1.75.2"})],Nl.prototype,"loadDataOnAppLaunch",2);var Bf=Nl,Vl=class Vl{};r(Vl,"Fields4Dialog"),d([g({manifest:{path:r(t=>to(t)+"/createWithParameterDialog","path"),export:jl}}),T({since:"1.77.0"})],Vl.prototype,"fields",2);var Hf=Vl,or=class or{};r(or,"QuickVariantSelection"),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],or.prototype,"showCounts",2),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],or.prototype,"variants",2);var Gf=or,pa=class pa{};r(pa,"QuickVariantSelectionX"),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATHX,"path")}}),T({since:"1.48.0"})],pa.prototype,"showCounts",2),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATHX,"path")}}),T({since:"1.48.0"})],pa.prototype,"enableAutoBinding",2),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATHX,"path"),export:vI}}),T({since:"1.48.0"})],pa.prototype,"variants",2);var Wf=pa,xt=class xt{constructor(){this.getDeprecated=r(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}}),"getDeprecated")}};r(xt,"CommonTableSettings"),d([g({manifest:{key:"createWithParameterDialog",path:r(t=>to(t),"path"),import:Dl}}),T({since:"1.77.0"})],xt.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:We,controlType:r(()=>tt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.38.0"})],xt.prototype,"showTablePersonalisation",2),d([g({flex:{controlId:ro,controlType:r(()=>tt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.26.0"})],xt.prototype,"useExportToExcel",2),d([g({flex:{controlId:ro,controlType:r(()=>tt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.50.0"})],xt.prototype,"exportType",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.48.0"})],xt.prototype,"quickVariantSelection",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.48.0"})],xt.prototype,"quickVariantSelectionX",2),d([g({manifest:{path:r(t=>to(t),"path")}}),T({since:"1.38.0"})],xt.prototype,"multiSelect",2),d([g({manifest:{path:r(t=>to(t),"path")}}),T({since:"1.70.0"})],xt.prototype,"selectAll",2),d([g({manifest:{path:r(t=>to(t),"path")}}),T({since:"1.70.0"})],xt.prototype,"selectionLimit",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.75.2"})],xt.prototype,"dataLoadSettings",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.42.0"})],xt.prototype,"condensedTableLayout",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.56.0"}),ye("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],xt.prototype,"enableTableFilterInPageVariant",2),d([_e("toolBar")],xt.prototype,"toolBar",2);var xi=xt,_n=class _n extends xi{};r(_n,"ResponsiveTable"),d([g({manifest:{path:r(t=>fe(t),"path"),import:rr,export:da,delete:ga}}),T({since:"1.50.0"})],_n.prototype,"type",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.54.0"})],_n.prototype,"createWithFilters",2),d([g({flex:{controlId:ro,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_},generate:wn}),T({since:"1.52.0"})],_n.prototype,"popinLayout",2),d([g({flex:{controlId:ro,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_}})],_n.prototype,"includeItemInSelection",2),d([g({manifest:{path:r(t=>to(t),"path")}}),T({since:"1.77.0"})],_n.prototype,"inlineDelete",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],_n.prototype,"showDraftToggle",2),d([g({flex:{controlId:ro,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_}}),T({since:"1.16.0"})],_n.prototype,"growingThreshold",2);var so=_n,ar=class ar extends xi{};r(ar,"TreeTable"),d([g({manifest:{path:r(t=>fe(t),"path"),import:rr,export:da,delete:ga}}),T({since:"1.50.0"})],ar.prototype,"type",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],ar.prototype,"showDraftToggle",2);var Qf=ar,sn=class sn extends xi{};r(sn,"AnalyticalTable"),d([g({manifest:{path:r(t=>fe(t),"path"),import:rr,export:da,delete:ga}}),T({since:"1.50.0"})],sn.prototype,"type",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],sn.prototype,"qualifier",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.38.0"}),g({manifest:{path:r(t=>fe(t),"path")}})],sn.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],sn.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.60.0"})],sn.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],sn.prototype,"autoHide",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.78.0"})],sn.prototype,"allFiltersAsInParameters",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.54.0"})],sn.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],sn.prototype,"showDraftToggle",2);var Kf=sn,Bn=class Bn extends xi{};r(Bn,"TableALP"),d([g({manifest:{path:r(t=>fe(t),"path"),import:rr,export:da,delete:ga}}),T({since:"1.50.0"})],Bn.prototype,"type",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],Bn.prototype,"qualifier",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.38.0"}),g({manifest:{path:r(t=>fe(t),"path")}})],Bn.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],Bn.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.60.0"})],Bn.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],Bn.prototype,"autoHide",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.78.0"})],Bn.prototype,"allFiltersAsInParameters",2);var ua=Bn,Ll=class Ll extends ua{};r(Ll,"ALPResponsiveTable"),d([g({flex:{controlId:ro,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_}}),T({since:"1.16.0"})],Ll.prototype,"growingThreshold",2);var Jf=Ll,Yf=class Yf extends ua{};r(Yf,"ALPGridTable");var qf=Yf,Zf=class Zf extends ua{};r(Zf,"ALPAnalyticalTable");var Xf=Zf,fa=class fa extends xi{};r(fa,"GridTable"),d([g({manifest:{path:r(t=>fe(t),"path"),import:rr,export:da,delete:ga}}),T({since:"1.50.0"})],fa.prototype,"type",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.54.0"})],fa.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],fa.prototype,"showDraftToggle",2);var zf=fa;var sr=U(B());var SI=r((e,t,n)=>{let{actionId:i}=Bt(n);return`${e}action::${kt(i).replace(":2f","::")}`},"getActionButtonId"),PI=r((e,t,n)=>{let{actionId:i}=Bt(n);return`${e}template::${i}`},"getStandardActionButtonId"),AI=r((e,t,n)=>{let{actionId:i}=Bt(n);return`${e}${tl}${i}`},"getStandardFooterActionOPButtonId"),pu=r((e,t,n)=>{let{semanticObjectId:i,actionId:o}=Bt(n);return`${e}action::${i}::${kt(o)}`},"buildIntentBasedActionId"),CI=r((e,t,n)=>{let{actionId:i}=Bt(n);return`${e}action::${kt(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Ii={controlId:SI,controlType:r(()=>sr.ControlType.Button,"controlType"),createFlexChange:_},lr={controlId:PI,controlType:r(()=>sr.ControlType.Button,"controlType"),createFlexChange:_},Av={controlId:AI,controlType:r(()=>sr.ControlType.Button,"controlType"),createFlexChange:_},Rl={controlId:CI,controlType:r(()=>sr.ControlType.Button,"controlType"),createFlexChange:_},lo=class lo{};r(lo,"Action"),d([g({flex:Ii})],lo.prototype,"tooltip",2),d([g({flex:Ii})],lo.prototype,"icon",2),d([g({flex:Ii})],lo.prototype,"activeIcon",2),d([g({flex:Ii})],lo.prototype,"type",2);var eu=lo,co=class co{};r(co,"ToolBarAction"),d([g({flex:Ii})],co.prototype,"tooltip",2),d([g({flex:Ii})],co.prototype,"icon",2),d([g({flex:Ii})],co.prototype,"activeIcon",2),d([g({flex:Ii})],co.prototype,"type",2);var tu=co,po=class po{};r(po,"FooterAction"),d([g({flex:Rl})],po.prototype,"tooltip",2),d([g({flex:Rl})],po.prototype,"icon",2),d([g({flex:Rl})],po.prototype,"activeIcon",2),d([g({flex:Rl})],po.prototype,"type",2);var nu=po,$l=class $l{};r($l,"Share"),d([g({flex:lr})],$l.prototype,"visible",2);var iu=$l,wl=class wl{};r(wl,"ShareOP"),d([g({flex:lr})],wl.prototype,"visible",2);var ou=wl,Ml=class Ml{};r(Ml,"UpAndDownNavigationOP"),d([g({flex:lr})],Ml.prototype,"visible",2);var au=Ml,Ul=class Ul{};r(Ul,"SaveAndEditOP"),d([g({flex:Av,generate:Fe})],Ul.prototype,"visible",2);var ru=Ul,kl=class kl{};r(kl,"HeaderActionStandard"),d([g({flex:lr})],kl.prototype,"visible",2);var su=kl,_l=class _l{};r(_l,"ObjectPageHeaderActionStandard"),d([g({flex:lr})],_l.prototype,"visible",2);var lu=_l,Bl=class Bl{};r(Bl,"ObjectPageFooterActionStandard"),d([g({flex:Av})],Bl.prototype,"visible",2);var cu=Bl;var fr=U(B());var EI=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a}=Bt(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${s}:::sAction::${a}`},"buildColumnActionId"),xI=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a,semanticObjectId:s}=Bt(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),II=r((e,t,n)=>{let{actionId:i}=Bt(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),fu={controlId:EI,controlType:r(()=>fr.ControlType.TableColumn,"controlType"),createFlexChange:_},cr={controlId:II,controlType:r(()=>fr.ControlType.Button,"controlType"),createFlexChange:_},Cv={...fu,controlId:xI},Hl={...cr,controlId:pu},pr=class pr{};r(pr,"TableColumn"),d([g({flex:{controlId:tf,controlType:r(()=>fr.ControlType.TableColumn,"controlType"),createFlexChange:_}})],pr.prototype,"width",2),d([g({flex:{controlId:tf,controlType:r(()=>fr.ControlType.TableColumn,"controlType"),createFlexChange:_},generate:wn})],pr.prototype,"hAlign",2);var uu=pr,ri=class ri{};r(ri,"TableColumnAction"),d([g({flex:fu})],ri.prototype,"width",2),d([g({flex:fu,generate:wn})],ri.prototype,"hAlign",2),d([g({flex:cr})],ri.prototype,"tooltip",2),d([g({flex:cr})],ri.prototype,"icon",2),d([g({flex:cr})],ri.prototype,"activeIcon",2),d([g({flex:cr})],ri.prototype,"type",2);var Gl=ri,si=class si extends Gl{};r(si,"TableColumnActionIntentBased"),d([g({flex:Cv})],si.prototype,"width",2),d([g({flex:Cv,generate:wn})],si.prototype,"hAlign",2),d([g({flex:Hl})],si.prototype,"tooltip",2),d([g({flex:Hl})],si.prototype,"icon",2),d([g({flex:Hl})],si.prototype,"activeIcon",2),d([g({flex:Hl})],si.prototype,"type",2);var du=si,mu=class mu{};r(mu,"TableCustomColumn");var gu=mu;var hu=class hu{};r(hu,"ToolBar");var yu=hu;var fo=U(B());var ur=r(e=>e+fo.PropertyName.chart,"getSmartChartControlId"),Oi=class Oi{};r(Oi,"ChartSettings"),d([g({flex:{controlId:ur,controlType:r(()=>fo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Oi.prototype,"showLegendButton",2),d([g({flex:{controlId:ur,controlType:r(()=>fo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Oi.prototype,"showDownloadButton",2),d([g({flex:{controlId:ur,controlType:r(()=>fo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],Oi.prototype,"showChartTypeSelectionButton",2),d([g({flex:{controlId:ur,controlType:r(()=>fo.ControlType.SmartChart,"controlType"),exportFlexValue:r((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:r((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue"),createFlexChange:_}})],Oi.prototype,"ignoredChartTypes",2),d([g({manifest:{path:r(t=>XT(t),"path")}}),T({since:"1.81.0"})],Oi.prototype,"showDataLabel",2);var bu=Oi;var li=class li{};r(li,"KPISettings"),d([g({manifest:{path:r((t,n,i)=>no(t,i),"path")}})],li.prototype,"model",2),d([g({manifest:{path:r((t,n,i)=>no(t,i),"path")}})],li.prototype,"entitySet",2),d([g({manifest:{path:r((t,n,i)=>no(t,i),"path")}})],li.prototype,"qualifier",2),d([g({manifest:{path:r((t,n,i)=>no(t,i),"path")}})],li.prototype,"filterable",2),d([g({manifest:{path:r((t,n,i)=>no(t,i),"path")}})],li.prototype,"detailNavigation",2),d([g({manifest:{path:r((t,n,i)=>no(t,i),"path")}})],li.prototype,"groupId",2);var Tu=li;var Ev=U(B());var OI=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",We(e,n)},"getAvatarControlId"),Fi=class Fi{};r(Fi,"ObjectPageHeader"),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.46.0"})],Fi.prototype,"showRelatedApps",2),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.46.0"})],Fi.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.48.0"})],Fi.prototype,"simpleHeaderFacets",2),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.48.0"}),ye("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Fi.prototype,"showHeaderAsCarouselOnDesktop",2),d([g({flex:{controlId:OI,controlType:r(()=>Ev.ControlType.Avatar,"controlType"),createFlexChange:_},generate:Fe})],Fi.prototype,"displayShape",2);var vu=Fi;var Wl=U(B());var FI=r((e,t,n,i)=>{if(i()===Wl.ControlType.Button||i()===Wl.ControlType.HeaderAction){let o=n[2];return`${e}action::${kt(o)}`}return We(e,t)},"getActionButtonId"),dr={controlId:FI,controlType:r(()=>Wl.ControlType.HeaderAction,"controlType"),createFlexChange:_},Ni=class Ni{};r(Ni,"HeaderAction"),d([g({flex:dr,generate:Fe})],Ni.prototype,"visible",2),d([g({flex:dr})],Ni.prototype,"tooltip",2),d([g({flex:dr})],Ni.prototype,"icon",2),d([g({flex:dr})],Ni.prototype,"activeIcon",2),d([g({flex:dr})],Ni.prototype,"type",2);var Su=Ni;var gr=U(B());var zl="header::headerEditable::",NI=r((e,t,n,i,o)=>`${e}${zl}${o}`,"getDataPointHeaderSectionId"),VI=r((e,t,n,i,o)=>`${e}${zl}${o}::ContactAddress`,"getAddressHeaderSectionId"),LI=r((e,t,n,i,o)=>`${e}${zl}${o}::SmartMicroChartVBox`,"getChartHeaderSectionId"),xv=r((e,t,n,i,o)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=o!=null&&o.includes(gr.FACETTITLEPREFIX)?o.split(gr.FACETTITLEPREFIX)[1]:a;return`${e}${zl}${s}::Form`},"getFormHeaderSectionId"),mr={controlType:r(()=>gr.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:_},Ql=class Ql{};r(Ql,"CommonHeaderFacetSettings"),d([g({flex:{...mr,controlId:xv},generate:Fe})],Ql.prototype,"visible",2);var uo=Ql,Kl=class Kl extends uo{};r(Kl,"ObjectPageHeaderSectionForm"),d([g({flex:{...mr,controlId:xv}})],Kl.prototype,"visible",2);var Pu=Kl,Jl=class Jl extends uo{};r(Jl,"ObjectPageHeaderSectionChart"),d([g({flex:{...mr,controlId:LI}})],Jl.prototype,"visible",2);var Au=Jl,ql=class ql extends uo{};r(ql,"ObjectPageHeaderSectionDataPoint"),d([g({flex:{...mr,controlId:NI}})],ql.prototype,"visible",2);var Cu=ql,Xl=class Xl extends uo{};r(Xl,"ObjectPageHeaderSectionAddress"),d([g({flex:{...mr,controlId:VI}})],Xl.prototype,"visible",2);var Eu=Xl,Iu=class Iu{};r(Iu,"HeaderSections");var xu=Iu;var Fu=U(B());var DI=r((e,t,n,i)=>{if(i()===Fu.ControlType.Button){let{actionId:o}=Bt(n);return`${e}action::${kt(o)}::Determining`}return We(e,t)},"getFooterActionButtonId"),yr={controlId:DI,controlType:r(()=>Fu.ControlType.Button,"controlType"),createFlexChange:_},Vi=class Vi{};r(Vi,"ObjectPageFooterAction"),d([g({flex:yr,generate:Fe})],Vi.prototype,"visible",2),d([g({flex:yr})],Vi.prototype,"tooltip",2),d([g({flex:yr})],Vi.prototype,"icon",2),d([g({flex:yr})],Vi.prototype,"activeIcon",2),d([g({flex:yr})],Vi.prototype,"type",2);var Ou=Vi;var hr=U(B());var Yl=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",We(e,n)},"getControlId"),go=class go{};r(go,"ObjectPageLayout"),d([g({flex:{controlId:Yl,controlType:r(()=>hr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_},generate:Fe})],go.prototype,"showHeaderContent",2),d([g({flex:{controlId:Yl,controlType:r(()=>hr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}})],go.prototype,"showAnchorBar",2),d([g({flex:{controlId:Yl,controlType:r(()=>hr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}})],go.prototype,"useIconTabBar",2),d([g({flex:{controlId:Yl,controlType:r(()=>hr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}}),T({since:"1.34.0"})],go.prototype,"alwaysShowContentHeader",2);var Nu=go;var Iv=U(B());var mo=class mo{};r(mo,"BaseCustomSection"),d([g({manifest:{path:ai,export:!1,import:r((t,n)=>n.split("|")[2],"import")}}),T({since:"1.52.0"})],mo.prototype,"relatedFacet",2),d([g({manifest:{path:ai,export:!1,import:r((t,n)=>n.split("|")[0],"import")}}),T({since:"1.52.0"})],mo.prototype,"relativePosition",2),d([g({manifest:{path:r((t,n,i)=>ai(t,{},i,Iv.ManifestSection.generic),"path")}}),T({since:"1.52.0"})],mo.prototype,"title",2),d([g({manifest:{path:ai}}),T({since:"1.52.0"})],mo.prototype,"className",2);var vr=mo,br=class br extends vr{};r(br,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:ai}}),T({since:"1.52.0"})],br.prototype,"fragmentName",2),d([g({manifest:{path:ai}}),T({since:"1.52.0"})],br.prototype,"type",2);var Sr=br,Tr=class Tr extends vr{};r(Tr,"ObjectPageCustomSectionView"),d([g({manifest:{path:ai}}),T({since:"1.52.0"})],Tr.prototype,"viewName",2),d([g({manifest:{path:ai}}),T({since:"1.52.0"})],Tr.prototype,"type",2);var Pr=Tr;var Wt=U(B());var Ov=r((e,t,n,i,o)=>{let s=[ut(n[1],o),Wt.DefinitionName.Table];return We(e,s)},"getTableSectionControlId"),Fv=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"FormGroup"];return We(e,s)},"getFormSectionControlId"),Nv=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"Chart"];return We(e,s)},"getChartSectionControlId"),yo=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"Section"];return We(e,s)},"getSectionControlId"),Vv=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"SubSection"];return We(e,s)},"getSubSectionControlId"),Lv=r((e,t,n,i,o)=>{let s=[ut(n[1],o),"ContactsList"];return We(e,s)},"getContactSubSectionControlId"),Zl=class Zl{};r(Zl,"ObjectPageSectionV2"),d([g({flex:{controlId:yo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],Zl.prototype,"visible",2);var Vu=Zl,ec=class ec{};r(ec,"ObjectPageSectionFormV2"),d([g({flex:{controlId:yo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],ec.prototype,"visible",2);var Lu=ec,tc=class tc{};r(tc,"ObjectPageSectionChartV2"),d([g({flex:{controlId:yo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],tc.prototype,"visible",2);var Du=tc,nc=class nc{};r(nc,"ObjectPageSectionTableV2"),d([g({flex:{controlId:yo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],nc.prototype,"visible",2);var ju=nc,ic=class ic{};r(ic,"ObjectPageSectionAddressV2"),d([g({flex:{controlId:yo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],ic.prototype,"visible",2);var Ru=ic,oc=class oc{};r(oc,"ObjectPageSectionContactV2"),d([g({flex:{controlId:yo,controlType:r(()=>Wt.ControlType.Section,"controlType"),createFlexChange:_},generate:Fe})],oc.prototype,"visible",2);var $u=oc,ac=class ac{};r(ac,"ObjectPageSubSectionV2"),d([g({flex:{controlId:Vv,controlType:r(()=>Wt.ControlType.SubSection,"controlType"),createFlexChange:_},generate:Fe})],ac.prototype,"visible",2);var wu=ac,rc=class rc{};r(rc,"ObjectPageSubSectionFormV2"),d([g({flex:{controlId:Fv,controlType:r(()=>Wt.ControlType.Group,"controlType"),createFlexChange:_},generate:Fe})],rc.prototype,"visible",2);var Mu=rc,sc=class sc{};r(sc,"ObjectPageSubSectionChartV2"),d([g({flex:{controlId:Nv,controlType:r(()=>Wt.ControlType.SmartChart,"controlType"),createFlexChange:_},generate:Fe})],sc.prototype,"visible",2);var Uu=sc,lc=class lc{};r(lc,"ObjectPageSubSectionContactV2"),d([g({flex:{controlId:Lv,controlType:r(()=>Wt.ControlType.SubSection,"controlType"),createFlexChange:_},generate:Fe})],lc.prototype,"visible",2);var ku=lc,cc=class cc{};r(cc,"ObjectPageSubSectionTableV2"),d([g({flex:{controlId:Ov,controlType:r(()=>Wt.ControlType.SmartTable,"controlType"),createFlexChange:_},generate:Fe})],cc.prototype,"visible",2);var _u=cc;var pc=class pc{};r(pc,"ObjectPageChart"),d([g({manifest:{path:YT}}),T({since:"1.78.0"})],pc.prototype,"variantManagement",2);var Bu=pc,fc=class fc{};r(fc,"GlobalChartSettings"),d([g({manifest:{path:r(t=>Nt(t)+"/chartSettings","path")}}),T({since:"1.78.0"})],fc.prototype,"variantManagement",2);var Hu=fc;var qt=U(B());var ho=r((e,t,n,i,o)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=qt.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=ut(a[0],o),We(e,a)},"getSmartTableControlId"),Ar=class Ar{};r(Ar,"QuickVariantSelectionOP"),d([g({manifest:{path:r((t,n,i)=>Tn(t,n,i)+qt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],Ar.prototype,"showCounts",2),d([g({manifest:{path:r((t,n,i)=>Tn(t,n,i)+qt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],Ar.prototype,"variants",2);var Gu=Ar,uc=class uc{};r(uc,"Fields4DialogOP"),d([g({manifest:{path:r((t,n,i)=>on(t,n,i)+"/createWithParameterDialog","path"),export:jl}}),T({since:"1.77.0"})],uc.prototype,"fields",2);var Wu=uc,It=class It{constructor(){this.getDeprecated=r(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};r(It,"CommonTableSettingsForSections"),d([g({manifest:{key:"createWithParameterDialog",path:on,import:Dl}}),T({since:"1.77.0"})],It.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:ho,controlType:r(()=>qt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.28.0"})],It.prototype,"editable",2),d([g({flex:{controlId:ho,controlType:r(()=>qt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.95.0"}),ye("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],It.prototype,"showPasteButton",2),d([g({manifest:{path:on}}),T({since:"1.54.0"})],It.prototype,"multiSelect",2),d([g({manifest:{path:on}}),T({since:"1.70.0"})],It.prototype,"selectAll",2),d([g({manifest:{path:on}}),T({since:"1.70.0"})],It.prototype,"selectionLimit",2),d([g({manifest:{path:Tn}}),T({since:"1.63.0"})],It.prototype,"quickVariantSelection",2),d([g({flex:{controlId:ho,controlType:r(()=>qt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.26.0"})],It.prototype,"useExportToExcel",2),d([g({flex:{controlId:ho,controlType:r(()=>qt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.50.0"})],It.prototype,"exportType",2),d([g({manifest:{path:Tn}}),T({since:"1.48.5"}),ye("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],It.prototype,"createMode",2),d([g({manifest:{path:Tn}}),T({since:"1.61.0"})],It.prototype,"disableDefaultInlineCreateSort",2),d([g({manifest:{path:on}}),T({since:"1.78.0"})],It.prototype,"variantManagement",2),d([_e("toolBar")],It.prototype,"toolBar",2);var bo=It,Li=class Li extends bo{};r(Li,"ObjectPageResponsiveTable"),d([g({manifest:{path:on}})],Li.prototype,"type",2),d([g({flex:{controlId:ho,controlType:r(()=>qt.ControlType.Table,"controlType"),createFlexChange:_}})],Li.prototype,"includeItemInSelection",2),d([g({flex:{controlId:ho,controlType:r(()=>qt.ControlType.Table,"controlType"),createFlexChange:_},generate:Fe}),T({since:"1.52.0"})],Li.prototype,"popinLayout",2),d([g({manifest:{path:on}}),T({since:"1.77.0"})],Li.prototype,"inlineDelete",2),d([g({flex:{controlId:ho,controlType:r(()=>qt.ControlType.Table,"controlType"),createFlexChange:_}}),T({since:"1.16.0"})],Li.prototype,"growingThreshold",2);var To=Li,Cr=class Cr extends bo{};r(Cr,"ObjectPageAnalyticalTable"),d([g({manifest:{path:on}})],Cr.prototype,"type",2),d([g({manifest:{path:Tn}}),T({since:"1.67.0"})],Cr.prototype,"condensedTableLayout",2);var Qu=Cr,Er=class Er extends bo{};r(Er,"ObjectPageGridTable"),d([g({manifest:{path:on}})],Er.prototype,"type",2),d([g({manifest:{path:Tn}}),T({since:"1.67.0"})],Er.prototype,"condensedTableLayout",2);var Ku=Er,xr=class xr extends bo{};r(xr,"ObjectPageTreeTable"),d([g({manifest:{path:on}})],xr.prototype,"type",2),d([g({manifest:{path:Tn}}),T({since:"1.67.0"})],xr.prototype,"condensedTableLayout",2);var Ju=xr,ci=class ci{};r(ci,"GlobalTableSettings"),d([g({manifest:{path:io}}),T({since:"1.70.0"})],ci.prototype,"selectAll",2),d([g({manifest:{path:io}}),T({since:"1.78.0"})],ci.prototype,"variantManagement",2),d([g({manifest:{path:io}})],ci.prototype,"type",2),d([g({manifest:{path:io}}),T({since:"1.54.0"})],ci.prototype,"multiSelect",2),d([g({manifest:{path:io}}),T({since:"1.67.0"})],ci.prototype,"condensedTableLayout",2),d([g({manifest:{path:io}}),T({since:"1.77.0"})],ci.prototype,"inlineDelete",2);var qu=ci;var Dv=U(B());var jI=r((e,t,n,i,o)=>{let{actionId:a}=Bt(n),s=ut(n[1],o);return`${e}${s}::action::${kt(a).replace(":2f","::")}`},"getActionButtonId"),Ir={controlId:jI,controlType:r(()=>Dv.ControlType.Button,"controlType"),createFlexChange:_},Di=class Di{};r(Di,"ObjectPageToolBarAction"),d([g({flex:Ir,generate:Fe})],Di.prototype,"visible",2),d([g({flex:Ir})],Di.prototype,"tooltip",2),d([g({flex:Ir})],Di.prototype,"icon",2),d([g({flex:Ir})],Di.prototype,"activeIcon",2),d([g({flex:Ir})],Di.prototype,"type",2);var Xu=Di;var Vt=U(B());function Yu(e,t,n,i){if(t.controlType===Vt.ControlType.TableColumn||t.controlType===Vt.ControlType.Button){let o=t.controlId.split("-"),a=o[o.length-1],s=t.controlType===Vt.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Vt.VOCWITHCOLONS),c=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(c!=null&&c.startsWith("DataField")?c=c==null?void 0:c.replace("/",":2f"):c=c==null?void 0:c.replace("/","_"),c!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}r(Yu,"addFlexChangeToConfigTableColumn");function dc(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Vt.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}r(dc,"addFlexChangeToConfigTable");function gc(e,t,n,i,o="LineItems"){e.flex.forEach(a=>{var p,f,u,m,b;let s=yn(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(f=s.content)!=null&&f.newBinding?s.content.newBinding:(u=s.content)==null?void 0:u.newValue,controlType:s.controlType,creation:s.creation},c;if(s.controlType===Vt.ControlType.TableColumn)c=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let S=(!t.table.type||t.table.type===Vt.v2.TableTypeV2.ResponsiveTable)&&!((m=l.controlId)!=null&&m.includes(Vt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Vt.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;c=(b=e.jsonSchema.definitions[`${S}<${o}>`])==null?void 0:b.properties[l.propertyId]}c&&Yu(t.table,l,n,i)})}r(gc,"importFlexChangesOfColumn");function ji(e){return e.replace("/","::")}r(ji,"convertActionKey");function Zu(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}r(Zu,"convertSelector");function RI(e,t,n,i){var a,s,l,c;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((c=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:c.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}r(RI,"addSmartFilterBarFlex");function $I(e,t){let n=Object.keys(t.definitions).filter(o=>o.startsWith(`${e}`)&&o.includes("<")),i=new Map;return n.forEach(o=>{var l;let a=kt((l=o.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let c=a.split(":::"),p=c.find(m=>m.startsWith("sSemanticObject")),f=c.find(m=>m.startsWith("sAction")),u=f.split("sAction::")[1].replace(":2f","::");if(p){let m=`${p.split("::")[1]}::${u}`,b=`${c[0]}:::${p}:::${f}`;i.set(m,o),i.set(o,b)}else i.set(u,o),i.set(o,a)}else i.set(a.replace(":2f","::"),o),i.set(o,a)}),i}r($I,"filterActions");function wI(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}r(wI,"addColumnActionConfigPart");function MI(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}r(MI,"getActionId");function UI(e,t,n,i,o){[{name:"HeaderActionStandard",configPart:e.header.actions,id:o},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:o},{name:"FooterAction",configPart:e.footer.actions,id:o&&o.includes("Determining")&&o.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:o},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:o},{name:"TableColumnAction",configPart:e.table.columns,id:o}].forEach(s=>{var c,p;let l=$I(s.name,i);if(l.has(s.id)){let f=l.get(s.id),u=(c=f.split("<")[1])==null?void 0:c.split(">")[0];s.name==="TableColumnAction"&&wI(s,e,u);let m=s.configPart[u];((p=i.definitions[f])==null?void 0:p.properties[t])&&m&&(m[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}r(UI,"addActionFlex");function kI(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=dt(e[Ee.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[Ee.PropertyName.chart],t):e[Ee.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}r(kI,"addSmartChartFlex");function mc(e,t,n,i){var o,a;try{let s=yn(t),l=s.content.property;if((o=s.controlId)!=null&&o.includes(Ee.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(Ee.PageTypeV2.AnalyticalListPage))switch(s.controlId=Zu(s.controlId),s.controlType){case Ee.ControlType.SmartFilterBar:{RI(e,l,s,n);break}case Ee.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case Ee.ControlType.Button:{let c=MI(s);c&&UI(e,l,s,n,c);break}case Ee.ControlType.SmartChart:{kI(e,l,s,n);break}default:break}}catch(s){k(i,{severity:Ee.LogSeverity.Error,message:j.t("FLEXERROR")},...s)}}r(mc,"addFlex");function _I(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let o in i.tableSettings)i[o]=i.tableSettings[o];delete i.tableSettings}}}r(_I,"adjustQuickVariantSelectionX");function st(e,t,n,i,o,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let c in n.properties){let p=dt(e,c);if(p!=null&&p.manifest){let f=p.manifest.path([i],t,a);s=pt(t,f),qo(p,s,c,e),qs(l,s,f,o)}_I(c,e)}}r(st,"transferSettingsOfObject");function yc(e,t){var o,a,s,l,c,p,f,u,m;let n=e[Ee.ManifestSection.generic].pages[t],i=Ee.v2.TableTypeV2.ResponsiveTable;return(o=e[Ee.ManifestSection.generic].pages[t].component)!=null&&o.settings&&((s=(a=e[Ee.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[Ee.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((f=(p=(c=n.component)==null?void 0:c.settings)==null?void 0:p.tableSettings)==null?void 0:f.type)||((u=n.component)==null?void 0:u.settings.tableType):((m=n.component)==null?void 0:m.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=Ee.v2.TableTypeV2.AnalyticalTable),i}r(yc,"determineTableType");function jv(e,t,n,i,o,a,s){var l,c;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,f=JSON.parse(p.substr(1,p.length)),u=e.Text&&e.Text._attributes&&e.Text._attributes.text;u||(u=e.Label&&e.Label._attributes&&e.Label._attributes.text);let m={...(l=e._attributes)!=null&&l.id?{id:(c=e._attributes)==null?void 0:c.id}:{},...u?{text:u}:{},...f,...f.columnKey?{columnKey:f.columnKey}:{},...f.columnIndex?{columnIndex:Number(f.columnIndex)}:{},...f.leadingProperty?{leadingProperty:f.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(m.cellsFragmentName=s),o.table.columns.custom||(o.table.columns.custom=[]),o.table.columns.custom.push(m)}}r(jv,"evaluateFragmentColumn");function BI(e,t,n,i){let o;if(e===Ee.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,c]=a.split("|");s===Ee.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&c===i&&(o=t[a].fragmentName)}return o}r(BI,"determineCellsFragmentName");function HI(e,t,n,i,o,a,s){var l;if(e[0]){let p=JSON.parse((0,Rv.xml2json)(e[0].fileContent,{compact:!0}))[kn];try{let f=ir(p);if(f)if((l=t[Ee.PropertyName.table])!=null&&l.columns||(t[Ee.PropertyName.table].columns={}),Array.isArray(f))for(let u of f)jv(u,n,i,o,t,a,s);else jv(f,n,i,o,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}r(HI,"analyzeFilteredFragments");function GI(e,t,n,i,o){var a;for(let s of Object.keys(e)){let l=s.split("|"),[c,p]=l,f=l[2];if(c&&p===t){let u=e[s].type?e[s].type.toLowerCase():"xml",m=e[s].fragmentName;if(!m)continue;let b=BI(c,e,p,f),S=m.split(".");m=S[S.length-1]+Ee.FRAGMENTNAMEPART+u;let N=i.fragments.filter(L=>L.dataSourceUri.endsWith(m));try{HI(N,n,e,s,f,c,b)}catch(L){i.logger.error(L.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(L=>{gc(i,n,L.id,L,o)})}}}r(GI,"processViewExtensions");function ma(e,t,n,i,o,a="LineItems"){var s,l,c;if(t.fragments&&(c=(l=(s=t.manifest[Ee.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&c["sap.ui.viewExtensions"]){let p=Ee.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),f=t.manifest[Ee.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!f)return;let u=o&&o.target?o.target:n.entitySet;GI(f,u,e,t,a)}}r(ma,"addFragments");function hc(e,t,n){if(e.header={actions:{}},n[Ee.DefinitionName.HeaderActionsStandard]){let i=n[Ee.DefinitionName.HeaderActionsStandard].properties;for(let o in i)e.header.actions[o]=t.createInstance(Ee.PageTypeV2.ListReport,o,{})}}r(hc,"importHeaderActions");var He=U(B());var wv=U(B());var ed={};jo(ed,{ANNOERR:()=>lO,ANNOTATIONFILE:()=>cO,COMPONENTNOTDEFINED:()=>pO,CONTEXTPATHCOULDNOTBERESOLVED:()=>oO,ENTITYSETNOTFOUND:()=>iO,FLEXERROR:()=>vO,INCONSISTENTSCHEMA:()=>IO,INVALIDANCHOR:()=>SO,INVALIDTARGETDEFINITION:()=>AO,NOALP:()=>rO,NOBASEPATH:()=>KI,NOCHARTS:()=>gO,NOENTITYSET:()=>YI,NOENTITYTYPE4SET:()=>ZI,NOFE:()=>qI,NOFRAGMENT:()=>PO,NOGENERICSCHEMA:()=>XI,NOID4SECTION:()=>CO,NOLINEITEMANDCHARTS:()=>mO,NOLINEITEMS:()=>dO,NOLR:()=>aO,NOPAGEFORENTITYSET:()=>zI,NOPAGES:()=>JI,NOPRESENTATIONVARIANT:()=>eO,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>tO,NOPRESENTATIONVARIANTFORSPV:()=>nO,NOROUTING:()=>fO,NOROUTINGID:()=>TO,NOTARGET:()=>bO,NOTARGETS:()=>hO,NOTEMPLATE:()=>sO,NOUIANNOTATIONS:()=>uO,NOVISUALIZATIONS:()=>yO,TYPEERROR:()=>xO,UNEXISTING_ANNOTATION_PATH:()=>OO,UNKNOWNMINUI5VERSION:()=>QI,WRONGMINUI5VERSION:()=>WI,XMLPARSEFAILURE:()=>EO,default:()=>FO});var WI="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",QI="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",KI="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",JI="No pages found in manifest for app with id '{{- appId}}'",qI="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",XI="No generic schema found while generating page schema for {{- pageType}}",zI="No page found in manifest for entitySet '{{- entitySet}}'",YI="No entitySet defined for page '{{- pageName}}'",ZI="No entityType could be found for the given entity set '{{- entitySetName}}'",eO="No PresentationVariant defined for '{{- key}}'",tO="No PresentationVariant found for default SelectionPresentationVariant",nO="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",iO="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",oO="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",aO="No page found in manifest for list report",rO="No page found in manifest for analytical list page",sO="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",lO="Error while parsing annotation files",cO="Annotation file: '{{- file}}'",pO="Component name is not defined for page '{{- pageName}}'",fO="Incomplete manifest definition: no routing defined",uO="No UI Annotation defined for entity type '{{- entityType }}'",dO="UI.LineItem annotation has not been defined",gO="UI.Chart annotation has not been defined",mO="Neither UI.LineItem nor UI.Chart annotation has been defined",yO="Empty Collection for Visualizations",hO="Incomplete manifest definition: no targets defined",bO="Invalid reference: annotation target '{{- target}}' not found",TO="No page found in manifest for routingId '{{- routingId}}'",vO="Error while parsing flex change",SO="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",PO="fragmentName is undefined for columnKey '{{- columnKey}}'",AO="Invalid routing target definition in manifest: '{{- target}}'",CO="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",EO="Parsing of XML file failed with error - {{- error}}",xO="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",IO="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",OO="The annotation path doesn't exist.",FO={WRONGMINUI5VERSION:WI,UNKNOWNMINUI5VERSION:QI,NOBASEPATH:KI,NOPAGES:JI,NOFE:qI,NOGENERICSCHEMA:XI,NOPAGEFORENTITYSET:zI,NOENTITYSET:YI,NOENTITYTYPE4SET:ZI,NOPRESENTATIONVARIANT:eO,NOPRESENTATIONVARIANTFORDEFAULTSPV:tO,NOPRESENTATIONVARIANTFORSPV:nO,ENTITYSETNOTFOUND:iO,CONTEXTPATHCOULDNOTBERESOLVED:oO,NOLR:aO,NOALP:rO,NOTEMPLATE:sO,ANNOERR:lO,ANNOTATIONFILE:cO,COMPONENTNOTDEFINED:pO,NOROUTING:fO,NOUIANNOTATIONS:uO,NOLINEITEMS:dO,NOCHARTS:gO,NOLINEITEMANDCHARTS:mO,NOVISUALIZATIONS:yO,NOTARGETS:hO,NOTARGET:bO,NOROUTINGID:TO,FLEXERROR:vO,INVALIDANCHOR:SO,NOFRAGMENT:PO,INVALIDTARGETDEFINITION:AO,NOID4SECTION:CO,XMLPARSEFAILURE:EO,TYPEERROR:xO,INCONSISTENTSCHEMA:IO,UNEXISTING_ANNOTATION_PATH:OO};function $v(e){e.addResourceBundle(e.language,"translation",ed)}r($v,"initI18n");function Xe(e="en"){j.init({resources:{en:{translation:wv.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
86
|
+
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var $l=require("path");var Hn="core:FragmentDefinition",wl="sap.ui.table",nu=new Map([[Ve.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Ve.ViewTemplateType.TreeTableColumnsExtension,{namespace:wl,name:"Column"}],[Ve.ViewTemplateType.GridTableColumnsExtension,{namespace:wl,name:"Column"}],[Ve.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:wl,name:"AnalyticalColumn"}]]),JI=new Map([[Ve.v2.FE_TEMPLATE_V2_LIST_REPORT,Ve.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Ve.v2.FE_TEMPLATE_V2_ALP,Ve.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Ve.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Ve.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),JS={type:"element",name:"Text",attributes:{text:"Placeholder"}},XI=JSON.stringify(JS);function qI(e,t){var i;let n=t?(i=e==null?void 0:e[Hn])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let o=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=o.get(n[a]);o.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),o}else throw new Error("Invalid fragment, please check content")}r(qI,"getFragmentNamespaces");function KS(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}r(KS,"getTagName");function Ml(e,t,n=e){let i=qI(n,!!(t||n!==e));if(t){let o=nu.get(t);return KS(o,i.get(o.namespace))}else{let o=nu.keys();for(let a of o){let s=nu.get(a),l=i?KS(s,i.get(s.namespace)):s.name;if(e[l])return l}}}r(Ml,"getTagNameFromFragmentJSON");function mr(e,t=e){let n=Ml(e,void 0,t);return e[n]}r(mr,"getRootCustomColumnFromFragmentJSON");function zI(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let o in e[t]){let a=e[t][o];!n.includes(o)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${o}": "${a.toString()}"`)}return i+="}",i}r(zI,"addP13nData");function XS(e,t){var l,c,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let o=i["core:CustomData"]._attributes.value,a=JSON.parse(o.substr(1,o.length)),s=t.findIndex(f=>f.columnKey===a.columnKey);return s<0?!1:(n=!0,o=zI(t,s),i["core:CustomData"]._attributes.value=o,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(c=t[s])==null?void 0:c.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}r(XS,"handleFragmentColumn");function YI(e,t,n,i){let o=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=o.split("."),l=s[s.length-1]+Ve.FRAGMENTNAMEPART+a;for(let c of t){let p=c.dataSourceUri.split($l.sep);if(p[p.length-1]===l){let f=JSON.parse((0,En.xml2json)(c.fileContent,{compact:!0}));try{let u=Ml(f[Hn]);u&&(delete f[Hn][u],c.fileContent=(0,En.json2xml)(JSON.stringify(f),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${c.dataSourceUri}, please check content`)}break}}}r(YI,"deleteColumnsFromFragment");function qS(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===XI&&(e.splice(n,1),t-=1,t===0));n++);}r(qS,"deleteNumberOfCells");function ZI(e,t,n){let i=e.type?e.type.toLowerCase():"xml",o=e.fragmentName.substr(n.length+1).split("."),a=o[o.length-1]+Ve.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,En.xml2json)(s.fileContent)),c=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");c&&qS(l.elements[0].elements,c.length),s.fileContent=(0,En.json2xml)(JSON.stringify(l),{spaces:4});break}}r(ZI,"deleteCellsFromFragment");function Ul(e,t,n,i){if(i){YI(e,i,t,n);let o=t.replace(Ve.ViewTemplateType.ResponsiveTableColumnsExtension,Ve.ViewTemplateType.ResponsiveTableCellsExtension),a=e[o];a&&ZI(a,i,n)}}r(Ul,"deleteColumnFromFragment");function eO(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let o=i;o<Object.keys(n).length;o++)t.elements[0].elements.push(JS)}r(eO,"addNewColumnsInFragment");function tO(e,t){let n=JSON.parse((0,En.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(o=>o.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)eO(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let o=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;qS(a,o)}e.fileContent=(0,En.json2xml)(JSON.stringify(n),{spaces:4})}}r(tO,"updateNonEmptyCellsFragment");function nO(e,t,n){let i=!1;for(let o of e){let a=o.dataSourceUri.split($l.sep);if(a[a.length-1]===t){i=!0,o.changeIndicator=Ve.ChangeIndicator.Updated,!o.fileContent||Object.keys(o.fileContent).length===0?o.fileContent=tu(n):tO(o,n);break}}return i}r(nO,"updateCellsFragment");function iO(e,t,n,i,o){var f;let a,s,l=t.manifest,c=ft(l,e),p=c.type?c.type.toLowerCase():"xml";c.type=p.toUpperCase();for(let u of n){if(!u.fragmentName){k(o,{severity:Ve.LogSeverity.Error,message:R.t("NOFRAGMENT",{columnKey:u.columnKey})});continue}t.manifestChangeIndicator=Ve.ChangeIndicator.Updated,c.fragmentName=u.fragmentName,c.className=u.className,a=((f=u.fragmentName)==null?void 0:f.replace(i,"<root>/webapp").replace(/[.]/g,$l.sep))+Ve.FRAGMENTNAMEPART+p}if(e.indexOf(Ve.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Ve.ChangeIndicator.Updated;let u=e.replace(Ve.ViewTemplateType.ResponsiveTableColumnsExtension,Ve.ViewTemplateType.ResponsiveTableCellsExtension),m=ft(l,u),b=n.reduce((S,L)=>L.cellsFragmentName?L:S);b&&b.cellsFragmentName?(m.fragmentName=s=b.cellsFragmentName,m.className=n[0].className,m.type=p.toUpperCase()):AS(l,u)}return{manifestSection:c,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}r(iO,"exportCustomColumnsToManifest");function oO(e,t,n,i,o){let a=Zf(e,t);if(a){let s=JSON.parse((0,En.xml2json)(a,{compact:!0})),l=mr(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let c=[n];c.splice(o,0,l),n=c}else n=[l]}return n}r(oO,"insertNewColumnInFragment");function aO(e,t){let n=[];for(let i=0;i<e.length;i++)XS(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}r(aO,"processCustomColumnInArray");function rO(e,t,n){if(e){if(Array.isArray(e))aO(e,t);else if(!XS(e,t)){let o=Ml(n[Hn]);o&&(delete n[Hn][o],e=void 0)}}return e}r(rO,"maintainExistingColumnInFragment");function sO(e,t,n,i,o){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=oO(a,i,n,o,s)}return n}r(sO,"insertNewColumnsInFragment");function lO(e,t,n,i,o){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Ve.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=eu(i,o);else{let c=JSON.parse((0,En.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(c);l=mr(c[Hn]),l=rO(l,i,c),l=sO(i,n,l,o,c);let f=Ml(c,o);c[Hn][f]=l;let u=JSON.stringify(c);u!==p&&(s.fileContent=(0,En.json2xml)(u,{compact:!0,spaces:4}))}break}return a}r(lO,"updateColumnsInFragment");function iu(e,t,n,i,o,a){let s=e.fragments,{manifestSection:l,lsFilePath:c,cellsFragmentName:p,fragmentType:f}=iO(t,e,n,i,a),u=JSON.parse(JSON.stringify(n)),m=l.fragmentName,b=m.substr(i.length+1),S=b.split(".");m=S[S.length-1]+Ve.FRAGMENTNAMEPART+f;let V=p==null?void 0:p.split("."),H=V?V[V.length-1]:null,ee=H?H+Ve.FRAGMENTNAMEPART+f:null,te=lO(s,m,b,u,o),re=!1;if(p?re=nO(s,ee,n):re=!0,!te){let X={fileContent:eu(u,o),dataSourceUri:c,changeIndicator:Ve.ChangeIndicator.Deleted};e.fragments.push(X)}if(!re){let X={fileContent:tu(n),dataSourceUri:c.replace(m,ee),changeIndicator:Ve.ChangeIndicator.Deleted};e.fragments.push(X)}}r(iu,"exportCustomColumnsToFragment");var kl=r((e,t,n,i)=>{var c,p,f,u;if(!e)return;let o=JI.get((c=e.component)==null?void 0:c.name);if(!i){let m=(u=(f=(p=e.component)==null?void 0:p.settings)==null?void 0:f.tableSettings)==null?void 0:u.type;m||(m="ResponsiveTable"),o==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(m="AnalyticalTable"),i=m+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+o+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var tt=$(B());var yo=r((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+tt.PropertyName.table:We(e,t),"getSmartTableControlId");function Wl(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let o in t)n.fields.push(o);return n}r(Wl,"importCreateParameters");function Ql(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let o={};e[n]||(e[n]={}),i.forEach(a=>o[a]=e[n][a]||{path:a}),e[n]=o}r(Ql,"exportCreateParametersFields");function cO(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let c in s)l.indexOf(c)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[c]=s[c],delete s[c]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}r(cO,"exportVariants");function pO(e,t){t.variants&&(Object.keys(t.variants).length>0?cO(e,t):delete e.variants)}r(pO,"exportQuickVariantSelectionX");var _l=class _l{};r(_l,"CreateWithFilters"),d([g({manifest:{path:r(t=>fe(t)+"/createWithFilters","path")}})],_l.prototype,"strategy",2);var ou=_l;function br(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}r(br,"importType");function Aa(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}r(Aa,"exportType");function Ca(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}r(Ca,"deleteType");var Bl=class Bl{};r(Bl,"DataLoadSettings"),d([g({manifest:{path:r(t=>ES(t),"path")}}),T({since:"1.75.2"})],Bl.prototype,"loadDataOnAppLaunch",2);var au=Bl,Hl=class Hl{};r(Hl,"Fields4Dialog"),d([g({manifest:{path:r(t=>po(t)+"/createWithParameterDialog","path"),export:Ql}}),T({since:"1.77.0"})],Hl.prototype,"fields",2);var ru=Hl,yr=class yr{};r(yr,"QuickVariantSelection"),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],yr.prototype,"showCounts",2),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],yr.prototype,"variants",2);var su=yr,Sa=class Sa{};r(Sa,"QuickVariantSelectionX"),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATHX,"path")}}),T({since:"1.48.0"})],Sa.prototype,"showCounts",2),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATHX,"path")}}),T({since:"1.48.0"})],Sa.prototype,"enableAutoBinding",2),d([g({manifest:{path:r(t=>fe(t)+tt.QUICKVARPATHX,"path"),export:pO}}),T({since:"1.48.0"})],Sa.prototype,"variants",2);var lu=Sa,xt=class xt{constructor(){this.getDeprecated=r(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}}),"getDeprecated")}};r(xt,"CommonTableSettings"),d([g({manifest:{key:"createWithParameterDialog",path:r(t=>po(t),"path"),import:Wl}}),T({since:"1.77.0"})],xt.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:We,controlType:r(()=>tt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.38.0"})],xt.prototype,"showTablePersonalisation",2),d([g({flex:{controlId:yo,controlType:r(()=>tt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.26.0"})],xt.prototype,"useExportToExcel",2),d([g({flex:{controlId:yo,controlType:r(()=>tt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.50.0"})],xt.prototype,"exportType",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.48.0"})],xt.prototype,"quickVariantSelection",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.48.0"})],xt.prototype,"quickVariantSelectionX",2),d([g({manifest:{path:r(t=>po(t),"path")}}),T({since:"1.38.0"})],xt.prototype,"multiSelect",2),d([g({manifest:{path:r(t=>po(t),"path")}}),T({since:"1.70.0"})],xt.prototype,"selectAll",2),d([g({manifest:{path:r(t=>po(t),"path")}}),T({since:"1.70.0"})],xt.prototype,"selectionLimit",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.75.2"})],xt.prototype,"dataLoadSettings",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.42.0"})],xt.prototype,"condensedTableLayout",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.56.0"}),ye("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],xt.prototype,"enableTableFilterInPageVariant",2),d([_e("toolBar")],xt.prototype,"toolBar",2);var Di=xt,Gn=class Gn extends Di{};r(Gn,"ResponsiveTable"),d([g({manifest:{path:r(t=>fe(t),"path"),import:br,export:Aa,delete:Ca}}),T({since:"1.50.0"})],Gn.prototype,"type",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.54.0"})],Gn.prototype,"createWithFilters",2),d([g({flex:{controlId:yo,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_},generate:kn}),T({since:"1.52.0"})],Gn.prototype,"popinLayout",2),d([g({flex:{controlId:yo,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_}})],Gn.prototype,"includeItemInSelection",2),d([g({manifest:{path:r(t=>po(t),"path")}}),T({since:"1.77.0"})],Gn.prototype,"inlineDelete",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],Gn.prototype,"showDraftToggle",2),d([g({flex:{controlId:yo,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_}}),T({since:"1.16.0"})],Gn.prototype,"growingThreshold",2);var ho=Gn,hr=class hr extends Di{};r(hr,"TreeTable"),d([g({manifest:{path:r(t=>fe(t),"path"),import:br,export:Aa,delete:Ca}}),T({since:"1.50.0"})],hr.prototype,"type",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],hr.prototype,"showDraftToggle",2);var cu=hr,pn=class pn extends Di{};r(pn,"AnalyticalTable"),d([g({manifest:{path:r(t=>fe(t),"path"),import:br,export:Aa,delete:Ca}}),T({since:"1.50.0"})],pn.prototype,"type",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],pn.prototype,"qualifier",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.38.0"}),g({manifest:{path:r(t=>fe(t),"path")}})],pn.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],pn.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.60.0"})],pn.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],pn.prototype,"autoHide",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.78.0"})],pn.prototype,"allFiltersAsInParameters",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.54.0"})],pn.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],pn.prototype,"showDraftToggle",2);var pu=pn,Wn=class Wn extends Di{};r(Wn,"TableALP"),d([g({manifest:{path:r(t=>fe(t),"path"),import:br,export:Aa,delete:Ca}}),T({since:"1.50.0"})],Wn.prototype,"type",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],Wn.prototype,"qualifier",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.38.0"}),g({manifest:{path:r(t=>fe(t),"path")}})],Wn.prototype,"defaultContentView",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],Wn.prototype,"defaultFilterMode",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.60.0"})],Wn.prototype,"contentTitle",2),d([g({manifest:{path:r(t=>fe(t),"path")}})],Wn.prototype,"autoHide",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.78.0"})],Wn.prototype,"allFiltersAsInParameters",2);var Pa=Wn,Gl=class Gl extends Pa{};r(Gl,"ALPResponsiveTable"),d([g({flex:{controlId:yo,controlType:r(()=>tt.ControlType.Table,"controlType"),createFlexChange:_}}),T({since:"1.16.0"})],Gl.prototype,"growingThreshold",2);var fu=Gl,mu=class mu extends Pa{};r(mu,"ALPGridTable");var uu=mu,yu=class yu extends Pa{};r(yu,"ALPAnalyticalTable");var du=yu,va=class va extends Di{};r(va,"GridTable"),d([g({manifest:{path:r(t=>fe(t),"path"),import:br,export:Aa,delete:Ca}}),T({since:"1.50.0"})],va.prototype,"type",2),d([g({manifest:{path:r(t=>fe(t),"path")}}),T({since:"1.54.0"})],va.prototype,"createWithFilters",2),d([g({manifest:{path:r(()=>tt.GENERICAPPSETTINGS,"path")}}),T({since:"1.63.0"})],va.prototype,"showDraftToggle",2);var gu=va;var Tr=$(B());var fO=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}action::${_t(i).replace(":2f","::")}`},"getActionButtonId"),uO=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}template::${i}`},"getStandardActionButtonId"),dO=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}${gl}${i}`},"getStandardFooterActionOPButtonId"),Iu=r((e,t,n)=>{let{semanticObjectId:i,actionId:o}=Ht(n);return`${e}action::${i}::${_t(o)}`},"buildIntentBasedActionId"),gO=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}action::${_t(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Ri={controlId:fO,controlType:r(()=>Tr.ControlType.Button,"controlType"),createFlexChange:_},Sr={controlId:uO,controlType:r(()=>Tr.ControlType.Button,"controlType"),createFlexChange:_},zS={controlId:dO,controlType:r(()=>Tr.ControlType.Button,"controlType"),createFlexChange:_},Kl={controlId:gO,controlType:r(()=>Tr.ControlType.Button,"controlType"),createFlexChange:_},bo=class bo{};r(bo,"Action"),d([g({flex:Ri})],bo.prototype,"tooltip",2),d([g({flex:Ri})],bo.prototype,"icon",2),d([g({flex:Ri})],bo.prototype,"activeIcon",2),d([g({flex:Ri})],bo.prototype,"type",2);var hu=bo,To=class To{};r(To,"ToolBarAction"),d([g({flex:Ri})],To.prototype,"tooltip",2),d([g({flex:Ri})],To.prototype,"icon",2),d([g({flex:Ri})],To.prototype,"activeIcon",2),d([g({flex:Ri})],To.prototype,"type",2);var bu=To,So=class So{};r(So,"FooterAction"),d([g({flex:Kl})],So.prototype,"tooltip",2),d([g({flex:Kl})],So.prototype,"icon",2),d([g({flex:Kl})],So.prototype,"activeIcon",2),d([g({flex:Kl})],So.prototype,"type",2);var Tu=So,Jl=class Jl{};r(Jl,"Share"),d([g({flex:Sr})],Jl.prototype,"visible",2);var Su=Jl,Xl=class Xl{};r(Xl,"ShareOP"),d([g({flex:Sr})],Xl.prototype,"visible",2);var vu=Xl,ql=class ql{};r(ql,"UpAndDownNavigationOP"),d([g({flex:Sr})],ql.prototype,"visible",2);var Pu=ql,zl=class zl{};r(zl,"SaveAndEditOP"),d([g({flex:zS,generate:Oe})],zl.prototype,"visible",2);var Au=zl,Yl=class Yl{};r(Yl,"HeaderActionStandard"),d([g({flex:Sr})],Yl.prototype,"visible",2);var Cu=Yl,Zl=class Zl{};r(Zl,"ObjectPageHeaderActionStandard"),d([g({flex:Sr})],Zl.prototype,"visible",2);var Eu=Zl,ec=class ec{};r(ec,"ObjectPageFooterActionStandard"),d([g({flex:zS})],ec.prototype,"visible",2);var xu=ec;var Ar=$(B());var mO=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a}=Ht(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${s}:::sAction::${a}`},"buildColumnActionId"),yO=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a,semanticObjectId:s}=Ht(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),hO=r((e,t,n)=>{let{actionId:i}=Ht(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),Ou={controlId:mO,controlType:r(()=>Ar.ControlType.TableColumn,"controlType"),createFlexChange:_},vr={controlId:hO,controlType:r(()=>Ar.ControlType.Button,"controlType"),createFlexChange:_},YS={...Ou,controlId:yO},tc={...vr,controlId:Iu},Pr=class Pr{};r(Pr,"TableColumn"),d([g({flex:{controlId:bf,controlType:r(()=>Ar.ControlType.TableColumn,"controlType"),createFlexChange:_}})],Pr.prototype,"width",2),d([g({flex:{controlId:bf,controlType:r(()=>Ar.ControlType.TableColumn,"controlType"),createFlexChange:_},generate:kn})],Pr.prototype,"hAlign",2);var Fu=Pr,fi=class fi{};r(fi,"TableColumnAction"),d([g({flex:Ou})],fi.prototype,"width",2),d([g({flex:Ou,generate:kn})],fi.prototype,"hAlign",2),d([g({flex:vr})],fi.prototype,"tooltip",2),d([g({flex:vr})],fi.prototype,"icon",2),d([g({flex:vr})],fi.prototype,"activeIcon",2),d([g({flex:vr})],fi.prototype,"type",2);var nc=fi,ui=class ui extends nc{};r(ui,"TableColumnActionIntentBased"),d([g({flex:YS})],ui.prototype,"width",2),d([g({flex:YS,generate:kn})],ui.prototype,"hAlign",2),d([g({flex:tc})],ui.prototype,"tooltip",2),d([g({flex:tc})],ui.prototype,"icon",2),d([g({flex:tc})],ui.prototype,"activeIcon",2),d([g({flex:tc})],ui.prototype,"type",2);var Lu=ui,Nu=class Nu{};r(Nu,"TableCustomColumn");var Vu=Nu;var Ru=class Ru{};r(Ru,"ToolBar");var Du=Ru;var vo=$(B());var Cr=r(e=>e+vo.PropertyName.chart,"getSmartChartControlId"),ji=class ji{};r(ji,"ChartSettings"),d([g({flex:{controlId:Cr,controlType:r(()=>vo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],ji.prototype,"showLegendButton",2),d([g({flex:{controlId:Cr,controlType:r(()=>vo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],ji.prototype,"showDownloadButton",2),d([g({flex:{controlId:Cr,controlType:r(()=>vo.ControlType.SmartChart,"controlType"),createFlexChange:_}})],ji.prototype,"showChartTypeSelectionButton",2),d([g({flex:{controlId:Cr,controlType:r(()=>vo.ControlType.SmartChart,"controlType"),exportFlexValue:r((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:r((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue"),createFlexChange:_}})],ji.prototype,"ignoredChartTypes",2),d([g({manifest:{path:r(t=>CS(t),"path")}}),T({since:"1.81.0"})],ji.prototype,"showDataLabel",2);var ju=ji;var di=class di{};r(di,"KPISettings"),d([g({manifest:{path:r((t,n,i)=>fo(t,i),"path")}})],di.prototype,"model",2),d([g({manifest:{path:r((t,n,i)=>fo(t,i),"path")}})],di.prototype,"entitySet",2),d([g({manifest:{path:r((t,n,i)=>fo(t,i),"path")}})],di.prototype,"qualifier",2),d([g({manifest:{path:r((t,n,i)=>fo(t,i),"path")}})],di.prototype,"filterable",2),d([g({manifest:{path:r((t,n,i)=>fo(t,i),"path")}})],di.prototype,"detailNavigation",2),d([g({manifest:{path:r((t,n,i)=>fo(t,i),"path")}})],di.prototype,"groupId",2);var wu=di;var ZS=$(B());var bO=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",We(e,n)},"getAvatarControlId"),wi=class wi{};r(wi,"ObjectPageHeader"),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.46.0"})],wi.prototype,"showRelatedApps",2),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.46.0"})],wi.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.48.0"})],wi.prototype,"simpleHeaderFacets",2),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.48.0"}),ye("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],wi.prototype,"showHeaderAsCarouselOnDesktop",2),d([g({flex:{controlId:bO,controlType:r(()=>ZS.ControlType.Avatar,"controlType"),createFlexChange:_},generate:Oe})],wi.prototype,"displayShape",2);var $u=wi;var ic=$(B());var TO=r((e,t,n,i)=>{if(i()===ic.ControlType.Button||i()===ic.ControlType.HeaderAction){let o=n[2];return`${e}action::${_t(o)}`}return We(e,t)},"getActionButtonId"),Er={controlId:TO,controlType:r(()=>ic.ControlType.HeaderAction,"controlType"),createFlexChange:_},$i=class $i{};r($i,"HeaderAction"),d([g({flex:Er,generate:Oe})],$i.prototype,"visible",2),d([g({flex:Er})],$i.prototype,"tooltip",2),d([g({flex:Er})],$i.prototype,"icon",2),d([g({flex:Er})],$i.prototype,"activeIcon",2),d([g({flex:Er})],$i.prototype,"type",2);var Mu=$i;var xr=$(B());var cc="header::headerEditable::",SO=r((e,t,n,i,o)=>`${e}${cc}${o}`,"getDataPointHeaderSectionId"),vO=r((e,t,n,i,o)=>`${e}${cc}${o}::ContactAddress`,"getAddressHeaderSectionId"),PO=r((e,t,n,i,o)=>`${e}${cc}${o}::SmartMicroChartVBox`,"getChartHeaderSectionId"),ev=r((e,t,n,i,o)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=o!=null&&o.includes(xr.FACETTITLEPREFIX)?o.split(xr.FACETTITLEPREFIX)[1]:a;return`${e}${cc}${s}::Form`},"getFormHeaderSectionId"),Ir={controlType:r(()=>xr.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:_},oc=class oc{};r(oc,"CommonHeaderFacetSettings"),d([g({flex:{...Ir,controlId:ev},generate:Oe})],oc.prototype,"visible",2);var Po=oc,ac=class ac extends Po{};r(ac,"ObjectPageHeaderSectionForm"),d([g({flex:{...Ir,controlId:ev}})],ac.prototype,"visible",2);var Uu=ac,rc=class rc extends Po{};r(rc,"ObjectPageHeaderSectionChart"),d([g({flex:{...Ir,controlId:PO}})],rc.prototype,"visible",2);var ku=rc,sc=class sc extends Po{};r(sc,"ObjectPageHeaderSectionDataPoint"),d([g({flex:{...Ir,controlId:SO}})],sc.prototype,"visible",2);var _u=sc,lc=class lc extends Po{};r(lc,"ObjectPageHeaderSectionAddress"),d([g({flex:{...Ir,controlId:vO}})],lc.prototype,"visible",2);var Bu=lc,Gu=class Gu{};r(Gu,"HeaderSections");var Hu=Gu;var Qu=$(B());var AO=r((e,t,n,i)=>{if(i()===Qu.ControlType.Button){let{actionId:o}=Ht(n);return`${e}action::${_t(o)}::Determining`}return We(e,t)},"getFooterActionButtonId"),Or={controlId:AO,controlType:r(()=>Qu.ControlType.Button,"controlType"),createFlexChange:_},Mi=class Mi{};r(Mi,"ObjectPageFooterAction"),d([g({flex:Or,generate:Oe})],Mi.prototype,"visible",2),d([g({flex:Or})],Mi.prototype,"tooltip",2),d([g({flex:Or})],Mi.prototype,"icon",2),d([g({flex:Or})],Mi.prototype,"activeIcon",2),d([g({flex:Or})],Mi.prototype,"type",2);var Wu=Mi;var Fr=$(B());var pc=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",We(e,n)},"getControlId"),Ao=class Ao{};r(Ao,"ObjectPageLayout"),d([g({flex:{controlId:pc,controlType:r(()=>Fr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_},generate:Oe})],Ao.prototype,"showHeaderContent",2),d([g({flex:{controlId:pc,controlType:r(()=>Fr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}})],Ao.prototype,"showAnchorBar",2),d([g({flex:{controlId:pc,controlType:r(()=>Fr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}})],Ao.prototype,"useIconTabBar",2),d([g({flex:{controlId:pc,controlType:r(()=>Fr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:_}}),T({since:"1.34.0"})],Ao.prototype,"alwaysShowContentHeader",2);var Ku=Ao;var tv=$(B());var Co=class Co{};r(Co,"BaseCustomSection"),d([g({manifest:{path:pi,export:!1,import:r((t,n)=>n.split("|")[2],"import")}}),T({since:"1.52.0"})],Co.prototype,"relatedFacet",2),d([g({manifest:{path:pi,export:!1,import:r((t,n)=>n.split("|")[0],"import")}}),T({since:"1.52.0"})],Co.prototype,"relativePosition",2),d([g({manifest:{path:r((t,n,i)=>pi(t,{},i,tv.ManifestSection.generic),"path")}}),T({since:"1.52.0"})],Co.prototype,"title",2),d([g({manifest:{path:pi}}),T({since:"1.52.0"})],Co.prototype,"className",2);var Nr=Co,Lr=class Lr extends Nr{};r(Lr,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:pi}}),T({since:"1.52.0"})],Lr.prototype,"fragmentName",2),d([g({manifest:{path:pi}}),T({since:"1.52.0"})],Lr.prototype,"type",2);var Dr=Lr,Vr=class Vr extends Nr{};r(Vr,"ObjectPageCustomSectionView"),d([g({manifest:{path:pi}}),T({since:"1.52.0"})],Vr.prototype,"viewName",2),d([g({manifest:{path:pi}}),T({since:"1.52.0"})],Vr.prototype,"type",2);var Rr=Vr;var Qt=$(B());var nv=r((e,t,n,i,o)=>{let s=[dt(n[1],o),Qt.DefinitionName.Table];return We(e,s)},"getTableSectionControlId"),iv=r((e,t,n,i,o)=>{let s=[dt(n[1],o),"FormGroup"];return We(e,s)},"getFormSectionControlId"),ov=r((e,t,n,i,o)=>{let s=[dt(n[1],o),"Chart"];return We(e,s)},"getChartSectionControlId"),Eo=r((e,t,n,i,o)=>{let s=[dt(n[1],o),"Section"];return We(e,s)},"getSectionControlId"),av=r((e,t,n,i,o)=>{let s=[dt(n[1],o),"SubSection"];return We(e,s)},"getSubSectionControlId"),rv=r((e,t,n,i,o)=>{let s=[dt(n[1],o),"ContactsList"];return We(e,s)},"getContactSubSectionControlId"),fc=class fc{};r(fc,"ObjectPageSectionV2"),d([g({flex:{controlId:Eo,controlType:r(()=>Qt.ControlType.Section,"controlType"),createFlexChange:_},generate:Oe})],fc.prototype,"visible",2);var Ju=fc,uc=class uc{};r(uc,"ObjectPageSectionFormV2"),d([g({flex:{controlId:Eo,controlType:r(()=>Qt.ControlType.Section,"controlType"),createFlexChange:_},generate:Oe})],uc.prototype,"visible",2);var Xu=uc,dc=class dc{};r(dc,"ObjectPageSectionChartV2"),d([g({flex:{controlId:Eo,controlType:r(()=>Qt.ControlType.Section,"controlType"),createFlexChange:_},generate:Oe})],dc.prototype,"visible",2);var qu=dc,gc=class gc{};r(gc,"ObjectPageSectionTableV2"),d([g({flex:{controlId:Eo,controlType:r(()=>Qt.ControlType.Section,"controlType"),createFlexChange:_},generate:Oe})],gc.prototype,"visible",2);var zu=gc,mc=class mc{};r(mc,"ObjectPageSectionAddressV2"),d([g({flex:{controlId:Eo,controlType:r(()=>Qt.ControlType.Section,"controlType"),createFlexChange:_},generate:Oe})],mc.prototype,"visible",2);var Yu=mc,yc=class yc{};r(yc,"ObjectPageSectionContactV2"),d([g({flex:{controlId:Eo,controlType:r(()=>Qt.ControlType.Section,"controlType"),createFlexChange:_},generate:Oe})],yc.prototype,"visible",2);var Zu=yc,hc=class hc{};r(hc,"ObjectPageSubSectionV2"),d([g({flex:{controlId:av,controlType:r(()=>Qt.ControlType.SubSection,"controlType"),createFlexChange:_},generate:Oe})],hc.prototype,"visible",2);var ed=hc,bc=class bc{};r(bc,"ObjectPageSubSectionFormV2"),d([g({flex:{controlId:iv,controlType:r(()=>Qt.ControlType.Group,"controlType"),createFlexChange:_},generate:Oe})],bc.prototype,"visible",2);var td=bc,Tc=class Tc{};r(Tc,"ObjectPageSubSectionChartV2"),d([g({flex:{controlId:ov,controlType:r(()=>Qt.ControlType.SmartChart,"controlType"),createFlexChange:_},generate:Oe})],Tc.prototype,"visible",2);var nd=Tc,Sc=class Sc{};r(Sc,"ObjectPageSubSectionContactV2"),d([g({flex:{controlId:rv,controlType:r(()=>Qt.ControlType.SubSection,"controlType"),createFlexChange:_},generate:Oe})],Sc.prototype,"visible",2);var id=Sc,vc=class vc{};r(vc,"ObjectPageSubSectionTableV2"),d([g({flex:{controlId:nv,controlType:r(()=>Qt.ControlType.SmartTable,"controlType"),createFlexChange:_},generate:Oe})],vc.prototype,"visible",2);var od=vc;var Pc=class Pc{};r(Pc,"ObjectPageChart"),d([g({manifest:{path:xS}}),T({since:"1.78.0"})],Pc.prototype,"variantManagement",2);var ad=Pc,Ac=class Ac{};r(Ac,"GlobalChartSettings"),d([g({manifest:{path:r(t=>Vt(t)+"/chartSettings","path")}}),T({since:"1.78.0"})],Ac.prototype,"variantManagement",2);var rd=Ac;var Yt=$(B());var xo=r((e,t,n,i,o)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=Yt.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=dt(a[0],o),We(e,a)},"getSmartTableControlId"),jr=class jr{};r(jr,"QuickVariantSelectionOP"),d([g({manifest:{path:r((t,n,i)=>Pn(t,n,i)+Yt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],jr.prototype,"showCounts",2),d([g({manifest:{path:r((t,n,i)=>Pn(t,n,i)+Yt.QUICKVARPATH,"path")}}),T({since:"1.48.0"})],jr.prototype,"variants",2);var sd=jr,Cc=class Cc{};r(Cc,"Fields4DialogOP"),d([g({manifest:{path:r((t,n,i)=>sn(t,n,i)+"/createWithParameterDialog","path"),export:Ql}}),T({since:"1.77.0"})],Cc.prototype,"fields",2);var ld=Cc,It=class It{constructor(){this.getDeprecated=r(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};r(It,"CommonTableSettingsForSections"),d([g({manifest:{key:"createWithParameterDialog",path:sn,import:Wl}}),T({since:"1.77.0"})],It.prototype,"createWithParameterDialog",2),d([g({flex:{controlId:xo,controlType:r(()=>Yt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.28.0"})],It.prototype,"editable",2),d([g({flex:{controlId:xo,controlType:r(()=>Yt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.95.0"}),ye("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],It.prototype,"showPasteButton",2),d([g({manifest:{path:sn}}),T({since:"1.54.0"})],It.prototype,"multiSelect",2),d([g({manifest:{path:sn}}),T({since:"1.70.0"})],It.prototype,"selectAll",2),d([g({manifest:{path:sn}}),T({since:"1.70.0"})],It.prototype,"selectionLimit",2),d([g({manifest:{path:Pn}}),T({since:"1.63.0"})],It.prototype,"quickVariantSelection",2),d([g({flex:{controlId:xo,controlType:r(()=>Yt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.26.0"})],It.prototype,"useExportToExcel",2),d([g({flex:{controlId:xo,controlType:r(()=>Yt.ControlType.SmartTable,"controlType"),createFlexChange:_}}),T({since:"1.50.0"})],It.prototype,"exportType",2),d([g({manifest:{path:Pn}}),T({since:"1.48.5"}),ye("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],It.prototype,"createMode",2),d([g({manifest:{path:Pn}}),T({since:"1.61.0"})],It.prototype,"disableDefaultInlineCreateSort",2),d([g({manifest:{path:sn}}),T({since:"1.78.0"})],It.prototype,"variantManagement",2),d([_e("toolBar")],It.prototype,"toolBar",2);var Io=It,Ui=class Ui extends Io{};r(Ui,"ObjectPageResponsiveTable"),d([g({manifest:{path:sn}})],Ui.prototype,"type",2),d([g({flex:{controlId:xo,controlType:r(()=>Yt.ControlType.Table,"controlType"),createFlexChange:_}})],Ui.prototype,"includeItemInSelection",2),d([g({flex:{controlId:xo,controlType:r(()=>Yt.ControlType.Table,"controlType"),createFlexChange:_},generate:Oe}),T({since:"1.52.0"})],Ui.prototype,"popinLayout",2),d([g({manifest:{path:sn}}),T({since:"1.77.0"})],Ui.prototype,"inlineDelete",2),d([g({flex:{controlId:xo,controlType:r(()=>Yt.ControlType.Table,"controlType"),createFlexChange:_}}),T({since:"1.16.0"})],Ui.prototype,"growingThreshold",2);var Oo=Ui,wr=class wr extends Io{};r(wr,"ObjectPageAnalyticalTable"),d([g({manifest:{path:sn}})],wr.prototype,"type",2),d([g({manifest:{path:Pn}}),T({since:"1.67.0"})],wr.prototype,"condensedTableLayout",2);var cd=wr,$r=class $r extends Io{};r($r,"ObjectPageGridTable"),d([g({manifest:{path:sn}})],$r.prototype,"type",2),d([g({manifest:{path:Pn}}),T({since:"1.67.0"})],$r.prototype,"condensedTableLayout",2);var pd=$r,Mr=class Mr extends Io{};r(Mr,"ObjectPageTreeTable"),d([g({manifest:{path:sn}})],Mr.prototype,"type",2),d([g({manifest:{path:Pn}}),T({since:"1.67.0"})],Mr.prototype,"condensedTableLayout",2);var fd=Mr,gi=class gi{};r(gi,"GlobalTableSettings"),d([g({manifest:{path:uo}}),T({since:"1.70.0"})],gi.prototype,"selectAll",2),d([g({manifest:{path:uo}}),T({since:"1.78.0"})],gi.prototype,"variantManagement",2),d([g({manifest:{path:uo}})],gi.prototype,"type",2),d([g({manifest:{path:uo}}),T({since:"1.54.0"})],gi.prototype,"multiSelect",2),d([g({manifest:{path:uo}}),T({since:"1.67.0"})],gi.prototype,"condensedTableLayout",2),d([g({manifest:{path:uo}}),T({since:"1.77.0"})],gi.prototype,"inlineDelete",2);var ud=gi;var sv=$(B());var CO=r((e,t,n,i,o)=>{let{actionId:a}=Ht(n),s=dt(n[1],o);return`${e}${s}::action::${_t(a).replace(":2f","::")}`},"getActionButtonId"),Ur={controlId:CO,controlType:r(()=>sv.ControlType.Button,"controlType"),createFlexChange:_},ki=class ki{};r(ki,"ObjectPageToolBarAction"),d([g({flex:Ur,generate:Oe})],ki.prototype,"visible",2),d([g({flex:Ur})],ki.prototype,"tooltip",2),d([g({flex:Ur})],ki.prototype,"icon",2),d([g({flex:Ur})],ki.prototype,"activeIcon",2),d([g({flex:Ur})],ki.prototype,"type",2);var dd=ki;var Nt=$(B());function md(e,t,n,i){if(t.controlType===Nt.ControlType.TableColumn||t.controlType===Nt.ControlType.Button){let o=t.controlId.split("-"),a=o[o.length-1],s=t.controlType===Nt.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Nt.VOCWITHCOLONS),c=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(c!=null&&c.startsWith("DataField")?c=c==null?void 0:c.replace("/",":2f"):c=c==null?void 0:c.replace("/","_"),c!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}r(md,"addFlexChangeToConfigTableColumn");function Ec(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Nt.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}r(Ec,"addFlexChangeToConfigTable");function xc(e,t,n,i,o="LineItems"){e.flex.forEach(a=>{var p,f,u,m,b;let s=qt(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(f=s.content)!=null&&f.newBinding?s.content.newBinding:(u=s.content)==null?void 0:u.newValue,controlType:s.controlType,creation:s.creation},c;if(s.controlType===Nt.ControlType.TableColumn)c=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let S=(!t.table.type||t.table.type===Nt.v2.TableTypeV2.ResponsiveTable)&&!((m=l.controlId)!=null&&m.includes(Nt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Nt.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;c=(b=e.jsonSchema.definitions[`${S}<${o}>`])==null?void 0:b.properties[l.propertyId]}c&&md(t.table,l,n,i)})}r(xc,"importFlexChangesOfColumn");function _i(e){return e.replace("/","::")}r(_i,"convertActionKey");function yd(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}r(yd,"convertSelector");function EO(e,t,n,i){var a,s,l,c;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((c=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:c.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}r(EO,"addSmartFilterBarFlex");function xO(e,t){let n=Object.keys(t.definitions).filter(o=>o.startsWith(`${e}`)&&o.includes("<")),i=new Map;return n.forEach(o=>{var l;let a=_t((l=o.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let c=a.split(":::"),p=c.find(m=>m.startsWith("sSemanticObject")),f=c.find(m=>m.startsWith("sAction")),u=f.split("sAction::")[1].replace(":2f","::");if(p){let m=`${p.split("::")[1]}::${u}`,b=`${c[0]}:::${p}:::${f}`;i.set(m,o),i.set(o,b)}else i.set(u,o),i.set(o,a)}else i.set(a.replace(":2f","::"),o),i.set(o,a)}),i}r(xO,"filterActions");function IO(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}r(IO,"addColumnActionConfigPart");function OO(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}r(OO,"getActionId");function FO(e,t,n,i,o){[{name:"HeaderActionStandard",configPart:e.header.actions,id:o},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:o},{name:"FooterAction",configPart:e.footer.actions,id:o&&o.includes("Determining")&&o.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:o},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:o},{name:"TableColumnAction",configPart:e.table.columns,id:o}].forEach(s=>{var c,p;let l=xO(s.name,i);if(l.has(s.id)){let f=l.get(s.id),u=(c=f.split("<")[1])==null?void 0:c.split(">")[0];s.name==="TableColumnAction"&&IO(s,e,u);let m=s.configPart[u];((p=i.definitions[f])==null?void 0:p.properties[t])&&m&&(m[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}r(FO,"addActionFlex");function LO(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=st(e[Ee.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[Ee.PropertyName.chart],t):e[Ee.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}r(LO,"addSmartChartFlex");function Ic(e,t,n,i){var o,a;try{let s=qt(t),l=s.content.property;if((o=s.controlId)!=null&&o.includes(Ee.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(Ee.PageTypeV2.AnalyticalListPage))switch(s.controlId=yd(s.controlId),s.controlType){case Ee.ControlType.SmartFilterBar:{EO(e,l,s,n);break}case Ee.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case Ee.ControlType.Button:{let c=OO(s);c&&FO(e,l,s,n,c);break}case Ee.ControlType.SmartChart:{LO(e,l,s,n);break}default:break}}catch(s){k(i,{severity:Ee.LogSeverity.Error,message:R.t("FLEXERROR")},...s)}}r(Ic,"addFlex");function VO(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let o in i.tableSettings)i[o]=i.tableSettings[o];delete i.tableSettings}}}r(VO,"adjustQuickVariantSelectionX");function lt(e,t,n,i,o,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let c in n.properties){let p=st(e,c);if(p!=null&&p.manifest){let f=p.manifest.path([i],t,a);s=ft(t,f),aa(p,s,c,e),ll(l,s,f,o)}VO(c,e)}}r(lt,"transferSettingsOfObject");function Oc(e,t){var o,a,s,l,c,p,f,u,m;let n=e[Ee.ManifestSection.generic].pages[t],i=Ee.v2.TableTypeV2.ResponsiveTable;return(o=e[Ee.ManifestSection.generic].pages[t].component)!=null&&o.settings&&((s=(a=e[Ee.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[Ee.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((f=(p=(c=n.component)==null?void 0:c.settings)==null?void 0:p.tableSettings)==null?void 0:f.type)||((u=n.component)==null?void 0:u.settings.tableType):((m=n.component)==null?void 0:m.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=Ee.v2.TableTypeV2.AnalyticalTable),i}r(Oc,"determineTableType");function lv(e,t,n,i,o,a,s){var l,c;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,f=JSON.parse(p.substr(1,p.length)),u=e.Text&&e.Text._attributes&&e.Text._attributes.text;u||(u=e.Label&&e.Label._attributes&&e.Label._attributes.text);let m={...(l=e._attributes)!=null&&l.id?{id:(c=e._attributes)==null?void 0:c.id}:{},...u?{text:u}:{},...f,...f.columnKey?{columnKey:f.columnKey}:{},...f.columnIndex?{columnIndex:Number(f.columnIndex)}:{},...f.leadingProperty?{leadingProperty:f.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(m.cellsFragmentName=s),o.table.columns.custom||(o.table.columns.custom=[]),o.table.columns.custom.push(m)}}r(lv,"evaluateFragmentColumn");function NO(e,t,n,i){let o;if(e===Ee.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,c]=a.split("|");s===Ee.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&c===i&&(o=t[a].fragmentName)}return o}r(NO,"determineCellsFragmentName");function DO(e,t,n,i,o,a,s){var l;if(e[0]){let p=JSON.parse((0,cv.xml2json)(e[0].fileContent,{compact:!0}))[Hn];try{let f=mr(p);if(f)if((l=t[Ee.PropertyName.table])!=null&&l.columns||(t[Ee.PropertyName.table].columns={}),Array.isArray(f))for(let u of f)lv(u,n,i,o,t,a,s);else lv(f,n,i,o,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}r(DO,"analyzeFilteredFragments");function RO(e,t,n,i,o){var a;for(let s of Object.keys(e)){let l=s.split("|"),[c,p]=l,f=l[2];if(c&&p===t){let u=e[s].type?e[s].type.toLowerCase():"xml",m=e[s].fragmentName;if(!m)continue;let b=NO(c,e,p,f),S=m.split(".");m=S[S.length-1]+Ee.FRAGMENTNAMEPART+u;let L=i.fragments.filter(V=>V.dataSourceUri.endsWith(m));try{DO(L,n,e,s,f,c,b)}catch(V){i.logger.error(V.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(V=>{xc(i,n,V.id,V,o)})}}}r(RO,"processViewExtensions");function Ea(e,t,n,i,o,a="LineItems"){var s,l,c;if(t.fragments&&(c=(l=(s=t.manifest[Ee.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&c["sap.ui.viewExtensions"]){let p=Ee.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),f=t.manifest[Ee.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!f)return;let u=o&&o.target?o.target:n.entitySet;RO(f,u,e,t,a)}}r(Ea,"addFragments");function Fc(e,t,n){if(e.header={actions:{}},n[Ee.DefinitionName.HeaderActionsStandard]){let i=n[Ee.DefinitionName.HeaderActionsStandard].properties;for(let o in i)e.header.actions[o]=t.createInstance(Ee.PageTypeV2.ListReport,o,{})}}r(Fc,"importHeaderActions");var Hi=$(B());var kr="sap.suite.ui.generic.template.ListReport";var pv="sap.suite.ui.generic.template.ListReport.view.ListReport";var ke=$(B());function Fo(e,t,n){var o;let i;for(let a in e){let s=e[a];if(oi((o=s.component)==null?void 0:o.name)===ke.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Fo(s.pages,t,n),i))return n.unshift(a),i}}r(Fo,"findObjectPageV2");function xa(e,t){var n;for(let i in e){let o=e[i];if(oi((n=o.component)==null?void 0:n.name)===ke.PageTypeV2.ListReport)return t.push(i),o}}r(xa,"findListReportPageV2");function Ia(e){if(!e.manifest[ke.ManifestSection.generic]){k(e.logger,{severity:ke.LogSeverity.Error,message:R.t("NOFE"),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}});return}let t=e.manifest[ke.ManifestSection.generic].pages;if(!t){k(e.logger,{severity:ke.LogSeverity.Error,message:R.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}});return}return t}r(Ia,"getV2Pages");function Oa(e,t,n){var i;if(!e){k(t,{severity:ke.LogSeverity.Error,message:R.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}});return}if(!e.entitySet){let o=(i=e.component)==null?void 0:i.name;k(t,{severity:ke.LogSeverity.Error,message:R.t("NOENTITYSET",{pageName:o}),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}})}}r(Oa,"checkV2Page");function Fa(e,t,n){var i;for(let o in e){let a=e[o];if(t.push(o),oi((i=a.component)==null?void 0:i.name)===ke.PageTypeV2.AnalyticalListPage)return a}k(n,{severity:ke.LogSeverity.Error,message:R.t("NOALP"),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}})}r(Fa,"findAnalyticalListPage");function hd(e,t){let n=e.split("|");return ke.v2.SectionPosition[n[0]]&&n[1]===t}r(hd,"isAssociatedCustomSection");function fv(e,t){let n=ft(e,`sap.ui5/extends/extensions/${ke.v2.SAPUI5_VIEW_EXTENSION}/${ke.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let o in n)hd(o,t)&&(i[o]=n[o]);return i}r(fv,"findCustomSectionExtensions");function jO(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}r(jO,"removeEmptySettingsOfFooter");function wO(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let o in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[o]).length===0&&delete e.filterBar.selectionFields[o];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}r(wO,"removeEmptySettingsOfFilterBar");function $O(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}r($O,"removeEmptySettingsOfToolBar");function Lc(e){$O(e),wO(e),jO(e)}r(Lc,"removeEmptySettings");var He=$(B());var dv=$(B());var bd={};Go(bd,{ANNOERR:()=>tF,ANNOTATIONFILE:()=>nF,COMPONENTNOTDEFINED:()=>iF,CONTEXTPATHCOULDNOTBERESOLVED:()=>zO,ENTITYSETNOTFOUND:()=>qO,FLEXERROR:()=>dF,INCONSISTENTSCHEMA:()=>SF,INVALIDANCHOR:()=>gF,INVALIDTARGETDEFINITION:()=>yF,NOALP:()=>ZO,NOBASEPATH:()=>kO,NOCHARTS:()=>sF,NOENTITYSET:()=>WO,NOENTITYTYPE4SET:()=>QO,NOFE:()=>BO,NOFRAGMENT:()=>mF,NOGENERICSCHEMA:()=>HO,NOID4SECTION:()=>hF,NOLINEITEMANDCHARTS:()=>lF,NOLINEITEMS:()=>rF,NOLR:()=>YO,NOPAGEFORENTITYSET:()=>GO,NOPAGES:()=>_O,NOPRESENTATIONVARIANT:()=>KO,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>JO,NOPRESENTATIONVARIANTFORSPV:()=>XO,NOROUTING:()=>oF,NOROUTINGID:()=>uF,NOTARGET:()=>fF,NOTARGETS:()=>pF,NOTEMPLATE:()=>eF,NOUIANNOTATIONS:()=>aF,NOVISUALIZATIONS:()=>cF,TYPEERROR:()=>TF,UNEXISTING_ANNOTATION_PATH:()=>vF,UNKNOWNMINUI5VERSION:()=>UO,WRONGMINUI5VERSION:()=>MO,XMLPARSEFAILURE:()=>bF,default:()=>PF});var MO="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",UO="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",kO="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",_O="No pages found in manifest for app with id '{{- appId}}'",BO="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",HO="No generic schema found while generating page schema for {{- pageType}}",GO="No page found in manifest for entitySet '{{- entitySet}}'",WO="No entitySet defined for page '{{- pageName}}'",QO="No entityType could be found for the given entity set '{{- entitySetName}}'",KO="No PresentationVariant defined for '{{- key}}'",JO="No PresentationVariant found for default SelectionPresentationVariant",XO="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",qO="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",zO="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",YO="No page found in manifest for list report",ZO="No page found in manifest for analytical list page",eF="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",tF="Error while parsing annotation files",nF="Annotation file: '{{- file}}'",iF="Component name is not defined for page '{{- pageName}}'",oF="Incomplete manifest definition: no routing defined",aF="No UI Annotation defined for entity type '{{- entityType }}'",rF="UI.LineItem annotation has not been defined",sF="UI.Chart annotation has not been defined",lF="Neither UI.LineItem nor UI.Chart annotation has been defined",cF="Empty Collection for Visualizations",pF="Incomplete manifest definition: no targets defined",fF="Invalid reference: annotation target '{{- target}}' not found",uF="No page found in manifest for routingId '{{- routingId}}'",dF="Error while parsing flex change",gF="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",mF="fragmentName is undefined for columnKey '{{- columnKey}}'",yF="Invalid routing target definition in manifest: '{{- target}}'",hF="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",bF="Parsing of XML file failed with error - {{- error}}",TF="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",SF="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",vF="The annotation path doesn't exist.",PF={WRONGMINUI5VERSION:MO,UNKNOWNMINUI5VERSION:UO,NOBASEPATH:kO,NOPAGES:_O,NOFE:BO,NOGENERICSCHEMA:HO,NOPAGEFORENTITYSET:GO,NOENTITYSET:WO,NOENTITYTYPE4SET:QO,NOPRESENTATIONVARIANT:KO,NOPRESENTATIONVARIANTFORDEFAULTSPV:JO,NOPRESENTATIONVARIANTFORSPV:XO,ENTITYSETNOTFOUND:qO,CONTEXTPATHCOULDNOTBERESOLVED:zO,NOLR:YO,NOALP:ZO,NOTEMPLATE:eF,ANNOERR:tF,ANNOTATIONFILE:nF,COMPONENTNOTDEFINED:iF,NOROUTING:oF,NOUIANNOTATIONS:aF,NOLINEITEMS:rF,NOCHARTS:sF,NOLINEITEMANDCHARTS:lF,NOVISUALIZATIONS:cF,NOTARGETS:pF,NOTARGET:fF,NOROUTINGID:uF,FLEXERROR:dF,INVALIDANCHOR:gF,NOFRAGMENT:mF,INVALIDTARGETDEFINITION:yF,NOID4SECTION:hF,XMLPARSEFAILURE:bF,TYPEERROR:TF,INCONSISTENTSCHEMA:SF,UNEXISTING_ANNOTATION_PATH:vF};function uv(e){e.addResourceBundle(e.language,"translation",bd)}r(uv,"initI18n");function Je(e="en"){R.init({resources:{en:{translation:dv.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
87
87
|
|
|
88
|
-
`}),$v(j)}r(Xe,"initI18n");var ke=U(B());function vo(e,t,n){var o;let i;for(let a in e){let s=e[a];if(Zn((o=s.component)==null?void 0:o.name)===ke.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=vo(s.pages,t,n),i))return n.unshift(a),i}}r(vo,"findObjectPageV2");function ya(e,t){var n;for(let i in e){let o=e[i];if(Zn((n=o.component)==null?void 0:n.name)===ke.PageTypeV2.ListReport)return t.push(i),o}}r(ya,"findListReportPageV2");function ha(e){if(!e.manifest[ke.ManifestSection.generic]){k(e.logger,{severity:ke.LogSeverity.Error,message:j.t("NOFE"),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}});return}let t=e.manifest[ke.ManifestSection.generic].pages;if(!t){k(e.logger,{severity:ke.LogSeverity.Error,message:j.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}});return}return t}r(ha,"getV2Pages");function ba(e,t,n){var i;if(!e){k(t,{severity:ke.LogSeverity.Error,message:j.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}});return}if(!e.entitySet){let o=(i=e.component)==null?void 0:i.name;k(t,{severity:ke.LogSeverity.Error,message:j.t("NOENTITYSET",{pageName:o}),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}})}}r(ba,"checkV2Page");function Ta(e,t,n){var i;for(let o in e){let a=e[o];if(t.push(o),Zn((i=a.component)==null?void 0:i.name)===ke.PageTypeV2.AnalyticalListPage)return a}k(n,{severity:ke.LogSeverity.Error,message:j.t("NOALP"),location:{path:ke.MANIFESTPATH,range:[ke.ManifestSection.generic]}})}r(Ta,"findAnalyticalListPage");function td(e,t){let n=e.split("|");return ke.v2.SectionPosition[n[0]]&&n[1]===t}r(td,"isAssociatedCustomSection");function Mv(e,t){let n=pt(e,`sap.ui5/extends/extensions/${ke.v2.SAPUI5_VIEW_EXTENSION}/${ke.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let o in n)td(o,t)&&(i[o]=n[o]);return i}r(Mv,"findCustomSectionExtensions");function NO(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}r(NO,"removeEmptySettingsOfFooter");function VO(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let o in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[o]).length===0&&delete e.filterBar.selectionFields[o];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}r(VO,"removeEmptySettingsOfFilterBar");function LO(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}r(LO,"removeEmptySettingsOfToolBar");function bc(e){LO(e),VO(e),NO(e)}r(bc,"removeEmptySettings");var id={};jo(id,{AnalyticalListPage:()=>ln,ListReport:()=>An,ObjectPage:()=>ht,OverviewPage:()=>Qe,exportFilterSettings:()=>_v,importDateSettingsOVP:()=>Uv,importFilterSettings:()=>kv});var Tc=U(B());var ln=class{};r(ln,"AnalyticalListPage"),d([g({flex:{controlId:Qs,controlType:r(()=>Tc.ControlType.DynamicPage,"controlType"),createFlexChange:_}})],ln.prototype,"fitContent",2),d([_e("table")],ln.prototype,"table",2),d([_e("template::SmartFilterBar")],ln.prototype,"filterBar",2),d([_e("analyticalListPageChart")],ln.prototype,"chart",2),d([_e("analyticalListFooter")],ln.prototype,"footer",2),ln=d([nn({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Tc.v2.FE_TEMPLATE_V2_ALP})],ln);var Or=U(B());var An=class{};r(An,"ListReport"),d([g({flex:{controlId:Qs,controlType:r(()=>Or.ControlType.DynamicPage,"controlType"),createFlexChange:_}})],An.prototype,"fitContent",2),d([_e("listReportFilter")],An.prototype,"filterBar",2),d([_e("listReport")],An.prototype,"table",2),d([_e("listReportFooter")],An.prototype,"footer",2),An=d([nn({id:Or.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Or.v2.FE_TEMPLATE_V2_LIST_REPORT})],An);var nd=U(B());var ht=class{};r(ht,"ObjectPage"),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.52.0"})],ht.prototype,"showConfirmationOnDraftActivate",2),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.52.1"})],ht.prototype,"hideChevronForUnauthorizedExtNav",2),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.48.0"})],ht.prototype,"allowDeepLinking",2),d([g({manifest:{path:r(t=>Nt(t),"path")}}),T({since:"1.52.0"})],ht.prototype,"navToListOnSave",2),d([_e("header")],ht.prototype,"header",2),d([_e("sections")],ht.prototype,"sections",2),d([_e("layout")],ht.prototype,"layout",2),d([g({manifest:{path:r(t=>hl(t),"path")}}),T({since:"1.77.0"})],ht.prototype,"defaultLayoutTypeIfExternalNavigation",2),d([g({manifest:{path:r(t=>Nt(t),"path"),import:r(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),T({since:"1.78.0"})],ht.prototype,"globalChartSettings",2),d([g({manifest:{path:r(t=>Nt(t),"path"),import:r(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Gi}}),T({since:"1.71.0"})],ht.prototype,"globalTableSettings",2),ht=d([nn({id:nd.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:nd.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ht);function DO(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let o in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[o];t.fields[n].filter[o]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[o].equals=a.equals.split(","))}}}r(DO,"importDateSettingsFieldsOVP");function Uv(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&DO(e,t),t}r(Uv,"importDateSettingsOVP");function kv(e){let t={};return t.dateSettings=Uv(e.filterSettings),t}r(kv,"importFilterSettings");function jO(e,t,n){for(let i in e.filterSettings[t].fields){let o=e.filterSettings[t].fields[i];if(o.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=o.selectedValues.join()),o.filter)for(let a in o.filter){let s=o.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}r(jO,"exportFilterFields");function _v(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&jO(t,n,e))}r(_v,"exportFilterSettings");var Qe=class{};r(Qe,"OverviewPage"),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"globalFilterModel",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"globalFilterEntityType",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"globalFilterEntitySet",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"showBasicSearch",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"disableErrorPage",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"smartVariantRequired",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"bHeaderExpanded",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"containerLayout",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"showDateInRelativeFormat",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"disableTableCardFlexibility",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"enableLiveFilter",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"enableLazyRendering",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"refreshStrategyOnAppRestore",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"considerAnalyticalParameters",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"refreshIntervalInMinutes",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"useDateRangeType",2),d([g({manifest:{path:r(()=>et(),"path"),import:kv,export:_v}}),T({since:"1.80.0"})],Qe.prototype,"filterSettings",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"dataLoadSettings",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"resizableLayout",2),Qe=d([nn({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Qe);var od=class od{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,o){let a=this.controls[o]?this.controls[o]:this.controls[n];return a||(a=this.pageTypes[t][o]?this.pageTypes[t][o]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};r(od,"MetadataFactory");var va=od;var mt=U(B());var RO={},$O={Table:so,ResponsiveTableWithMultiSelect:so,ResponsiveTableWithInlineDelete:so},wO={[mt.v2.CardSettingsType.listCardSettings]:ra,[mt.v2.CardSettingsType.listCardSettingsv4]:ra,[mt.v2.CardSettingsType.analyticalCardSettings]:sa,[mt.v2.CardSettingsType.analyticalCardSettingsv4]:sa,[mt.v2.CardSettingsType.stackCardSettings]:Ya,[mt.v2.CardSettingsType.linkListCardSettings]:Za,[mt.v2.CardSettingsType.tableCardSettings]:la,[mt.v2.CardSettingsType.tableCardSettingsv4]:la},MO={[mt.SAPUI5_VIEW_CLASS]:Pr,[mt.SAPUI5_FRAGMENT_CLASS]:Sr,Table:To,ObjectPageResponsiveTableWithMultiSelect:To,ObjectPageResponsiveTableWithInlineDelete:To},UO={[mt.PageTypeV2.AnalyticalListPage]:RO,[mt.PageTypeV2.ListReport]:$O,[mt.PageTypeV2.ObjectPage]:MO,[mt.PageTypeV2.OverviewPage]:wO},ad=class ad extends va{constructor(){super(zu,id,UO)}};r(ad,"MetadataInstanceFactoryV2");var Lt=ad;function kO(e,t,n,i,o){if(e.filterBar=t.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ListReportFilterBar,e.filterBar),st(e.filterBar,n.manifest,i[He.DefinitionName.ListReportFilterBar],o,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(He.PageTypeV2.ListReport,"SelectionFieldDateSettings"),st(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,o,n.logger,l)}}}r(kO,"importFilterBar");function rd(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,f,u;let l=yn(s),c={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(f=l.content)!=null&&f.newBinding?l.content.newBinding:(u=l.content)==null?void 0:u.newValue,controlType:l.controlType,creation:l.creation};dc(n.table,c,t)});let i=t.properties.columns.$ref.split("/").pop(),o=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in o)s!=="custom"&&gc(e,n,s)}r(rd,"importFlexChangesOfTableAndColumns");function _O(e,t,n,i,o){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[qi]&&t[Xi]&&(a=JSON.parse(JSON.stringify(t[qi])),a.properties={...a.properties,...t[Xi].properties}),st(n.table,i.manifest,a,o,i.logger),rd(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&k(i.logger,{severity:He.LogSeverity.Error,message:j.t("NOLINEITEMS")})}r(_O,"importTable");function BO(e,t,n,i){let o=e.jsonSchema.definitions,a=yc(e.manifest,i);if(t.table=n.createInstance(He.PageTypeV2.ListReport,a,t.table),hc(t,n,o),_O(a,o,t,e,i),t.table.toolBar=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ToolBar,{actions:{}}),st(t.table.toolBar,e.manifest,o[He.DefinitionName.ToolBarLR],i,e.logger),o[He.DefinitionName.ActionsLR])for(let l in o[He.DefinitionName.ActionsLR].properties){let c=ji(l);t.table.toolBar.actions[c]=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.Action),st(t.table.toolBar.actions[c],e.manifest,o[He.DefinitionName.Action],i,e.logger)}kO(t,n,e,o,i),t.footer={actions:{}};let s=o[He.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let c=ji(l);t.footer.actions[c]=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.FooterAction),st(t.footer.actions[c],e.manifest,o[He.DefinitionName.Action],i,e.logger)}}r(BO,"addSettings");function vc(e){if(Xe(),!ha(e))return;let n=new Lt,i=n.createPageInstance(He.PageTypeV2.ListReport),o=[],a=ya(e.manifest[He.ManifestSection.generic].pages,o);if(ba(a,e.logger,a==null?void 0:a.entitySet),!!a)return BO(e,i,n,o[0]),e.flex.forEach(s=>{yn(s)&&mc(i,s,e.jsonSchema,e.logger)}),ma(i,e,a,He.PageTypeV2.ListReport),bc(i),i}r(vc,"createListReportConfig");var De=U(B());function HO(e,t,n,i){var p,f;let o=yc(e.manifest,i),a=e.jsonSchema.definitions;hc(t,n,a),t.table=n.createInstance(De.PageTypeV2.AnalyticalListPage,`ALP${o}`,t.table);let s=a[`ALP${o}<LineItems>`];if(st(t.table,e.manifest,s,i,e.logger),rd(e,s,t),t.table.toolBar=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.ToolBar,{actions:{}}),st(t.table.toolBar,e.manifest,a[De.DefinitionName.ToolBar],i,e.logger),a[De.DefinitionName.ActionsLR])for(let u in a[De.DefinitionName.ActionsLR].properties){let m=ji(u);t.table.toolBar.actions[m]=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.Action),st(t.table.toolBar.actions[m],e.manifest,a[De.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),st(t.filterBar,e.manifest,a[De.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[De.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let u=a[De.DefinitionName.SelectionFields].properties;for(let m in u){let b=m;t.filterBar.selectionFields[b]=n.createInstance(De.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),st(t.filterBar.selectionFields[b],e.manifest,a.SelectionFieldDateSettings,i,e.logger,b)}}t.chart=n.createInstance(De.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),st(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[De.DefinitionName.FooterActionsLR];if(l)for(let u in l.properties){let m=ji(u);t.footer.actions[m]=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.FooterAction),st(t.footer.actions[m],e.manifest,a[De.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let c=(f=(p=e.manifest[De.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:f.keyPerformanceIndicators;c&&Object.keys(c).forEach(u=>{t.keyPerformanceIndicators[u]=n.createInstance(De.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(De.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),st(t.keyPerformanceIndicators[u],e.manifest,a.KPISettings,i,e.logger,u)})}r(HO,"addSettings");function Sc(e){if(Xe(),!ha(e))return;let n=new Lt,i=n.createPageInstance(De.PageTypeV2.AnalyticalListPage),o=[],a=Ta(e.manifest[De.ManifestSection.generic].pages,o,e.logger);if(ba(a,e.logger,a==null?void 0:a.entitySet),!!a)return HO(e,i,n,o[0]),e.flex.forEach(s=>{yn(s)&&mc(i,s,e.jsonSchema,e.logger)}),ma(i,e,a,De.PageTypeV2.AnalyticalListPage),bc(i),i}r(Sc,"createAnalyticalListPageConfig");var W=U(B());var Fr=require("@sap-ux/vocabularies-types/vocabularies/UI");var WO=[W.ControlType.Avatar,W.ControlType.ObjectPageLayout,W.ControlType.DynamicPage];function QO(e,t){let n=e[0].split("--"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Fr.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${W.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Fr.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let o=i.split("::");o.length>1?t=o[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}r(QO,"getSingleSelectorIdPart");function KO(e){let t,n=e.split(":::");if(n.length===1)t=QO(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Fr.UIAnnotationTerms.LineItem}`,`/@${Fr.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}r(KO,"getFacetID");function JO(e,t,n){let i={},o=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,c,p;try{let f=yn(s),u=f&&((l=f.controlId)==null?void 0:l.split("--"))||[];if(f&&((c=u[0])!=null&&c.includes(W.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=u[0])!=null&&p.endsWith(t))){let m=u[1].replace(/:3a:3a/g,"::");o.exec(m)!==null&&(m=m.split("template:::TableColumn:::")[1]);let b=KO(m);m=Zu(m).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${m}::${f.content.property}`]={controlId:m,propertyId:f.content.property,facetId:b,newValue:f.content.newBinding!==void 0?f.content.newBinding:f.content.newValue,controlType:f.controlType,creation:f.creation}}}catch(f){k(n,{severity:W.LogSeverity.Error,message:j.t("FLEXERROR")},...f)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,c])=>(s[l]=c,s),{})}r(JO,"prepareFlexChanges");var qO=r(e=>{var n,i,o;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(O,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace(O,"");if((o=e.properties)!=null&&o.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function XO(e,t,n,i){if(Object.keys(e.properties).some(o=>o===t.propertyId))for(let o in n)o!=="custom"&&Yu(i,t,o)}r(XO,"addFlexChangeToColumns");function Bv(e,t,n,i,o,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,W.VOCWITHSLASH)];for(let c in e){let p=e[c],f=p.propertyId===t,u=t==="columns"&&p.controlType===W.ControlType.TableColumn;(f||u)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?XO(a,p,o.properties,n):dc(n,p,o))}}r(Bv,"importFlexChangesOfTable");function zO(e,t){return e.facetId==="template"&&t}r(zO,"isStandardActionFlexChange");var Hv=r((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),o=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,o);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function YO(e,t,n,i,o,a){var N;let s=!1,l=!1;a?(s=l=n.test(t.controlId),o&&(s=l&&i.test(t.controlId))):o&&(s=i.test(t.controlId));let c=t.controlId.split("::"),p=t.controlType===W.ControlType.GroupElement&&l,f=((N=t.facetId)==null?void 0:N.includes(W.ACTIONTITLEPREFIX))&&!o&&s,u=o&&Hv(c,o.split("::"))&&s,m=e.title&&Hv(c,e.title.split("::"),!0),b=!t.facetId&&WO.includes(t.controlType),S=zO(t,l);return p||f||u||m||b||S}r(YO,"matchSelector");function ZO(e,t,n,i,o,a){var c;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${o}`);for(let p in n){let f=n[p];if(f.propertyId!==i||f.controlType!==((c=e.properties[f.propertyId])==null?void 0:c[W.SchemaTag.controlType]))continue;YO(e,f,s,l,o,a)&&(t[i]=f.newValue)}}r(ZO,"importFlexChanges");function eF(e,t,n,i){if(e&&t)for(let o in e){let a=t[o];a&&(k(n.logger,{severity:W.LogSeverity.Warning,message:Jo(o,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[o])}}r(eF,"checkDeprecatedProperties");function tF(e,t,n,i,o,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,c,p;s!=null&&s.title?(c=e.manifest.path(t,{},s.title),p=pt(n.manifest,c),Object.values(p).length===0&&(c=e.manifest.path(t,{},l),p=pt(n.manifest,c))):(c=e.manifest.path(t,{},l),p=pt(n.manifest,c));let f=e.manifest.import;if(f&&typeof f=="function"){let u=f(p,s==null?void 0:s.id);u!==void 0&&(i[o]=u)}else{let u=e.manifest.key||o;u in p&&(i[o]=p[u])}return eF(p,a,n,c),p}r(tF,"importManifestSetting");function Dt(e,t,n,i,o,a){var c,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let f in n.properties||n){let u=dt(t,f);if(f==="columns"||u!=null&&u.flex)if((c=o==null?void 0:o.type)!=null&&c.startsWith("ObjectPageSectionTableV2")||(p=o==null?void 0:o.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(f==="columns"){let m=n.properties[f].$ref.split(O)[1],b=e.jsonSchema.definitions[m];Bv(i.flexChanges,f,t,o,b,l)}else Bv(i.flexChanges,f,t,o,n);else{let m=(o==null?void 0:o.title)||(o==null?void 0:o.id);ZO(n,t,i.flexChanges,f,m,a)}else u!=null&&u.manifest&&tF(u,i.pageKeys,e,t,f,s,o)}}r(Dt,"transferSettingsAndFlexChanges");function Wv(e,t,n,i){let o=kt(t);switch(e){case"FormAction":{o=`action::${o}::${i}::${n}`;break}case"ObjectPageFooterAction":{o=`action::${o}::Determining`;break}case"ObjectPageToolBarAction":{o=o.includes("sAction::")?`action::${o.split("sAction::")[1]}`:`action::${o.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{o=`${ET}${o}`;break}case"ObjectPageFooterActionStandard":{o=`${tl}${o}`;break}}return o.replace(/@/g,"")}r(Wv,"getActionId");function nF(e,t,n,i){var o;for(let a in t){let s=t[a].$ref.split(O)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(o=t[a].$ref.split("<"))==null?void 0:o[1].split(">")[0],c=Wv(s,a,"","");e.actions[a]=i.factory.createInstance(W.PageTypeV2.ObjectPage,l,{}),Dt(n,e[W.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},c)}}}r(nF,"fillStandardActions");function Pc(e,t,n,i,o,a){var l;n[W.PropertyName.actions]={};let s=o.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let c={};a&&(c.id=a);for(let p in t){let f=ji(p),u=Wv(s,f,o,a);u&&(n[W.PropertyName.actions][f]=i.factory.createInstance(W.PageTypeV2.ObjectPage,s),Dt(e,n[W.PropertyName.actions][f],e.jsonSchema.definitions[s],i,c,u)),(l=n[W.PropertyName.actions])!=null&&l[f]&&Object.keys(n[W.PropertyName.actions][f]).length===0&&delete n[W.PropertyName.actions][f]}}nF(n,t,e,i),Object.keys(n[W.PropertyName.actions]).length===0&&delete n[W.PropertyName.actions]}r(Pc,"fillActions");function iF(e,t,n,i,o){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=o.factory.createInstance(W.PageTypeV2.ObjectPage,"Field");let c=(s=t.title)!=null&&s.includes(W.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Dt(e,i[t.id].form.fields[l],e.jsonSchema.definitions[W.DefinitionName.Field],o,{},c),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}r(iF,"fillFields");function oF(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}r(oF,"prepareTableSchema");function aF(e,t,n,i,o){var l,c;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||o.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",f=o.factory.createInstance(W.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=o.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][W.PropertyName.table]=f;let u=e.jsonSchema.definitions,m=oF(p,t,u);Dt(e,i[t.id],t.schema,o,{title:t.title}),Dt(e,i[t.id][W.PropertyName.table],m,o,t);let b=JSON.parse(JSON.stringify(u))[`Actions<${t.id}>`];if(b!=null&&b.properties){let S=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(c=t==null?void 0:t.id)==null?void 0:c.replace(/@/g,"::").replace(/::com/g,"com");Pc(e,b.properties,i[t.id][W.PropertyName.table].toolBar,o,"ObjectPageToolBarAction",S)}Object.keys(i[t.id][W.PropertyName.table].toolBar).length===0&&delete i[t.id][W.PropertyName.table].toolBar}}r(aF,"fillTableInConfig");function rF(e,t,n,i,o){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Xs(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};ma(n[t],e,i,W.PageTypeV2.ObjectPage,l,o)}}r(rF,"fillCustomColumnsInConfig");function sF(e,t,n,i,o){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=o.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][W.PropertyName.chart]=o.factory.createInstance(W.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||o.flexChanges)&&(Dt(e,i[t.id],t.schema,o,{title:t.title}),Dt(e,i[t.id][W.PropertyName.chart],e.jsonSchema.definitions[W.DefinitionName.ObjectPageChart],o,t))}r(sF,"fillChartSection");function lF(e,t,n,i){n[t.id]=i.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Dt(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}r(lF,"fillHeaderSection");function cF(e,t,n,i){var c;let o=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Dt(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${o}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(c=t==null?void 0:t.id)==null?void 0:c.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&Pc(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${o}`];l!=null&&l.properties&&iF(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}r(cF,"fillFormSection");function Gv(e,t,n,i,o){var l;i[t.id]=o.factory.createInstance(W.PageTypeV2.ObjectPage,t.type,{subsections:{}}),o.flexChanges&&Dt(e,i[t.id],t.schema,o,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,sd(e,a,n,i[t.id].subsections,o),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}r(Gv,"fillSubSection");function sd(e,t,n,i,o){var s;let a=e.jsonSchema.definitions;for(let l in t){let c=l.replace(/\/@/g,"::"),p={id:c,type:qO(t[l]),schema:t[l],title:nf(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],aF(e,p,n,i,o),rF(e,c,i,o.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],sF(e,p,n,i,o);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],cF(e,p,i,o);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],Gv(e,p,n,i,o);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],lF(e,p,i,o);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],Gv(e,p,n,i,o))}}r(sd,"fillSectionsInConfig");function pF(e,t,n,i,o){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(W.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(W.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Dt(o,s,l,n,{id:a}),t.sections.custom.push(s)}}}r(pF,"fillCustomSectionsInConfig");function fF(e,t){var f,u;let n=t.factory.createPageInstance(W.PageTypeV2.ObjectPage);Dt(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(W.PageTypeV2.ObjectPage,W.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Dt(e,n.globalTableSettings,i[W.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(W.PageTypeV2.ObjectPage,W.DefinitionName.ObjectPageHeader);let o=i[W.DefinitionName.ObjectPageHeader]?i[W.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Dt(e,n.header,o,t);let a=i[W.DefinitionName.HeaderActions];a&&Pc(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let s=i[W.DefinitionName.FooterActions];s&&Pc(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(W.PageTypeV2.ObjectPage,"ObjectPageLayout"),Dt(e,n.layout,i[W.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[W.DefinitionName.HeaderSections];if(l){let m=(f=t.v2Page.component)==null?void 0:f.settings;sd(e,l.properties,m,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let c=i[W.DefinitionName.Sections];if(c){let m=(u=t.v2Page.component)==null?void 0:u.settings;sd(e,c.properties,m,n.sections,t)}let p=Mv(e.manifest,e.entitySet);return pF(p,n,t,i,e),n}r(fF,"fillConfig");function Ac(e){Xe();let t=ha(e);if(!t)return;let n=e.entitySet,i=[],o=vo(t,e.entitySet,i);if(ba(o,e.logger,n),!o)return;let a=JO(e.flex,n),s=new Lt;return fF(e,{pageKeys:i,flexChanges:a,v2Page:o,factory:s})}r(Ac,"createObjectPageConfigV2");function Ec(e,t){var n,i;return(n=e.component)!=null&&n.name?Wo(Zn((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}r(Ec,"generateId");function uF(e,t,n,i){e.navigation={};let o=Qv(t.pages,n);for(let a in o){let s=o[a];i[a]=s}for(let a in t.pages){let s=Ec(t.pages[a],a);e.entitySet?e.navigation[s]=o[s].navigationProperty?`${e.entitySet}.${o[s].navigationProperty}`:e.entitySet:e.navigation[s]=o[s].navigationProperty?o[s].navigationProperty:s}}r(uF,"getPageConfigsAndNavigations");function Qv(e,t){var i;let n={};for(let o in e){let a=e[o],s=Ec(a,o);if(!s)continue;let l={pageType:Zn((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let c=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(c)if(l.pageType===lt.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[c],fragments:t.fragments,logger:t.logger};l.config=vc(p)}else if(l.pageType===lt.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[c],fragments:t.fragments,logger:t.logger};l.config=Sc(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[c],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=Ac(p)}a.pages&&uF(l,a,t,n)}return n}r(Qv,"getPagesAndConfigs");var ld=class ld extends bi{constructor(t){Xe();let n;t.manifest[lt.ManifestSection.generic]?n=t.manifest[lt.ManifestSection.generic].pages:k(t.logger,{severity:lt.LogSeverity.Error,message:j.t("NOFE"),location:{path:lt.MANIFESTPATH,range:[lt.ManifestSection.generic]}}),n||k(t.logger,{severity:lt.LogSeverity.Error,message:j.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:lt.MANIFESTPATH,range:[lt.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],o=n&&Ec(n[i],i),a=new vi,s=Je(lt.SchemaType.Application),l=t.appSchemas[s.filename];st(a,t.manifest,l.definitions.AppSettings,void 0),super(t,o,Qv(n,t),a)}};r(ld,"V2AppProvider");var Cc=ld;function Nr(e,t,n){var o,a;let i={};for(let s in e){let l=e[s];if((o=l.component)!=null&&o.name||k(n,{severity:lt.LogSeverity.Error,message:j.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:lt.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let c=Ec(l,s);i[c]=l}if(t===lt.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let c=Nr(l.pages,t,n);for(let p in c)i[p]=c[p]}}return i}r(Nr,"getPages");var Po=U(B());var Hn=U(B());var pd=U(Fp());var $e=U(B());var dF=["colorPalette","tabs"];function gF(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}r(gF,"createCard");function Kv(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),Kv(e,n.join("|"))}return t}r(Kv,"findAvailableId");function Vr(e,t,n,i,o,a,s){i!=null&&i.properties&&cd(e,t,n,i.properties,o,a,s)}r(Vr,"transferManifestEntriesOVP");function So(e,t,n,i){return e.createInstance($e.PageTypeV2.OverviewPage,i,n,t)}r(So,"assignReflectMetadataRules");function mF(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split(O),o=e.appSchema.definitions[i[1]];t=So(e.factory,i[1],t,"CustomCard"),Vr(t,e.exportResults,e.appSchema,o,e.factory,[...e.pathHierarchy])}return t}r(mF,"processAnyOfDefinitionsOfOVP");function yF(e,t,n,i,o){e&&typeof e=="function"?e(t,n,i):typeof o=="object"&&!dF.includes(i)?t[i]=(0,pd.default)(t[i]||{},o||{},{arrayMerge:ef}):t[i]=o}r(yF,"checkSyncRuleForExport");function hF(e,t,n,i,o,a){let s=e.manifest.path([...t,n]),l=pt(i.manifest,s);if(n in $e.v2.CardSettingsType||n==="settings")l.settings=(0,pd.default)(l.settings||{},o||{},{arrayMerge:ef});else if(o!==void 0){let c=e.manifest.export;yF(c,l,a,n,o)}else l[n]!==void 0&&delete l[n]}r(hF,"transferToManifest");function bF(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values($e.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(o=>{var s;let a=(s=e.appSchema.definitions[o].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=So(e.factory,i[0],e.currentObject[t],"CustomCard"),gF(t,e.exportResults.manifest[$e.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=$e.ChangeIndicator.Updated,Vr(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[$e.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[$e.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=$e.ChangeIndicator.Updated)})}r(bF,"transferCards");function TF(e,t){if(t==="cards")bF(e);else{let n=Rn(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,$e.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(O);e.currentObject=So(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Vr(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],cd(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],cd(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}r(TF,"exportOfObject");function cd(e,t,n,i,o,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!Ho(a,s)&&a[a.length-1]!=="anyOf")continue;let c=e[l],p=dt(e,l),f={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:c,configObject:e,factory:o,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(f.currentObject=e[a[a.length-2]],c=mF(f)):c&&typeof c=="object"&&i[l]&&TF(f,l),p!=null&&p.manifest&&hF(p,a,l,t,c,e)}}r(cd,"processProperties");function vF(e,t,n,i,o,a,s){let l;t.length===0?l=["page"]:l=t;let c=n.flex.controlId(e.baseId,i,l,n.flex.controlType,o),p=PT(a,n,e.ui5Version,s,c),f=JSON.parse(JSON.stringify(e.exportResults.manifest));f["sap.app"].id=e.appId;let u=n.flex.createFlexChange(p,f);e.exportResults.flexChanges.find(b=>{let S=!1,N=JSON.parse(b);N={content:N.content,selector:N.selector};let L=JSON.parse(u);return L={content:L.content,selector:L.selector},JSON.stringify(N)===JSON.stringify(L)&&(S=!0),S})||e.exportResults.flexChanges.push(u)}r(vF,"evaluateFlexRule");function SF(e,t,n,i,o,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=$e.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,o,a):s!==!1&&(n[a]=i[o]),e.exportResults.manifestChangeIndicator=$e.ChangeIndicator.Updated}}r(SF,"exportConfigValueToManifest");function PF(e,t,n,i,o){let a=pt(e.exportResults.manifest,t),s=n.manifest.key||i;if(o[i]!==void 0)SF(e,n,a,o,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,o,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=$e.ChangeIndicator.Updated,mi(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}r(PF,"evaluateManifestRule");function AF(e,t,n,i,o){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},o!=null&&o.startsWith($e.FACETTITLEPREFIX)?o.split($e.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}r(AF,"getManifestPathOfSections");function CF(e,t,n,i,o){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,o.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}r(CF,"getManifestPathOfTable");function EF(e,t,n,i,o){let a;return t[0]===$e.PropertyName.sections?a=AF(t,a,n,e,o):t[0]===$e.PropertyName.table?a=CF(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,o):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}r(EF,"getManifestPath");function xF(e,t,n,i,o,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)vF(e,i,t,o,a,n,s);else if(t.manifest){let c=EF(e,i,t,n,a);PF(e,c,t,s,n)}}r(xF,"evaluateExportRule");function IF(e,t,n){var s;let i=e.split("|"),o=i[1],a=i[2];if(o===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(c=>(c.tabKey===a||a===void 0&&c.tabKey===""||a&&t.sectionKey===a)&&c.extensionType===t.extensionType);if((!l||l.length===0)&&(Il(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith($e.ViewTemplateType.ResponsiveTableColumnsExtension))){let c=e.replace($e.ViewTemplateType.ResponsiveTableColumnsExtension,$e.ViewTemplateType.ResponsiveTableCellsExtension);Il(n,c,t.appId,t.exportResults.fragments),delete n[c]}}}r(IF,"deleteObsoleteColumn");function OF(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=JT(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let o in n)o.startsWith(i)&&(e.exportResults.manifestChangeIndicator=$e.ChangeIndicator.Updated,IF(o,e,n))}r(OF,"deleteObsoleteColumnsFromFragment");function FF(e,t,n,i,o){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:c}=Ol(n,i,s.tabKey||o,s.extensionType);a[l]||(a[l]={viewTemplateType:c,columns:[]}),a[l].columns.push(s)}return a}r(FF,"clusterConfigColumnsByPath");function Jv(e,t,n,i){if(!e.v2Page)return;let o=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in $e.v2.TableColumnExtensionTypeV2){let{path:c}=Ol(e.v2Page,s,o,l);if(!c)continue;let p={path:c,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:o,extensionType:l,appId:e.appId};try{OF(p)}catch(f){e.logger.error(f.message)}}if(t){let l=FF(t,n,e.v2Page,s,o);for(let c in l)kf(e.exportResults,c,l[c].columns,e.appId,l[c].viewTemplateType,e.logger)}}r(Jv,"transferColumnExtensions");function NF(e,t,n,i,o,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let f=Kv(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(f)}for(let p=0;p<s.length;p++){let u=a.anyOf.find(b=>{var S;return(S=b.$ref)==null?void 0:S.includes(t[p].constructor.name)}).$ref.split(O),m=e.appSchema.definitions[u[u.length-1]];Ri(e,t[p],i,[...o,s[p]],m)}let c=pt(e.exportResults.manifest,df());for(let p in c)td(p,l)&&!s.includes(p)&&delete c[p]}r(NF,"transferManifestExtensions");function VF(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===$e.PropertyName.table){n=e[i-1];break}return ut(n,t)}r(VF,"getSectionId");function LF(e,t,n,i,o,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let c=Rn(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);Ri(t,c.configObject,o,[...a,i],c.targetDefinition,l)})}r(LF,"transferIndexTable");function DF(e,t,n,i,o,a){let s,l=Xs(e.$ref);l&&(s={target:l,key:VF(t,n)}),Jv(i,o==null?void 0:o.custom,a.targetDefinition,s)}r(DF,"transferCustomColumns");function jF(e,t,n,i,o,a,s){e.anyOf.forEach(l=>{let c=Rn(t.appSchema,n,i,l,o,t.factory,t.pageType);c&&Ri(t,c.configObject,a,[...s,o],c.targetDefinition,c.title)})}r(jF,"handleAnyOfDefinitions");function RF(e,t,n,i,o,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&o==="custom")NF(e,n[o],e.pageKeys[e.pageKeys.length-1],i,[...t,o],l==null?void 0:l.items);else if(a&&o==="custom"){DF(l,t,s,e,n,a);return}else a?Ri(e,a.configObject,i,[...t,o],a.targetDefinition,a.title):l.anyOf&&jF(l,e,s,n==null?void 0:n[o],o,i,t)}r(RF,"transferComplexProperty");function Ri(e,t,n,i,o,a){let s;if(o!=null&&o.properties)for(let l in o.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!Ho(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let c=t&&Ks(t,l),p=c?[...n,c]:n,f=dt(t,l),u=e.propertyDefinition=o.properties[l],m=e.nextDefinition=Rn(e.appSchema,a,s,u,l,e.factory,e.pageType);if(xF(e,f,t,[...i],p,a,l),LF(s,e,a,l,p,i),s===void 0||typeof s=="object")RF(e,i,t,p,l,m,a);else if((u==null?void 0:u.$ref)===O+"TableCustomColumns"){Jv(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}r(Ri,"transferManifestEntriesAndFlexChange");function qv(e,t,n,i,o,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=So(o,i,n[i],s),a.push(i),fd(o,n[i],e,l.properties,a)}r(qv,"transferSettingsOfRef");function $F(e,t,n,i,o,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(O);qv(i,s,e,t,o,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${O}${Hn.v2.cardTemplateSettingsMap[e.template]}`.split(O);qv(i,l,e,t,o,a)}}r($F,"processPropertiesOfObject");function wF(e,t,n,i,o,a){let s=dt(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),c=pt(i.manifest,l);if(Object.prototype.hasOwnProperty.call(c,t))try{qo(s,c,t,e)}catch(p){k(i.logger,{severity:Hn.LogSeverity.Error,message:j.t("XMLPARSEFAILURE",{error:iT(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof o[t]=="object"&&$F(e,t,o,i,a,n)}r(wF,"processOvpProperty");function fd(e,t,n,i,o){for(let a in i)wF(t,a,o,n,i,e)}r(fd,"processOvpProperties");function MF(e,t,n){fd(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Hn.ManifestSection.ovp].cards).forEach(i=>{let o=t.manifest[Hn.ManifestSection.ovp].cards[i].template,a=Hn.v2.cardTemplateTypeMap[o]??"CustomCard";e.cards[i]=So(n,a,{},"CustomCard"),e.cards=So(n,a,e.cards,"CustomCard"),fd(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}r(MF,"addSettings");function xc(e){let t=new Lt,n=t.createPageInstance(Hn.PageTypeV2.OverviewPage);return e.jsonSchema&&MF(n,e,t),n}r(xc,"createOverviewPageConfig");var ud=class ud extends bi{constructor(t){let n={},i=t.manifest[Po.ManifestSection.ovp],o=new vi,a=Je(Po.SchemaType.Application);st(o,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(f=>f.includes(Po.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},c={pageType:Po.PageTypeV2.OverviewPage,config:xc(l),entitySet:i.globalFilterEntitySet},p=Wo(c.pageType,c.entitySet);n[p]=c,super(t,p,n,o)}};r(ud,"V2OvpProvider");var Ic=ud;var Oc=require("@sap-ux/vocabularies-types/vocabularies/UI");var G=U(B());function UF(){return([e,t],[n,i])=>t[G.SchemaTag.propertyIndex]-i[G.SchemaTag.propertyIndex]}r(UF,"sortByPropertyIndex");function kF(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(UF())}r(kF,"sortPropertiesRecords");function Xv(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}r(Xv,"getExtensionText");function dd(e,t,n,i,o){var s;(((s=e.position)==null?void 0:s.placement)||G.v4.Placement.After)===G.v4.Placement.Before?t.splice(n,0,[i,o]):t.splice(n+1,0,[i,o])}r(dd,"addExtensionToSortedArray");function _F(e,t,n,i,o){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var c,p,f;return((c=l.position)==null?void 0:c.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((f=n.position)==null?void 0:f.anchor)})===-1&&(i.splice(i.length,0,[t,o]),delete e[t])}r(_F,"addRemainingTargetByBefore");function gd(e,t,n,i,o=!1){var c,p;let a=Object.entries(e).length,s=r((f,u)=>{let m=Xv(f);return{$ref:`${O}${t}`,description:m,keys:[{name:G.SchemaKeyName.key,value:`${u}`}]}},"getExtensionDetails");for(let f of Object.keys(e)){let u=e[f],m=s(u,f);if((c=u.position)!=null&&c.anchor&&((p=u.position)!=null&&p.placement)){let b=n.findIndex(S=>S[0]===u.position.anchor);b>-1?(dd(u,n,b,f,m),delete e[f]):f===u.position.anchor||Object.keys(e).indexOf(u.position.anchor)===-1?(k(i,{severity:Xt.LogSeverity.Error,message:j.t("INVALIDANCHOR",{id:f,anchor:u.position.anchor}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5]}}),n.splice(n.length,0,[f,m]),delete e[f]):o&&_F(e,f,u,n,m)}else o&&(dd(u,n,n.length,f,m),delete e[f])}let l=Object.entries(e).length;l>0&&a!==l?gd(e,t,n,i):l>0&&gd(e,t,n,i,!0)}r(gd,"adjustCustomExtReferringToCustomExt");function BF(e,t){var o,a;let n=((o=e.position)==null?void 0:o.placement)||G.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===G.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}r(BF,"getExtensionAnchor");function HF(e,t){var i;let n=[];for(let o in e){let a=(i=e[o].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(o)}return n}r(HF,"getLocalExtensionsToSkip");function GF(e,t,n,i){return n.findIndex(o=>o[0]===i)}r(GF,"getExtensionIndex");function WF(e,t,n,i,o){k(e,{severity:Xt.LogSeverity.Error,message:j.t("INVALIDEXTENSION",{id:t}),location:{path:G.MANIFESTPATH}}),n.push([t,i]),delete o[t]}r(WF,"handleInvalidExtension");function QF(e,t,n,i="template",o){let a=[...t],s={...e},l=HF(s,a);if(!s)return[];for(let c of Object.keys(s)){let p=s[c];if(l!=null&&l.includes(c))continue;let f={$ref:`${O}${n}`,description:Xv(p)||c,keys:[{name:G.SchemaKeyName.key,value:`${c}`}],actionType:G.ActionType.Custom};if(typeof p!="object"){WF(o,c,t,f,s);continue}if(!(i in p)){delete s[c];continue}let u=BF(p,a);if(u){let m=GF(p,e,t,u);m>-1&&(dd(p,t,m,c,f),delete s[c])}else t.push([c,f]),delete s[c]}return Object.keys(s).length>0&&gd(s,n,t,o),t}r(QF,"addExtensionToArray");function KF(e){let t;return e.lineItemId.startsWith(G.DefinitionName.LineItemsOfView)?t=G.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(G.DefinitionName.LineItems)?t=G.DefinitionName.ToolBarAction:t=G.DefinitionName.ObjectPageToolBarAction,t}r(KF,"determineActionDefinitionName");function JF(e,t,n){e[G.SchemaTag.keys]=[],t[G.SchemaKeyName.semanticObject]&&e[G.SchemaTag.keys].push({name:G.SchemaKeyName.semanticObject,value:t[G.SchemaKeyName.semanticObject]});let{key:i,ns:o}=Yi(n,!0);e[G.SchemaTag.keys].push({name:G.SchemaKeyName.action,value:i}),o&&(e[G.SchemaTag.target]=o)}r(JF,"addTargetAndKeysOfAction");function qF(e,t,n,i,o,a=!0){if(i.Determining===!0)return;let s=KF(e),l=Ct(i,e.entityType),c=i.$Type.split(`${G.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,f=zs(p),u=t.properties[`${c}::${f}`]={description:l};if(a?u.$ref=Gt(s,Oe(f)):(u.properties={},u.type="object",u.isViewNode=!0),u[G.SchemaTag.propertyIndex]=o,u[G.SchemaTag.dataType]=hn(i),JF(u,i,p),u[G.SchemaTag.annotationType]=i.$Type,a){let m=gt(s,Oe(f),e.appSchema);m[G.SchemaTag.annotationPath]=`${n}/${o}`}else u[G.SchemaTag.annotationPath]=`${n}/${o}`}r(qF,"addActionRecordToSchema");function XF(e,t,n,i,o){var c;let a=t.lineItemId,s=t.lineItemRecord;if((c=s.Target)!=null&&c.value){let p=`@${Ut(G.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=oi(s).replace(/\//g,"::");if(l){let p=o;p||(p=e.appSchema.definitions[a]);let f=p.properties,u={description:Ct(s,e.entityType)};o?(u.properties={},u.type="object",u.isViewNode=!0):u.$ref=O+n,u[G.SchemaTag.annotationType]=s==null?void 0:s.$Type,u[G.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,u[G.SchemaTag.propertyIndex]=i,u[G.SchemaTag.dataType]=hn(s),f[l]=u,sl(s,f,l)}}r(XF,"addLineItemRecordToSchema");function zF(e,t,n,i,o=G.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Oc.UIAnnotationTypes.DataFieldForAction||s.$Type===Oc.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))qF(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},c=s.$Type===Oc.UIAnnotationTypes.DataFieldForAction?`${o}Action`:o;XF(e,l,c,a,i)}a++})}r(zF,"appendLineItemsToSchema");function Ao(e,t=G.DefinitionName.TableColumn){let{actions:n,lineItemPath:i}=al(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId);zF(e,n,i,void 0,t)}r(Ao,"addLineItemsTypeToSchema");function Fc(e,t,n,i){var a,s;let o;if(n){for(let l in e)if(((s=(a=e[l].options)==null?void 0:a.settings)==null?void 0:s.entitySet)===n.name&&(Ws(t,e[l].name)||t===G.v4.FE_TEMPLATE_V4_ALP&&e[l].name===G.v4.FE_TEMPLATE_V4_LIST_REPORT)){o=e[l];break}}return o}r(Fc,"findPageV4");function zv(e,t){let n,i=e.properties[G.PropertyName.table];return t.templateType===G.TemplateType.AnalyticalListPageV4?(n=G.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${O}${G.DefinitionName.ALPTableView}`,delete e.definitions[G.DefinitionName.Table],delete e.definitions[G.DefinitionName.LRChartView],delete e.definitions[G.DefinitionName.LRTableView],delete e.definitions[G.DefinitionName.MultiTableModeV4]):t.templateType===G.TemplateType.ListReportObjectPageV4&&(n=G.DefinitionName.Table,delete i.anyOf,i.$ref=`${O}${G.DefinitionName.Table}`,e.definitions[n].properties[G.PropertyName.annotationPath][G.SchemaTag.hidden]=!0,delete e.definitions[G.DefinitionName.ALPTableView],e.properties[G.PropertyName.defaultPath][G.SchemaTag.hidden]=!0),n}r(zv,"alignSchemaWithTemplateType");function Yv(e,t,n,i,o,a){var p,f,u,m;let s=kF(t),l=new Map;if(s=s.map(b=>{let S=cf(e,b[1],b[0],{keyProperties:[G.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return l.set(S.const,b[0]),[S.const,b[1]]}),!o&&i.includes(G.DefinitionName.ObjectPageCustomSectionFragment)){let b=(m=(u=(f=(p=n.options)==null?void 0:p.settings)==null?void 0:f.content)==null?void 0:u.body)==null?void 0:m.sections;b&&(s=QF(b,s,i,"name",a))}for(let b=0;b<s.length;b++)s[b][1][G.SchemaTag.propertyIndex]=b;let c={};s.forEach(([b,S])=>{b=l.get(b)||b,c[b]=S}),t.properties=c}r(Yv,"addCustomSectionDefinition");var E=U(B()),yd=require("@sap-ux/vocabularies-types/vocabularies/UI");var YF=["filterBar","chart","table"],md="@UI.LineItem";function ZF(e,t,n,i){if(i||(i=t.definitions.SelectionFields,i.additionalProperties=!1,i.properties={}),e&&(i[E.SchemaTag.annotationPath]=Mt(e.fullyQualifiedName,yd.UIAnnotationTerms.SelectionFields)),n){let o=0;n==null||n.forEach(a=>{var p,f;let s=a.value,l="SelectionField::"+Oe(a.value);a.type==="PropertyPath"&&(s=Bs(a,e)),i.properties[l]={$ref:O+l},i.properties[l][E.SchemaTag.propertyIndex]=o;let c=hn(a);t.definitions[l]={type:"object",properties:{},description:s,additionalProperties:!1,...c&&{dataType:c}},t.definitions[l][E.SchemaTag.isViewNode]=!0,t.definitions[l][E.SchemaTag.keys]=[{name:E.SchemaKeyName.value,value:`${a.value}`}],((p=a.$target)==null?void 0:p.fullyQualifiedName.indexOf("@"))>-1?t.definitions[l][E.SchemaTag.target]=a.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(f=a.$target)!=null&&f.fullyQualifiedName&&(t.definitions[l][E.SchemaTag.target]=a.$target.fullyQualifiedName.split("/")[0]),t.definitions[l][E.SchemaTag.annotationType]=a==null?void 0:a.type,t.definitions[l][E.SchemaTag.annotationPath]=`${i[E.SchemaTag.annotationPath]}/${o}`,o++})}return i}r(ZF,"addSelectionFields");function eS(e,t,n,i,o){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${E.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(c=>{let p=Oe(`${E.DefinitionName.ChartToolBarAction}<${c.Action}>`),f=Ct(c,o),u=c.$Type.split(`${E.UIVOCABULARY}.`)[1],m=a.properties[`${u}::${c.Action}`]={$ref:O+p,description:f};m[E.SchemaTag.propertyIndex]=l,m[E.SchemaTag.annotationType]=c.$Type,m[E.SchemaTag.annotationPath]=`/${c.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[E.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][E.SchemaTag.annotationPath]=c.fullyQualifiedName,l++})}}r(eS,"defineActions");function tS(e,t,n,i){var l;let o,a,s;return e&&(n==="primary"?a=e.find(c=>c.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(c=>c.value.indexOf(E.FacetBase.LineItem)>-1):i?a=e.find(c=>c.value.indexOf(i)>-1):a=e[0],o=typeof(a==null?void 0:a.value)=="string"?Ko(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:o&&(s=`/${t}/`+o.replace("UI",E.UIVOCABULARY))),{visualization:o,targetAnnotation:s}}r(tS,"findTheRightVisualization");function eN(e,t,n,i){let o="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:o,targetAnnotation:a,chartTitle:s}}r(eN,"analyzeChartAnnotation");function tN(e,t,n,i,o,a){var c;let{visualization:s,targetAnnotation:l}=tS((c=e.PresentationVariant)==null?void 0:c.Visualizations,t,n,i);return s||(k(o,{severity:E.LogSeverity.Error,message:j.t("NOVISUALIZATIONS")}),s=md,l=`/${t}/`+s.replace("UI",E.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}r(tN,"analyzeSPVforView");function Nc(e,t,n,i,o){let a,s,l=e==null?void 0:e.split(`${E.UIVOCABULARY}.`)[1],c=l&&(t==null?void 0:t[l]);if(!c)return{visualization:void 0,targetAnnotation:void 0,namespace:a,title:`View (${n})`};if(s=c.Text,a=c.fullyQualifiedName.split(E.UIVOCABULARYALPHADOT)[0],l.startsWith("PresentationVariant")){let{visualization:p,targetAnnotation:f}=tS(c.Visualizations,a,n,i);return s=s||`View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else{if(l.startsWith("SelectionPresentationVariant"))return tN(c,a,n,i,o,s);if(l.startsWith("SelectionVariant")){let p=md,f=`/${a}/@${yd.UIAnnotationTerms.LineItem}`;return s=s||`Table View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else if(l.startsWith("LineItem")){let p=md;c.qualifier&&(p+=`#${c.qualifier}`);let f=e.substring(0,1)==="@"?`/${a}/${e}`:`/${a}/@${e}`;return s=s||`Table View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else if(l.startsWith("Chart")){let{visualization:p,targetAnnotation:f,chartTitle:u}=eN(a,e,c,n);return{visualization:p,targetAnnotation:f,namespace:a,title:u}}}return{visualization:void 0,targetAnnotation:void 0,namespace:a,title:`View (${n})`}}r(Nc,"analyzeViewAnnotation");function nN(e,t,n,i){let o=e.definitions[E.DefinitionName.ALPChartView];if(e.definitions[E.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(o)),delete e.definitions[E.DefinitionName.ALPChart][E.SchemaTag.isViewNode],n&&(e.definitions[E.DefinitionName.ALPChart][E.SchemaTag.annotationPath]=n),e.definitions[E.DefinitionName.ALPChart].properties.annotationPath[E.SchemaTag.hidden]=!0,o.properties.annotationPath[E.SchemaTag.hidden]=!0,o.additionalProperties=!1,o.description="Chart (key: primary)",o.title="Chart",o.$ref=`${O}${E.DefinitionName.ALPChart}`,t){let a=t.split(E.UIVOCABULARYDOT)[1];if(i!=null&&i[a]){let s=i[a].fullyQualifiedName.split("@");o[E.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else HT(o,j.t("UNEXISTING_ANNOTATION_PATH"))}o[E.SchemaTag.artifactType]=E.ArtifactType.Manifest,o[E.SchemaTag.key]="primary",o[E.SchemaTag.keys]=[{name:E.SchemaKeyName.key,value:"primary"}]}r(nN,"addALPChartView");function iN(e,t,n,i,o,a){var L,z,ne,ie,ce,Y,oe,Pe;let s=(L=n.entityType)==null?void 0:L.annotations.UI,l=(ie=(ne=(z=t==null?void 0:t[0])==null?void 0:z.primary)==null?void 0:ne[0])==null?void 0:ie[E.SchemaTag.annotationPath],{targetAnnotation:c}=Nc(l,s,"primary",void 0,n.logger);nN(e,l,c,s);let p="Actions<ALPChart>";e.definitions[E.DefinitionName.ViewChartToolBar].properties.actions.$ref=O+p,eS(e,p,s,c,n.entityType);let{visualization:f,targetAnnotation:u}=Nc((oe=(Y=(ce=t==null?void 0:t[0])==null?void 0:ce.secondary)==null?void 0:Y[0])==null?void 0:oe[E.SchemaTag.annotationPath],s,"secondary",void 0,n.logger),m=e.definitions[a];f||i?(m.properties.toolBar.$ref=`${O}${E.DefinitionName.ToolBarLR}`,m.properties.columns={$ref:O+E.DefinitionName.LineItems},m.properties.annotationPath[E.SchemaTag.hidden]=!0):m.properties={};let b=e.definitions[E.DefinitionName.ALPTableView];e.definitions[E.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(b)),delete e.definitions[E.DefinitionName.ALPTable][E.SchemaTag.isViewNode],b.additionalProperties=!1,b.description="Table (key: secondary)",b.title="Table",f?(delete b.properties,b.$ref=`${O}${E.DefinitionName.ALPTable}`):i||(b.properties={}),b[E.SchemaTag.artifactType]=E.ArtifactType.Manifest;let S,N;if(f&&f.indexOf(E.FacetBase.LineItem)>-1?(S=f.split(".")[1],N=t[0].secondary[0].annotationPath.split(E.UIVOCABULARYDOT)[1]):i&&(S=N=i.split(E.UIVOCABULARYDOT)[1]),S){let P={isObjectPage:!1,appSchema:e,lineItemAnnotation:(Pe=n.entityType)==null?void 0:Pe.annotations.UI[S],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:E.DefinitionName.LineItems};Ao(P,E.DefinitionName.ViewTableColumn),u&&(e.definitions[E.DefinitionName.ALPTable][E.SchemaTag.annotationPath]=u);let Ft=s[N].fullyQualifiedName.split("@");b[E.SchemaTag.annotationPath]=`/${Ft[0]}/@${Ft[1]}`,b[E.SchemaTag.key]="secondary",b[E.SchemaTag.keys]=[{name:E.SchemaKeyName.key,value:"secondary"}]}}r(iN,"addALPViews");function oN(e,t){let n=`${E.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[E.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][E.SchemaTag.isViewNode],e.appSchema.definitions[n][E.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${E.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[E.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${O}${i}`;let o=`${E.DefinitionName.Actions}<${e.viewKey}>`;return eS(e.appSchema,o,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[E.PropertyName.actions].$ref=`${O}${o}`,n}r(oN,"addViewChartDefinitions");function aN(e,t,n,i,o,a){let s=oN(e,t);n.definitions[s].properties.annotationPath[E.SchemaTag.hidden]=!0,n.definitions[s].properties.index[E.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[E.SchemaTag.hidden]=!0;let l=`Chart View (key: ${o})`;i.properties[o]={$ref:`${O}${s}`,description:a||l,title:l}}r(aN,"addViewChart");function Zv(e){return typeof e=="object"?{...e,properties:{}}:{properties:{}}}r(Zv,"createEmptyProperties");function rN(e,t,n,i,o){var m;let a=`${E.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${E.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=gt(E.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[E.SchemaTag.isViewNode],l[E.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),eo(l.properties.toolBar,E.DefinitionName.ToolBar,s);let c=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${O}${a}`,description:e.title||c,title:c},eo(l.properties.columns,s),l.properties.annotationPath[E.SchemaTag.hidden]=!0,l.properties.index[E.SchemaTag.hidden]=!0,l.properties.entitySet[E.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(E.UIVOCABULARYDOT)[1],f={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:o.serviceAVT,lineItemId:s,entitySet:l.entitySet},u=E.DefinitionName.ViewTableColumn;if(l.entitySet!==void 0){let{definitions:b}=e.appSchema;u=E.DefinitionName.ViewTableColumnBasic;let S=b[E.DefinitionName.ViewTableColumn];b[u]=Zv(S);let N=E.DefinitionName.ViewTableColumnBasicAction,L=`${E.DefinitionName.ViewTableColumnAction}`;b[N]=Zv(b[L])}Ao(f,u)}r(rN,"addViewLineItems");function sN(e,t,n,i){e.properties[t][E.SchemaTag.isViewNode]=!0,e.properties[t][E.SchemaTag.annotationPath]=n?`/${n}/@${i[E.SchemaTag.annotationPath]}`:void 0,e.properties[t][E.SchemaTag.artifactType]=E.ArtifactType.Manifest,e.properties[t][E.SchemaTag.key]=t,e.properties[t][E.SchemaTag.keys]=[{name:E.SchemaKeyName.key,value:t}]}r(sN,"addTagsToView");function lN(e,t,n){var a;let i=n.entityType,o=e;return t.entitySet&&t.entitySet!==e.name&&(o=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=o.entityType),i}r(lN,"getTargetEntityType");function cN(e,t){let{properties:n}=e;if(n)for(let i in n)n[i].artifactType===E.ArtifactType.Manifest&&t.indexOf(i)===-1&&delete n[i]}r(cN,"handleViewProperties");function pN(e,t,n,i,o,a,s){if((e==null?void 0:e.indexOf(E.Visualization.LineItem))>-1)rN(n,t,e,n.targetAnnotation,i),s.entitySet!==void 0&&cN(n.appSchema.definitions[`${E.DefinitionName.LRTableView}<${s.key}>`],["visible"]);else if((e==null?void 0:e.indexOf("Chart"))>-1)aN(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${O}${E.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${O}${E.DefinitionName.LRTableView}`}}}r(pN,"addLRViewParts");function fN(e,t,n,i,o){var l;let a=e.definitions[o];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let c of t){if(!c[E.SchemaTag.key])continue;let p,f=lN(n.entitySet,c,n),u=f==null?void 0:f.annotations.UI,{visualization:m,targetAnnotation:b,namespace:S,title:N}=Nc(c==null?void 0:c[E.SchemaTag.annotationPath],u,c[E.SchemaTag.key],void 0,n.logger);c.entitySet&&(p=(l=n.entityType.navigationProperties.find(ne=>ne.targetTypeName===S))==null?void 0:l.name);let L=Oe(c[E.SchemaTag.key]),z={viewKey:L,appSchema:e,targetAnnotation:b,navPropName:p,targetEntityType:f,title:N,entitySet:c.entitySet};pN(m,s,z,n,i,u,c),sN(s,L,S,c)}}r(fN,"addLRViews");function uN(e,t,n,i,o,a){var f,u,m,b,S,N,L,z,ne,ie,ce,Y;let s=e.definitions[a],{visualization:l,targetAnnotation:c,namespace:p}=Nc(n,(f=t.entityType)==null?void 0:f.annotations.UI,void 0,E.Visualization.LineItem,t.logger);if(l){let oe=l.split(".")[1],Pe=`${E.DefinitionName.LineItems}OfSPV::${Oe(oe)}`,P=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete P[E.SchemaTag.isViewNode],eo(P.properties.toolBar,E.DefinitionName.ToolBar,Pe),P[E.SchemaTag.annotationPath]=c,P.properties.columns={},eo(P.properties.columns,Pe),delete s.properties,eo(s,`${a}SPV`),s[E.SchemaTag.annotationPath]=`/${p}/@${n}`;let Ft=(u=t.entityType)==null?void 0:u.annotations.UI[oe];Ft||k(t.logger,{severity:E.LogSeverity.Error,message:j.t("NOTARGET",{target:oe})});let Yt={isObjectPage:!1,appSchema:e,lineItemAnnotation:Ft,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:Pe};Ao(Yt)}else{s.properties.toolBar.$ref=`${O}${E.DefinitionName.ToolBarLR}`,eo(s.properties.columns,E.DefinitionName.LineItems);let oe=(S=(b=(m=t.entityType)==null?void 0:m.annotations)==null?void 0:b[o])==null?void 0:S.LineItem;!oe&&!((z=(L=(N=i.options)==null?void 0:N.settings)==null?void 0:L.views)!=null&&z.paths)&&k(t.logger,{severity:E.LogSeverity.Error,message:j.t("NOLINEITEMS")});let Pe={isObjectPage:!1,appSchema:e,lineItemAnnotation:oe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:E.DefinitionName.LineItems};Ao(Pe),oe&&!((ce=(ie=(ne=i.options)==null?void 0:ne.settings)==null?void 0:ie.views)!=null&&ce.paths)&&(s[E.SchemaTag.annotationPath]=Mt((Y=t.entityType)==null?void 0:Y.fullyQualifiedName,oe.term,oe.qualifier))}}r(uN,"adaptTableDefinition");function dN(e,t,n){var i,o,a,s,l,c,p;if(!((o=(i=e.options.settings)==null?void 0:i.views)!=null&&o.paths&&n===E.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===E.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(c=t==null?void 0:t.annotations.UI)==null?void 0:c.PresentationVariant)==null?void 0:p.term)}}r(dN,"getDefaultAnnotationPath");function gN(e,t,n,i){var l,c,p,f,u;let o=(p=(c=(l=t.options)==null?void 0:l.settings)==null?void 0:c.views)==null?void 0:p.paths,a=dN(t,n.entityType,n.templateType),s=zv(e,n);n.templateType===E.TemplateType.ListReportObjectPageV4?(uN(e,n,a,t,i,s),o?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],fN(e,o,n,t,s)):(u=(f=t.options)==null?void 0:f.settings)!=null&&u.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[E.PropertyName.chart][E.SchemaTag.hidden]=!0):n.templateType===E.TemplateType.AnalyticalListPageV4&&iN(e,o,n,a,t,s)}r(gN,"addTableAndViews");function Lr(e,t,n,i){var c,p;let o=JSON.parse(JSON.stringify(t)),a=n==null?void 0:n.entityType,s=e.serviceAVT&&Ut(E.UIVOCABULARY,e.serviceAVT),l=s&&((p=(c=a==null?void 0:a.annotations)==null?void 0:c[s])==null?void 0:p.SelectionFields);if(ZF(a,o,l),o.properties[E.PropertyName.defaultTemplateAnnotationPath][E.SchemaTag.hidden]=!0,yi(a,o,E.DefinitionName.AnnotationPathAsObject),e.manifest){let f=e.manifest[E.ManifestSection.ui5].routing.targets;if(!f)return k(e.logger,{severity:E.LogSeverity.Error,message:j.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:E.MANIFESTPATH,range:[E.ManifestSection.generic]}}),o;let u=Fc(f,i,n,e.logger);if(!u)return o;gN(o,u,e,s)}return delete o.definitions.GenericColumns,delete o.definitions.Action,$n(o,YF),o}r(Lr,"generateListReportSchemaV4");var Cn=require("@sap-ux/vocabularies-types/vocabularies/UI"),v=U(B());var mN=["header","layout","sections","footer"],yN=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"];function hd(e,t,n,i,o,a,s){let{actionName:l,namespace:c}=cl(t.item,e),p=oi(t.item),f=t.item.fullyQualifiedName.replace(`@${Cn.UIAnnotationTerms.Identification}`,`/@${Cn.UIAnnotationTerms.Identification}`),u=`ObjectPageHeaderAction<${Oe(p)}>`,m=i.definitions[u]={type:"object",$ref:`${O}${v.DefinitionName.ObjectPageHeaderAction}`,description:Ct(t.item,o)};m[v.SchemaTag.isViewNode]=!0,m[v.SchemaTag.dataType]=hn(t.item),m[v.SchemaTag.propertyIndex]=s,m[v.SchemaTag.keys]=[],t.item[v.SchemaKeyName.semanticObject]&&m[v.SchemaTag.keys].push({name:v.SchemaKeyName.semanticObject,value:t.item[v.SchemaKeyName.semanticObject]}),m[v.SchemaTag.keys].push({name:v.SchemaKeyName.action,value:l}),c&&(i.definitions[u][v.SchemaTag.target]=c),m[v.SchemaTag.actionType]=n,m[v.SchemaTag.annotationPath]=`/${f}`,a.properties[p]={$ref:`${O}${u}`},a.properties[p][v.SchemaTag.propertyIndex]=s}r(hd,"addSingleHeaderActionV4");function nS(e,t,n,i){let o=`${e}Action`,a=`ObjectPageHeaderAction<${o}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[v.SchemaTag.isViewNode]=!0,s[v.SchemaTag.propertyIndex]=i,s[v.SchemaTag.keys]=[],s[v.SchemaTag.keys].push({name:v.SchemaKeyName.action,value:e}),s[v.SchemaTag.actionType]=v.ActionType.Standard,n.properties[o]={$ref:`${O}${a}`},n.properties[o][v.SchemaTag.propertyIndex]=i,s}r(nS,"addStandardHeaderAction");function iS(e,t,n,i,o,a){let s=oi(e.item),l=Ct(e.item,n),c=Oe(`${v.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Cn.UIAnnotationTerms.Identification}`,`/@${Cn.UIAnnotationTerms.Identification}`),f=i.definitions[c]={type:"object",$ref:`${O}${v.DefinitionName.FooterActionV4}`,description:l};f[v.SchemaTag.isViewNode]=!0,f[v.SchemaTag.actionType]=t,f[v.SchemaTag.propertyIndex]=a,f[v.SchemaTag.annotationPath]=`/${p}`,o.properties[s]={$ref:`${O}${c}`}}r(iS,"addSingleFooterAction");function hN(e){let t=[],n=[];return e.forEach((i,o)=>{(!i.Determining&&i.$Type===Cn.UIAnnotationTypes.DataFieldForAction||i.$Type===Cn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(yN.includes(i.Criticality)?t.push({index:o,item:i}):n.push({index:o,item:i}))}),{criticalActions:t,unCriticalActions:n}}r(hN,"groupByCriticality");function bN(e,t,n,i,o){for(let a=0;a<e.length;a++)hd(t,e[a],v.ActionType.Criticality,n,i,o,a)}r(bN,"addCriticalActions");function TN(e,t,n,i,o,a){let s=e.findIndex(l=>{var c,p;return((p=(c=l.item.annotations)==null?void 0:c.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(hd(t,e[s],v.ActionType.Copy,n,i,o,a),a++,e.splice(s,1))}r(TN,"addCopyAction");function vN(e,t,n,i,o,a){for(let s of e)hd(t,s,v.ActionType.Annotation,n,i,o,a),a++}r(vN,"addUncriticalActions");function oS(e,t,n,i){var o,a,s,l;(a=(o=t==null?void 0:t.annotations)==null?void 0:o.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[v.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${v.UIVOCABULARYALPHADOT}${i}`:e[v.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${v.UIVOCABULARYALPHADOT}${i}`}r(oS,"setAnnotationPathFromEntitySetOrEntityType");function SN(e,t,n,i,o,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?hN(n):{};bN(s,o,t,e,i);let c=VT(a),p=LT(a);if(ol(a)&&p){let u=nS("Edit",t,i,s.length);oS(u,a,e,"UpdateHidden")}if(c){let u=nS("Delete",t,i,s.length+1);oS(u,a,e,"DeleteHidden")}let f=s.length+2;TN(l,o,t,e,i,f),vN(l,o,t,e,i,f)}r(SN,"addHeaderActionCallBackV4");function PN(e,t,n,i){let o=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Cn.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?o.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<o.length;s++){let l=o[s];iS(l,v.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];iS(l,v.ActionType.Annotation,e,t,n,o.length+s)}}r(PN,"addFooterActionCallBackV4");function AN(e,t,n,i,o){let a=Zo(t),s=t.lastIndexOf("::"),l=s>-1?t.substring(s+2):t,c=gt(v.DefinitionName.ObjectPageTable,t,n);e.entityType&&l&&(c[v.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${l}`),c.properties.columns={$ref:`${O}${a}`},c.properties.toolBar.$ref=Gt(v.DefinitionName.ObjectPageToolBar,t),c.properties.quickVariantSelection.$ref=Gt(v.DefinitionName.QuickVariantSelectionV4OP,t);let p=gt(v.DefinitionName.QuickVariantSelectionV4OP,t,n);p.properties.paths.items.$ref=Gt(v.DefinitionName.AnnotationPathAsObject,t),gt(v.DefinitionName.AnnotationPathAsObject,t,n),yi(e.entityType,n,`${v.DefinitionName.AnnotationPathAsObject}<${a}>`);let f={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:o,lineItemId:a};return Ao(f,v.DefinitionName.ObjectPageTableColumn),c}r(AN,"handleLineItem");function rS(e,t,n,i,o,a){a&&Vc(a,t,v.DefinitionName.ObjectPageSectionTableV4);let s=gt(v.DefinitionName.ObjectPageSectionTableV4,t,n);ni(e,s,Zo(t)),gi(e,s,Zo(t)),s[v.SchemaTag.annotationPath]=e.annotationPath,s[v.SchemaTag.target]=e.namespace,s.properties.table.$ref=Gt(v.DefinitionName.ObjectPageTable,t);let l=AN(e,t,n,i,o.serviceAVT);return{sectionTable:s,table:l}}r(rS,"handleSectionTable");function CN(e,t,n,i,o){let a;o===v.SectionType.Section?a=v.DefinitionName.ObjectPageSectionForm:o===v.SectionType.HeaderSection&&(a=v.DefinitionName.ObjectPageHeaderSectionForm),n.properties[t]={$ref:Gt(a,t)};let s=gt(a,t,i);e.ID||(s.properties={}),ni(e,s,t),gi(e,s,t),s[v.SchemaTag.annotationPath]=e.annotationPath,s[v.SchemaTag.target]=e.namespace,s[v.SchemaTag.isViewNode]=!0,ll(o,e,s,i,v.FioriElementsVersion.v4,t)}r(CN,"handleFormIdentification");function aS(e,t,n,i,o){n.properties[t]={$ref:`${O}${o}`};let a=gt(v.DefinitionName.CommonHeaderFacetSettings,o,i,!1);Go(e,a,t),a[v.SchemaTag.annotationPath]=e.annotationPath,a[v.SchemaTag.target]=e.namespace,a[v.SchemaTag.dataType]=Zi(e==null?void 0:e.target),a[v.SchemaTag.isViewNode]=!0}r(aS,"handleHeaderFacet");function EN(e,t,n,i){let o=gt(v.DefinitionName.ObjectPageToolBarActions,t,n);if(o.additionalProperties=!1,o.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,c=Ct(l,i),p=l.$Type.split(v.UIVOCABULARYDOT)[1],f=l.Action.replace("/","::"),u=o.properties[`${p}::${l.Action}`]={$ref:Gt(v.DefinitionName.ObjectPageToolBarAction,f),description:c};u[v.SchemaTag.propertyIndex]=a,u[v.SchemaTag.annotationType]=l.$Type;let m=gt(v.DefinitionName.ObjectPageToolBarAction,Oe(f),n);m[v.SchemaTag.annotationPath]=gl(l),m[v.SchemaTag.dataType]=hn(l),m.properties={},a++})}return o}r(EN,"handleChartActions");function xN(e,t,n,i){let o=gt(v.DefinitionName.ObjectPageChart,t,n);e.Title&&(o.description=e.Title),o[v.SchemaTag.annotationPath]=gl(e),o[v.SchemaTag.dataType]=Zi(e.target||e),o[v.SchemaTag.isViewNode]=!0,o.properties.toolBar.$ref=Gt(v.DefinitionName.ObjectPageToolBar,t);let a=gt(v.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=Gt(v.DefinitionName.ObjectPageToolBarActions,t);let s=EN(e,t,n,i);return{chart:o,chartActions:s}}r(xN,"handleChart");function sS(e,t,n,i,o=e.entityType,a=!1,s){let l=a?v.DefinitionName.CommonHeaderFacetSettings:v.DefinitionName.ObjectPageSectionChart,c=a?v.DefinitionName.ObjectPageHeaderSectionChart:v.DefinitionName.ObjectPageSectionChart;i&&Vc(i,t,l);let p=dl(c,t),f=gt(l,p,n,!1);if(Go(e,f,t),a)return delete f.properties.chart,{parentChartRef:f};f[v.SchemaTag.annotationPath]=gl(e),f.properties.chart.$ref=Gt(v.DefinitionName.ObjectPageChart,t);let{chart:u,chartActions:m}=xN(e.target||e,t,n,o);return u[v.SchemaTag.target]=s,{parentChartRef:f,chart:u,chartActions:m}}r(sS,"handleSectionChart");function IN(e,t,n){let o=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${sf(o,n.serviceAVT)}`,l=s.split(v.UIVOCABULARYDOT)[1];return{key:s,type:l}}r(IN,"getVisualizationKeyAndType");function ON(e,t,n){var o,a;return(a=(o=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:o.annotations)==null?void 0:a.UI[n]}r(ON,"getTargetFromNavigation");function FN(e,t,n){let i=e.target[v.FacetBase.PresentationVariant]?e.target[v.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let o=i[0].$target,a=o||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:c}=IN(!!o,a,n),p=o?a:ON(n,s,c),f=e.target[v.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:c,target:p,namespace:f,navigationPath:s}}r(FN,"getVisualizationProps");function Vc(e,t,n,i){e.properties[t]={$ref:Gt(n,i||t)}}r(Vc,"addPropertyRef");function lS(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}r(lS,"getSectionPropertyRef");function NN(e,t,n,i,o,a){let{propertyKey:s,navigationKey:l}=lS(t,o);Vc(i,s,v.DefinitionName.ObjectPageSectionTableV4,l);let{sectionTable:c,table:p}=rS(e,l,n,{target:o.target,entityType:e.entityType},a);c[v.SchemaTag.annotationPath]=e.annotationPath,Go(e,c,t),delete c[v.SchemaTag.isViewNode],p[v.SchemaTag.annotationPath]=`/${o.namespace}/${o.key}`,p[v.SchemaTag.target]=o.namespace}r(NN,"addPVLineItemSection");function VN(e,t,n,i,o,a=!1){let s=a?v.DefinitionName.ObjectPageHeaderSectionChart:v.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:c}=lS(t,o);Vc(i,l,s,c);let{parentChartRef:p}=sS(o.target,c,n,void 0,e.entityType,a,o.namespace);p[v.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(ni(e,p,t),eT(e,p)):Go(e,p,t)}r(VN,"addPVChartSection");function LN(e,t,n,i,o,a,s){if(!(e!=null&&e.target)){k(a.logger,{severity:v.LogSeverity.Error,message:j.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=FN(e,t,a),c=o===v.SectionType.HeaderSection;l&&(l.type.startsWith(v.Visualization.Chart)?VN(e,t,n,i,l,c):l.type.startsWith(v.Visualization.LineItem)&&NN(e,t,n,i,l,a))}r(LN,"handleSectionPresentationVariant");function DN(e,t,n,i,o,a,s){let l=o;e.additionalProperties={$ref:`${O}${l}`},Yv(t,e,i,l,s,n.logger);let c=t.definitions[l];typeof c=="object"&&BT(t,e,{schema:c,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[v.SchemaKeyName.id,v.SchemaKeyName.key],descriptionAsFallback:!0})}r(DN,"applyCustomSections");function bd(e,t,n,i,o,a,s){let l=t[n],c=`ObjectPage${a}${l.base}<${Zo(n)}>`;switch(l.base){case v.FacetBase.PresentationVariant:case v.FacetBase.SelectionPresentationVariant:{LN(l,n,o,i,a,e,s);break}case v.FacetBase.CollectionFacet:{jN(l,n,o,i,a,e,s);break}case v.FacetBase.LineItem:{if(a===v.SectionType.Section){let p=t[n];rS(l,n,o,p,e,i)}break}case v.FacetBase.Form:case v.FacetBase.Identification:{CN(l,n,i,o,a);break}case v.FacetBase.DataPoint:{aS(l,n,i,o,c);break}case v.FacetBase.Chart:{a===v.SectionType.HeaderSection?aS(l,n,i,o,c):a===v.SectionType.Section&&sS(l,n,o,i);break}case v.FacetBase.Address:case v.FacetBase.Contact:{Ha(l,n,i,o,a);break}default:i.properties[n]=jn(o,l,n)}}r(bd,"addSection");function jN(e,t,n,i,o,a,s){let l=i.properties[t]=jn(n,e,t);l.properties={subsections:{additionalProperties:!1,type:"object",properties:{},description:"Subsections"}};let c=l.properties.subsections;c[v.SchemaTag.annotationPath]=e.annotationPath,c[v.SchemaTag.target]=e.namespace,c[v.SchemaTag.keys]=[{name:v.SchemaKeyName.id,value:e.ID}],c[v.SchemaTag.isViewNode]=!0;for(let p in e.facets)bd(a,e.facets,p,c,n,o,s)}r(jN,"handleCollection");function RN(e,t,n){let i=Gs(e.entitySet.entityType,e.serviceAVT,v.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[v.DefinitionName.ObjectPageSubSections];return}let o=t.definitions[v.DefinitionName.Sections];for(let a in i)bd(e,i,a,o,t,v.SectionType.Section,n);DN(o,t,e,n,v.DefinitionName.ObjectPageCustomSectionFragment)}r(RN,"addSections");function $N(e,t,n,i){let o=Hs(n,e.serviceAVT,v.FioriElementsVersion.v4,e.logger),a=t.definitions[v.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!o){for(let s in o)bd(e,o,s,a,t,v.SectionType.HeaderSection,i);delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionAddress]}}r($N,"addHeaderSections");function wN(e,t,n){let i=e.entitySet.entityType;ul(t,i),fl(t,i,e.entitySet,e.serviceAVT,SN),i&&(t.definitions[v.DefinitionName.HeaderSections][v.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Cn.UIAnnotationTerms.HeaderFacets}`),$N(e,t,i,n)}r(wN,"addHeader");function Dr(e,t,n){let i=JSON.parse(JSON.stringify(t));if(i.properties.sections={$ref:`${O}${v.DefinitionName.Sections}`},e.entitySet=n,!e.manifest[v.ManifestSection.ui5].routing||!e.manifest[v.ManifestSection.ui5].routing.targets)return k(e.logger,{severity:v.LogSeverity.Error,message:j.t("NOROUTING"),location:{path:v.MANIFESTPATH}}),i;let o=i.definitions[v.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:v.DefinitionName.Sections};if(o[v.SchemaTag.isViewNode]=!0,n){let a=e.manifest[v.ManifestSection.ui5].routing.targets;if(!a)return k(e.logger,{severity:v.LogSeverity.Error,message:j.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:v.MANIFESTPATH,range:[v.ManifestSection.generic]}}),i;let s=Fc(a,v.v4.FE_TEMPLATE_V4_OBJECT_PAGE,n,e.logger);if(!s)return i;wN(e,i,s),o[v.SchemaTag.isViewNode]=!0,n!=null&&n.entityType&&(o[v.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/@${Cn.UIAnnotationTerms.Facets}`),RN(e,i,s),pl(i,e,v.FioriElementsVersion.v4,PN)}return delete i.definitions[v.DefinitionName.CommonHeaderFacetSettings],delete i.definitions[v.DefinitionName.GenericColumnsOP],delete i.definitions[v.DefinitionName.GenericSections],delete i.definitions[v.DefinitionName.ObjectPageChart],delete i.definitions[v.DefinitionName.ObjectPageSectionAddress],delete i.definitions[v.DefinitionName.ObjectPageSectionChart],delete i.definitions[v.DefinitionName.ObjectPageSectionContact],delete i.definitions[v.DefinitionName.ObjectPageSectionDataPoint],delete i.definitions[v.DefinitionName.ObjectPageSectionForm],delete i.definitions[v.DefinitionName.ObjectPageSectionTableV4],delete i.definitions[v.DefinitionName.ObjectPageSectionPresentationVariant],delete i.definitions[v.DefinitionName.ObjectPageSubSections],delete i.definitions[v.DefinitionName.ObjectPageTable],delete i.definitions[v.DefinitionName.ObjectPageToolBar],delete i.definitions[v.DefinitionName.ObjectPageToolBarAction],delete i.definitions[v.DefinitionName.ObjectPageToolBarActions],delete i.definitions[v.DefinitionName.QuickVariantSelectionV4OP],$n(i,mN),i}r(Dr,"generateObjectPageSchemaV4");function Td(e,t){return JSON.parse(JSON.stringify(t))}r(Td,"generateFreestyleSchemaV4");var cn=U(B());function vd(e,t,n,i,o,a){let s=ei(n,o),l=pi(t,s);l||k(o,{severity:cn.LogSeverity.Error,message:j.t("ENTITYSETNOTFOUND",{entitySet:t})});let c={templateType:cn.TemplateType.ListReportObjectPageV4,fioriElementsVersion:cn.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:s,logger:o,entitySet:l,entityType:l==null?void 0:l.entityType};return Dr(c,e,l)}r(vd,"generateObjectPageInterfaceV4");function Lc(e,t,n,i,o,a){Xe();let s=ei(i,o),l=s==null?void 0:s.entitySets.find(f=>f.name===n),c={templateType:e,fioriElementsVersion:cn.FioriElementsVersion.v4,manifest:a,serviceAVT:s,logger:o,entitySet:l,entityType:l.entityType},p=e===cn.TemplateType.ListReportObjectPageV4?cn.v4.FE_TEMPLATE_V4_LIST_REPORT:cn.v4.FE_TEMPLATE_V4_ALP;return Lr(c,t,l,p)}r(Lc,"generateListReportInterfaceV4");function Sd(e,t,n,i,o,a){let s=ei(n,a),l={templateType:e,fioriElementsVersion:cn.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return Td(l,t)}r(Sd,"generateFreestyleInterfaceV4");var jr=require("@sap-ux/vocabularies-types/vocabularies/UI"),cS=U(B());var we=r(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Rc=r(e=>we(e)+"/views/paths","getSettingsPathForLRViewsPaths"),Pd=r(e=>we(e)+"/content/header","getSettingsPathForHeaderOP"),Gn=r(e=>we(e)+"/controlConfiguration","getControlConfigurationPath"),$c=r((e,t,n)=>Gn(e)+`/@${jr.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),En=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Gn(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),xn=r((e,t,n,i,o)=>o?En(e,t,n,i,o):Gn(e)+`/@${jr.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),wc=r((e,t,n,i,o)=>xn(e,t,n,i,o)+cS.QUICKVARPATH,"getQuickVariantPath"),Qt=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Gn(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),jt=r((e,t,n,i,o)=>o?Qt(e,t,n,i,o):Gn(e)+`/@${jr.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),Ad=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Gn(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Mc=r((e,t,n,i,o)=>o?Ad(e,t,n,i,o):Gn(e)+`/@${jr.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Co=r((e,t,n,i)=>Gn(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),pS=r((e,t,n,i)=>Gn(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),bt=r((e,t,n)=>Gn(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),Rr=r((e,t,n,i)=>{let o=we(e)+`/content/body/sections/${n}`;return i&&(o+="/"+i),o},"getCustomSectionPath"),jc=class jc{};r(jc,"ApplicationV4"),d([_e("settings")],jc.prototype,"settings",2);var Dc=jc,$i=class $i{};r($i,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],$i.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],$i.prototype,"description",2),d([g({manifest:{path:r(()=>"sap.fiori","path")}})],$i.prototype,"cloudDevAdaptationStatus",2),d([g({manifest:{path:r(()=>"sap.ui5/routing/config","path")}}),T({since:"1.78.0"})],$i.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),T({since:"1.56.0"})],$i.prototype,"flexEnabled",2);var Sa=$i;var te=U(B());function ze(e,t,n,i,o,a,s){if(!n)return;let l={},c=e==null?void 0:e.getDeprecated,p=a&&a.replace("/","::");for(let f in n.properties){let u=dt(e,f);if(u!=null&&u.manifest){let m=u.manifest.path([i],t,p,...o);l=ti(t,m,a,p,!0),l&&Object.keys(l).length>0&&(qo(u,l,f,e,a,o),qs(c,l,m,s))}}}r(ze,"importSettingsOfObject");var bg={};jo(bg,{ALPChart:()=>xd,ALPTable:()=>Ea,ActionAfterExecutionConfiguration:()=>Md,ActionAfterExecutionConfigurationOP:()=>Jr,ActionAfterExecutionConfigurationToolBarLR:()=>qd,Actions:()=>Wd,CommonHeaderFacetSettings:()=>Mi,CommonViewSettings:()=>Ca,FilterBar:()=>Zd,FlexSettings:()=>ng,HeaderSections:()=>lg,LRChartView:()=>Id,LRTableView:()=>Od,MultiTableModeV4:()=>Nd,ObjectPageCustomSectionFragment:()=>Yr,ObjectPageHeader:()=>tg,ObjectPageHeaderSectionAddress:()=>sg,ObjectPageHeaderSectionChart:()=>og,ObjectPageHeaderSectionContact:()=>rg,ObjectPageHeaderSectionDataPoint:()=>ag,ObjectPageHeaderSectionForm:()=>ig,ObjectPageLayout:()=>mg,ObjectPageTable:()=>zr,ObjectPageTableColumn:()=>xa,ObjectPageTableColumnAction:()=>eg,ObjectPageToolBarAction:()=>Yd,Position:()=>_d,QuickVariantSelectionV4:()=>Ed,QuickVariantSelectionV4OP:()=>hg,Table:()=>Vd,TableColumn:()=>Hc,TableColumnAction:()=>Ud,TableCreationModeOP:()=>yg,TableCustomColumn:()=>Hd,TableSettings:()=>Uc,TableViewExtension:()=>Fd,TableViewSettings:()=>Mr,ToolBar:()=>Qd,ToolBarAction:()=>Xd,ViewPosition:()=>Bd,ViewTableColumn:()=>Gc,ViewTableColumnAction:()=>kd,ViewTableCustomColumn:()=>Gd,ViewToolBarAction:()=>zd,checkViewOrder:()=>Dd,deleteCreationModeCreateAtEnd:()=>wd,deleteCreationModeName:()=>jd,exportCreationModeCreateAtEnd:()=>$d,exportCreationModeName:()=>Ld,exportPersonalization:()=>kN,exportPersonalizationProperty:()=>_N});var Cd=U(B());var MN=r((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function In(e,t,n,i,o,a){let s=Rc(e),l=MN(JSON.parse(JSON.stringify(t)),s),c;for(let p=0;p<l.length;p++){let f=l[p];if(f&&(f[Cd.SchemaTag.key]===(a==null?void 0:a.key)||f[Cd.SchemaTag.key]===i)){c=`${s}/${p}`;break}}return c||(c=`${s}/[]`),c}r(In,"getSettingsPathForLRViewsPath");function Ld(e,t,n,i){typeof e.creationMode=="string"&&(e.creationMode={}),e.creationMode[i]=t[n]}r(Ld,"exportCreationModeName");function UN(e,t,n,i,o,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let c of l){let p=Number(c),f=e[c];t===f.key?s[n]=f:p>=i&&p<=o?s[Math.max(0,p+a)]=f:s[c]=f}return s}r(UN,"fillNewlyOrderedViews");function Dd(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),o=t.index;if(i>-1&&i!==o){let a=o>i?-1:1,s=Math.min(Number(i),o),l=Math.max(Number(i),o),c=UN(e,n,o,s,l,a);for(let p of Object.keys(c))e[p]=c[p]}}r(Dd,"checkViewOrder");function kN(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}r(kN,"exportPersonalization");function _N(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}r(_N,"exportPersonalizationProperty");function jd(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}r(jd,"deleteCreationModeName");function Rd(e,t,n,i,o,a){var l;let s;if(!t||Object.keys(t).length===0){let c=e;Object.keys(c).forEach(p=>{c[p]&&c[p].key===o&&(e[Number(p)]={},s=p)})}if(s){let c=(l=a.table)==null?void 0:l.views;for(let p in c)c[p].index>s&&c[p].index--}}r(Rd,"deleteView");function $d(e,t,n,i){typeof e.creationMode=="object"?e.creationMode[i]=t[n]:typeof e.creationMode=="string"&&(e.creationMode={name:t.name,[i]:t[n]})}r($d,"exportCreationModeCreateAtEnd");function wd(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0&&delete e.creationMode[t]}r(wd,"deleteCreationModeCreateAtEnd");function fS(e,t,n,i){let o=e.findIndex(a=>a.key===i[0]);return o===-1?void 0:o}r(fS,"determineIndexOfView");var Pa=class Pa{};r(Pa,"QuickVariantSelectionV4"),d([g({manifest:{path:wc}})],Pa.prototype,"paths",2),d([g({manifest:{path:wc}})],Pa.prototype,"hideTableTitle",2),d([g({manifest:{path:wc}})],Pa.prototype,"showCounts",2);var Ed=Pa,pn=class pn{};r(pn,"TableSettings"),d([g({manifest:{path:xn}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],pn.prototype,"type",2),d([g({manifest:{path:xn}}),T({since:"1.86.0"})],pn.prototype,"personalization",2),d([g({manifest:{path:xn}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],pn.prototype,"selectionMode",2),d([g({manifest:{path:xn}}),T({since:"1.84.0"})],pn.prototype,"selectAll",2),d([g({manifest:{path:xn}}),T({since:"1.84.0"})],pn.prototype,"selectionLimit",2),d([g({manifest:{path:xn}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],pn.prototype,"enableExport",2),d([g({manifest:{path:xn}}),T({since:"1.84.0"})],pn.prototype,"quickVariantSelection",2),d([g({manifest:{path:xn}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],pn.prototype,"condensedTableLayout",2),d([g({manifest:{path:xn}}),T({since:"1.117.0"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],pn.prototype,"hierarchyQualifier",2);var Uc=pn,kc=class kc{};r(kc,"ALPChart"),d([g({manifest:{path:r(t=>we(t)+"/views/paths/0/primary/0","path"),delete:Rd}})],kc.prototype,"annotationPath",2);var xd=kc,Eo=class Eo{};r(Eo,"CommonViewSettings"),d([g({manifest:{path:In,delete:Gi}})],Eo.prototype,"key",2),d([g({manifest:{path:Rc,import:fS,export:r((t,n)=>{Dd(t,n)},"export"),delete:Rd}})],Eo.prototype,"index",2),d([g({manifest:{path:In,delete:Gi}})],Eo.prototype,"annotationPath",2),d([g({manifest:{path:In}})],Eo.prototype,"entitySet",2);var Ca=Eo,fn=class fn extends Ca{};r(fn,"TableViewSettings"),d([g({manifest:{path:En}}),T({since:"1.84.0"})],fn.prototype,"type",2),d([g({manifest:{path:En}}),T({since:"1.86.0"})],fn.prototype,"personalization",2),d([g({manifest:{path:En}}),T({since:"1.84.0"})],fn.prototype,"selectionMode",2),d([g({manifest:{path:En}}),T({since:"1.84.0"})],fn.prototype,"selectAll",2),d([g({manifest:{path:En}}),T({since:"1.84.0"})],fn.prototype,"selectionLimit",2),d([g({manifest:{path:En}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],fn.prototype,"enableExport",2),d([g({manifest:{path:En}}),T({since:"1.84.0"})],fn.prototype,"quickVariantSelection",2),d([g({manifest:{path:En}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],fn.prototype,"condensedTableLayout",2),d([g({manifest:{path:En}}),T({since:"1.117.0"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],fn.prototype,"hierarchyQualifier",2);var Mr=fn;function BN(e){return Mr}r(BN,"getTableViewSettings");var $r=class $r extends Mr{};r($r,"ALPTable"),d([g({manifest:{path:r(t=>we(t)+"/views/paths/0/secondary/0","path"),delete:Gi}})],$r.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],$r.prototype,"initialLoad",2);var Ea=$r,_c=class _c extends Ca{};r(_c,"LRChartView"),d([g({manifest:{path:In},generate:wn})],_c.prototype,"visible",2);var Id=_c,Aa=class Aa extends BN(Ca){};r(Aa,"LRTableView"),d([g({manifest:{path:In}})],Aa.prototype,"keepPreviousPersonalization",2),d([g({manifest:{path:In}})],Aa.prototype,"entitySet",2),d([g({manifest:{path:In},generate:wn})],Aa.prototype,"visible",2);var Od=Aa,wi=class wi{};r(wi,"TableViewExtension"),d([g({manifest:{path:In}})],wi.prototype,"key",2),d([g({manifest:{path:Rc,import:fS,export:r((t,n)=>{Dd(t,n)},"export"),delete:Rd}})],wi.prototype,"index",2),d([g({manifest:{path:In}})],wi.prototype,"label",2),d([g({manifest:{path:In}})],wi.prototype,"template",2),d([g({manifest:{path:In},generate:wn})],wi.prototype,"visible",2);var Fd=wi,Bc=class Bc{};r(Bc,"MultiTableModeV4"),d([g({manifest:{path:r(t=>we(t)+"/views","path")}})],Bc.prototype,"showCounts",2);var Nd=Bc,wr=class wr extends Uc{};r(wr,"Table"),d([g({manifest:{path:r(t=>we(t)+"/views/paths/0/secondary/0","path"),delete:Gi}})],wr.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],wr.prototype,"initialLoad",2);var Vd=wr;var Ur=class Ur{};r(Ur,"ActionAfterExecutionConfiguration"),d([g({manifest:{path:r((t,n,i,o,a)=>jt(t,n,i,o,a)+"/afterExecution","path")}}),ye("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Ur.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>jt(t,n,i,o,a)+"/afterExecution","path")}})],Ur.prototype,"enableAutoScroll",2);var Md=Ur,kr=class kr{};r(kr,"TableColumn"),d([g({manifest:{path:jt}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],kr.prototype,"width",2),d([g({manifest:{path:jt}}),T({since:"1.85.0"})],kr.prototype,"availability",2);var Hc=kr,_r=class _r{};r(_r,"ViewTableColumn"),d([g({manifest:{path:Qt}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],_r.prototype,"width",2),d([g({manifest:{path:Qt}}),T({since:"1.85.0"})],_r.prototype,"availability",2);var Gc=_r,Wc=class Wc extends Hc{};r(Wc,"TableColumnAction"),d([g({manifest:{path:jt}}),T({since:"1.84.0"})],Wc.prototype,"afterExecution",2);var Ud=Wc,Qc=class Qc extends Gc{};r(Qc,"ViewTableColumnAction"),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],Qc.prototype,"afterExecution",2);var kd=Qc,Br=class Br{};r(Br,"Position"),d([g({manifest:{path:r((t,n,i,o,a)=>jt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],Br.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o,a)=>jt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],Br.prototype,"placement",2);var _d=Br,Hr=class Hr{};r(Hr,"ViewPosition"),d([g({manifest:{path:r((t,n,i,o,a)=>Qt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],Hr.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o,a)=>Qt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],Hr.prototype,"placement",2);var Bd=Hr,Wn=class Wn{};r(Wn,"TableCustomColumn"),d([g({manifest:{path:jt}}),T({since:"1.84.0"})],Wn.prototype,"position",2),d([g({manifest:{path:jt}}),T({since:"1.84.0"})],Wn.prototype,"header",2),d([g({manifest:{path:jt}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Wn.prototype,"width",2),d([g({manifest:{path:jt}}),T({since:"1.84.0"})],Wn.prototype,"template",2),d([g({manifest:{path:jt}}),T({since:"1.86.0"})],Wn.prototype,"horizontalAlign",2),d([g({manifest:{path:jt}}),T({since:"1.84.0"})],Wn.prototype,"availability",2),d([g({manifest:{path:jt}}),T({since:"1.85.0"})],Wn.prototype,"properties",2);var Hd=Wn,Qn=class Qn{};r(Qn,"ViewTableCustomColumn"),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],Qn.prototype,"position",2),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],Qn.prototype,"header",2),d([g({manifest:{path:Qt}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Qn.prototype,"width",2),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],Qn.prototype,"template",2),d([g({manifest:{path:Qt}}),T({since:"1.86.0"})],Qn.prototype,"horizontalAlign",2),d([g({manifest:{path:Qt}}),T({since:"1.84.0"})],Qn.prototype,"availability",2),d([g({manifest:{path:Qt}}),T({since:"1.85.0"})],Qn.prototype,"properties",2);var Gd=Qn;var Kd=class Kd{};r(Kd,"Actions");var Wd=Kd,Jd=class Jd{};r(Jd,"ToolBar");var Qd=Jd;var Gr=class Gr{};r(Gr,"ActionAfterExecutionConfigurationToolBarLR"),d([g({manifest:{path:r((t,n,i,o,a)=>Mc(t,n,i,o,a)+"/afterExecution","path")}}),ye("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Gr.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>Mc(t,n,i,o,a)+"/afterExecution","path")}})],Gr.prototype,"enableAutoScroll",2);var qd=Gr,Kc=class Kc{};r(Kc,"ToolBarAction"),d([g({manifest:{path:Mc}})],Kc.prototype,"enableOnSelect",2);var Xd=Kc,Jc=class Jc{};r(Jc,"ViewToolBarAction"),d([g({manifest:{path:Ad}})],Jc.prototype,"enableOnSelect",2);var zd=Jc;var qc=class qc{};r(qc,"ObjectPageToolBarAction"),d([g({manifest:{path:pS}})],qc.prototype,"enableOnSelect",2);var Yd=qc;var Xc=class Xc{};r(Xc,"FilterBar"),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.99.0"}),ye("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],Xc.prototype,"hideFilterBar",2);var Zd=Xc;var Wr=class Wr{};r(Wr,"ActionAfterExecutionConfigurationOP"),d([g({manifest:{path:r((t,n,i,o)=>Co(t,n,i,o)+"/afterExecution","path")}}),ye("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Wr.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o)=>Co(t,n,i,o)+"/afterExecution","path")}})],Wr.prototype,"enableAutoScroll",2);var Jr=Wr,Qr=class Qr{};r(Qr,"ObjectPageTableColumn"),d([g({manifest:{path:Co}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Qr.prototype,"width",2),d([g({manifest:{path:Co}}),T({since:"1.85.0"})],Qr.prototype,"availability",2);var xa=Qr,Kr=class Kr extends xa{};r(Kr,"ObjectPageTableColumnAction"),d([g({manifest:{path:Co}}),T({since:"1.84.0"})],Kr.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o)=>Co(t,n,i,o)+"/position","path")}}),T({since:"1.84.0"})],Kr.prototype,"placement",2);var eg=Kr;var xo=class xo{};r(xo,"ObjectPageHeader"),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"})],xo.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"})],xo.prototype,"showRelatedApps",2),d([g({manifest:{path:Pd}}),T({since:"1.84.0"})],xo.prototype,"visible",2),d([g({manifest:{path:Pd}}),T({since:"1.84.0"})],xo.prototype,"anchorBarVisible",2);var tg=xo;var zc=class zc{};r(zc,"FlexSettings"),d([g({manifest:{path:r((t,n,i)=>$c(t,n,i)+"/flexSettings","path")}}),T({since:"1.81.0"}),ye("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],zc.prototype,"designtime",2);var ng=zc,qr=class qr{};r(qr,"CommonHeaderFacetSettings"),d([g({manifest:{path:$c}}),T({since:"1.81.0"})],qr.prototype,"stashed",2),d([g({manifest:{path:$c}}),T({since:"1.81.0"})],qr.prototype,"flexSettings",2);var Mi=qr,cg=class cg extends Mi{};r(cg,"ObjectPageHeaderSectionForm");var ig=cg,pg=class pg extends Mi{};r(pg,"ObjectPageHeaderSectionChart");var og=pg,fg=class fg extends Mi{};r(fg,"ObjectPageHeaderSectionDataPoint");var ag=fg,ug=class ug extends Mi{};r(ug,"ObjectPageHeaderSectionContact");var rg=ug,dg=class dg extends Mi{};r(dg,"ObjectPageHeaderSectionAddress");var sg=dg,gg=class gg{};r(gg,"HeaderSections");var lg=gg;var Yc=class Yc{};r(Yc,"ObjectPageLayout"),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],Yc.prototype,"sectionLayout",2);var mg=Yc;var Zc=U(B());var Xr=class Xr{};r(Xr,"TableCreationModeOP"),d([g({manifest:{path:r((t,n,i)=>bt(t,n,i),"path"),export:r((t,n,i,o)=>{Ld(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{jd(t,o)},"delete")}})],Xr.prototype,"name",2),d([g({manifest:{path:r((t,n,i)=>bt(t,n,i),"path"),export:r((t,n,i,o)=>{$d(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{wd(t,o)},"delete")}})],Xr.prototype,"createAtEnd",2);var yg=Xr,Ia=class Ia{};r(Ia,"QuickVariantSelectionV4OP"),d([g({manifest:{path:r((t,n,i)=>bt(t,n,i)+Zc.QUICKVARPATH,"path")}})],Ia.prototype,"paths",2),d([g({manifest:{path:r((t,n,i)=>bt(t,n,i)+Zc.QUICKVARPATH,"path")}})],Ia.prototype,"hideTableTitle",2),d([g({manifest:{path:r((t,n,i)=>bt(t,n,i)+Zc.QUICKVARPATH,"path")}})],Ia.prototype,"showCounts",2);var hg=Ia,Kt=class Kt{};r(Kt,"ObjectPageTable"),d([g({manifest:{path:bt}}),T({since:"1.84.0"})],Kt.prototype,"type",2),d([g({manifest:{path:bt,import:r(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),T({since:"1.84.0"})],Kt.prototype,"creationMode",2),d([g({manifest:{path:bt}}),T({since:"1.86.0"})],Kt.prototype,"personalization",2),d([g({manifest:{path:bt}}),T({since:"1.84.0"})],Kt.prototype,"selectionMode",2),d([g({manifest:{path:bt}}),T({since:"1.84.0"})],Kt.prototype,"selectAll",2),d([g({manifest:{path:bt}}),T({since:"1.84.0"})],Kt.prototype,"selectionLimit",2),d([g({manifest:{path:bt}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Kt.prototype,"enableExport",2),d([g({manifest:{path:bt}}),T({since:"1.84.0"})],Kt.prototype,"quickVariantSelection",2),d([g({manifest:{path:bt}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Kt.prototype,"condensedTableLayout",2),d([g({manifest:{path:bt}}),T({since:"1.86.0"})],Kt.prototype,"enablePaste",2),d([g({manifest:{path:bt}}),T({since:"1.117.0"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Kt.prototype,"hierarchyQualifier",2);var zr=Kt;var Io=class Io{};r(Io,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:r((t,n,i)=>Rr(t,n,i,"position"),"path"),key:"anchor"}}),T({since:"1.77.0"})],Io.prototype,"relatedFacet",2),d([g({manifest:{path:r((t,n,i)=>Rr(t,n,i,"position"),"path"),key:"placement"}}),T({since:"1.77.0"})],Io.prototype,"relativePosition",2),d([g({manifest:{path:Rr}}),T({since:"1.77.0"})],Io.prototype,"title",2),d([g({manifest:{path:Rr,key:"name"}}),T({since:"1.77.0"})],Io.prototype,"fragmentName",2);var Yr=Io;var Pg={};jo(Pg,{FreestylePage:()=>vg,ListReport:()=>un,ObjectPage:()=>On});function HN(e){var t,n,i,o;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(o=(i=e.paths)==null?void 0:i[0])!=null&&o.secondary)&&Object.keys(e).forEach(a=>delete e[a])}r(HN,"deleteAllALPViews");function GN(){}r(GN,"doNotExport");function WN(){}r(WN,"doNotImport");var un=class{};r(un,"ListReport"),d([g({manifest:{path:r(t=>we(t)+"/views","path"),import:WN,export:GN,delete:HN}})],un.prototype,"chart",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"})],un.prototype,"variantManagement",2),d([g({manifest:{path:r(t=>we(t)+"/views/paths/[]/0","path")}}),ye("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],un.prototype,"defaultPath",2),d([g({manifest:{path:r(t=>we(t),"path")}})],un.prototype,"defaultTemplateAnnotationPath",2),d([_e("fe::FilterBar")],un.prototype,"filterBar",2),un=d([nn({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],un);var Tg=U(B());var On=class{};r(On,"ObjectPage"),d([_e("header")],On.prototype,"header",2),d([_e("layout")],On.prototype,"layout",2),d([g({manifest:{path:r(t=>we(t),"path")}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],On.prototype,"variantManagement",2),d([_e("sections")],On.prototype,"sections",2),On=d([nn({id:`${Tg.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:Tg.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],On);var Sg=class Sg{};r(Sg,"FreestylePage");var vg=Sg;var ep=U(B());var QN={ALPTableView:Ea},KN={ALPTableView:Ea},JN={Table:zr,TableColumn:xa,ObjectPageCustomSectionView:Yr,ActionAfterExecutionConfiguration:Jr},qN={[ep.PageTypeV4.AnalyticalListPage]:QN,[ep.PageTypeV4.ListReport]:KN,[ep.PageTypeV4.ObjectPage]:JN},Ag=class Ag extends va{constructor(){super(bg,Pg,qN)}};r(Ag,"MetadataInstanceFactoryV4");var fi=Ag;var Cg=require("@sap-ux/vocabularies-types/vocabularies/UI");function Eg(e,t,n,i,o,a,s){var f,u,m,b,S,N;let l=t.jsonSchema.definitions,c=a&&a!==`@${Cg.UIAnnotationTerms.LineItem}`?a:te.DefinitionName.LineItems,p=l[c];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let L in p.properties){let ne=l[c].properties[L].$ref.split(O)[1].split("<")[0];e.columns[L]=n.createInstance(i,ne);let ie=s||a;ze(e.columns[L],t.manifest,l[ne],o,[L,ie],ie,t.logger),Qi(e.columns,L)}Qi(e,"columns")}else{let L=(N=(S=(b=(m=(u=(f=t.manifest["sap.ui5"])==null?void 0:f.routing)==null?void 0:u.targets)==null?void 0:m[o])==null?void 0:b.options)==null?void 0:S.settings)==null?void 0:N.views;(!L||L.paths.length<1)&&k(t.logger,{severity:te.LogSeverity.Error,message:j.t("NOLINEITEMS")})}}r(Eg,"transferColumns");function XN(e,t,n,i,o,a=te.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,c=s;!c&&[te.DefinitionName.LineItems,`${te.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(c=`@${Cg.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${te.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let f in p.properties){let u=p.properties[f];if(typeof u=="object"&&u.$ref){let m=Qo(u.$ref),b=m.split("<")[0];t.toolBar.actions[f]=n.createInstance(i,b),ze(t.toolBar.actions[f],e.manifest,l[m],o,[f,c]),Qi(t.toolBar.actions,f)}}}r(XN,"importActions");function uS(e,t,n,i,o,a=te.DefinitionName.LineItems,s){let l=n.createInstance(i,te.DefinitionName.ToolBar,{actions:{}}),c;!s&&t&&"table"in t?c=t.table:c=t,c.toolBar=l,ze(c.toolBar,e.manifest,e.jsonSchema.definitions[te.DefinitionName.ToolBarLR],o,[]),XN(e,c,n,i,o,a,s),Qi(c.toolBar,"actions"),Qi(c,"toolBar")}r(uS,"transferToolBar");function dS(e,t){var o;let n=(o=e[t])==null?void 0:o[te.SchemaTag.annotationPath];return n==null?void 0:n.substr(n.lastIndexOf("@"))}r(dS,"determineTargetAnnotationOfView");function zN(e,t,n,i,o){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,te.DefinitionName.ALPChart);let s=a[te.DefinitionName.ALPChart],l=s[te.SchemaTag.annotationPath];ze(t.chart,e.manifest,s,o,[s[te.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,te.DefinitionName.ToolBar,{actions:{}}),ze(t.chart.toolBar,e.manifest,a[te.DefinitionName.ViewChartToolBar],o,[]);let c=a[te.DefinitionName.ALPTable][te.SchemaTag.annotationPath];if(c){let p=a[te.DefinitionName.ALPTable],f=t.table=n.createInstance(i,te.DefinitionName.ALPTable);uS(e,t,n,i,o);let u=c.substr(c.lastIndexOf("@"));ze(f,e.manifest,p,o,[p[te.SchemaTag.key],u]),Eg(f,e,n,i,o,void 0,u)}}r(zN,"importALPViews");function YN(e){let t;return e.indexOf(te.DefinitionName.LRTableView)>-1?t=te.DefinitionName.LRTableView:e.indexOf(te.DefinitionName.LRChartView)>-1?t=te.DefinitionName.LRChartView:e===te.DefinitionName.TableViewExtension&&(t=te.DefinitionName.TableViewExtension),t}r(YN,"getViewTypeByDefinition");function ZN(e,t,n,i,o){let a=t.table.views=n.createInstance(i,te.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;ze(a,e.manifest,s[te.DefinitionName.MultiTableModeV4],o,[]);let l=s[te.DefinitionName.MultiTableModeV4].properties,c=Object.entries(l).sort((p,f)=>p[1][te.SchemaTag.propertyIndex]-f[1][te.SchemaTag.propertyIndex]);for(let p of c)if(p[1].$ref){let f=p[1].$ref.split(O)[1],u=YN(f),m=a[p[0]]=n.createInstance(i,u),b=dS(s,f);s[f].entitySet||(ze(m,e.manifest,s[f],o,[p[0],b]),u===te.DefinitionName.LRTableView&&Eg(m,e,n,i,o,`${te.DefinitionName.LineItemsOfView}::${p[0]}`,b)),Object.keys(m).length===0&&delete a[p[0]]}Qi(t.table,"views")}r(ZN,"importLRViews");function eV(e,t,n,i,o,a){if(ze(t,e.manifest,e.jsonSchema,o,[]),t.filterBar=n.createInstance(i,te.DefinitionName.FilterBar),ze(t.filterBar,e.manifest,e.jsonSchema.definitions[te.DefinitionName.FilterBar],o,[]),a===te.SchemaType.ListReport){let s=te.DefinitionName.Table,l=e.jsonSchema.definitions[s],c;l.$ref&&(s=l.$ref.split(O)[1],l=e.jsonSchema.definitions[s],c=l.properties.columns.$ref.split(O)[1]),t.table=n.createInstance(i,te.DefinitionName.Table);let p=dS(e.jsonSchema.definitions,s);ze(t.table,e.manifest,l,o,[s,p]),uS(e,t,n,i,o,c),Eg(t.table,e,n,i,o,c,p),ZN(e,t,n,i,o)}else a===te.SchemaType.AnalyticalListPage&&zN(e,t,n,i,o)}r(eV,"addSettings");function Oo(e,t){if(Xe(),!e.jsonSchema)return;if(!e.manifest[te.ManifestSection.ui5]||!e.manifest[te.ManifestSection.ui5].routing){k(e.logger,{severity:te.LogSeverity.Error,message:j.t("NOROUTING"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}});return}let n=e.manifest[te.ManifestSection.ui5].routing.targets;if(!n){k(e.logger,{severity:te.LogSeverity.Error,message:j.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}});return}let i=new fi,o=i.createPageInstance(te.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=qp(s);if("name"in s&&(l===te.PageTypeV4.ListReport||l===te.PageTypeV4.AnalyticalListPage)){eV(e,o,i,te.PageTypeV4.ListReport,a,t);break}}return o}r(Oo,"createListReportConfig");var le=U(B()),Zr=require("@sap-ux/vocabularies-types/vocabularies/UI");function xg(e,t=!1){var o,a,s;let i=(t?(o=e.split("<")[1])==null?void 0:o.slice(0,-1):e).split(`@${Zr.UIAnnotationTerms.LineItem}`);return`${(a=i[0])==null?void 0:a.replace(/::/g,"/")}@${Zr.UIAnnotationTerms.LineItem}${(s=i[1])==null?void 0:s.replace(/::/g,"#")}`}r(xg,"getManifestId");function Ig(e){return e.replace(/#/g,"::").replace(/\//g,"::")}r(Ig,"getDefinitionId");function tV(e,t,n,i,o,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Ig(a)];if(l)for(let c in l.properties){l.properties[c].$ref.indexOf(le.DefinitionName.CustomColumnOP)>-1?s=le.DefinitionName.CustomColumnOP:s=le.DefinitionName.ObjectPageTableColumn;let f=o.createInstance(le.PageTypeV4.ObjectPage,s);ze(f,e.manifest,e.jsonSchema.definitions[s],e.routingId,[c],a),Object.keys(f).length>0&&(n[i].table.columns[c]=f)}}}r(tV,"fillTableColumnsInConfig");function nV(e,t,n,i,o=t){let a=e.jsonSchema.definitions[`${le.DefinitionName.Actions}<${Ig(o)}>`];if(a)for(let s in a.properties){let l=a.properties[s];if(typeof l=="object"&&l.$ref){let c=Qo(l.$ref),p=c.split("<")[0];n[t].table.toolBar.actions[s]=i.createInstance(le.PageTypeV4.ObjectPage,p),ze(n[t].table.toolBar.actions[s],e.manifest,e.jsonSchema.definitions[c],e.routingId,[s],o),Object.keys(n[t].table.toolBar.actions[s]).length===0&&delete n[t].table.toolBar.actions[s]}}}r(nV,"fillTableActionsInConfig");function gS(e,t,n,i,o,a){let s=a||xg(i),l=t.controlConfiguration[s];if(l){n[i]={},n[i].table=o.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageTable);let c=`${le.DefinitionName.ObjectPageTable}<${a?Ig(a):i.replace("#","::")}>`;ze(n[i].table,e.manifest,e.jsonSchema.definitions[c],e.routingId,[],s),n[i].table.toolBar=o.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ToolBar,{actions:{}}),nV(e,i,n,o,s),tV(e,l,n,i,o,s)}}r(gS,"fillTableInConfig");function iV(e,t,n,i,o){var l;let a=xg(i);((l=t.controlConfiguration)==null?void 0:l[a])&&(n[i]={},n[i].form=o.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageForm,{actions:{}}))}r(iV,"fillFormInConfig");function mS(e,t,n,i,o){var a,s,l,c;for(let p in t){let f=t[p],u=p;if(p.includes(Zr.UIAnnotationTerms.PresentationVariant)&&((a=f.$ref)!=null&&a.startsWith(O+le.DefinitionName.ObjectPageSectionTableV4))){let m=f.$ref.split(O)[1];u=m?xg(m,!0):p,gS(e,n,i,p,o,u)}else(s=f.$ref)!=null&&s.startsWith(O+le.DefinitionName.ObjectPageSectionTableV4)?gS(e,n,i,p,o):f.properties&&f.properties.subsections?(i[p]={subsections:{}},mS(e,f.properties.subsections.properties,n,i[p].subsections,o)):(l=f.$ref)!=null&&l.startsWith(O+le.DefinitionName.ObjectPageSectionForm)&&((c=f.$ref)!=null&&c.includes(`@${Zr.UIAnnotationTerms.FieldGroup}::`))&&iV(e,n,i,p,o)}}r(mS,"fillSectionsInConfig");function oV(e,t,n,i){var a,s;let o=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(o)for(let l in o){if("subSections"in o[l])continue;let p=i.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageCustomSectionFragment);ze(p,e.manifest,e.jsonSchema.definitions[le.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),n.sections[l]=p}}r(oV,"fillCustomSectionsInConfig");function aV(e,t,n,i,o){var s,l;let a=e.definitions[le.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let c in a.properties){let p=a.properties[c],f,u=(s=a.properties[c].$ref)==null?void 0:s.split(O)[1];u&&(p=e.definitions[u],f=u.split("<")[0]),(f==null?void 0:f.includes(le.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[c]=f?n.createInstance(le.PageTypeV4.ObjectPage,f):{},ze(t.header.sections[c],i,p,o,[],(l=p==null?void 0:p.title)==null?void 0:l.split(le.FACETTITLEPREFIX)[1]))}}}r(aV,"fillHeaderFacets");function rV(e,t,n){let i=n.createPageInstance(le.PageTypeV4.ObjectPage),o=t.options&&t.options.settings;return i.header=n.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageHeader),ze(i.header,e.manifest,e.jsonSchema.definitions[le.DefinitionName.ObjectPageHeader],e.routingId,[]),i.layout=n.createInstance(le.PageTypeV4.ObjectPage,le.DefinitionName.ObjectPageLayout),ze(i.layout,e.manifest,e.jsonSchema.definitions[le.DefinitionName.ObjectPageLayout],e.routingId,[]),ze(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),o&&(o.controlConfiguration&&e.jsonSchema.definitions[le.DefinitionName.Sections]&&(i.sections={},mS(e,e.jsonSchema.definitions[le.DefinitionName.Sections].properties,o,i.sections,n)),oV(e,o,i,n),aV(e.jsonSchema,i,n,e.manifest,e.routingId)),i}r(rV,"fillObjectPageConfig");function tp(e){if(Xe(),!e.manifest[le.ManifestSection.ui5]||!e.manifest[le.ManifestSection.ui5].routing){k(e.logger,{severity:le.LogSeverity.Error,message:j.t("NOROUTING"),location:{path:le.MANIFESTPATH,range:[le.ManifestSection.ui5]}});return}let t=e.manifest[le.ManifestSection.ui5].routing.targets;if(!t){k(e.logger,{severity:le.LogSeverity.Error,message:j.t("NOTARGETS"),location:{path:le.MANIFESTPATH,range:[le.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){k(e.logger,{severity:le.LogSeverity.Error,message:j.t("NOROUTINGID",{routingId:e.routingId}),location:{path:le.MANIFESTPATH,range:[le.ManifestSection.ui5,"routing"]}});return}let i=new fi;return rV(e,n,i)}r(tp,"createObjectPageConfigV4");var he=U(B());var Og=[],np={};function sV(e,t){let n=e.target,i=t.target,o=Array.isArray(n),a=Array.isArray(i);return o&&a?n.length-i.length:!o&&!a?0:o?1:-1}r(sV,"routesSorter");function Fg(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(o=>!i.includes(o));return n[0]}r(Fg,"resolveTarget");function lV(e){let t={};e=e.concat().sort(sV);let n=[];for(let i of e){let o=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=Fg(i.target,n),n.push(i.target)):a=i.target;for(let s of o){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}r(lV,"populateAssociations");function cV(e,t,n){let i;return e.name?e.name===he.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=he.PageTypeV4.CustomPage:e.name.endsWith(he.PageTypeV4.ListReport)||e.name.endsWith(he.PageTypeV4.AnalyticalListPage)?i=he.PageTypeV4.ListReport:e.name.endsWith(he.PageTypeV4.ObjectPage)?i=he.PageTypeV4.ObjectPage:i=he.PageTypeV4.CustomPage:"viewId"in e?i=he.PageTypeV4.CustomPage:(k(t,{severity:he.LogSeverity.Error,message:j.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:he.MANIFESTPATH,range:[`${he.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in he.ViewTypes&&"viewName"in e&&(i=he.PageTypeV4.CustomPage)),i}r(cV,"determinePageType");function pV(e){let t=Wo(e.page.pageType,e.page.entitySet,e.target.viewId||e.pageType===he.PageTypeV4.CustomPage&&e.target.id);if(!t)return;let n=Object.keys(e.schemas).find(i=>i.includes(t))||Object.keys(e.schemas).find(i=>i.includes(t.slice(0,-1)))||Object.keys(e.schemas).find(i=>i.includes(e.page.pageType));if(n){if(e.page.pageType===he.PageTypeV4.ObjectPage){let i={manifest:e.manifest,jsonSchema:e.schemas[n],routingId:e.id,logger:e.logger};e.page.config=tp(i)}else if(e.templateType===he.TemplateType.ListReportObjectPageV4){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger};e.page.config=Oo(i,he.SchemaType.ListReport)}else if(e.templateType===he.TemplateType.AnalyticalListPageV4){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger};e.page.config=Oo(i,he.SchemaType.AnalyticalListPage)}else if(e.templateType===he.TemplateType.FreestylePageV4&&e.page.pageType===he.PageTypeV4.ListReport){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger},a=Ba(e.target)===he.TemplateType.AnalyticalListPageV4?he.SchemaType.AnalyticalListPage:he.SchemaType.ListReport;e.page.config=Oo(i,a)}}}r(pV,"convertSettingsToConfig");function fV(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");Og.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");Og.push(t[t.length-1])}}r(fV,"updateUnhandledControllers");function uV(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}r(uV,"setVariantManagmentAndNavigation");function dV(e,t,n){var i,o;if("viewId"in e)t.view={id:e.viewId,name:e.viewName};else if(n===he.PageTypeV4.CustomPage){let a=((o=(i=e.options)==null?void 0:i.settings)==null?void 0:o.viewName)||e.viewName;t.view={...e.id&&{id:e.id},...a&&{name:a}}}}r(dV,"evaluateCustomPageSettings");function gV(e,t,n,i){var p;let o=e.targets[t],a=cV(o,i.logger,t),s={pageType:a};if(o.options&&(s.entitySet=(p=o.options.settings)==null?void 0:p.entitySet),o.controlAggregation&&(s.controlAggregation=o.controlAggregation),np[t]&&np[t].indexOf(".")!==-1){let f=np[t].split(".");s.navigationProperty=f[f.length-1]}dV(o,s,a),uV(o,s),fV(o);let l=e.routes.find(f=>(f==null?void 0:f.target)&&f.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),!("template"in(s.view??{}))&&"name"in o&&o.name&&(s.template=o.name),n[t]=s;let c={target:o,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType};pV(c)}r(gV,"getSinglePageAndConfig");function yS(e){let t={},n=e.manifest[he.ManifestSection.ui5].routing;if(!n||!n.routes){let i=j.t("NOROUTING");return k(e.logger,{severity:he.LogSeverity.Error,message:i,location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}}),t}np=lV(n.routes||[]);for(let i in n.targets)gV(n,i,t,e);return t}r(yS,"getPagesAndConfigs");function hS(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return Fg(t?t.target:e.routes[0].target)}else return}r(hS,"getHome");function bS(e){var t,n,i,o;if((t=e==null?void 0:e.config)!=null&&t.flexibleColumnLayout||(n=e==null?void 0:e.config)!=null&&n.viewPath)return{flexibleColumnLayout:(i=e==null?void 0:e.config)==null?void 0:i.flexibleColumnLayout,...((o=e==null?void 0:e.config)==null?void 0:o.viewPath)&&{viewPath:e.config.viewPath}}}r(bS,"getSettings");function es(e,t){let n=e[he.ManifestSection.ui5].routing,i={};if(n)for(let o in n.targets){let a=n.targets[o];Ws(t,a.name)&&(i[o]=a)}return i}r(es,"getPages");var Ng=class Ng extends bi{constructor(t){Xe();let n=new Sa,i=Je(he.SchemaType.Application),o=t.appSchemas[i.filename];ze(n,t.manifest,o.definitions.AppSettings,"",[]),super(t,hS(t.manifest[he.ManifestSection.ui5].routing),yS(t),{...bS(t.manifest[he.ManifestSection.ui5].routing),...n}),this.unhandledControllers=Og}};r(Ng,"V4AppProvider");var Oa=Ng;var TS=require("fs"),Fo=require("path"),vS=U(B()),Vg=U(B());var SS=r((e,t,n=__dirname)=>{let i=t===Vg.SchemaType.Application?`${Vg.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,Fo.join)(n,"schemas",e,i);if(n.endsWith((0,Fo.join)("specification","packages","specification")))return(0,Fo.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Fo.join)("src","specification")))return(0,Fo.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let o=n.substring(0,n.indexOf("node_modules")+12);return(0,Fo.join)(o,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),mV=r(async e=>new Promise((t,n)=>{(0,TS.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(JSON.parse(o))})}),"readJsonSchema"),ip=r(async(e,t)=>{try{let n=SS(e||vS.FioriElementsVersion.v4,t,__dirname);return await mV(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function yV(e,t){let n={},i=[];switch(i=[Q.SchemaType.Application],e){case Q.TemplateType.ListReportObjectPageV4:case Q.TemplateType.AnalyticalListPageV4:i.push(Q.SchemaType.ListReport,Q.SchemaType.ObjectPage);break;case Q.TemplateType.FreestylePageV4:i.push(Q.SchemaType.FreestylePage),t===Q.FioriElementsVersion.v4&&i.push(Q.SchemaType.ListReport,Q.SchemaType.ObjectPage);break;case Q.TemplateType.ListReportObjectPageV2:i.push(Q.SchemaType.ListReport,Q.SchemaType.ObjectPage);break;case Q.TemplateType.AnalyticalListPageV2:i.push(Q.SchemaType.AnalyticalListPage,Q.SchemaType.ObjectPage);break;case Q.TemplateType.OverviewPageV2:i.push(Q.SchemaType.OverviewPage);break;default:break}for(let o of i){let a=Je(o);n[a.filename]=await ip(t,o)}return n}r(yV,"getGenericSchemas");function AS(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=Ut(Q.UIVOCABULARY,e);for(let o of n){if(!o.annotations||!o.annotations[i])continue;let{LineItem:a,Facets:s}=o.annotations[i];a&&!a.qualifier&&t.LineItems.push(o.name),s&&!s.qualifier&&t.Facets.push(o.name)}return t}r(AS,"getAnnotationsForUi");function pi(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}r(pi,"getEntitySetByEntitySetName");function PS(e,t,n){let i=Nr(e.manifest[Q.ManifestSection.generic].pages,Q.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let o in i){let a=i[o].entitySet,s=pi(a,e.serviceAVT);s||k(e.logger,{severity:Q.LogSeverity.Error,message:j.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Je(Q.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),c=Je(Q.SchemaType.ObjectPage);n[l.filename]=ts(e,t[c.filename])}}r(PS,"generateObjectPageSchemasV2");function hV(e,t,n){let i=es(e.manifest,Q.v4.FE_TEMPLATE_V4_LIST_REPORT),o=es(e.manifest,Q.v4.FE_TEMPLATE_V4_ALP),a={...i,...o};for(let s in a){let l=a[s].options.settings.entitySet,c=pi(l,e.serviceAVT);e.entityType=c==null?void 0:c.entityType,e.entitySet=c;let p=Je(Q.SchemaType.ListReport,(c==null?void 0:c.name)||l),f=Je(Q.SchemaType.ListReport);e.templateType===Q.TemplateType.FreestylePageV4&&(e.templateType=Ba(a[s])),n[p.filename]=Lr(e,t[f.filename],c,a[s].name)}}r(hV,"generateListReportSchemasV4");function bV(e,t,n){var o;let i=Nr(e.manifest[Q.ManifestSection.generic].pages,Q.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=pi(s,e.serviceAVT);let l=Je(Q.SchemaType.ListReport,((o=e.entitySet)==null?void 0:o.name)||s),c=Je(Q.SchemaType.ListReport);t[l.filename]=ns(e,n[c.filename])}}r(bV,"generateAppSchemaV2LR");function TV(e,t,n){let i=es(e.manifest,Q.v4.FE_TEMPLATE_V4_OBJECT_PAGE);for(let o in i){let a=i[o].options.settings.entitySet,s=pi(a,e.serviceAVT);s||k(e.logger,{severity:Q.LogSeverity.Error,message:j.t("ENTITYSETNOTFOUND",{entitySet:a})});let l=Je(Q.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),c=Je(Q.SchemaType.ObjectPage);n[l.filename]=Dr(e,t[c.filename],s)}}r(TV,"generateObjectPageSchemasV4");function vV(e,t,n,i){var a;let o={};if(i===Q.TemplateType.ListReportObjectPageV2&&n)bV(e,o,t),PS(e,t,o);else if(i===Q.TemplateType.AnalyticalListPageV2&&n){let s=Nr(e.manifest[Q.ManifestSection.generic].pages,Q.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let c=s[l].entitySet;e.entitySet=pi(c,e.serviceAVT);let p=Je(Q.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||c),f=Je(Q.SchemaType.AnalyticalListPage);o[p.filename]=is(e,t[f.filename])}PS(e,t,o)}else if(i===Q.TemplateType.OverviewPageV2){let s=Je(Q.SchemaType.OverviewPage),l=Je(Q.SchemaType.OverviewPage);o[s.filename]=os(t[l.filename],e.manifest)}return{...t,...o}}r(vV,"generateAppSchemasV2");function SV(e,t,n){let i={};return n&&(hV(e,t,i),TV(e,t,i)),{...t,...i}}r(SV,"generateAppSchemasV4");async function CS(e,t,n){let i=await yV(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===Q.FioriElementsVersion.v4?SV(e,i,t):vV(e,i,t,n)}r(CS,"generateAppSchemas");function PV(e){let t,n=[];switch(e.templateType){case Q.TemplateType.ListReportObjectPageV2:case Q.TemplateType.AnalyticalListPageV2:t=new Cc(e);break;case Q.TemplateType.AnalyticalListPageV4:case Q.TemplateType.ListReportObjectPageV4:case Q.TemplateType.FreestylePageV4:t=new Oa(e);break;case Q.TemplateType.OverviewPageV2:t=new Ic(e);break;default:t=new Oa(e);break}if(t){let{appConfig:i,pageConfigs:o}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in o)n.push({dataSourceUri:a,fileContent:JSON.stringify(o[a],null,4)})}return n}r(PV,"importConfigs");function ES(e,t){let n=[];for(let i of Object.keys(e).sort()){let o;i===Q.SchemaType.Application?o=`${Q.DirName.Schemas}/${Q.FileName.App[0].toUpperCase()}${Q.FileName.App.slice(1)}`:o=`${Q.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:o,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}r(ES,"getFileList");async function Lg(e){var S,N;Xe();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,featureToggles:s}=e;new Ga().doesUi5VersionFitDistTags((N=(S=t["sap.ui5"])==null?void 0:S.dependencies)==null?void 0:N.minUI5Version,i);let c=Yp(t),p=ei(n,i),f=AS(p),u=Zp(t,c,i),b=await CS({templateType:u,manifest:t,serviceAVT:p,fragments:o,views:a,fioriElementsVersion:c,logger:i,featureToggles:s},f,u);return ES(b)}r(Lg,"importProjectSchema");async function Dg(e){var ne,ie;Xe();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,flex:s,featureToggles:l}=e;new Ga().doesUi5VersionFitDistTags((ie=(ne=t["sap.ui5"])==null?void 0:ne.dependencies)==null?void 0:ie.minUI5Version,i);let p=Yp(t),f=Zb(t),u=ei(n,i),m=Zp(t,p,i),b={templateType:m,manifest:t,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},S=AS(u),N=await CS(b,S,m),z=PV({manifest:t,flexChanges:s,appSchemas:N,templateType:m,logger:i,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:p,oDataVersion:f});return ES(N,z)}r(Dg,"importProjectSchemaAndConfig");var AV=["header","sections","footer"];function CV(e,t,n,i){t.properties[n][R.SchemaTag.artifactType]=R.ArtifactType.FlexChange;let o;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":o=R.ControlType.Section;break;case"ObjectPageSubSectionV2":o=R.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":o=R.ControlType.Group;break;case"ObjectPageSubSectionChartV2":o=R.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":o=R.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":o=R.ControlType.ObjectPageHeaderSection;break}o&&(Fe(e,t,n),t.properties[n][R.SchemaTag.controlType]=o)}r(CV,"addFlexChangeForSection");function EV(e,t,n,i,o){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Fn.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:c}=cl(a,o);if(!l)return;let p=a.Label||s,f=`HeaderAction<${Oe(l)}>`;t.definitions[f]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let u=a.fullyQualifiedName.replace(`@${Fn.UIAnnotationTerms.Identification}`,`/@${Fn.UIAnnotationTerms.Identification}`);t.definitions[f][R.SchemaTag.annotationPath]=`/${u}`,t.definitions[f][R.SchemaTag.actionType]=R.ActionType.Annotation,t.definitions[f].description=p,t.definitions[f][R.SchemaTag.keys]=[{name:R.SchemaKeyName.action,value:s}],c&&(t.definitions[f][R.SchemaTag.target]=c),i.properties[l]={$ref:`${O}${f}`}}})}r(EV,"addHeaderActionCallBackV2");function xV(e,t,n,i){i.forEach(o=>{if(o.Determining&&o.$Type===Fn.UIAnnotationTypes.DataFieldForAction){let a=oi(o).split("::").splice(1).join("::"),s=Ct(o,e),l=Oe(`${R.DefinitionName.ObjectPageFooterAction}<${a}>`),c=o.fullyQualifiedName.replace(`@${Fn.UIAnnotationTerms.Identification}`,`/@${Fn.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[R.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${c}`}}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${O}${l}`}}})}r(xV,"addFooterActionCallBackV2");function IV(e,t,n,i,o,a,s,l){let c,p;if(a.ID&&a.Label?c=a.ID+a.Label.replace(/\s+/g,""):a.ID?c=a.ID:a.Label&&(c=a.Label.replace(/\s+/g,"")),c?p=`${R.DefinitionName.CustomColumns}<${n}><${s}><${c}>`:p=`${R.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let f=`${R.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[f]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let u=[],m=o==null?void 0:o.entityTypes.find(S=>S.name===i),b=vo(t[R.ManifestSection.generic].pages,n,u);return zo(e,m,b,t,l,p,f,a.ID),p}r(IV,"ensureCustomColumnDefinitionExists");function rs(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&CV(e,t,"visible",n)}r(rs,"addAppSchemaDefinition");function OV(e,t,n){e.properties[t]={$ref:`${O}${n}`}}r(OV,"addSectionReference");function as(e,t,n,i){let o=Oe(`${e}<${t}>`);try{i.definitions[o]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[o].properties.columns.$ref=O+t,i.definitions[o].properties.toolBar.$ref=`${O}ObjectPageToolBar<${t}>`,i.definitions[o][R.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[o].title=R.FACETTITLEPREFIX+n.ID,i.definitions[o][R.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[o].description=R.DefinitionName.Table,i.definitions[o].properties.quickVariantSelection.$ref=`${O}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${O}QuickVariant<${t}>`,yi(n.entityType,i,`QuickVariant<${t}>`)}r(as,"addTableDefinition");function FV(e,t,n,i,o,a){if(i.base!==R.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=jn(n,i,t);let c=n.definitions[l];rs(n,c,a,"ObjectPageSectionTableV2"),c.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[R.PropertyName.table])),c.properties.table.anyOf=[{$ref:`${O}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${O}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${O}ObjectPageAnalyticalTable<${t}>`},{$ref:`${O}ObjectPageGridTable<${t}>`},{$ref:`${O}ObjectPageTreeTable<${t}>`}],c[R.SchemaTag.annotationPath]=i.annotationPath,ni(i,c,t),gi(i,c,t),as("ObjectPageResponsiveTableWithMultiSelect",t,i,n),as("ObjectPageResponsiveTableWithInlineDelete",t,i,n),as("ObjectPageGridTable",t,i,n),as("ObjectPageTreeTable",t,i,n),as("ObjectPageAnalyticalTable",t,i,n);let p,f=$T(i.entityType,e.serviceAVT);f&&(p=IV(n,e.manifest,f.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let u in o){let m=o[u];m.base===R.FacetBase.LineItem&&(m.ID===s||u.includes(s))&&Xo(!0,n,m.target,m.entityType,m.ID||u,p)}}r(FV,"handleLineItem");function NV(e,t,n,i,o,a=!1){e.definitions[t]=jn(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";rs(e,s,o,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[R.SchemaTag.isViewNode]=!0}r(NV,"handleSubSection");function VV(e,t,n,i,o){e.definitions[t]=jn(e,n,i);let a=e.definitions[t];rs(e,a,o,"ObjectPageSectionChartV2")}r(VV,"handleSectionChart");function xS(e,t,n,i,o,a){e.definitions[t]=jn(e,n,i);let s=e.definitions[t];rs(e,s,o,a||"CommonHeaderFacetSettings"),s[R.SchemaTag.annotationPath]=n.annotationPath,s[R.SchemaTag.isViewNode]=!0,s[R.SchemaTag.dataType]=Zi(n==null?void 0:n.target)}r(xS,"handleHeaderFacet");function LV(e,t,n){let i=e.definitions[t],o=i[R.SchemaTag.dataType]=Zi(n==null?void 0:n.target);o==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:o==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}r(LV,"addDataPointHeaderFacetDataType");function DV(e,t,n,i,o){e.definitions[t]=jn(e,n,i);let a=e.definitions[t];return rs(e,a,o,"ObjectPageSectionFormV2"),a[R.SchemaTag.annotationPath]=n.annotationPath,a[R.SchemaTag.isViewNode]=!0,a}r(DV,"handleFormSection");function jV(e,t,n){let i=new Map([[R.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[R.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[R.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[R.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[R.FacetBase.Form,"ObjectPageHeaderSectionForm"],[R.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),o=new Map([[R.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[R.FacetBase.LineItem,"ObjectPageSectionTableV2"],[R.FacetBase.Chart,"ObjectPageSectionChartV2"],[R.FacetBase.Address,"ObjectPageSectionAddressV2"],[R.FacetBase.Contact,"ObjectPageSectionContactV2"],[R.FacetBase.Form,"ObjectPageSectionFormV2"],[R.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[R.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[R.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[R.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[R.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[R.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[R.FacetBase.Form,"ObjectPageSubSectionFormV2"],[R.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):o.get(e)}r(jV,"getSectionType");function RV(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Fn.UIAnnotationTerms.Facets}`,e.base)),`${i}`}r(RV,"getReferenceKey");function OS(e,t,n,i,o,a=!1,s=!1){let l=t[n],c=jV(l.base,a,s),p=RV(l,n,c),f=`${c}<${p}>`;switch(OV(i,p,f),c){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,NV(o,f,l,n,c,s);let u=o.definitions[f].properties.subsections;for(let m in l.facets)OS(e,l.facets,m,u,o,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{FV(e,p,o,l,t,c),ea(o,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{VV(o,f,l,p,c);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let u=DV(o,f,l,p,c);ll(R.SectionType.Section,l,u,o,R.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{Ha(l,p,i,o,R.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{Ha(l,p,i,o,R.SectionType.Section,R.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{xS(o,f,l,p,c);break}case"ObjectPageHeaderSectionDataPoint":{xS(o,f,l,p,c),LV(o,f,l);break}default:i.properties[n]=jn(o,l,p)}}r(OS,"addSection");function IS(e,t,n,i,o,a=!1){if(e)for(let s in t)OS(i,t,s,n,o,!1,a)}r(IS,"addSectionsFromFacets");function FS(e,t,n){var f,u,m,b,S,N;let i=t.definitions[R.DefinitionName.Sections];i[R.SchemaTag.isViewNode]=!0,(f=e.entitySet)!=null&&f.entityType&&(i[R.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Fn.UIAnnotationTerms.Facets}`);let o=t.definitions[R.DefinitionName.HeaderSections];if(o[R.SchemaTag.isViewNode]=!0,o.properties||(o.properties={}),o.additionalProperties=!1,(u=e.entitySet)!=null&&u.entityType&&(o[R.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Fn.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Gs((m=e.entitySet)==null?void 0:m.entityType,e.serviceAVT,R.FioriElementsVersion.v2,e.logger),s=Hs((b=e.entitySet)==null?void 0:b.entityType,e.serviceAVT,R.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,c=s&&!!Object.keys(s).length;if(!l&&!c)return;for(let L in n){let z=n[L];(N=(S=e.entitySet)==null?void 0:S.name)!=null&&N.includes(z.entitySet)?(IS(l,a,i,e,t),IS(c,s,o,e,t,!0)):FS(e,t,z.pages)}let p=t.definitions.CustomSections;for(let L in p.properties)i.properties[L]=p.properties[L]}r(FS,"addSections");function $V(e,t,n,i){ul(e,n),fl(e,n,t,i,EV,!0)}r($V,"addHeader");function wV(e,t,n,i){let o=tT(t,n,i,void 0,!0);o&&kT(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],o,["ID","key"])}r(wV,"addRelatedFacetKeysType");function ts(e,t){var s;Xe();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[R.PropertyName.sections]={$ref:O+"Sections"};let o=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=o;let a=e.manifest[R.ManifestSection.generic].pages;return a?($V(n,e.entitySet,o,e.serviceAVT),n.definitions[R.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},FS(e,n,a),wV(n,o,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[R.SchemaTag.isViewNode]=!0):delete n.properties[R.PropertyName.sections]),pl(n,e,R.FioriElementsVersion.v2,xV,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,$n(n,AV),n):(k(e.logger,{severity:R.LogSeverity.Error,message:j.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:R.MANIFESTPATH,range:[R.ManifestSection.generic]}}),n)}r(ts,"generateObjectPageSchemaV2");var zt=U(B());var MV=["filterBar","table","footer"];function jg(e,t,n,i){yi(e,n,"QuickVariant"),MT(n,"QuickVariantX",t),UT(i,n,"QuickVariantX")}r(jg,"addEnumForVariantPaths");function ns(e,t){var u,m,b,S,N,L,z;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=O+qi,n.properties.table.anyOf[1].$ref=O+Xi,n.properties.table.anyOf[2].$ref=O+Ys,n.properties.table.anyOf[3].$ref=O+Zs,n.properties.table.anyOf[4].$ref=O+el;let i=JSON.parse(JSON.stringify(t.definitions.ResponsiveTableWithMultiSelect)),o=JSON.parse(JSON.stringify(t.definitions.ResponsiveTableWithInlineDelete)),a=JSON.parse(JSON.stringify(t.definitions.TreeTable)),s=JSON.parse(JSON.stringify(t.definitions.AnalyticalTable)),l=JSON.parse(JSON.stringify(t.definitions.GridTable)),c={$ref:O+zt.DefinitionName.LineItems};i.properties.columns=c,o.properties.columns=c,a.properties.columns=c,s.properties.columns=c,l.properties.columns=c;let p=O+zt.DefinitionName.ToolBarLR;n.definitions[qi]=i,n.definitions[Xi]=o,n.definitions[Ys]=a,n.definitions[Zs]=s,n.definitions[el]=l,of.forEach(ne=>{n.definitions[ne].properties.toolBar.$ref=p});let f=(u=e.entitySet)==null?void 0:u.entityType;if(!f)(m=e.entitySet)!=null&&m.name&&k(e.logger,{severity:zt.LogSeverity.Error,message:j.t("NOENTITYTYPE4SET",{entitySetName:(b=e.entitySet)==null?void 0:b.name})});else{Yo(n);let ne=(N=(S=f==null?void 0:f.annotations)==null?void 0:S.UI)==null?void 0:N.LineItem;ne&&of.forEach(oe=>{n.definitions[oe][zt.SchemaTag.annotationPath]=Mt(f==null?void 0:f.fullyQualifiedName,ne.term,ne.qualifier)}),Xo(!1,n,ne,f);let ie=(z=(L=f==null?void 0:f.annotations)==null?void 0:L.UI)==null?void 0:z.SelectionFields;il(n,ie,f),ea(n,f);let ce=[],Y=ya(e.manifest[zt.ManifestSection.generic].pages,ce);if(!Y)return k(e.logger,{severity:zt.LogSeverity.Error,message:j.t("NOLR"),location:{path:zt.MANIFESTPATH,range:[zt.ManifestSection.generic]}}),n;zo(n,f,Y,e.manifest,e.fragments),jg(f,e.entitySet,n,e.serviceAVT),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return $n(n,MV),n}r(ns,"generateListReportSchemaV2");var je=U(B());var UV=["filterBar","keyPerformanceIndicators","chart","table","footer"];function NS(e,t){let n=t.value;return n.includes(je.UIVOCABULARYALPHADOT+e)?n.replace(je.UIVOCABULARYALPHADOT,""):""}r(NS,"retrieveNameWithoutVocabulary");function kV(e,t,n){var S;let i=(S=e==null?void 0:e.component)==null?void 0:S.settings,o=i==null?void 0:i.qualifier,a=r(function(N){let L=N+(o?"#"+o:"");return t[L]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let N=o?j.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:o}):j.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return k(n,{severity:je.LogSeverity.Error,message:N}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let c=(l==null?void 0:l.Visualizations)||[],p="",f="";c.some(function(N){return p=p||NS("LineItem",N),f=f||NS("Chart",N),p&&f}),p=p||"LineItem",f=f||"Chart";let u=t[p],m=t[f],b=(u||i.quickVariantSelectionX?0:1)+(m?0:2);if(b>0){let N=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][b-1],L=j.t(N);k(n,{severity:je.LogSeverity.Warning,message:L})}return{lineItemAnnotation:u,chartAnnotation:m}}r(kV,"getLineItemAndChartAnnotation");function _V(e,t){let n=e.definitions[je.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[je.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}r(_V,"addChart");function is(e,t){var s,l,c,p,f;let n=JSON.parse(JSON.stringify(t));n.properties[je.PropertyName.table].anyOf[0].$ref=O+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${O}${je.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${O}${je.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[je.PropertyName.table].anyOf[1].$ref=`${O}ALPGridTable<LineItems>`;try{let u=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));u.properties.columns.$ref=`${O}${je.DefinitionName.LineItems}`,u.properties.toolBar.$ref=`${O}${je.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=u}catch{throw new Error(j.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[je.PropertyName.table].anyOf[2].$ref=`${O}ALPAnalyticalTable<LineItems>`;let o=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));o.properties.columns.$ref=`${O}${je.DefinitionName.LineItems}`,o.properties.toolBar.$ref=`${O}${je.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=o,NT(n.definitions.TableColumnExtensionTypeV2.enum,[je.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let a=(s=e.entitySet)==null?void 0:s.entityType;if(!a)k(e.logger,{severity:je.LogSeverity.Error,message:j.t("NOENTITYTYPE4SET",{entitySetName:(l=e.entitySet)==null?void 0:l.name})});else{Yo(n);let u=[],m=Ta(e.manifest[je.ManifestSection.generic].pages,u,e.logger),b=(c=a==null?void 0:a.annotations)==null?void 0:c.UI,{lineItemAnnotation:S,chartAnnotation:N}=kV(m,b,e.logger);S&&CT.forEach(z=>{n.definitions[z][je.SchemaTag.annotationPath]=Mt(a==null?void 0:a.fullyQualifiedName,S.term,S.qualifier)}),Xo(!1,n,S,a),N&&_V(n,N);let L=(f=(p=a==null?void 0:a.annotations)==null?void 0:p.UI)==null?void 0:f.SelectionFields;if(il(n,L,a),ea(n,a),!m)return k(e.logger,{severity:je.LogSeverity.Error,message:j.t("NOLR"),location:{path:je.MANIFESTPATH,range:[je.ManifestSection.generic]}}),n;zo(n,a,m,e.manifest,e.fragments),jg(a,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return $n(n,UV),n}r(is,"generateAnalyticalListReportSchemaV2");var VS=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function BV(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let o=i.$ref.split("/");return o[o.length-1]})}r(BV,"getCardDefinitionNames");function HV(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),o=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(o).filter(c=>i.includes(o[c].dataSource)));let s=e.definitions;s.CardModel={type:"string"},zi(a,s.CardModel);let l=BV(e);for(let c of l){let p=s[c].properties.model;delete p.type,p.$ref=O+"CardModel"}}r(HV,"addModelsEnum");function GV(e,t){let n=e.properties;for(let i in VS){let o=VS[i],a=o.key;n[a]&&(n[a].messages=[{text:Jo(a,{since:o.since,deprecated:{since:o.deprecated.since,text:o.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}r(GV,"markDeprecatedProperties");function LS(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},GV(n,t),HV(n,t),n}r(LS,"generateOverviewPageSchemaV2");var Ui=U(B());function Rg(e,t,n,i,o,a){Xe();let s=ei(e,t),l={templateType:a,fioriElementsVersion:Ui.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=pi(o,l.serviceAVT),l.entitySet||k(l.logger,{severity:Ui.LogSeverity.Error,message:j.t("ENTITYSETNOTFOUND",{entitySetName:o})}),l}r(Rg,"prepareGenerationV2");function $g(e,t,n,i,o,a){let s=Rg(n,a,i,o,t,Ui.TemplateType.ListReportObjectPageV2);return ts(s,e)}r($g,"generateObjectPageInterfaceV2");function wg(e,t,n,i,o,a){let s=Rg(n,a,i,o,t,Ui.TemplateType.ListReportObjectPageV2);return ns(s,e)}r(wg,"generateListReportInterfaceV2");function Mg(e,t,n,i,o,a){let s=Rg(n,a,i,o,t,Ui.TemplateType.AnalyticalListPageV2);return is(s,e)}r(Mg,"generateAnalyticalListPageInterfaceV2");function os(e,t){return LS(e,t)}r(os,"generateOVPInterfaceV2");var re=U(B());var ss=r(e=>({flexChanges:[],manifest:{[re.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:re.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:re.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function DS(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===re.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(re.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(re.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}r(DS,"getClassesForSingleSection");function jS(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],DS(n,i,t),jS(n,t)}}r(jS,"getSubsectionClasses");function WV(e,t,n){let i;for(let o in e.sections)i=t.sections[o],DS(i,o,n),jS(i,n)}r(WV,"getExportClassesForSections");function QV(e,t){let n=ya(t.manifest[re.ManifestSection.generic].pages,e);if(!n){k(t.logger,{severity:re.LogSeverity.Error,message:j.t("NOLR"),location:{path:re.MANIFESTPATH,range:[re.ManifestSection.generic]}});return}if(!n.component){k(t.logger,{severity:re.LogSeverity.Error,message:j.t("COMPONENTNOTDEFINED",{pageName:re.PageTypeV2.ListReport}),location:{path:re.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}r(QV,"findV2Page");function Ug(e,t){let n=Js(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}r(Ug,"calculateBaseId");function RS(e,t,n=!1){let i=ss(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let o=e.page.config;if(o&&Object.keys(o).length!==0){let a=[],s=QV(a,e),l=new Lt,c=l.createPageInstance(re.PageTypeV2.ListReport,o),p={v2Page:s,exportResults:i,appId:e.appId,baseId:Ug(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:re.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Ri(p,c,[],[],e.jsonSchema)}return i}r(RS,"exportListReportPage");function $S(e,t,n=!1){let i=e.page.config,o=ss(e.fragments);o.flexChanges=[],o.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=Ta(e.manifest[re.ManifestSection.generic].pages,a,e.logger);if(!s)return o;if(s.component.settings||(s.component.settings={}),o.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Lt,c=l.createPageInstance(re.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:o,appId:e.appId,baseId:Ug(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:re.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Ri(p,c,[],[],e.jsonSchema)}return o}r($S,"exportAnalyticalListPage");function wS(e,t,n=!1){let i=e.page.config,o=e.page.entitySet,a=ss(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=vo(e.manifest[re.ManifestSection.generic].pages,o,s);if(!l)return k(e.logger,{severity:re.LogSeverity.Error,message:j.t("NOOBJECTPAGE",{entitySetName:o}),location:{path:re.MANIFESTPATH,range:[re.ManifestSection.generic]}}),a;let c=new Lt,p=c.createPageInstance(re.PageTypeV2.ObjectPage,i);if(i.sections&&WV(i,p,c),Object.keys(i).length!==0){let f={v2Page:l,exportResults:a,appId:e.appId,baseId:Ug(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:s,pageType:re.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Ri(f,p,[],[],e.jsonSchema)}}return a}r(wS,"exportObjectPage");var MS=r(e=>{let t=ss();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Lt,i=n.createPageInstance(re.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Vr(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),KV=r((e,t,n)=>{var s;let i=ss();i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new ml,e);o.settings=Object.assign(new vi,e.settings);for(let l in n.definitions.AppSettings.properties){let c=dt(o.settings,l);if(c&&c.manifest){let p=c.manifest.path(),f=pt(i.manifest,p);e.settings&&e.settings[l]!==void 0?f[l]=e.settings[l]:(delete f[l],mi(i.manifest,p,!1))}}let a=(s=i.manifest[re.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&uf(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function US(e,t){if(e[re.SchemaType.ListReport])return RS(e[re.SchemaType.ListReport],t);if(e[re.SchemaType.ObjectPage])return wS(e[re.SchemaType.ObjectPage],t);if(e[re.SchemaType.OverviewPage])return MS(e[re.SchemaType.OverviewPage]);if(e[re.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[re.SchemaType.Application];return KV(n,i,o)}else if(e[re.SchemaType.AnalyticalListPage])return $S(e[re.SchemaType.AnalyticalListPage],t)}r(US,"exportPageV2");function kg(e,t,n=!1){if(e[re.SchemaType.ListReport])return RS(e[re.SchemaType.ListReport],t,n);if(e[re.SchemaType.ObjectPage])return wS(e[re.SchemaType.ObjectPage],t,n);if(e[re.SchemaType.OverviewPage])return MS(e[re.SchemaType.OverviewPage]);if(e[re.SchemaType.AnalyticalListPage])return $S(e[re.SchemaType.AnalyticalListPage],t,n)}r(kg,"exportConfigEntityByPathV2");var ls=U(B());var kS=r((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),JV=r((e,t)=>({settings:{...e&&{entitySet:e},...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function qV(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}r(qV,"initializeRouting");function XV(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}r(XV,"setTargetOptions");function zV(e,t,n){let i="";return e.forEach((o,a)=>{let s="";t&&t.pageType!==ls.PageTypeV4.ListReport&&(n[o]?s=`({${n[o]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${o}${s}`}),`${i}:?query:`}r(zV,"calculateQueryPattern");function _S(e,t,n,i){e.unshift(t);let o;for(let a in n){if(typeof n[a].navigation=="object"){let s=Object.keys(n[a].navigation).find(l=>n[a].navigation[l].route===i);s&&(t=s,o=n[a])}if(o){_S(e,t,n,a);return}}}r(_S,"fillNavigationParts");function YV(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let o=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[o]=a}),t}r(YV,"fillParentKeys");function ZV(e,t,n,i,o){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(XV(n,a,s),s!=null&&s.route&&!i.routes.some(c=>c.name===s.route)){let c=l==null?void 0:l.routePattern;if(!c){let p=[];_S(p,a,t,o);let f=YV(e.routePattern);c=zV(p,l,f)}i.routes.push(kS(c,s.route,s.route))}}}r(ZV,"handlePageNavigation");function eL(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(o=>o.name===n);i!==-1&&e.routes.splice(i,1)}}r(eL,"removeDeletedPages");function tL(e,t){var n,i;e.entitySet?(t.options||(t.options=JV(e.entitySet,e.variantManagement)),t.options.settings.entitySet=e.entitySet):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.entitySet}r(tL,"transferEntitySet");function nL(e,t,n){let i=e.routes.find(o=>o.target&&o.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}r(nL,"updateRouteLayout");function iL(e,t,n){return e.pageType&&e.pageType!==ls.PageTypeV4.CustomPage?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:e.template??`sap.fe.templates.${e.pageType}`}:e.view&&(t={...t,viewName:e.view.name},e.view.id&&(t.viewId=e.view.id)),t}r(iL,"fillTarget");function BS(e,t,n){var o,a;let i=qV(n[ls.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(kS(":?query:",e,e));for(let s in t){let l,c=t[s];i.targets[s]&&(l=i.targets[s]),l=iL(c,l,s),tL(c,l),l&&!c.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(o=l==null?void 0:l.options)==null?void 0:o.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),ZV(c,t,l,i,s),nL(i,s,c),i.targets[s]=l}return eL(i,t),i}r(BS,"transformRoutingV4");var Ot=U(B());function HS(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}r(HS,"updateDependencyLib");function GS(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}r(GS,"extractLastIdPart");var WS=[Ot.FlexibleColumnLayoutAggregations.BeginColumnPages,Ot.FlexibleColumnLayoutAggregations.MidColumnPages,Ot.FlexibleColumnLayoutAggregations.EndColumnPages],QS=r((e,t,n,i=[],o=0)=>{var p;let a=e.routing.routes.find(f=>f.name===n);if(!a)return;typeof a.target=="string"&&(a.target=o<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:WS[o]?s.controlAggregation=WS[o]:s.controlAggregation=Ot.FlexibleColumnLayoutAggregations.EndColumnPages;let c=a.pattern.replace(":?query:","");if(c?s.contextPattern=c.startsWith("/")?c:`/${c}`:s.contextPattern="",l.navigation){o++;for(let f in l.navigation)QS(e,t,l.navigation[f].route,a.target,o)}},"applyFCLRouting"),oL=r((e,t)=>{e.routing.config.routerClass=Ot.v4.FIORI_FCL_ROUTER_CLASS,QS(e,t,t.home);let n={viewName:Ot.FIORI_FCL_ROOT_VIEW_NAME,type:Ot.ViewTypes.XML,async:!0,id:Ot.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,HS(e,Ot.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),aL=r(e=>{var t;e.rootView&&e.rootView.viewName===Ot.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Ot.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),KS=r((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?oL(e,t):aL(e)},"updateFcl");var $=U(B());var op=require("@sap-ux/vocabularies-types/vocabularies/UI");var JS=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],rL=[...JS,"views","initialLoad","template"],sL=r(e=>{let t=$.defaultExportResult;return t.fragments=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function lL(e,t,n){var s,l,c;let i=`@${op.UIAnnotationTerms.LineItem}`,o=`@${op.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[$.DefinitionName.TableSPV])==null?void 0:s[$.SchemaTag.annotationPath];if(e.length>1&&t.config.table.annotationPath){let p=(l=t.appSchema.definitions[$.DefinitionName.ALPTable])==null?void 0:l[$.SchemaTag.annotationPath];i=o=p&&p.substr(p.lastIndexOf("@"))}else if((c=n.table)!=null&&c.annotationPath)i=o=`@${n.table.annotationPath}`;else if(e[0]===$.PropertyName.table&&a){let p=a.split("/");i=o=p[p.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:o}}r(lL,"determineTargetAnnotationOfTable");function cL(e,t,n){var a,s;let i,o;if(e.length>1){let l=(a=t.appSchema.definitions[$.DefinitionName.ALPChart])==null?void 0:a[$.SchemaTag.annotationPath];i=o=l&&l.substr(l.lastIndexOf("@"))}else i=o=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:o}}r(cL,"determineTargetAnnotationOfChart");function pL(e,t,n,i,o){var a;if(e.length===3)t=n=i[$.SchemaTag.annotationPath]&&i[$.SchemaTag.annotationPath].substr(i[$.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split(O)[1],l=s&&o.appSchema.definitions[s],c=(l==null?void 0:l[$.SchemaTag.annotationPath])&&l[$.SchemaTag.annotationPath].substr(l[$.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${c}`:c}return{targetAnnotation:t,targetAnnotationEncoded:n}}r(pL,"determineTargetAnnotationBasedOnParentView");function fL(e,t){var a;let n,i,o=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(o)({targetAnnotation:n,targetAnnotationEncoded:i}=pL(t,n,i,o,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[$.SchemaTag.annotationPath]&&l[$.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let c=l[$.SchemaTag.annotationPath].split("/");return n=i=c[c.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[$.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}r(fL,"determineTargetAnnotationOfView");function uL(e,t,n){let i,o;return e[2].split(`@${$.UIVOCABULARY}`)[1]?n&&n.indexOf($.FACETTITLEPREFIX)>-1?i=o=n.split($.FACETTITLEPREFIX)[1]:e[2]?i=o=e[2].split("@")[1]:o&&(i=o=o.replace(/::/g,"/")):(t=!0,o=e[2],i=o&&o.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:o,targetAnnotation:i}}r(uL,"determineTargetAnnotationOfHeaderSections");function dL(e,t){let n=e[1].split(`@${$.UIVOCABULARY}`)[1],i,o;if(e[0]==="sections"&&!n)t=!0,o=e[1],i=o&&o.replace(/::/g,"/");else{let a=GS(e[1]);o=a&&a.replace(/\//g,"::"),i=o&&o.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:o,targetAnnotation:i}}r(dL,"determineTargetAnnotationOfSections");function gL(e,t,n){let i,o,a=!1;return e[0]===$.PropertyName.table&&e[1]!==$.PropertyName.views?{targetAnnotationEncoded:o,targetAnnotation:i}=lL(e,t,n):e[0]===$.PropertyName.chart&&t.templateType===$.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:o,targetAnnotation:i}=cL(e,t,n):e[0]===$.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=dL(e,a):e[1]===$.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=uL(e,a,t.title):e[1]===$.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:o}=fL(t,e)),{targetAnnotationEncoded:o,targetAnnotation:i,custom:a}}r(gL,"determineTargetAnnotation");function mL(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let o=e[i];if(o==="columns"||o===$.PropertyName.actions||o==="views"){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}r(mL,"determineKeyForSyncRule");function yL(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}r(yL,"createNewObjectInManifest");function hL(e,t,n){var o,a;let i=!1;return t.type!=="array"&&((o=n==null?void 0:n.targetDefinition)==null?void 0:o.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(yL(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}r(hL,"transferPropertyToManifest");function bL(e,t,n,i,o,a,s){var p,f,u;let l=!1,c=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((f=n.config.table)!=null&&f.views)||e[1]==="views"&&((u=n.config.table)!=null&&u.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&JS.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(c!=null&&c.annotationPath)&&!c.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&rL.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let m=t.syncRule.manifest.delete;typeof m=="function"&&(m(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return mi(n.exportResults.manifest,o,n.deletionRequest,n.entityPathArray,a,s),l}r(bL,"deleteFromManifest");function TL(e,t,n,i){let o=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:c,custom:p}=gL(e,n.transferParameters,n.configObject),f=mL(e),u=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,f,c,n.configObject),m=ti(n.transferParameters.exportResults.manifest,u,c,p?void 0:l);if(m){let b={syncRule:t,manifestSection:m,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:f};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&Ho([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?o=bL(e,b,n.transferParameters,m,u,c,l):o=hL(b,n.propertyDefinition,i)}return o}r(TL,"exportManifestChange");function vL(e,t,n){let i=dt(e.configObject,e.key);i!=null&&i.manifest&&TL(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=$.ChangeIndicator.Updated)}r(vL,"evaluateExportRule");function SL(e,t,n,i,o){let a=[];e.propertyDefinition.$ref&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,Bg(e.transferParameters,s,[...i],o,[...e.breadcrumbs,e.key],t.targetDefinition),e.index++}r(SL,"transferSubObject");function PL(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let o=we(e.pageNameArray)+"/views",a=ti(e.exportResults.manifest,o);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}r(PL,"createALPTableView");function AL(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=we(e.transferParameters.pageNameArray)+"/views",o=ti(e.transferParameters.exportResults.manifest,i);return!o.paths||Object.keys(o.paths).length===0?(o.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):o.paths[0].primary||(o.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),o.paths[0].secondary||(o.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||op.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}r(AL,"createALPChartView");function CL(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let o=!1,a=we(t.pageNameArray)+"/views",s=ti(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],o=!0;else{let c=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(c===-1)s.paths.push(l),o=!0;else if(c!==i.index){let p=JSON.parse(JSON.stringify(s.paths[c]));s.paths.splice(c,1),s.paths.splice(e,0,p),o=!0}}return o}r(CL,"createLRTableView");function EL(e,t,n){let i=!1,o=!1;if(t&&!n&&!e.transferParameters.deletionRequest){if(t===$.DefinitionName.ALPChartView&&e.key===$.PropertyName.chart&&e.configObject)return AL(e);if(t===$.DefinitionName.ALPTableView&&e.key===$.PropertyName.table&&e.configObject)return PL(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith($.DefinitionName.LRTableView)||t.startsWith($.DefinitionName.LRChartView))&&(i=CL(e.index,e.transferParameters,e.key,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:o}}r(EL,"createNewElement");function xL(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}r(xL,"isDefinitionTraversable");function _g(e,t,n,i=!1){var f;let o=e.configObject[e.key],a=Ks(e.configObject,e.key),s=Rn(e.transferParameters.appSchema,e.transferParameters.title,o,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:c}=EL(e,(f=e.propertyDefinition.$ref)==null?void 0:f.split(O)[1],i),p=a?[...t,a]:[...t,e.key];if(l||vL(e,p,s),e.propertyDefinition&&(typeof o=="object"&&Object.keys(o).length!==0||xL(e.propertyDefinition)&&s.configObject)&&!c){let u=a?[...n,a]:n;SL(e,s,o,p,u)}}r(_g,"transferSortedListEntry");function IL(e,t,n,i,o){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,c)=>l[1]&&l[1].index-c[1].index),s.forEach(l=>{var c;(c=n.properties)!=null&&c[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],_g(e,i,o),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,_g(e,i,o),a=!0)}),e.index++})}return a}r(IL,"transferConfigEntriesWithAnyOfDefinitions");function OL(e,t,n,i){let o=nT(e.appSchema,t,i);if(o){n||(n=[]);for(let a of o)n.some(s=>s[0]===a)||n.push([a,t])}}r(OL,"mergeEntriesForInsert");function FL(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][$.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,o)=>i[1][$.SchemaTag.propertyIndex]-o[1][$.SchemaTag.propertyIndex])),t}r(FL,"sortProperties");function NL(e,t,n,i,o,a){var l,c;let s=!1;if(e){let p=e.anyOf;if(!p){let f=(l=e.$ref)==null?void 0:l.split(O)[1];p=f?(c=t.appSchema.definitions[f])==null?void 0:c.anyOf:void 0}s=IL(n,p,i,o,a)}return s}r(NL,"checkIfAnyOfDefinition");function Bg(e,t,n,i,o,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:o,key:void 0,index:s,configObject:t,propertyDefinition:void 0},c=a.additionalProperties,p=NL(c,e,l,a,n,i),f=FL(a.properties);c!=null&&c.$ref&&OL(e,c,f,t),s=0,f&&f.forEach(u=>{e.entityPathArray&&e.entityPathArray[o.length]!==u[0]&&!Ho(o,e.entityPathArray)||(l.key=u[0],l.propertyDefinition=u[1],l.index=s,_g(l,n,i,p),u[1].$ref&&s++)})}r(Bg,"transferManifestEntriesAndFlexChange");function qS(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance($.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}r(qS,"getClassesForSingleSection");function XS(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],qS(n,i,t),XS(n,t)}}r(XS,"getSubsectionClasses");function VL(e,t,n){let i;for(let o in e.sections)i=t.sections[o],qS(e,o,n),XS(i,n)}r(VL,"getExportClassesForSections");function zS(e,t){let n=Js(e);return`${t.appId}::${n.id}::${t.page.name}--`}r(zS,"calculateBaseId");var YS=r((e,t,n=!1)=>{var l;let i=sL(e.manifest),o=new fi,a=o.createPageInstance($.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[$.PropertyName.sections]&&VL(e.page.config,a,o);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:zS(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:o,pageNameArray:[e.page.name],pageType:$.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:$.TemplateType.ListReportObjectPageV4,entityPathArray:e.entityPath,deletionRequest:n};return Bg(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),LL=r((e,t,n,i,o,a,s=!1)=>{var S,N;let l=$.defaultExportResult;l.manifest=JSON.parse(JSON.stringify(e.manifest));let c=e.jsonSchema,p=(S=n.table)!=null&&S[$.PropertyName.annotationPath]?$.DefinitionName.ALPTableView:$.DefinitionName.Table,f=n.table=t.createInstance(i,p,n.table),u=$.DefinitionName.LineItems;c.definitions[$.DefinitionName.TableSPV]&&(u=c.definitions[$.DefinitionName.TableSPV].properties.columns.$ref.split(O)[1]);let m=c.definitions[`${$.DefinitionName.Actions}<${u}>`];if((N=f.toolBar)!=null&&N.actions&&m)for(let L in m.properties)f.toolBar.actions[L]=t.createInstance(i,$.DefinitionName.ToolBarAction,f.toolBar.actions[L]);let b={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:zS(n,e),appSchema:e.jsonSchema,config:n,ui5Version:o,factory:t,pageNameArray:[e.page.name],pageType:$.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return Bg(b,n,[],[],[],c),l},"exportListPage"),Hg=r((e,t,n,i=!1)=>{let o=new fi,a=o.createPageInstance($.PageTypeV2.ListReport,e.page.config);return LL(e,o,a,$.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),ZS=r((e,t,n=!1)=>Hg(e,t,$.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),DL=r((e,t,n)=>{var a,s;let i=$.defaultExportResult;i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new Dc,e);o.settings=Object.assign(new Sa,o.settings);for(let l in n.definitions.AppSettings.properties){let c=dt(o.settings,l);if(c&&c.manifest){let p=c.manifest.path(),f=ti(i.manifest,p);if(((a=e.settings)==null?void 0:a[l])!==void 0)f[l]=e.settings[l];else{let u=ti(i.manifest,p);((s=e.settings)==null?void 0:s[l])!==void 0?u[l]=e.settings[l]:l in u&&(delete u[l],mi(i.manifest,p,!1))}}}return i.manifest[$.ManifestSection.ui5].routing=BS(e.home,e.pages,i.manifest),KS(i.manifest[$.ManifestSection.ui5],e),i},"exportApplicationV4"),eP=r((e,t)=>{if(e[$.SchemaType.ListReport])return Hg(e[$.SchemaType.ListReport],t,$.TemplateType.ListReportObjectPageV4);if(e[$.SchemaType.ObjectPage])return YS(e[$.SchemaType.ObjectPage],t);if(e[$.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[$.SchemaType.Application];return DL(n,i,o)}else if(e[$.SchemaType.AnalyticalListPage])return ZS(e[$.SchemaType.AnalyticalListPage],t)},"exportPageV4"),Gg=r((e,t,n=!1)=>{if(e[$.SchemaType.ListReport])return Hg(e[$.SchemaType.ListReport],t,$.TemplateType.ListReportObjectPageV4,n);if(e[$.SchemaType.ObjectPage])return YS(e[$.SchemaType.ObjectPage],t,n);if(e[$.SchemaType.AnalyticalListPage])return ZS(e[$.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");function jL(e){let t;if(e[Z.FioriElementsVersion.v2]){let n=e[Z.FioriElementsVersion.v2];if(n[Z.SchemaType.ListReport]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:l,logger:c}=n[Z.SchemaType.ListReport];t=wg(i,o,a,s,l,c)}else if(n[Z.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:l,logger:c}=n[Z.SchemaType.ObjectPage];t=$g(i,o,a,s,l,c)}else if(n[Z.SchemaType.OverviewPage]){let{genericSchema:i,manifest:o}=n[Z.SchemaType.OverviewPage];t=os(i,o)}else if(n[Z.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:l,logger:c}=n[Z.SchemaType.AnalyticalListPage];t=Mg(i,o,a,s,l,c)}}else if(e[Z.FioriElementsVersion.v4]){let n=e[Z.FioriElementsVersion.v4];if(n[Z.SchemaType.ListReport]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:l}=n[Z.SchemaType.ListReport];t=Lc(Z.TemplateType.ListReportObjectPageV4,i,o,a,s,l)}else if(n[Z.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,logger:l,fragments:c}=n[Z.SchemaType.ObjectPage];t=vd(i,o,a,s,l,c)}else if(n[Z.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:l}=n[Z.SchemaType.AnalyticalListPage];t=Lc(Z.TemplateType.AnalyticalListPageV4,i,o,a,s,l)}else if(n[Z.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:l}=n[Z.SchemaType.FreestylePage];t=Sd(Z.TemplateType.FreestylePageV4,i,a,l,o,s)}}return t}r(jL,"generateSchema");function RL(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=US(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=eP(i,n)}return t}r(RL,"exportConfig");function $L(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=kg(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=Gg(i,n)}return t}r($L,"exportConfigEntityByPath");function wL(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=kg(i,n,!0)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=Gg(i,n,!0)}return t}r(wL,"deleteConfigEntityByPath");function ML(e){let t;if(e[Z.FioriElementsVersion.v2]){let n=e[Z.FioriElementsVersion.v2];n[Z.SchemaType.ListReport]?t=vc(n[Z.SchemaType.ListReport]):n[Z.SchemaType.ObjectPage]?t=Ac(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.OverviewPage]?t=xc(n[Z.SchemaType.OverviewPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=Sc(n[Z.SchemaType.AnalyticalListPage]))}else if(e[Z.FioriElementsVersion.v4]){let n=e[Z.FioriElementsVersion.v4];n[Z.SchemaType.ListReport]?t=Oo(n[Z.SchemaType.ListReport],Z.SchemaType.ListReport):n[Z.SchemaType.ObjectPage]?t=tp(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=Oo(n[Z.SchemaType.AnalyticalListPage],Z.SchemaType.AnalyticalListPage))}return t}r(ML,"importConfig");async function UL(e){return Dg(e)}r(UL,"importProject");async function kL(e){return Lg(e)}r(kL,"importProjectSchema");function _L(){return{version:"20",moduleVersion:KT.version}}r(_L,"getApiVersion");var dn=require("path"),ki=require("fs");var Fa=r(async e=>new Promise((t,n)=>{(0,ki.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readFile"),BL=r(async e=>JSON.parse(await Fa(e)),"readJSON"),Wg=r(async e=>new Promise((t,n)=>{(0,ki.readdir)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readDirectory"),HL=r(async e=>new Promise(t=>{(0,ki.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),tP=r(async e=>new Promise(t=>{(0,ki.exists)(e,n=>{t(n)})}),"resourceExists"),GL=r(async e=>BL((0,dn.join)(e,"manifest.json")),"getManifest"),nP=r(async e=>{let t=[],n=(0,dn.join)(e,"changes");if(!await tP(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],o=await Wg(n);for(let a of o)i.some(s=>a.endsWith(s))&&t.push(await Fa((0,dn.join)(n,a)));return t},"getChanges"),WL=r(async e=>{let t=[],n=(0,dn.join)(e,"ext","fragments");if(!await tP(n))return t;let i=await Wg(n);for(let o of i){let a=(0,dn.join)(n,o),s=await Fa(a);t.push({dataSourceUri:a,fileContent:s})}return t},"getFragments"),QL=r(async(e,t)=>{var o,a,s,l,c,p,f,u;let n=[],i=(o=e==null?void 0:e["sap.app"])==null?void 0:o.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let m=(0,dn.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:m,fileContent:await Fa(m)})}if((c=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&c.annotations){for(let m of i.mainService.settings.annotations)if((f=(p=i[m])==null?void 0:p.settings)!=null&&f.localUri){let b=(0,dn.join)(t,i[m].settings.localUri);n.push({dataSourceUri:b,fileContent:await Fa(b)})}}if(n.length===0)for(let m in i){let b=i[m];if((b==null?void 0:b.type)==="ODataAnnotation"&&((u=b==null?void 0:b.settings)!=null&&u.localUri)){let S=(0,dn.join)(t,b.settings.localUri);n.push({dataSourceUri:S,fileContent:await Fa(S)})}}return n},"getAnnotations"),KL=r(async e=>{let t=(0,dn.basename)(e),n=(0,dn.join)(e,"webapp"),i=await GL(n),o=await QL(i,n),a=await nP(n),s=await WL(n);return{root:e,name:t,manifest:i,annotations:o,changes:a,fragments:s}},"getProject");Bi(Xt,U(B()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
|
|
88
|
+
`}),uv(R)}r(Je,"initI18n");var Sd={};Go(Sd,{AnalyticalListPage:()=>fn,ListReport:()=>xn,ObjectPage:()=>ht,OverviewPage:()=>Qe,exportFilterSettings:()=>yv,importDateSettingsOVP:()=>gv,importFilterSettings:()=>mv});var Vc=$(B());var fn=class{};r(fn,"AnalyticalListPage"),d([g({flex:{controlId:al,controlType:r(()=>Vc.ControlType.DynamicPage,"controlType"),createFlexChange:_}})],fn.prototype,"fitContent",2),d([_e("table")],fn.prototype,"table",2),d([_e("template::SmartFilterBar")],fn.prototype,"filterBar",2),d([_e("analyticalListPageChart")],fn.prototype,"chart",2),d([_e("analyticalListFooter")],fn.prototype,"footer",2),fn=d([Gt({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Vc.v2.FE_TEMPLATE_V2_ALP})],fn);var _r=$(B());var xn=class{};r(xn,"ListReport"),d([g({flex:{controlId:al,controlType:r(()=>_r.ControlType.DynamicPage,"controlType"),createFlexChange:_}})],xn.prototype,"fitContent",2),d([_e("listReportFilter")],xn.prototype,"filterBar",2),d([_e("listReport")],xn.prototype,"table",2),d([_e("listReportFooter")],xn.prototype,"footer",2),xn=d([Gt({id:_r.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:_r.v2.FE_TEMPLATE_V2_LIST_REPORT})],xn);var Td=$(B());var ht=class{};r(ht,"ObjectPage"),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.52.0"})],ht.prototype,"showConfirmationOnDraftActivate",2),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.52.1"})],ht.prototype,"hideChevronForUnauthorizedExtNav",2),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.48.0"})],ht.prototype,"allowDeepLinking",2),d([g({manifest:{path:r(t=>Vt(t),"path")}}),T({since:"1.52.0"})],ht.prototype,"navToListOnSave",2),d([_e("header")],ht.prototype,"header",2),d([_e("sections")],ht.prototype,"sections",2),d([_e("layout")],ht.prototype,"layout",2),d([g({manifest:{path:r(t=>Fl(t),"path")}}),T({since:"1.77.0"})],ht.prototype,"defaultLayoutTypeIfExternalNavigation",2),d([g({manifest:{path:r(t=>Vt(t),"path"),import:r(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),T({since:"1.78.0"})],ht.prototype,"globalChartSettings",2),d([g({manifest:{path:r(t=>Vt(t),"path"),import:r(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Zi}}),T({since:"1.71.0"})],ht.prototype,"globalTableSettings",2),ht=d([Gt({id:Td.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:Td.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ht);function AF(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let o in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[o];t.fields[n].filter[o]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[o].equals=a.equals.split(","))}}}r(AF,"importDateSettingsFieldsOVP");function gv(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&AF(e,t),t}r(gv,"importDateSettingsOVP");function mv(e){let t={};return t.dateSettings=gv(e.filterSettings),t}r(mv,"importFilterSettings");function CF(e,t,n){for(let i in e.filterSettings[t].fields){let o=e.filterSettings[t].fields[i];if(o.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=o.selectedValues.join()),o.filter)for(let a in o.filter){let s=o.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}r(CF,"exportFilterFields");function yv(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&CF(t,n,e))}r(yv,"exportFilterSettings");var Qe=class{};r(Qe,"OverviewPage"),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"globalFilterModel",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"globalFilterEntityType",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"globalFilterEntitySet",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"showBasicSearch",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"disableErrorPage",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"smartVariantRequired",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"bHeaderExpanded",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"containerLayout",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"showDateInRelativeFormat",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"disableTableCardFlexibility",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"enableLiveFilter",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"enableLazyRendering",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"refreshStrategyOnAppRestore",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"considerAnalyticalParameters",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"refreshIntervalInMinutes",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"useDateRangeType",2),d([g({manifest:{path:r(()=>et(),"path"),import:mv,export:yv}}),T({since:"1.80.0"})],Qe.prototype,"filterSettings",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"dataLoadSettings",2),d([g({manifest:{path:r(()=>et(),"path")}})],Qe.prototype,"resizableLayout",2),Qe=d([Gt({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Qe);var vd=class vd{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,o){let a=this.controls[o]?this.controls[o]:this.controls[n];return a||(a=this.pageTypes[t][o]?this.pageTypes[t][o]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};r(vd,"MetadataFactory");var La=vd;var mt=$(B());var EF={},xF={Table:ho,ResponsiveTableWithMultiSelect:ho,ResponsiveTableWithInlineDelete:ho},IF={[mt.v2.CardSettingsType.listCardSettings]:ya,[mt.v2.CardSettingsType.listCardSettingsv4]:ya,[mt.v2.CardSettingsType.analyticalCardSettings]:ha,[mt.v2.CardSettingsType.analyticalCardSettingsv4]:ha,[mt.v2.CardSettingsType.stackCardSettings]:pr,[mt.v2.CardSettingsType.linkListCardSettings]:fr,[mt.v2.CardSettingsType.tableCardSettings]:ba,[mt.v2.CardSettingsType.tableCardSettingsv4]:ba},OF={[mt.SAPUI5_VIEW_CLASS]:Rr,[mt.SAPUI5_FRAGMENT_CLASS]:Dr,Table:Oo,ObjectPageResponsiveTableWithMultiSelect:Oo,ObjectPageResponsiveTableWithInlineDelete:Oo},FF={[mt.PageTypeV2.AnalyticalListPage]:EF,[mt.PageTypeV2.ListReport]:xF,[mt.PageTypeV2.ObjectPage]:OF,[mt.PageTypeV2.OverviewPage]:IF},Pd=class Pd extends La{constructor(){super(gd,Sd,FF)}};r(Pd,"MetadataInstanceFactoryV2");var Dt=Pd;function LF(e,t,n,i,o){if(e.filterBar=t.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ListReportFilterBar,e.filterBar),lt(e.filterBar,n.manifest,i[He.DefinitionName.ListReportFilterBar],o,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(He.PageTypeV2.ListReport,"SelectionFieldDateSettings"),lt(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,o,n.logger,l)}}}r(LF,"importFilterBar");function Ad(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,f,u;let l=qt(s),c={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(f=l.content)!=null&&f.newBinding?l.content.newBinding:(u=l.content)==null?void 0:u.newValue,controlType:l.controlType,creation:l.creation};Ec(n.table,c,t)});let i=t.properties.columns.$ref.split("/").pop(),o=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in o)s!=="custom"&&xc(e,n,s)}r(Ad,"importFlexChangesOfTableAndColumns");function VF(e,t,n,i,o){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[oo]&&t[ao]&&(a=JSON.parse(JSON.stringify(t[oo])),a.properties={...a.properties,...t[ao].properties}),lt(n.table,i.manifest,a,o,i.logger),Ad(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&k(i.logger,{severity:He.LogSeverity.Error,message:R.t("NOLINEITEMS")})}r(VF,"importTable");function NF(e,t,n,i){let o=e.jsonSchema.definitions,a=Oc(e.manifest,i);if(t.table=n.createInstance(He.PageTypeV2.ListReport,a,t.table),Fc(t,n,o),VF(a,o,t,e,i),t.table.toolBar=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.ToolBar,{actions:{}}),lt(t.table.toolBar,e.manifest,o[He.DefinitionName.ToolBarLR],i,e.logger),o[He.DefinitionName.ActionsLR])for(let l in o[He.DefinitionName.ActionsLR].properties){let c=_i(l);t.table.toolBar.actions[c]=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.Action),lt(t.table.toolBar.actions[c],e.manifest,o[He.DefinitionName.Action],i,e.logger)}LF(t,n,e,o,i),t.footer={actions:{}};let s=o[He.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let c=_i(l);t.footer.actions[c]=n.createInstance(He.PageTypeV2.ListReport,He.DefinitionName.FooterAction),lt(t.footer.actions[c],e.manifest,o[He.DefinitionName.Action],i,e.logger)}}r(NF,"addSettings");function hv(e){if(Je(),!Ia(e))return;let n=new Dt,i=n.createPageInstance(He.PageTypeV2.ListReport),o=[],a=xa(e.manifest[He.ManifestSection.generic].pages,o);if(Oa(a,e.logger,a==null?void 0:a.entitySet),!!a)return NF(e,i,n,o[0]),e.flex.forEach(s=>{qt(s)&&Ic(i,s,e.jsonSchema,e.logger)}),Ea(i,e,a,He.PageTypeV2.ListReport),Lc(i),i}r(hv,"createListReportConfig");var Q=$(B());var Br=require("@sap-ux/vocabularies-types/vocabularies/UI");var RF=[Q.ControlType.Avatar,Q.ControlType.ObjectPageLayout,Q.ControlType.DynamicPage];function jF(e,t){let n=e[0].split("--"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Br.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Q.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Br.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let o=i.split("::");o.length>1?t=o[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}r(jF,"getSingleSelectorIdPart");function wF(e){let t,n=e.split(":::");if(n.length===1)t=jF(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Br.UIAnnotationTerms.LineItem}`,`/@${Br.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}r(wF,"getFacetID");function $F(e,t,n){let i={},o=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,c,p;try{let f=qt(s),u=f&&((l=f.controlId)==null?void 0:l.split("--"))||[];if(f&&((c=u[0])!=null&&c.includes(Q.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=u[0])!=null&&p.endsWith(t))){let m=u[1].replace(/:3a:3a/g,"::");o.exec(m)!==null&&(m=m.split("template:::TableColumn:::")[1]);let b=wF(m);m=yd(m).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${m}::${f.content.property}`]={controlId:m,propertyId:f.content.property,facetId:b,newValue:f.content.newBinding!==void 0?f.content.newBinding:f.content.newValue,controlType:f.controlType,creation:f.creation}}}catch(f){k(n,{severity:Q.LogSeverity.Error,message:R.t("FLEXERROR")},...f)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,c])=>(s[l]=c,s),{})}r($F,"prepareFlexChanges");var MF=r(e=>{var n,i,o;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(O,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace(O,"");if((o=e.properties)!=null&&o.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function UF(e,t,n,i){if(Object.keys(e.properties).some(o=>o===t.propertyId))for(let o in n)o!=="custom"&&md(i,t,o)}r(UF,"addFlexChangeToColumns");function bv(e,t,n,i,o,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,Q.VOCWITHSLASH)];for(let c in e){let p=e[c],f=p.propertyId===t,u=t==="columns"&&p.controlType===Q.ControlType.TableColumn;(f||u)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?UF(a,p,o.properties,n):Ec(n,p,o))}}r(bv,"importFlexChangesOfTable");function kF(e,t){return e.facetId==="template"&&t}r(kF,"isStandardActionFlexChange");var Tv=r((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),o=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,o);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function _F(e,t,n,i,o,a){var L;let s=!1,l=!1;a?(s=l=n.test(t.controlId),o&&(s=l&&i.test(t.controlId))):o&&(s=i.test(t.controlId));let c=t.controlId.split("::"),p=t.controlType===Q.ControlType.GroupElement&&l,f=((L=t.facetId)==null?void 0:L.includes(Q.ACTIONTITLEPREFIX))&&!o&&s,u=o&&Tv(c,o.split("::"))&&s,m=e.title&&Tv(c,e.title.split("::"),!0),b=!t.facetId&&RF.includes(t.controlType),S=kF(t,l);return p||f||u||m||b||S}r(_F,"matchSelector");function BF(e,t,n,i,o,a){var c;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${o}`);for(let p in n){let f=n[p];if(f.propertyId!==i||f.controlType!==((c=e.properties[f.propertyId])==null?void 0:c[Q.SchemaTag.controlType]))continue;_F(e,f,s,l,o,a)&&(t[i]=f.newValue)}}r(BF,"importFlexChanges");function HF(e,t,n,i){if(e&&t)for(let o in e){let a=t[o];a&&(k(n.logger,{severity:Q.LogSeverity.Warning,message:oa(o,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[o])}}r(HF,"checkDeprecatedProperties");function GF(e,t,n,i,o,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,c,p;s!=null&&s.title?(c=e.manifest.path(t,{},s.title),p=ft(n.manifest,c),Object.values(p).length===0&&(c=e.manifest.path(t,{},l),p=ft(n.manifest,c))):(c=e.manifest.path(t,{},l),p=ft(n.manifest,c));let f=e.manifest.import;if(f&&typeof f=="function"){let u=f(p,s==null?void 0:s.id);u!==void 0&&(i[o]=u)}else{let u=e.manifest.key||o;u in p&&(i[o]=p[u])}return HF(p,a,n,c),p}r(GF,"importManifestSetting");function Rt(e,t,n,i,o,a){var c,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let f in n.properties||n){let u=st(t,f);if(f==="columns"||u!=null&&u.flex)if((c=o==null?void 0:o.type)!=null&&c.startsWith("ObjectPageSectionTableV2")||(p=o==null?void 0:o.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(f==="columns"){let m=n.properties[f].$ref.split(O)[1],b=e.jsonSchema.definitions[m];bv(i.flexChanges,f,t,o,b,l)}else bv(i.flexChanges,f,t,o,n);else{let m=(o==null?void 0:o.title)||(o==null?void 0:o.id);BF(n,t,i.flexChanges,f,m,a)}else u!=null&&u.manifest&&GF(u,i.pageKeys,e,t,f,s,o)}}r(Rt,"transferSettingsAndFlexChanges");function vv(e,t,n,i){let o=_t(t);switch(e){case"FormAction":{o=`action::${o}::${i}::${n}`;break}case"ObjectPageFooterAction":{o=`action::${o}::Determining`;break}case"ObjectPageToolBarAction":{o=o.includes("sAction::")?`action::${o.split("sAction::")[1]}`:`action::${o.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{o=`${zT}${o}`;break}case"ObjectPageFooterActionStandard":{o=`${gl}${o}`;break}}return o.replace(/@/g,"")}r(vv,"getActionId");function WF(e,t,n,i){var o;for(let a in t){let s=t[a].$ref.split(O)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(o=t[a].$ref.split("<"))==null?void 0:o[1].split(">")[0],c=vv(s,a,"","");e.actions[a]=i.factory.createInstance(Q.PageTypeV2.ObjectPage,l,{}),Rt(n,e[Q.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},c)}}}r(WF,"fillStandardActions");function Nc(e,t,n,i,o,a){var l;n[Q.PropertyName.actions]={};let s=o.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let c={};a&&(c.id=a);for(let p in t){let f=_i(p),u=vv(s,f,o,a);u&&(n[Q.PropertyName.actions][f]=i.factory.createInstance(Q.PageTypeV2.ObjectPage,s),Rt(e,n[Q.PropertyName.actions][f],e.jsonSchema.definitions[s],i,c,u)),(l=n[Q.PropertyName.actions])!=null&&l[f]&&Object.keys(n[Q.PropertyName.actions][f]).length===0&&delete n[Q.PropertyName.actions][f]}}WF(n,t,e,i),Object.keys(n[Q.PropertyName.actions]).length===0&&delete n[Q.PropertyName.actions]}r(Nc,"fillActions");function QF(e,t,n,i,o){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=o.factory.createInstance(Q.PageTypeV2.ObjectPage,"Field");let c=(s=t.title)!=null&&s.includes(Q.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Rt(e,i[t.id].form.fields[l],e.jsonSchema.definitions[Q.DefinitionName.Field],o,{},c),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}r(QF,"fillFields");function KF(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}r(KF,"prepareTableSchema");function JF(e,t,n,i,o){var l,c;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||o.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",f=o.factory.createInstance(Q.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=o.factory.createInstance(Q.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][Q.PropertyName.table]=f;let u=e.jsonSchema.definitions,m=KF(p,t,u);Rt(e,i[t.id],t.schema,o,{title:t.title}),Rt(e,i[t.id][Q.PropertyName.table],m,o,t);let b=JSON.parse(JSON.stringify(u))[`Actions<${t.id}>`];if(b!=null&&b.properties){let S=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(c=t==null?void 0:t.id)==null?void 0:c.replace(/@/g,"::").replace(/::com/g,"com");Nc(e,b.properties,i[t.id][Q.PropertyName.table].toolBar,o,"ObjectPageToolBarAction",S)}Object.keys(i[t.id][Q.PropertyName.table].toolBar).length===0&&delete i[t.id][Q.PropertyName.table].toolBar}}r(JF,"fillTableInConfig");function XF(e,t,n,i,o){let a=e.jsonSchema.definitions[t].properties.custom,s=a?cl(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};Ea(n[t],e,i,Q.PageTypeV2.ObjectPage,l,o)}}r(XF,"fillCustomColumnsInConfig");function qF(e,t,n,i,o){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=o.factory.createInstance(Q.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][Q.PropertyName.chart]=o.factory.createInstance(Q.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||o.flexChanges)&&(Rt(e,i[t.id],t.schema,o,{title:t.title}),Rt(e,i[t.id][Q.PropertyName.chart],e.jsonSchema.definitions[Q.DefinitionName.ObjectPageChart],o,t))}r(qF,"fillChartSection");function zF(e,t,n,i){n[t.id]=i.factory.createInstance(Q.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Rt(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}r(zF,"fillHeaderSection");function YF(e,t,n,i){var c;let o=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(Q.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Rt(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${o}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(c=t==null?void 0:t.id)==null?void 0:c.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&Nc(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${o}`];l!=null&&l.properties&&QF(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}r(YF,"fillFormSection");function Sv(e,t,n,i,o){var l;i[t.id]=o.factory.createInstance(Q.PageTypeV2.ObjectPage,t.type,{subsections:{}}),o.flexChanges&&Rt(e,i[t.id],t.schema,o,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,Cd(e,a,n,i[t.id].subsections,o),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}r(Sv,"fillSubSection");function Cd(e,t,n,i,o){var s;let a=e.jsonSchema.definitions;for(let l in t){let c=l.replace(/\/@/g,"::"),p={id:c,type:MF(t[l]),schema:t[l],title:Sf(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],JF(e,p,n,i,o),XF(e,c,i,o.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],qF(e,p,n,i,o);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],YF(e,p,i,o);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],Sv(e,p,n,i,o);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],zF(e,p,i,o);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],Sv(e,p,n,i,o))}}r(Cd,"fillSectionsInConfig");function ZF(e,t,n,i,o){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(Q.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Q.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Rt(o,s,l,n,{id:a}),t.sections.custom.push(s)}}}r(ZF,"fillCustomSectionsInConfig");function eL(e,t){var f,u;let n=t.factory.createPageInstance(Q.PageTypeV2.ObjectPage);Rt(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Q.PageTypeV2.ObjectPage,Q.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Rt(e,n.globalTableSettings,i[Q.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(Q.PageTypeV2.ObjectPage,Q.DefinitionName.ObjectPageHeader);let o=i[Q.DefinitionName.ObjectPageHeader]?i[Q.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Rt(e,n.header,o,t);let a=i[Q.DefinitionName.HeaderActions];a&&Nc(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let s=i[Q.DefinitionName.FooterActions];s&&Nc(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Q.PageTypeV2.ObjectPage,"ObjectPageLayout"),Rt(e,n.layout,i[Q.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[Q.DefinitionName.HeaderSections];if(l){let m=(f=t.v2Page.component)==null?void 0:f.settings;Cd(e,l.properties,m,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let c=i[Q.DefinitionName.Sections];if(c){let m=(u=t.v2Page.component)==null?void 0:u.settings;Cd(e,c.properties,m,n.sections,t)}let p=fv(e.manifest,e.entitySet);return ZF(p,n,t,i,e),n}r(eL,"fillConfig");function Dc(e){Je();let t=Ia(e);if(!t)return;let n=e.entitySet,i=[],o=Fo(t,e.entitySet,i);if(Oa(o,e.logger,n),!o)return;let a=$F(e.flex,n),s=new Dt;return eL(e,{pageKeys:i,flexChanges:a,v2Page:o,factory:s})}r(Dc,"createObjectPageConfigV2");var Qn=$(B());var xd=$(Qp());var we=$(B());var tL=["colorPalette","tabs"];function nL(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}r(nL,"createCard");function Pv(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),Pv(e,n.join("|"))}return t}r(Pv,"findAvailableId");function Hr(e,t,n,i,o,a,s){i!=null&&i.properties&&Ed(e,t,n,i.properties,o,a,s)}r(Hr,"transferManifestEntriesOVP");function Lo(e,t,n,i){return e.createInstance(we.PageTypeV2.OverviewPage,i,n,t)}r(Lo,"assignReflectMetadataRules");function iL(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split(O),o=e.appSchema.definitions[i[1]];t=Lo(e.factory,i[1],t,"CustomCard"),Hr(t,e.exportResults,e.appSchema,o,e.factory,[...e.pathHierarchy])}return t}r(iL,"processAnyOfDefinitionsOfOVP");function oL(e,t,n,i,o){e&&typeof e=="function"?e(t,n,i):typeof o=="object"&&!tL.includes(i)?t[i]=(0,xd.default)(t[i]||{},o||{},{arrayMerge:hf}):t[i]=o}r(oL,"checkSyncRuleForExport");function aL(e,t,n,i,o,a){let s=e.manifest.path([...t,n]),l=ft(i.manifest,s);if(n in we.v2.CardSettingsType||n==="settings")l.settings=(0,xd.default)(l.settings||{},o||{},{arrayMerge:hf});else if(o!==void 0){let c=e.manifest.export;oL(c,l,a,n,o)}else l[n]!==void 0&&delete l[n]}r(aL,"transferToManifest");function rL(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(we.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(o=>{var s;let a=(s=e.appSchema.definitions[o].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=Lo(e.factory,i[0],e.currentObject[t],"CustomCard"),nL(t,e.exportResults.manifest[we.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=we.ChangeIndicator.Updated,Hr(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[we.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[we.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=we.ChangeIndicator.Updated)})}r(rL,"transferCards");function sL(e,t){if(t==="cards")rL(e);else{let n=Mn(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,we.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(O);e.currentObject=Lo(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Hr(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],Ed(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],Ed(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}r(sL,"exportOfObject");function Ed(e,t,n,i,o,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!Zo(a,s)&&a[a.length-1]!=="anyOf")continue;let c=e[l],p=st(e,l),f={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:c,configObject:e,factory:o,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(f.currentObject=e[a[a.length-2]],c=iL(f)):c&&typeof c=="object"&&i[l]&&sL(f,l),p!=null&&p.manifest&&aL(p,a,l,t,c,e)}}r(Ed,"processProperties");function lL(e,t,n,i,o,a,s){let l;t.length===0?l=["page"]:l=t;let c=n.flex.controlId(e.baseId,i,l,n.flex.controlType,o),p=JT(a,n,e.ui5Version,s,c),f=JSON.parse(JSON.stringify(e.exportResults.manifest));f["sap.app"].id=e.appId;let u=n.flex.createFlexChange(p,f);e.exportResults.flexChanges.find(b=>{let S=!1,L=JSON.parse(b);L={content:L.content,selector:L.selector};let V=JSON.parse(u);return V={content:V.content,selector:V.selector},JSON.stringify(L)===JSON.stringify(V)&&(S=!0),S})||e.exportResults.flexChanges.push(u)}r(lL,"evaluateFlexRule");function cL(e,t,n,i,o,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=we.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,o,a):s!==!1&&(n[a]=i[o]),e.exportResults.manifestChangeIndicator=we.ChangeIndicator.Updated}}r(cL,"exportConfigValueToManifest");function pL(e,t,n,i,o){let a=ft(e.exportResults.manifest,t),s=n.manifest.key||i;if(o[i]!==void 0)cL(e,n,a,o,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,o,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=we.ChangeIndicator.Updated,Pi(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}r(pL,"evaluateManifestRule");function fL(e,t,n,i,o){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},o!=null&&o.startsWith(we.FACETTITLEPREFIX)?o.split(we.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}r(fL,"getManifestPathOfSections");function uL(e,t,n,i,o){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,o.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}r(uL,"getManifestPathOfTable");function dL(e,t,n,i,o){let a;return t[0]===we.PropertyName.sections?a=fL(t,a,n,e,o):t[0]===we.PropertyName.table?a=uL(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,o):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}r(dL,"getManifestPath");function gL(e,t,n,i,o,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)lL(e,i,t,o,a,n,s);else if(t.manifest){let c=dL(e,i,t,n,a);pL(e,c,t,s,n)}}r(gL,"evaluateExportRule");function mL(e,t,n){var s;let i=e.split("|"),o=i[1],a=i[2];if(o===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(c=>(c.tabKey===a||a===void 0&&c.tabKey===""||a&&t.sectionKey===a)&&c.extensionType===t.extensionType);if((!l||l.length===0)&&(Ul(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(we.ViewTemplateType.ResponsiveTableColumnsExtension))){let c=e.replace(we.ViewTemplateType.ResponsiveTableColumnsExtension,we.ViewTemplateType.ResponsiveTableCellsExtension);Ul(n,c,t.appId,t.exportResults.fragments),delete n[c]}}}r(mL,"deleteObsoleteColumn");function yL(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=PS(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let o in n)o.startsWith(i)&&(e.exportResults.manifestChangeIndicator=we.ChangeIndicator.Updated,mL(o,e,n))}r(yL,"deleteObsoleteColumnsFromFragment");function hL(e,t,n,i,o){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:c}=kl(n,i,s.tabKey||o,s.extensionType);a[l]||(a[l]={viewTemplateType:c,columns:[]}),a[l].columns.push(s)}return a}r(hL,"clusterConfigColumnsByPath");function Av(e,t,n,i){if(!e.v2Page)return;let o=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in we.v2.TableColumnExtensionTypeV2){let{path:c}=kl(e.v2Page,s,o,l);if(!c)continue;let p={path:c,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:o,extensionType:l,appId:e.appId};try{yL(p)}catch(f){e.logger.error(f.message)}}if(t){let l=hL(t,n,e.v2Page,s,o);for(let c in l)iu(e.exportResults,c,l[c].columns,e.appId,l[c].viewTemplateType,e.logger)}}r(Av,"transferColumnExtensions");function bL(e,t,n,i,o,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let f=Pv(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(f)}for(let p=0;p<s.length;p++){let u=a.anyOf.find(b=>{var S;return(S=b.$ref)==null?void 0:S.includes(t[p].constructor.name)}).$ref.split(O),m=e.appSchema.definitions[u[u.length-1]];Bi(e,t[p],i,[...o,s[p]],m)}let c=ft(e.exportResults.manifest,Lf());for(let p in c)hd(p,l)&&!s.includes(p)&&delete c[p]}r(bL,"transferManifestExtensions");function TL(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===we.PropertyName.table){n=e[i-1];break}return dt(n,t)}r(TL,"getSectionId");function SL(e,t,n,i,o,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let c=Mn(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);Bi(t,c.configObject,o,[...a,i],c.targetDefinition,l)})}r(SL,"transferIndexTable");function vL(e,t,n,i,o,a){let s,l=cl(e.$ref);l&&(s={target:l,key:TL(t,n)}),Av(i,o==null?void 0:o.custom,a.targetDefinition,s)}r(vL,"transferCustomColumns");function PL(e,t,n,i,o,a,s){e.anyOf.forEach(l=>{let c=Mn(t.appSchema,n,i,l,o,t.factory,t.pageType);c&&Bi(t,c.configObject,a,[...s,o],c.targetDefinition,c.title)})}r(PL,"handleAnyOfDefinitions");function AL(e,t,n,i,o,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&o==="custom")bL(e,n[o],e.pageKeys[e.pageKeys.length-1],i,[...t,o],l==null?void 0:l.items);else if(a&&o==="custom"){vL(l,t,s,e,n,a);return}else a?Bi(e,a.configObject,i,[...t,o],a.targetDefinition,a.title):l.anyOf&&PL(l,e,s,n==null?void 0:n[o],o,i,t)}r(AL,"transferComplexProperty");function Bi(e,t,n,i,o,a){let s;if(o!=null&&o.properties)for(let l in o.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!Zo(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let c=t&&rl(t,l),p=c?[...n,c]:n,f=st(t,l),u=e.propertyDefinition=o.properties[l],m=e.nextDefinition=Mn(e.appSchema,a,s,u,l,e.factory,e.pageType);if(gL(e,f,t,[...i],p,a,l),SL(s,e,a,l,p,i),s===void 0||typeof s=="object")AL(e,i,t,p,l,m,a);else if((u==null?void 0:u.$ref)===O+"TableCustomColumns"){Av(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}r(Bi,"transferManifestEntriesAndFlexChange");function Cv(e,t,n,i,o,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Lo(o,i,n[i],s),a.push(i),Id(o,n[i],e,l.properties,a)}r(Cv,"transferSettingsOfRef");function CL(e,t,n,i,o,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(O);Cv(i,s,e,t,o,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${O}${Qn.v2.cardTemplateSettingsMap[e.template]}`.split(O);Cv(i,l,e,t,o,a)}}r(CL,"processPropertiesOfObject");function EL(e,t,n,i,o,a){let s=st(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),c=ft(i.manifest,l);if(Object.prototype.hasOwnProperty.call(c,t))try{aa(s,c,t,e)}catch(p){k(i.logger,{severity:Qn.LogSeverity.Error,message:R.t("XMLPARSEFAILURE",{error:FT(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof o[t]=="object"&&CL(e,t,o,i,a,n)}r(EL,"processOvpProperty");function Id(e,t,n,i,o){for(let a in i)EL(t,a,o,n,i,e)}r(Id,"processOvpProperties");function xL(e,t,n){Id(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Qn.ManifestSection.ovp].cards).forEach(i=>{let o=t.manifest[Qn.ManifestSection.ovp].cards[i].template,a=Qn.v2.cardTemplateTypeMap[o]??"CustomCard";e.cards[i]=Lo(n,a,{},"CustomCard"),e.cards=Lo(n,a,e.cards,"CustomCard"),Id(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}r(xL,"addSettings");function Rc(e){let t=new Dt,n=t.createPageInstance(Qn.PageTypeV2.OverviewPage);return e.jsonSchema&&xL(n,e,t),n}r(Rc,"createOverviewPageConfig");var De=$(B());function IL(e,t,n,i){var p,f;let o=Oc(e.manifest,i),a=e.jsonSchema.definitions;Fc(t,n,a),t.table=n.createInstance(De.PageTypeV2.AnalyticalListPage,`ALP${o}`,t.table);let s=a[`ALP${o}<LineItems>`];if(lt(t.table,e.manifest,s,i,e.logger),Ad(e,s,t),t.table.toolBar=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.ToolBar,{actions:{}}),lt(t.table.toolBar,e.manifest,a[De.DefinitionName.ToolBar],i,e.logger),a[De.DefinitionName.ActionsLR])for(let u in a[De.DefinitionName.ActionsLR].properties){let m=_i(u);t.table.toolBar.actions[m]=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.Action),lt(t.table.toolBar.actions[m],e.manifest,a[De.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),lt(t.filterBar,e.manifest,a[De.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[De.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let u=a[De.DefinitionName.SelectionFields].properties;for(let m in u){let b=m;t.filterBar.selectionFields[b]=n.createInstance(De.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),lt(t.filterBar.selectionFields[b],e.manifest,a.SelectionFieldDateSettings,i,e.logger,b)}}t.chart=n.createInstance(De.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),lt(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[De.DefinitionName.FooterActionsLR];if(l)for(let u in l.properties){let m=_i(u);t.footer.actions[m]=n.createInstance(De.PageTypeV2.AnalyticalListPage,De.DefinitionName.FooterAction),lt(t.footer.actions[m],e.manifest,a[De.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let c=(f=(p=e.manifest[De.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:f.keyPerformanceIndicators;c&&Object.keys(c).forEach(u=>{t.keyPerformanceIndicators[u]=n.createInstance(De.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(De.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),lt(t.keyPerformanceIndicators[u],e.manifest,a.KPISettings,i,e.logger,u)})}r(IL,"addSettings");function jc(e){if(Je(),!Ia(e))return;let n=new Dt,i=n.createPageInstance(De.PageTypeV2.AnalyticalListPage),o=[],a=Fa(e.manifest[De.ManifestSection.generic].pages,o,e.logger);if(Oa(a,e.logger,a==null?void 0:a.entitySet),!!a)return IL(e,i,n,o[0]),e.flex.forEach(s=>{qt(s)&&Ic(i,s,e.jsonSchema,e.logger)}),Ea(i,e,a,De.PageTypeV2.AnalyticalListPage),Lc(i),i}r(jc,"createAnalyticalListPageConfig");var en=$(B());var OL=["filterBar","table","footer"];function Od(e,t,n,i){Ai(e,n,"QuickVariant"),fS(n,"QuickVariantX",t),uS(i,n,"QuickVariantX")}r(Od,"addEnumForVariantPaths");function Ev(e,t){var u,m,b,S,L,V,H;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=O+oo,n.properties.table.anyOf[1].$ref=O+ao,n.properties.table.anyOf[2].$ref=O+fl,n.properties.table.anyOf[3].$ref=O+ul,n.properties.table.anyOf[4].$ref=O+dl;let i=JSON.parse(JSON.stringify(t.definitions.ResponsiveTableWithMultiSelect)),o=JSON.parse(JSON.stringify(t.definitions.ResponsiveTableWithInlineDelete)),a=JSON.parse(JSON.stringify(t.definitions.TreeTable)),s=JSON.parse(JSON.stringify(t.definitions.AnalyticalTable)),l=JSON.parse(JSON.stringify(t.definitions.GridTable)),c={$ref:O+en.DefinitionName.LineItems};i.properties.columns=c,o.properties.columns=c,a.properties.columns=c,s.properties.columns=c,l.properties.columns=c;let p=O+en.DefinitionName.ToolBarLR;n.definitions[oo]=i,n.definitions[ao]=o,n.definitions[fl]=a,n.definitions[ul]=s,n.definitions[dl]=l,vf.forEach(ee=>{n.definitions[ee].properties.toolBar.$ref=p});let f=(u=e.entitySet)==null?void 0:u.entityType;if(!f)(m=e.entitySet)!=null&&m.name&&k(e.logger,{severity:en.LogSeverity.Error,message:R.t("NOENTITYTYPE4SET",{entitySetName:(b=e.entitySet)==null?void 0:b.name})});else{la(n);let ee=(L=(S=f==null?void 0:f.annotations)==null?void 0:S.UI)==null?void 0:L.LineItem;ee&&vf.forEach(oe=>{n.definitions[oe][en.SchemaTag.annotationPath]=Ut(f==null?void 0:f.fullyQualifiedName,ee.term,ee.qualifier)}),ra(!1,n,ee,f);let te=(H=(V=f==null?void 0:f.annotations)==null?void 0:V.UI)==null?void 0:H.SelectionFields;yl(n,te,f),pa(n,f);let re=[],X=xa(e.manifest[en.ManifestSection.generic].pages,re);if(!X)return k(e.logger,{severity:en.LogSeverity.Error,message:R.t("NOLR"),location:{path:en.MANIFESTPATH,range:[en.ManifestSection.generic]}}),n;sa(n,f,X,e.manifest,e.fragments),Od(f,e.entitySet,n,e.serviceAVT),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return Un(n,OL),n}r(Ev,"generateListReportSchemaV2");var le=$(B());var Gr=r(e=>({flexChanges:[],manifest:{[le.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:le.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:le.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function xv(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===le.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(le.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(le.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}r(xv,"getClassesForSingleSection");function Iv(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],xv(n,i,t),Iv(n,t)}}r(Iv,"getSubsectionClasses");function FL(e,t,n){let i;for(let o in e.sections)i=t.sections[o],xv(i,o,n),Iv(i,n)}r(FL,"getExportClassesForSections");function LL(e,t){let n=xa(t.manifest[le.ManifestSection.generic].pages,e);if(!n){k(t.logger,{severity:le.LogSeverity.Error,message:R.t("NOLR"),location:{path:le.MANIFESTPATH,range:[le.ManifestSection.generic]}});return}if(!n.component){k(t.logger,{severity:le.LogSeverity.Error,message:R.t("COMPONENTNOTDEFINED",{pageName:le.PageTypeV2.ListReport}),location:{path:le.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}r(LL,"findV2Page");function Fd(e,t){let n=sl(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}r(Fd,"calculateBaseId");function Ov(e,t,n=!1){let i=Gr(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let o=e.page.config;if(o&&Object.keys(o).length!==0){let a=[],s=LL(a,e),l=new Dt,c=l.createPageInstance(le.PageTypeV2.ListReport,o),p={v2Page:s,exportResults:i,appId:e.appId,baseId:Fd(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:le.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Bi(p,c,[],[],e.jsonSchema)}return i}r(Ov,"exportListReportPage");function Fv(e,t,n=!1){let i=e.page.config,o=Gr(e.fragments);o.flexChanges=[],o.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=Fa(e.manifest[le.ManifestSection.generic].pages,a,e.logger);if(!s)return o;if(s.component.settings||(s.component.settings={}),o.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Dt,c=l.createPageInstance(le.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:o,appId:e.appId,baseId:Fd(c,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:le.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Bi(p,c,[],[],e.jsonSchema)}return o}r(Fv,"exportAnalyticalListPage");function Lv(e,t,n=!1){let i=e.page.config,o=e.page.entitySet,a=Gr(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=Fo(e.manifest[le.ManifestSection.generic].pages,o,s);if(!l)return k(e.logger,{severity:le.LogSeverity.Error,message:R.t("NOOBJECTPAGE",{entitySetName:o}),location:{path:le.MANIFESTPATH,range:[le.ManifestSection.generic]}}),a;let c=new Dt,p=c.createPageInstance(le.PageTypeV2.ObjectPage,i);if(i.sections&&FL(i,p,c),Object.keys(i).length!==0){let f={v2Page:l,exportResults:a,appId:e.appId,baseId:Fd(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:s,pageType:le.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Bi(f,p,[],[],e.jsonSchema)}}return a}r(Lv,"exportObjectPage");var Vv=r(e=>{let t=Gr();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Dt,i=n.createPageInstance(le.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Hr(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),VL=r((e,t,n)=>{var s;let i=Gr();i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new Il,e);o.settings=Object.assign(new Ii,e.settings);for(let l in n.definitions.AppSettings.properties){let c=st(o.settings,l);if(c&&c.manifest){let p=c.manifest.path(),f=ft(i.manifest,p);e.settings&&e.settings[l]!==void 0?f[l]=e.settings[l]:(delete f[l],Pi(i.manifest,p,!1))}}let a=(s=i.manifest[le.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&Ff(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Nv(e,t){if(e[le.SchemaType.ListReport])return Vd(e[le.SchemaType.ListReport],t);if(e[le.SchemaType.ObjectPage])return Lv(e[le.SchemaType.ObjectPage],t);if(e[le.SchemaType.OverviewPage])return Vv(e[le.SchemaType.OverviewPage]);if(e[le.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[le.SchemaType.Application];return VL(n,i,o)}else if(e[le.SchemaType.AnalyticalListPage])return Fv(e[le.SchemaType.AnalyticalListPage],t)}r(Nv,"exportPageV2");function Ld(e,t,n=!1){if(e[le.SchemaType.ListReport])return Vd(e[le.SchemaType.ListReport],t,n);if(e[le.SchemaType.ObjectPage])return Lv(e[le.SchemaType.ObjectPage],t,n);if(e[le.SchemaType.OverviewPage])return Vv(e[le.SchemaType.OverviewPage]);if(e[le.SchemaType.AnalyticalListPage])return Fv(e[le.SchemaType.AnalyticalListPage],t,n)}r(Ld,"exportConfigEntityByPathV2");var yi=$(B());var Mc=$(B());var wc=$(B());function Va(e,t=!0,n=[]){let i=[wc.ManifestSection.generic];return e.forEach(function(o){i.push("pages"),i.push(o)}),t&&(i.push("component"),i.push("settings")),i.concat(n)}r(Va,"getManifestPathFromPagePath");function Kn(e,t,n){let i=e,o=t.every(function(a){return!i||typeof i!="object"||Array.isArray(i)&&typeof a!="number"?!1:(i=i[a],!0)})&&typeof i=="object"&&i!==null;return{hasPath:o,value:o&&n?i[n]:void 0,parent:o?i:void 0}}r(Kn,"getManifestPropertyByPath");function mi(e){return e!==null&&typeof e=="object"}r(mi,"isDefinition");function $c(e,t,n,i,o,a,s){let l=n[wc.SchemaTag.conversionExit],c=l==null?void 0:l.name,p=t?t(c):void 0;if(!p)return i;let f=l.params;return e?p.appToConfig(i,f,o??[],n,s):p.configToApp(i,f,o??[],n,a)}r($c,"executeConversionExit");function Nd(e,t,n,i="string",o=!1){let a;if(e===void 0)a=o;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=o:a=typeof s!==i||s===null&&o}return a&&k(n,{severity:Mc.LogSeverity.Error,message:R.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}r(Nd,"hasPropertyTypeError");var KM=Symbol("Property is suppressed without explanation");function Rv(e,t){e.anyOf&&e.anyOf.forEach(function(n){Vo(n,t)})}r(Rv,"addAnyOfToReferredTypes");function kc(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}r(kc,"getSingleItem");function Vo(e,t){if(typeof e!="object")return;let n=si(e);n&&jv(n,t),Rv(e,t),Vo(e.additionalProperties,t),Vo(kc(e),t)}r(Vo,"addReferredTypesFromElement");function jv(e,t){t.referredTypeNames.add(e);let n=t.types[e];Vo(n,t);let i=n.properties;i?Object.values(i).forEach(o=>Vo(o,t)):Vo(kc(n),t),Vo(n.additionalProperties,t)}r(jv,"addReferredTypesFromType");function Uc(e,t,n,i,o){if(typeof t!="object")return;let a=si(t);if(a){let s=o.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,o.types[a]=s),e){let l;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=OT(p),l=structuredClone(s),o.types[p]=l,o.referredTypeNames.add(p)}else o.referredTypeNames.add(a),l=s;let c={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};Dd(n,c,e.syncRuleProvider,l,o)}else jv(a,o)}else Dd(n,i,e==null?void 0:e.syncRuleProvider,t,o)}r(Uc,"applyAdaptationInfoToElement");function Dv(e,t,n,i){let o=i==null?void 0:i.elementAdapter;return o?o(n,t,e):{}}r(Dv,"applySyncRuleToElement");function Dd(e,t,n,i,o){var m,b;let a=jT(n),s=Dv(e,t,i,a);if(!s)return;Uc(s.additionalPropertiesAdaptation,i.additionalProperties,e,t,o);let l={pageInfo:t.pageInfo,specificParams:((m=s.referenceAdaptation)==null?void 0:m.specificParams)||t.specificParams},c=i.properties,p;if(c)p=c;else{let S=kc(i);if(S)c={items:S},p=i;else return}let f,u=((b=s.referenceAdaptation)==null?void 0:b.processingRuleProvider)||function(S,L){f=f||n&&new n;let V=st(f,S);return Dv(e,l,L,V)};for(let S in c){let L=c[S];if(typeof L!="object"){p[S]=L;continue}let V={...L},H=u(S,V);H?(H.controlId?V[yi.SchemaTag.controlId]=`${t.pageInfo.controlId}--${H.controlId}`:H.manifestPath&&(V[yi.SchemaTag.artifactType]="Manifest",V[yi.SchemaTag.manifestPath]=H.manifestPath),Rv(V,o),Uc(H.referenceAdaptation,V,e,l,o),Uc(H.additionalPropertiesAdaptation,V.additionalProperties,e,l,o),Uc(H.itemsAdaptation,kc(V),e,l,o),p[S]=V):delete p[S]}}r(Dd,"adjustElement");function NL(e,t,n){let i=t.split("."),o=i[i.length-1],a=t+".view."+(o==="ObjectPage"?"Details":o);return`${e}::${a}::${n}`}r(NL,"getViewId");function wv(e,t,n){var re;Je();let i=Yi(e.manifest,yi.FioriElementsVersion.v2,n);if(!i||i===yi.TemplateType.OverviewPageV2)return;let o=Va(e.pagePath,!1),{parent:a}=Kn(e.manifest,o);if(!a)return;let s=a.component;if(Nd(a,"entitySet",n,"string",!0)||Nd(s,"name",n,"string",!0))return;let l=a.entitySet,c=s.name,p=t(c),f=p==null?void 0:p.genericSchema,u=p==null?void 0:p.syncRuleProvider;if(!u||!f)return f;let m=e.parsedAnnotations||Tn(e.annotations,n),b=(re=m==null?void 0:m.entitySets)==null?void 0:re.find(X=>X.name===l);if(!b)return f;let S=structuredClone(f),L=NL(e.appId,c,l),H={pageInfo:{appId:e.appId,componentName:c,entitySet:l,controlId:L,pagePath:e.pagePath}},ee={templateType:i,manifest:e.manifest,serviceAVT:m,fioriElementsVersion:yi.FioriElementsVersion.v2,entitySet:b,fragments:e.fragments,logger:n,entityType:b.entityType},te={types:S.definitions,referredTypeNames:new Set};Dd(ee,H,u,S,te);for(let X in S.definitions)te.referredTypeNames.has(X)||delete S.definitions[X];return S}r(wv,"getAdaptedSchema");var $v=$(B());var Jn=class{};r(Jn,"ListReportNew"),d([g({flex:{controlType:r(()=>$v.ControlType.DynamicPage,"controlType"),createFlexChange:_},elementAdapter(){return{controlId:"page"}}})],Jn.prototype,"fitContent",2),Jn=d([Gt({id:pv,pageId:kr}),g({elementAdapter(e,t,n){let i=Va(t.pageInfo.pagePath),{entityType:o,uIAnnotations:a}=rS(n),{value:s}=Kn(n.manifest,i);return{referenceAdaptation:{specificParams:{settings:s,entityType:o,uIAnnotations:a}}}}})],Jn);var $d=require("path"),Wv=require("fs");var tn=$(B());function DL(e){let t={};return e.flex.forEach(function(i){let o=qt(i);if(o){let a=o,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}r(DL,"getChangeMapFormImportParameters");function Rd(e,t,n,i,o){if(e===void 0)return;let a=si(t),s=a?n[a]:void 0;if(t[tn.SchemaTag.conversionExit]&&(e=$c(!0,o.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return Rd(e,s,n,i,o);if(t.type==="object"&&t.properties&&typeof e=="object"){let l={},c=!1;for(let p in t.properties){let f=t.properties[p],u=Rd(e[p],f,n,i,o);u!==void 0&&(c=!0,l[p]=u)}return c?l:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}r(Rd,"getConfigRep");function Mv(e,t,n,i,o,a,s,l){let c=Rd(o,a,s,l,t);if(c===void 0)return;let p=e,f=[];n.forEach(function(u){f.push(u);let m=u.propertyName;p[m]=p[m]||t.propertyInstanceProvider(f),p=p[m]}),p[i]=c}r(Mv,"transferValueToConfig");function RL(e,t,n,i,o,a,s,l){let c=o[tn.SchemaTag.controlId],p=l[c];if(!p)return;let f=-1,u=p.find(function(m,b){return m.content.property===i?(f=b,!0):!1});u&&(Mv(e,t,n,i,u.type==="propertyBindingChange"?u.content.newBinding:u.content.newValue,o,a,s),p.length===1?delete l[c]:p.splice(f,1))}r(RL,"importFlexChangesToConfigProperty");function jL(e,t,n,i,o,a,s){let l=o[tn.SchemaTag.manifestPath],c,p;Array.isArray(l)?(p=l,c=!0):(p=l.path,c=l.addTargetPropertyToPath);let{hasPath:f,value:u,parent:m}=Kn(s.manifest,p,c?i:void 0);if(!f)return;Mv(e,t,n,i,c?u:m,o,a,s)}r(jL,"importManifestToConfigProperty");function Uv(e,t,n,i,o,a,s){if(mi(n.properties))for(let l in n.properties){let c=n.properties[l];if(!mi(c))continue;let p=c[tn.SchemaTag.artifactType];if(p===tn.ArtifactType.FlexChange)RL(e,t,i,l,c,o,a,s);else if(p===tn.ArtifactType.Manifest&&c[tn.SchemaTag.manifestPath])jL(e,t,i,l,c,o,a);else{let f=si(c),u=f?o[f]:void 0;if(mi(u)){let m=i.concat([{propertyName:l,propertyType:f.split("<")[0]}]);Uv(e,t,u,m,o,a,s)}}}}r(Uv,"importDefinitionIntoConfig");function kv(e,t,n){var m;let i=Yi(e.manifest,tn.FioriElementsVersion.v2,e.logger);if(!i||i===tn.TemplateType.OverviewPageV2)return;let o=Va(t,!1),{parent:a}=Kn(e.manifest,o),s=(m=a==null?void 0:a.component)==null?void 0:m.name,l=typeof s=="string"?n(s):void 0;if(!l)return;let c=DL(e),p=e.jsonSchema,f=p.definitions,u=l.propertyInstanceProvider([]);return Uv(u,l,p,[],f,e,c),u}r(kv,"getConfigForPage");var Ot=$(B());function wL(e,t,n,i){let o=t===void 0?null:t,a=typeof o=="string"&&o.startsWith("{");i.push({controlId:e[Ot.SchemaTag.controlId],controlType:e[Ot.SchemaTag.controlType],propertyName:n,newValue:o,isBinding:a})}r(wL,"addFlexChangeInfoToList");function _v(e,t,n,i){var l;if(n[Ot.SchemaTag.conversionExit])return $c(!1,i.conversionExitProvider,n,e,i.fragments,t);if(n.type==="array"&&((l=n.items)==null?void 0:l.type)==="string")return!Array.isArray(e)||e.length===0?t===""||typeof t!="string"?t:void 0:e.join(",");if(e===t||n.type!=="object"||!n.properties)return e;let o=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let c in n.properties){let p=n.properties[c];if(!mi(p))continue;let f=si(p);p=f&&i.globalTypeDefinitions[f]||p;let u=o[c];s=s||u!==void 0;let m=_v(e?e[c]:void 0,u,p,i);m===void 0?delete o[c]:(o[c]=m,a=!0)}return a?o:s?Object.keys(t).every(c=>mi(n.properties[c]))?void 0:o:t}r(_v,"getValueForManifest");function jd(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e!==t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length||e.some(function(o,a){return jd(o,t[a])}):!0;let n=Object.keys(e).filter(o=>e[o]!==void 0),i=Object.keys(t).filter(o=>t[o]!==void 0);return n.length!==i.length||n.some(function(o){return jd(e[o],t[o])})}r(jd,"isDifferent");function $L(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}r($L,"isEmpty");function ML(e,t,n,i,o){let a=n.manifest,s=e.length-1,l=e[s],c=[];e.some(function(u,m){if(m===s)return!0;let b=a[u];if(typeof b!="object"||b===null)return!0;a=b,c.push(a)});let p=c.length===s?a[l]:void 0,f=_v(t,p,i,o);if(jd(f,p))if(f===void 0){n.manifestChangeIndicator=Ot.ChangeIndicator.Deleted;for(let u=s;u>0;u--){let m=c[u];if(!$L(m))break;let b=c[u-1],S=e[u];delete b[S]}}else{for(let u=c.length;u<s;u++){let m={};a[e[u]]=m,a=m}a[l]=f,n.manifestChangeIndicator=p===void 0?Ot.ChangeIndicator.Created:Ot.ChangeIndicator.Updated}}r(ML,"applyManifestChange");function UL(e,t,n,i,o){let a=e==null?void 0:e[n],s=i[Ot.SchemaTag.artifactType];if(s===Ot.ArtifactType.FlexChange)wL(i,a,n,t.flexList);else if(s===Ot.ArtifactType.Manifest&&i[Ot.SchemaTag.manifestPath]){let l,c=i[Ot.SchemaTag.manifestPath];Array.isArray(c)?l=c.concat([n]):(l=c.path,c.addTargetPropertyToPath&&(l=l.concat([n]))),ML(l,a,t,i,o)}else{let l=si(i),c=l?o.globalTypeDefinitions[l]:void 0;mi(c)&&Bv(a,t,c,o)}}r(UL,"transferConfigPropertyToExportResults");function Bv(e,t,n,i){let o=n.properties||{};for(let a in o){let s=n.properties[a];mi(s)&&UL(e,t,a,s,i)}}r(Bv,"transferConfigToExportResults");function Hv(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:Ot.ChangeIndicator.NoChange}}),o={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:Ot.ChangeIndicator.NoChange,flexList:[],fragments:i};return Bv(t,a,e.jsonSchema,o),a}r(Hv,"exportPage");var kL=!1,_L={generateListReportSchemaV2(e,t){return Ev(e,t)},createListReportConfig(e){return hv(e)},exportListReportPage(e,t,n){return Ov(e,t,n)}},wd;function BL(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,$d.join)(__dirname.substring(0,i+13),"dist")}let t=(0,$d.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,Wv.readFileSync)(t,"utf8"))}r(BL,"getPersistentListReportNewSchema");function HL(){let e=BL();return function(t){return t===kr?{genericSchema:e,syncRuleProvider:Jn}:void 0}}r(HL,"createGenericSchemaInfoProvider");function GL(e){return e===kr?{propertyInstanceProvider:r(function(t){return new Jn},"propertyInstanceProvider")}:void 0}r(GL,"getConfigInfo");function Gv(e){let{value:t}=Kn(e,[Hi.ManifestSection.generic],"pages");return Array.isArray(t)?[0]:t&&typeof t=="object"?[Object.keys(t)[0]]:void 0}r(Gv,"getPagePathForRootPage");function WL(e,t,n){let i=!e.layer||e.layer===Hi.FlexChangeLayer.Customer,o={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(o.content.newBinding=n.newValue,o.type="propertyBindingChange"):o.content.newValue=n.newValue,_(o,t)}r(WL,"flexInfoToChangeString");function QL(){let e=HL(),t=r(function(n,i,o){let a=structuredClone(i.manifest);return a[Hi.ManifestSection.app].id=n,i.flexList.map(WL.bind(null,o,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,o=Gv(i);if(!o)return null;let a={appId:((s=i[Hi.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:o,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return wv(a,e,n.logger)},createListReportConfig(n){let i=Gv(n.manifest);return kv(n,i,GL)},exportListReportPage(n,i,o){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:Hi.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},l=Hv(s),c=t(n.appId,l,i);return{manifest:l.manifest,fragments:l.fragments,flexChanges:c,manifestChangeIndicator:l.manifestChangeIndicator}}}}r(QL,"createPageHandlerLRGeneric");function Md(){return kL?(wd=wd||QL(),wd):_L}r(Md,"getPageHandlerLR");function Wr(e,t){return Md().generateListReportSchemaV2(e,t)}r(Wr,"generateListReportSchemaV2");function _c(e){return Md().createListReportConfig(e)}r(_c,"createListReportConfig");function Vd(e,t,n=!1){return Md().exportListReportPage(e,t,n)}r(Vd,"exportListReportPage");function Hc(e,t){var n,i;return(n=e.component)!=null&&n.name?ta(oi((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}r(Hc,"generateId");function KL(e,t,n,i){e.navigation={};let o=Qv(t.pages,n);for(let a in o){let s=o[a];i[a]=s}for(let a in t.pages){let s=Hc(t.pages[a],a);e.entitySet?e.navigation[s]=o[s].navigationProperty?`${e.entitySet}.${o[s].navigationProperty}`:e.entitySet:e.navigation[s]=o[s].navigationProperty?o[s].navigationProperty:s}}r(KL,"getPageConfigsAndNavigations");function Qv(e,t){var i;let n={};for(let o in e){let a=e[o],s=Hc(a,o);if(!s)continue;let l={pageType:oi((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let c=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(c)if(l.pageType===ct.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[c],fragments:t.fragments,logger:t.logger};l.config=_c(p)}else if(l.pageType===ct.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[c],fragments:t.fragments,logger:t.logger};l.config=jc(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[c],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=Dc(p)}a.pages&&KL(l,a,t,n)}return n}r(Qv,"getPagesAndConfigs");var Ud=class Ud extends Ei{constructor(t){Je();let n;t.manifest[ct.ManifestSection.generic]?n=t.manifest[ct.ManifestSection.generic].pages:k(t.logger,{severity:ct.LogSeverity.Error,message:R.t("NOFE"),location:{path:ct.MANIFESTPATH,range:[ct.ManifestSection.generic]}}),n||k(t.logger,{severity:ct.LogSeverity.Error,message:R.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:ct.MANIFESTPATH,range:[ct.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],o=n&&Hc(n[i],i),a=new Ii,s=Xe(ct.SchemaType.Application),l=t.appSchemas[s.filename];lt(a,t.manifest,l.definitions.AppSettings,void 0),super(t,o,Qv(n,t),a)}};r(Ud,"V2AppProvider");var Bc=Ud;function Qr(e,t,n){var o,a;let i={};for(let s in e){let l=e[s];if((o=l.component)!=null&&o.name||k(n,{severity:ct.LogSeverity.Error,message:R.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:ct.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let c=Hc(l,s);i[c]=l}if(t===ct.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let c=Qr(l.pages,t,n);for(let p in c)i[p]=c[p]}}return i}r(Qr,"getPages");var No=$(B());var kd=class kd extends Ei{constructor(t){let n={},i=t.manifest[No.ManifestSection.ovp],o=new Ii,a=Xe(No.SchemaType.Application);lt(o,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(f=>f.includes(No.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},c={pageType:No.PageTypeV2.OverviewPage,config:Rc(l),entitySet:i.globalFilterEntitySet},p=ta(c.pageType,c.entitySet);n[p]=c,super(t,p,n,o)}};r(kd,"V2OvpProvider");var Gc=kd;var Wc=require("@sap-ux/vocabularies-types/vocabularies/UI");var W=$(B());function JL(){return([e,t],[n,i])=>t[W.SchemaTag.propertyIndex]-i[W.SchemaTag.propertyIndex]}r(JL,"sortByPropertyIndex");function XL(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(JL())}r(XL,"sortPropertiesRecords");function Kv(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}r(Kv,"getExtensionText");function _d(e,t,n,i,o){var s;(((s=e.position)==null?void 0:s.placement)||W.v4.Placement.After)===W.v4.Placement.Before?t.splice(n,0,[i,o]):t.splice(n+1,0,[i,o])}r(_d,"addExtensionToSortedArray");function qL(e,t,n,i,o){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var c,p,f;return((c=l.position)==null?void 0:c.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((f=n.position)==null?void 0:f.anchor)})===-1&&(i.splice(i.length,0,[t,o]),delete e[t])}r(qL,"addRemainingTargetByBefore");function Bd(e,t,n,i,o=!1){var c,p;let a=Object.entries(e).length,s=r((f,u)=>{let m=Kv(f);return{$ref:`${O}${t}`,description:m,keys:[{name:W.SchemaKeyName.key,value:`${u}`}]}},"getExtensionDetails");for(let f of Object.keys(e)){let u=e[f],m=s(u,f);if((c=u.position)!=null&&c.anchor&&((p=u.position)!=null&&p.placement)){let b=n.findIndex(S=>S[0]===u.position.anchor);b>-1?(_d(u,n,b,f,m),delete e[f]):f===u.position.anchor||Object.keys(e).indexOf(u.position.anchor)===-1?(k(i,{severity:Zt.LogSeverity.Error,message:R.t("INVALIDANCHOR",{id:f,anchor:u.position.anchor}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5]}}),n.splice(n.length,0,[f,m]),delete e[f]):o&&qL(e,f,u,n,m)}else o&&(_d(u,n,n.length,f,m),delete e[f])}let l=Object.entries(e).length;l>0&&a!==l?Bd(e,t,n,i):l>0&&Bd(e,t,n,i,!0)}r(Bd,"adjustCustomExtReferringToCustomExt");function zL(e,t){var o,a;let n=((o=e.position)==null?void 0:o.placement)||W.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===W.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}r(zL,"getExtensionAnchor");function YL(e,t){var i;let n=[];for(let o in e){let a=(i=e[o].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(o)}return n}r(YL,"getLocalExtensionsToSkip");function ZL(e,t,n,i){return n.findIndex(o=>o[0]===i)}r(ZL,"getExtensionIndex");function eV(e,t,n,i,o){k(e,{severity:Zt.LogSeverity.Error,message:R.t("INVALIDEXTENSION",{id:t}),location:{path:W.MANIFESTPATH}}),n.push([t,i]),delete o[t]}r(eV,"handleInvalidExtension");function tV(e,t,n,i="template",o){let a=[...t],s={...e},l=YL(s,a);if(!s)return[];for(let c of Object.keys(s)){let p=s[c];if(l!=null&&l.includes(c))continue;let f={$ref:`${O}${n}`,description:Kv(p)||c,keys:[{name:W.SchemaKeyName.key,value:`${c}`}],actionType:W.ActionType.Custom};if(typeof p!="object"){eV(o,c,t,f,s);continue}if(!(i in p)){delete s[c];continue}let u=zL(p,a);if(u){let m=ZL(p,e,t,u);m>-1&&(_d(p,t,m,c,f),delete s[c])}else t.push([c,f]),delete s[c]}return Object.keys(s).length>0&&Bd(s,n,t,o),t}r(tV,"addExtensionToArray");function nV(e){let t;return e.lineItemId.startsWith(W.DefinitionName.LineItemsOfView)?t=W.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(W.DefinitionName.LineItems)?t=W.DefinitionName.ToolBarAction:t=W.DefinitionName.ObjectPageToolBarAction,t}r(nV,"determineActionDefinitionName");function iV(e,t,n){e[W.SchemaTag.keys]=[],t[W.SchemaKeyName.semanticObject]&&e[W.SchemaTag.keys].push({name:W.SchemaKeyName.semanticObject,value:t[W.SchemaKeyName.semanticObject]});let{key:i,ns:o}=so(n,!0);e[W.SchemaTag.keys].push({name:W.SchemaKeyName.action,value:i}),o&&(e[W.SchemaTag.target]=o)}r(iV,"addTargetAndKeysOfAction");function oV(e,t,n,i,o,a=!0){if(i.Determining===!0)return;let s=nV(e),l=Ct(i,e.entityType),c=i.$Type.split(`${W.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,f=pl(p),u=t.properties[`${c}::${f}`]={description:l};if(a?u.$ref=mS(s,Le(f),e.appSchema,n):(u.properties={},u.type="object",u.isViewNode=!0),u[W.SchemaTag.propertyIndex]=o,u[W.SchemaTag.dataType]=Sn(i),iV(u,i,p),u[W.SchemaTag.annotationType]=i.$Type,a){let m=u.$ref.replace(O,""),b=gt(s,m,e.appSchema,!1);b[W.SchemaTag.annotationPath]=`${n}/${o}`}else u[W.SchemaTag.annotationPath]=`${n}/${o}`}r(oV,"addActionRecordToSchema");function aV(e,t,n,i,o){var c;let a=t.lineItemId,s=t.lineItemRecord;if((c=s.Target)!=null&&c.value){let p=`@${kt(W.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=ci(s).replace(/\//g,"::");if(l){let p=o;p||(p=e.appSchema.definitions[a]);let f=p.properties,u={description:Ct(s,e.entityType)};o?(u.properties={},u.type="object",u.isViewNode=!0):u.$ref=O+n,u[W.SchemaTag.annotationType]=s==null?void 0:s.$Type,u[W.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,u[W.SchemaTag.propertyIndex]=i,u[W.SchemaTag.dataType]=Sn(s),f[l]=u,Sl(s,f,l)}}r(aV,"addLineItemRecordToSchema");function rV(e,t,n,i,o=W.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Wc.UIAnnotationTypes.DataFieldForAction||s.$Type===Wc.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))oV(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},c=s.$Type===Wc.UIAnnotationTypes.DataFieldForAction?`${o}Action`:o;aV(e,l,c,a,i)}a++})}r(rV,"appendLineItemsToSchema");function Do(e,t=W.DefinitionName.TableColumn){let{actions:n,lineItemPath:i}=bl(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId);rV(e,n,i,void 0,t)}r(Do,"addLineItemsTypeToSchema");function Qc(e,t,n,i){var a,s;let o;if(n){for(let l in e)if(((s=(a=e[l].options)==null?void 0:a.settings)==null?void 0:s.entitySet)===n.name&&(ol(t,e[l].name)||t===W.v4.FE_TEMPLATE_V4_ALP&&e[l].name===W.v4.FE_TEMPLATE_V4_LIST_REPORT)){o=e[l];break}}return o}r(Qc,"findPageV4");function Jv(e,t){let n,i=e.properties[W.PropertyName.table];return t.templateType===W.TemplateType.AnalyticalListPageV4?(n=W.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${O}${W.DefinitionName.ALPTableView}`,delete e.definitions[W.DefinitionName.Table],delete e.definitions[W.DefinitionName.LRChartView],delete e.definitions[W.DefinitionName.LRTableView],delete e.definitions[W.DefinitionName.MultiTableModeV4]):t.templateType===W.TemplateType.ListReportObjectPageV4&&(n=W.DefinitionName.Table,delete i.anyOf,i.$ref=`${O}${W.DefinitionName.Table}`,e.definitions[n].properties[W.PropertyName.annotationPath][W.SchemaTag.hidden]=!0,delete e.definitions[W.DefinitionName.ALPTableView],e.properties[W.PropertyName.defaultPath][W.SchemaTag.hidden]=!0),n}r(Jv,"alignSchemaWithTemplateType");function Xv(e,t,n,i,o,a){var p,f,u,m;let s=XL(t),l=new Map;if(s=s.map(b=>{let S=xf(e,b[1],b[0],{keyProperties:[W.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return l.set(S.const,b[0]),[S.const,b[1]]}),!o&&i.includes(W.DefinitionName.ObjectPageCustomSectionFragment)){let b=(m=(u=(f=(p=n.options)==null?void 0:p.settings)==null?void 0:f.content)==null?void 0:u.body)==null?void 0:m.sections;b&&(s=tV(b,s,i,"name",a))}for(let b=0;b<s.length;b++)s[b][1][W.SchemaTag.propertyIndex]=b;let c={};s.forEach(([b,S])=>{b=l.get(b)||b,c[b]=S}),t.properties=c}r(Xv,"addCustomSectionDefinition");var E=$(B()),Gd=require("@sap-ux/vocabularies-types/vocabularies/UI");var sV=["filterBar","chart","table"],Hd="@UI.LineItem";function lV(e,t,n,i){if(i||(i=t.definitions.SelectionFields,i.additionalProperties=!1,i.properties={}),e&&(i[E.SchemaTag.annotationPath]=Ut(e.fullyQualifiedName,Gd.UIAnnotationTerms.SelectionFields)),n){let o=0;n==null||n.forEach(a=>{var p,f;let s=a.value,l="SelectionField::"+Le(a.value);a.type==="PropertyPath"&&(s=tl(a,e)),i.properties[l]={$ref:O+l},i.properties[l][E.SchemaTag.propertyIndex]=o;let c=Sn(a);t.definitions[l]={type:"object",properties:{},description:s,additionalProperties:!1,...c&&{dataType:c}},t.definitions[l][E.SchemaTag.isViewNode]=!0,t.definitions[l][E.SchemaTag.keys]=[{name:E.SchemaKeyName.value,value:`${a.value}`}],((p=a.$target)==null?void 0:p.fullyQualifiedName.indexOf("@"))>-1?t.definitions[l][E.SchemaTag.target]=a.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(f=a.$target)!=null&&f.fullyQualifiedName&&(t.definitions[l][E.SchemaTag.target]=a.$target.fullyQualifiedName.split("/")[0]),t.definitions[l][E.SchemaTag.annotationType]=a==null?void 0:a.type,t.definitions[l][E.SchemaTag.annotationPath]=`${i[E.SchemaTag.annotationPath]}/${o}`,o++})}return i}r(lV,"addSelectionFields");function zv(e,t,n,i,o){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${E.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(c=>{let p=Le(`${E.DefinitionName.ChartToolBarAction}<${c.Action}>`),f=Ct(c,o),u=c.$Type.split(`${E.UIVOCABULARY}.`)[1],m=a.properties[`${u}::${c.Action}`]={$ref:O+p,description:f};m[E.SchemaTag.propertyIndex]=l,m[E.SchemaTag.annotationType]=c.$Type,m[E.SchemaTag.annotationPath]=`/${c.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[E.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][E.SchemaTag.annotationPath]=c.fullyQualifiedName,l++})}}r(zv,"defineActions");function Yv(e,t,n,i){var l;let o,a,s;return e&&(n==="primary"?a=e.find(c=>c.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(c=>c.value.indexOf(E.FacetBase.LineItem)>-1):i?a=e.find(c=>c.value.indexOf(i)>-1):a=e[0],o=typeof(a==null?void 0:a.value)=="string"?ia(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:o&&(s=`/${t}/`+o.replace("UI",E.UIVOCABULARY))),{visualization:o,targetAnnotation:s}}r(Yv,"findTheRightVisualization");function cV(e,t,n,i){let o="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:o,targetAnnotation:a,chartTitle:s}}r(cV,"analyzeChartAnnotation");function pV(e,t,n,i,o,a){var c;let{visualization:s,targetAnnotation:l}=Yv((c=e.PresentationVariant)==null?void 0:c.Visualizations,t,n,i);return s||(k(o,{severity:E.LogSeverity.Error,message:R.t("NOVISUALIZATIONS")}),s=Hd,l=`/${t}/`+s.replace("UI",E.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}r(pV,"analyzeSPVforView");function Kc(e,t,n,i,o){let a,s,l=e==null?void 0:e.split(`${E.UIVOCABULARY}.`)[1],c=l&&(t==null?void 0:t[l]);if(!c)return{visualization:void 0,targetAnnotation:void 0,namespace:a,title:`View (${n})`};if(s=c.Text,a=c.fullyQualifiedName.split(E.UIVOCABULARYALPHADOT)[0],l.startsWith("PresentationVariant")){let{visualization:p,targetAnnotation:f}=Yv(c.Visualizations,a,n,i);return s=s||`View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else{if(l.startsWith("SelectionPresentationVariant"))return pV(c,a,n,i,o,s);if(l.startsWith("SelectionVariant")){let p=Hd,f=`/${a}/@${Gd.UIAnnotationTerms.LineItem}`;return s=s||`Table View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else if(l.startsWith("LineItem")){let p=Hd;c.qualifier&&(p+=`#${c.qualifier}`);let f=e.substring(0,1)==="@"?`/${a}/${e}`:`/${a}/@${e}`;return s=s||`Table View (${n})`,{visualization:p,targetAnnotation:f,namespace:a,title:s}}else if(l.startsWith("Chart")){let{visualization:p,targetAnnotation:f,chartTitle:u}=cV(a,e,c,n);return{visualization:p,targetAnnotation:f,namespace:a,title:u}}}return{visualization:void 0,targetAnnotation:void 0,namespace:a,title:`View (${n})`}}r(Kc,"analyzeViewAnnotation");function fV(e,t,n,i){let o=e.definitions[E.DefinitionName.ALPChartView];if(e.definitions[E.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(o)),delete e.definitions[E.DefinitionName.ALPChart][E.SchemaTag.isViewNode],n&&(e.definitions[E.DefinitionName.ALPChart][E.SchemaTag.annotationPath]=n),e.definitions[E.DefinitionName.ALPChart].properties.annotationPath[E.SchemaTag.hidden]=!0,o.properties.annotationPath[E.SchemaTag.hidden]=!0,o.additionalProperties=!1,o.description="Chart (key: primary)",o.title="Chart",o.$ref=`${O}${E.DefinitionName.ALPChart}`,t){let a=t.split(E.UIVOCABULARYDOT)[1];if(i!=null&&i[a]){let s=i[a].fullyQualifiedName.split("@");o[E.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else hS(o,R.t("UNEXISTING_ANNOTATION_PATH"))}o[E.SchemaTag.artifactType]=E.ArtifactType.Manifest,o[E.SchemaTag.key]="primary",o[E.SchemaTag.keys]=[{name:E.SchemaKeyName.key,value:"primary"}]}r(fV,"addALPChartView");function uV(e,t,n,i,o,a){var V,H,ee,te,re,X,oe,Pe;let s=(V=n.entityType)==null?void 0:V.annotations.UI,l=(te=(ee=(H=t==null?void 0:t[0])==null?void 0:H.primary)==null?void 0:ee[0])==null?void 0:te[E.SchemaTag.annotationPath],{targetAnnotation:c}=Kc(l,s,"primary",void 0,n.logger);fV(e,l,c,s);let p="Actions<ALPChart>";e.definitions[E.DefinitionName.ViewChartToolBar].properties.actions.$ref=O+p,zv(e,p,s,c,n.entityType);let{visualization:f,targetAnnotation:u}=Kc((oe=(X=(re=t==null?void 0:t[0])==null?void 0:re.secondary)==null?void 0:X[0])==null?void 0:oe[E.SchemaTag.annotationPath],s,"secondary",void 0,n.logger),m=e.definitions[a];f||i?(m.properties.toolBar.$ref=`${O}${E.DefinitionName.ToolBarLR}`,m.properties.columns={$ref:O+E.DefinitionName.LineItems},m.properties.annotationPath[E.SchemaTag.hidden]=!0):m.properties={};let b=e.definitions[E.DefinitionName.ALPTableView];e.definitions[E.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(b)),delete e.definitions[E.DefinitionName.ALPTable][E.SchemaTag.isViewNode],b.additionalProperties=!1,b.description="Table (key: secondary)",b.title="Table",f?(delete b.properties,b.$ref=`${O}${E.DefinitionName.ALPTable}`):i||(b.properties={}),b[E.SchemaTag.artifactType]=E.ArtifactType.Manifest;let S,L;if(f&&f.indexOf(E.FacetBase.LineItem)>-1?(S=f.split(".")[1],L=t[0].secondary[0].annotationPath.split(E.UIVOCABULARYDOT)[1]):i&&(S=L=i.split(E.UIVOCABULARYDOT)[1]),S){let P={isObjectPage:!1,appSchema:e,lineItemAnnotation:(Pe=n.entityType)==null?void 0:Pe.annotations.UI[S],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:E.DefinitionName.LineItems};Do(P,E.DefinitionName.ViewTableColumn),u&&(e.definitions[E.DefinitionName.ALPTable][E.SchemaTag.annotationPath]=u);let Lt=s[L].fullyQualifiedName.split("@");b[E.SchemaTag.annotationPath]=`/${Lt[0]}/@${Lt[1]}`,b[E.SchemaTag.key]="secondary",b[E.SchemaTag.keys]=[{name:E.SchemaKeyName.key,value:"secondary"}]}}r(uV,"addALPViews");function dV(e,t){let n=`${E.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[E.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][E.SchemaTag.isViewNode],e.appSchema.definitions[n][E.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${E.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[E.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${O}${i}`;let o=`${E.DefinitionName.Actions}<${e.viewKey}>`;return zv(e.appSchema,o,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[E.PropertyName.actions].$ref=`${O}${o}`,n}r(dV,"addViewChartDefinitions");function gV(e,t,n,i,o,a){let s=dV(e,t);n.definitions[s].properties.annotationPath[E.SchemaTag.hidden]=!0,n.definitions[s].properties.index[E.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[E.SchemaTag.hidden]=!0;let l=`Chart View (key: ${o})`;i.properties[o]={$ref:`${O}${s}`,description:a||l,title:l}}r(gV,"addViewChart");function qv(e){return typeof e=="object"?{...e,properties:{}}:{properties:{}}}r(qv,"createEmptyProperties");function mV(e,t,n,i,o){var m;let a=`${E.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${E.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=gt(E.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[E.SchemaTag.isViewNode],l[E.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),co(l.properties.toolBar,E.DefinitionName.ToolBar,s);let c=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${O}${a}`,description:e.title||c,title:c},co(l.properties.columns,s),l.properties.annotationPath[E.SchemaTag.hidden]=!0,l.properties.index[E.SchemaTag.hidden]=!0,l.properties.entitySet[E.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(E.UIVOCABULARYDOT)[1],f={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:o.serviceAVT,lineItemId:s,entitySet:l.entitySet},u=E.DefinitionName.ViewTableColumn;if(l.entitySet!==void 0){let{definitions:b}=e.appSchema;u=E.DefinitionName.ViewTableColumnBasic;let S=b[E.DefinitionName.ViewTableColumn];b[u]=qv(S);let L=E.DefinitionName.ViewTableColumnBasicAction,V=`${E.DefinitionName.ViewTableColumnAction}`;b[L]=qv(b[V])}Do(f,u)}r(mV,"addViewLineItems");function yV(e,t,n,i){e.properties[t][E.SchemaTag.isViewNode]=!0,e.properties[t][E.SchemaTag.annotationPath]=n?`/${n}/@${i[E.SchemaTag.annotationPath]}`:void 0,e.properties[t][E.SchemaTag.artifactType]=E.ArtifactType.Manifest,e.properties[t][E.SchemaTag.key]=t,e.properties[t][E.SchemaTag.keys]=[{name:E.SchemaKeyName.key,value:t}]}r(yV,"addTagsToView");function hV(e,t,n){var a;let i=n.entityType,o=e;return t.entitySet&&t.entitySet!==e.name&&(o=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=o.entityType),i}r(hV,"getTargetEntityType");function bV(e,t){let{properties:n}=e;if(n)for(let i in n)n[i].artifactType===E.ArtifactType.Manifest&&t.indexOf(i)===-1&&delete n[i]}r(bV,"handleViewProperties");function TV(e,t,n,i,o,a,s){if((e==null?void 0:e.indexOf(E.Visualization.LineItem))>-1)mV(n,t,e,n.targetAnnotation,i),s.entitySet!==void 0&&bV(n.appSchema.definitions[`${E.DefinitionName.LRTableView}<${s.key}>`],["visible"]);else if((e==null?void 0:e.indexOf("Chart"))>-1)gV(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${O}${E.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${O}${E.DefinitionName.LRTableView}`}}}r(TV,"addLRViewParts");function SV(e,t,n,i,o){var l;let a=e.definitions[o];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let c of t){if(!c[E.SchemaTag.key])continue;let p,f=hV(n.entitySet,c,n),u=f==null?void 0:f.annotations.UI,{visualization:m,targetAnnotation:b,namespace:S,title:L}=Kc(c==null?void 0:c[E.SchemaTag.annotationPath],u,c[E.SchemaTag.key],void 0,n.logger);c.entitySet&&(p=(l=n.entityType.navigationProperties.find(ee=>ee.targetTypeName===S))==null?void 0:l.name);let V=Le(c[E.SchemaTag.key]),H={viewKey:V,appSchema:e,targetAnnotation:b,navPropName:p,targetEntityType:f,title:L,entitySet:c.entitySet};TV(m,s,H,n,i,u,c),yV(s,V,S,c)}}r(SV,"addLRViews");function vV(e,t,n,i,o,a){var f,u,m,b,S,L,V,H,ee,te,re,X;let s=e.definitions[a],{visualization:l,targetAnnotation:c,namespace:p}=Kc(n,(f=t.entityType)==null?void 0:f.annotations.UI,void 0,E.Visualization.LineItem,t.logger);if(l){let oe=l.split(".")[1],Pe=`${E.DefinitionName.LineItems}OfSPV::${Le(oe)}`,P=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete P[E.SchemaTag.isViewNode],co(P.properties.toolBar,E.DefinitionName.ToolBar,Pe),P[E.SchemaTag.annotationPath]=c,P.properties.columns={},co(P.properties.columns,Pe),delete s.properties,co(s,`${a}SPV`),s[E.SchemaTag.annotationPath]=`/${p}/@${n}`;let Lt=(u=t.entityType)==null?void 0:u.annotations.UI[oe];Lt||k(t.logger,{severity:E.LogSeverity.Error,message:R.t("NOTARGET",{target:oe})});let nn={isObjectPage:!1,appSchema:e,lineItemAnnotation:Lt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:Pe};Do(nn)}else{s.properties.toolBar.$ref=`${O}${E.DefinitionName.ToolBarLR}`,co(s.properties.columns,E.DefinitionName.LineItems);let oe=(S=(b=(m=t.entityType)==null?void 0:m.annotations)==null?void 0:b[o])==null?void 0:S.LineItem;!oe&&!((H=(V=(L=i.options)==null?void 0:L.settings)==null?void 0:V.views)!=null&&H.paths)&&k(t.logger,{severity:E.LogSeverity.Error,message:R.t("NOLINEITEMS")});let Pe={isObjectPage:!1,appSchema:e,lineItemAnnotation:oe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:E.DefinitionName.LineItems};Do(Pe),oe&&!((re=(te=(ee=i.options)==null?void 0:ee.settings)==null?void 0:te.views)!=null&&re.paths)&&(s[E.SchemaTag.annotationPath]=Ut((X=t.entityType)==null?void 0:X.fullyQualifiedName,oe.term,oe.qualifier))}}r(vV,"adaptTableDefinition");function PV(e,t,n){var i,o,a,s,l,c,p;if(!((o=(i=e.options.settings)==null?void 0:i.views)!=null&&o.paths&&n===E.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===E.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(c=t==null?void 0:t.annotations.UI)==null?void 0:c.PresentationVariant)==null?void 0:p.term)}}r(PV,"getDefaultAnnotationPath");function AV(e,t,n,i){var l,c,p,f,u;let o=(p=(c=(l=t.options)==null?void 0:l.settings)==null?void 0:c.views)==null?void 0:p.paths,a=PV(t,n.entityType,n.templateType),s=Jv(e,n);n.templateType===E.TemplateType.ListReportObjectPageV4?(vV(e,n,a,t,i,s),o?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],SV(e,o,n,t,s)):(u=(f=t.options)==null?void 0:f.settings)!=null&&u.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[E.PropertyName.chart][E.SchemaTag.hidden]=!0):n.templateType===E.TemplateType.AnalyticalListPageV4&&uV(e,o,n,a,t,s)}r(AV,"addTableAndViews");function Kr(e,t,n,i){var c,p;let o=JSON.parse(JSON.stringify(t)),a=n==null?void 0:n.entityType,s=e.serviceAVT&&kt(E.UIVOCABULARY,e.serviceAVT),l=s&&((p=(c=a==null?void 0:a.annotations)==null?void 0:c[s])==null?void 0:p.SelectionFields);if(lV(a,o,l),o.properties[E.PropertyName.defaultTemplateAnnotationPath][E.SchemaTag.hidden]=!0,Ai(a,o,E.DefinitionName.AnnotationPathAsObject),e.manifest){let f=e.manifest[E.ManifestSection.ui5].routing.targets;if(!f)return k(e.logger,{severity:E.LogSeverity.Error,message:R.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:E.MANIFESTPATH,range:[E.ManifestSection.generic]}}),o;let u=Qc(f,i,n,e.logger);if(!u)return o;AV(o,u,e,s)}return delete o.definitions.GenericColumns,delete o.definitions.Action,Un(o,sV),o}r(Kr,"generateListReportSchemaV4");var In=require("@sap-ux/vocabularies-types/vocabularies/UI"),v=$(B());var CV=["header","layout","sections","footer"],EV=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"];function Wd(e,t,n,i,o,a,s){let{actionName:l,namespace:c}=Pl(t.item,e),p=ci(t.item),f=t.item.fullyQualifiedName.replace(`@${In.UIAnnotationTerms.Identification}`,`/@${In.UIAnnotationTerms.Identification}`),u=`ObjectPageHeaderAction<${Le(p)}>`,m=i.definitions[u]={type:"object",$ref:`${O}${v.DefinitionName.ObjectPageHeaderAction}`,description:Ct(t.item,o)};m[v.SchemaTag.isViewNode]=!0,m[v.SchemaTag.dataType]=Sn(t.item),m[v.SchemaTag.propertyIndex]=s,m[v.SchemaTag.keys]=[],t.item[v.SchemaKeyName.semanticObject]&&m[v.SchemaTag.keys].push({name:v.SchemaKeyName.semanticObject,value:t.item[v.SchemaKeyName.semanticObject]}),m[v.SchemaTag.keys].push({name:v.SchemaKeyName.action,value:l}),c&&(i.definitions[u][v.SchemaTag.target]=c),m[v.SchemaTag.actionType]=n,m[v.SchemaTag.annotationPath]=`/${f}`,a.properties[p]={$ref:`${O}${u}`},a.properties[p][v.SchemaTag.propertyIndex]=s}r(Wd,"addSingleHeaderActionV4");function Zv(e,t,n,i){let o=`${e}Action`,a=`ObjectPageHeaderAction<${o}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[v.SchemaTag.isViewNode]=!0,s[v.SchemaTag.propertyIndex]=i,s[v.SchemaTag.keys]=[],s[v.SchemaTag.keys].push({name:v.SchemaKeyName.action,value:e}),s[v.SchemaTag.actionType]=v.ActionType.Standard,n.properties[o]={$ref:`${O}${a}`},n.properties[o][v.SchemaTag.propertyIndex]=i,s}r(Zv,"addStandardHeaderAction");function eP(e,t,n,i,o,a){let s=ci(e.item),l=Ct(e.item,n),c=Le(`${v.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${In.UIAnnotationTerms.Identification}`,`/@${In.UIAnnotationTerms.Identification}`),f=i.definitions[c]={type:"object",$ref:`${O}${v.DefinitionName.FooterActionV4}`,description:l};f[v.SchemaTag.isViewNode]=!0,f[v.SchemaTag.actionType]=t,f[v.SchemaTag.propertyIndex]=a,f[v.SchemaTag.annotationPath]=`/${p}`,o.properties[s]={$ref:`${O}${c}`}}r(eP,"addSingleFooterAction");function xV(e){let t=[],n=[];return e.forEach((i,o)=>{(!i.Determining&&i.$Type===In.UIAnnotationTypes.DataFieldForAction||i.$Type===In.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(EV.includes(i.Criticality)?t.push({index:o,item:i}):n.push({index:o,item:i}))}),{criticalActions:t,unCriticalActions:n}}r(xV,"groupByCriticality");function IV(e,t,n,i,o){for(let a=0;a<e.length;a++)Wd(t,e[a],v.ActionType.Criticality,n,i,o,a)}r(IV,"addCriticalActions");function OV(e,t,n,i,o,a){let s=e.findIndex(l=>{var c,p;return((p=(c=l.item.annotations)==null?void 0:c.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(Wd(t,e[s],v.ActionType.Copy,n,i,o,a),a++,e.splice(s,1))}r(OV,"addCopyAction");function FV(e,t,n,i,o,a){for(let s of e)Wd(t,s,v.ActionType.Annotation,n,i,o,a),a++}r(FV,"addUncriticalActions");function tP(e,t,n,i){var o,a,s,l;(a=(o=t==null?void 0:t.annotations)==null?void 0:o.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[v.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${v.UIVOCABULARYALPHADOT}${i}`:e[v.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${v.UIVOCABULARYALPHADOT}${i}`}r(tP,"setAnnotationPathFromEntitySetOrEntityType");function LV(e,t,n,i,o,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?xV(n):{};IV(s,o,t,e,i);let c=iS(a),p=oS(a);if(hl(a)&&p){let u=Zv("Edit",t,i,s.length);tP(u,a,e,"UpdateHidden")}if(c){let u=Zv("Delete",t,i,s.length+1);tP(u,a,e,"DeleteHidden")}let f=s.length+2;OV(l,o,t,e,i,f),FV(l,o,t,e,i,f)}r(LV,"addHeaderActionCallBackV4");function VV(e,t,n,i){let o=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===In.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?o.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<o.length;s++){let l=o[s];eP(l,v.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];eP(l,v.ActionType.Annotation,e,t,n,o.length+s)}}r(VV,"addFooterActionCallBackV4");function NV(e,t,n,i,o){let a=ca(t),s=t.lastIndexOf("::"),l=s>-1?t.substring(s+2):t,c=gt(v.DefinitionName.ObjectPageTable,t,n);e.entityType&&l&&(c[v.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${l}`),c.properties.columns={$ref:`${O}${a}`},c.properties.toolBar.$ref=zt(v.DefinitionName.ObjectPageToolBar,t),c.properties.quickVariantSelection.$ref=zt(v.DefinitionName.QuickVariantSelectionV4OP,t);let p=gt(v.DefinitionName.QuickVariantSelectionV4OP,t,n);p.properties.paths.items.$ref=zt(v.DefinitionName.AnnotationPathAsObject,t),gt(v.DefinitionName.AnnotationPathAsObject,t,n),Ai(e.entityType,n,`${v.DefinitionName.AnnotationPathAsObject}<${a}>`);let f={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:o,lineItemId:a};return Do(f,v.DefinitionName.ObjectPageTableColumn),c}r(NV,"handleLineItem");function iP(e,t,n,i,o,a){a&&Jc(a,t,v.DefinitionName.ObjectPageSectionTableV4);let s=gt(v.DefinitionName.ObjectPageSectionTableV4,t,n);ri(e,s,ca(t)),vi(e,s,ca(t)),s[v.SchemaTag.annotationPath]=e.annotationPath,s[v.SchemaTag.target]=e.namespace,s.properties.table.$ref=zt(v.DefinitionName.ObjectPageTable,t);let l=NV(e,t,n,i,o.serviceAVT);return{sectionTable:s,table:l}}r(iP,"handleSectionTable");function DV(e,t,n,i,o){let a;o===v.SectionType.Section?a=v.DefinitionName.ObjectPageSectionForm:o===v.SectionType.HeaderSection&&(a=v.DefinitionName.ObjectPageHeaderSectionForm),n.properties[t]={$ref:zt(a,t)};let s=gt(a,t,i);e.ID||(s.properties={}),ri(e,s,t),vi(e,s,t),s[v.SchemaTag.annotationPath]=e.annotationPath,s[v.SchemaTag.target]=e.namespace,s[v.SchemaTag.isViewNode]=!0,vl(o,e,s,i,v.FioriElementsVersion.v4,t)}r(DV,"handleFormIdentification");function nP(e,t,n,i,o){n.properties[t]={$ref:`${O}${o}`};let a=gt(v.DefinitionName.CommonHeaderFacetSettings,o,i,!1);ea(e,a,t),a[v.SchemaTag.annotationPath]=e.annotationPath,a[v.SchemaTag.target]=e.namespace,a[v.SchemaTag.dataType]=lo(e==null?void 0:e.target),a[v.SchemaTag.isViewNode]=!0}r(nP,"handleHeaderFacet");function RV(e,t,n,i){let o=gt(v.DefinitionName.ObjectPageToolBarActions,t,n);if(o.additionalProperties=!1,o.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,c=Ct(l,i),p=l.$Type.split(v.UIVOCABULARYDOT)[1],f=l.Action.replace("/","::"),u=o.properties[`${p}::${l.Action}`]={$ref:zt(v.DefinitionName.ObjectPageToolBarAction,f),description:c};u[v.SchemaTag.propertyIndex]=a,u[v.SchemaTag.annotationType]=l.$Type;let m=gt(v.DefinitionName.ObjectPageToolBarAction,Le(f),n);m[v.SchemaTag.annotationPath]=xl(l),m[v.SchemaTag.dataType]=Sn(l),m.properties={},a++})}return o}r(RV,"handleChartActions");function jV(e,t,n,i){let o=gt(v.DefinitionName.ObjectPageChart,t,n);e.Title&&(o.description=e.Title),o[v.SchemaTag.annotationPath]=xl(e),o[v.SchemaTag.dataType]=lo(e.target||e),o[v.SchemaTag.isViewNode]=!0,o.properties.toolBar.$ref=zt(v.DefinitionName.ObjectPageToolBar,t);let a=gt(v.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=zt(v.DefinitionName.ObjectPageToolBarActions,t);let s=RV(e,t,n,i);return{chart:o,chartActions:s}}r(jV,"handleChart");function oP(e,t,n,i,o=e.entityType,a=!1,s){let l=a?v.DefinitionName.CommonHeaderFacetSettings:v.DefinitionName.ObjectPageSectionChart,c=a?v.DefinitionName.ObjectPageHeaderSectionChart:v.DefinitionName.ObjectPageSectionChart;i&&Jc(i,t,l);let p=er(c,t),f=gt(l,p,n,!1);if(ea(e,f,t),a)return delete f.properties.chart,{parentChartRef:f};f[v.SchemaTag.annotationPath]=xl(e),f.properties.chart.$ref=zt(v.DefinitionName.ObjectPageChart,t);let{chart:u,chartActions:m}=jV(e.target||e,t,n,o);return u[v.SchemaTag.target]=s,{parentChartRef:f,chart:u,chartActions:m}}r(oP,"handleSectionChart");function wV(e,t,n){let o=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${Cf(o,n.serviceAVT)}`,l=s.split(v.UIVOCABULARYDOT)[1];return{key:s,type:l}}r(wV,"getVisualizationKeyAndType");function $V(e,t,n){var o,a;return(a=(o=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:o.annotations)==null?void 0:a.UI[n]}r($V,"getTargetFromNavigation");function MV(e,t,n){let i=e.target[v.FacetBase.PresentationVariant]?e.target[v.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let o=i[0].$target,a=o||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:c}=wV(!!o,a,n),p=o?a:$V(n,s,c),f=e.target[v.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:c,target:p,namespace:f,navigationPath:s}}r(MV,"getVisualizationProps");function Jc(e,t,n,i){e.properties[t]={$ref:zt(n,i||t)}}r(Jc,"addPropertyRef");function aP(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}r(aP,"getSectionPropertyRef");function UV(e,t,n,i,o,a){let{propertyKey:s,navigationKey:l}=aP(t,o);Jc(i,s,v.DefinitionName.ObjectPageSectionTableV4,l);let{sectionTable:c,table:p}=iP(e,l,n,{target:o.target,entityType:e.entityType},a);c[v.SchemaTag.annotationPath]=e.annotationPath,ea(e,c,t),delete c[v.SchemaTag.isViewNode],p[v.SchemaTag.annotationPath]=`/${o.namespace}/${o.key}`,p[v.SchemaTag.target]=o.namespace}r(UV,"addPVLineItemSection");function kV(e,t,n,i,o,a=!1){let s=a?v.DefinitionName.ObjectPageHeaderSectionChart:v.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:c}=aP(t,o);Jc(i,l,s,c);let{parentChartRef:p}=oP(o.target,c,n,void 0,e.entityType,a,o.namespace);p[v.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(ri(e,p,t),ET(e,p)):ea(e,p,t)}r(kV,"addPVChartSection");function _V(e,t,n,i,o,a,s){if(!(e!=null&&e.target)){k(a.logger,{severity:v.LogSeverity.Error,message:R.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=MV(e,t,a),c=o===v.SectionType.HeaderSection;l&&(l.type.startsWith(v.Visualization.Chart)?kV(e,t,n,i,l,c):l.type.startsWith(v.Visualization.LineItem)&&UV(e,t,n,i,l,a))}r(_V,"handleSectionPresentationVariant");function BV(e,t,n,i,o,a,s){let l=o;e.additionalProperties={$ref:`${O}${l}`},Xv(t,e,i,l,s,n.logger);let c=t.definitions[l];typeof c=="object"&&yS(t,e,{schema:c,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[v.SchemaKeyName.id,v.SchemaKeyName.key],descriptionAsFallback:!0})}r(BV,"applyCustomSections");function Qd(e,t,n,i,o,a,s){let l=t[n],c=`ObjectPage${a}${l.base}<${ca(n)}>`;switch(l.base){case v.FacetBase.PresentationVariant:case v.FacetBase.SelectionPresentationVariant:{_V(l,n,o,i,a,e,s);break}case v.FacetBase.CollectionFacet:{HV(l,n,o,i,a,e,s);break}case v.FacetBase.LineItem:{if(a===v.SectionType.Section){let p=t[n];iP(l,n,o,p,e,i)}break}case v.FacetBase.Form:case v.FacetBase.Identification:{DV(l,n,i,o,a);break}case v.FacetBase.DataPoint:{nP(l,n,i,o,c);break}case v.FacetBase.Chart:{a===v.SectionType.HeaderSection?nP(l,n,i,o,c):a===v.SectionType.Section&&oP(l,n,o,i);break}case v.FacetBase.Address:case v.FacetBase.Contact:{tr(l,n,i,o,a);break}default:i.properties[n]=$n(o,l,n)}}r(Qd,"addSection");function HV(e,t,n,i,o,a,s){let l=i.properties[t]=$n(n,e,t);l.properties={subsections:{additionalProperties:!1,type:"object",properties:{},description:"Subsections"}};let c=l.properties.subsections;c[v.SchemaTag.annotationPath]=e.annotationPath,c[v.SchemaTag.target]=e.namespace,c[v.SchemaTag.keys]=[{name:v.SchemaKeyName.id,value:e.ID}],c[v.SchemaTag.isViewNode]=!0;for(let p in e.facets)Qd(a,e.facets,p,c,n,o,s)}r(HV,"handleCollection");function GV(e,t,n){let i=il(e.entitySet.entityType,e.serviceAVT,v.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[v.DefinitionName.ObjectPageSubSections];return}let o=t.definitions[v.DefinitionName.Sections];for(let a in i)Qd(e,i,a,o,t,v.SectionType.Section,n);BV(o,t,e,n,v.DefinitionName.ObjectPageCustomSectionFragment)}r(GV,"addSections");function WV(e,t,n,i){let o=nl(n,e.serviceAVT,v.FioriElementsVersion.v4,e.logger),a=t.definitions[v.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!o){for(let s in o)Qd(e,o,s,a,t,v.SectionType.HeaderSection,i);delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[v.DefinitionName.ObjectPageHeaderSectionAddress]}}r(WV,"addHeaderSections");function QV(e,t,n){let i=e.entitySet.entityType;El(t,i),Cl(t,i,e.entitySet,e.serviceAVT,LV),i&&(t.definitions[v.DefinitionName.HeaderSections][v.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${In.UIAnnotationTerms.HeaderFacets}`),WV(e,t,i,n)}r(QV,"addHeader");function Jr(e,t,n){let i=JSON.parse(JSON.stringify(t));if(i.properties.sections={$ref:`${O}${v.DefinitionName.Sections}`},e.entitySet=n,!e.manifest[v.ManifestSection.ui5].routing||!e.manifest[v.ManifestSection.ui5].routing.targets)return k(e.logger,{severity:v.LogSeverity.Error,message:R.t("NOROUTING"),location:{path:v.MANIFESTPATH}}),i;let o=i.definitions[v.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:v.DefinitionName.Sections};if(o[v.SchemaTag.isViewNode]=!0,n){let a=e.manifest[v.ManifestSection.ui5].routing.targets;if(!a)return k(e.logger,{severity:v.LogSeverity.Error,message:R.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:v.MANIFESTPATH,range:[v.ManifestSection.generic]}}),i;let s=Qc(a,v.v4.FE_TEMPLATE_V4_OBJECT_PAGE,n,e.logger);if(!s)return i;QV(e,i,s),o[v.SchemaTag.isViewNode]=!0,n!=null&&n.entityType&&(o[v.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/@${In.UIAnnotationTerms.Facets}`),GV(e,i,s),Al(i,e,v.FioriElementsVersion.v4,VV)}return delete i.definitions[v.DefinitionName.CommonHeaderFacetSettings],delete i.definitions[v.DefinitionName.GenericColumnsOP],delete i.definitions[v.DefinitionName.GenericSections],delete i.definitions[v.DefinitionName.ObjectPageChart],delete i.definitions[v.DefinitionName.ObjectPageSectionAddress],delete i.definitions[v.DefinitionName.ObjectPageSectionChart],delete i.definitions[v.DefinitionName.ObjectPageSectionContact],delete i.definitions[v.DefinitionName.ObjectPageSectionDataPoint],delete i.definitions[v.DefinitionName.ObjectPageSectionForm],delete i.definitions[v.DefinitionName.ObjectPageSectionTableV4],delete i.definitions[v.DefinitionName.ObjectPageSectionPresentationVariant],delete i.definitions[v.DefinitionName.ObjectPageSubSections],delete i.definitions[v.DefinitionName.ObjectPageTable],delete i.definitions[v.DefinitionName.ObjectPageToolBar],delete i.definitions[v.DefinitionName.ObjectPageToolBarAction],delete i.definitions[v.DefinitionName.ObjectPageToolBarActions],delete i.definitions[v.DefinitionName.QuickVariantSelectionV4OP],Un(i,CV),i}r(Jr,"generateObjectPageSchemaV4");function Kd(e,t){return JSON.parse(JSON.stringify(t))}r(Kd,"generateFreestyleSchemaV4");var un=$(B());function Jd(e,t,n,i,o,a){let s=Tn(n,o),l=hi(t,s);l||k(o,{severity:un.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySet:t})});let c={templateType:un.TemplateType.ListReportObjectPageV4,fioriElementsVersion:un.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:s,logger:o,entitySet:l,entityType:l==null?void 0:l.entityType};return Jr(c,e,l)}r(Jd,"generateObjectPageInterfaceV4");function Xc(e,t,n,i,o,a){Je();let s=Tn(i,o),l=s==null?void 0:s.entitySets.find(f=>f.name===n),c={templateType:e,fioriElementsVersion:un.FioriElementsVersion.v4,manifest:a,serviceAVT:s,logger:o,entitySet:l,entityType:l.entityType},p=e===un.TemplateType.ListReportObjectPageV4?un.v4.FE_TEMPLATE_V4_LIST_REPORT:un.v4.FE_TEMPLATE_V4_ALP;return Kr(c,t,l,p)}r(Xc,"generateListReportInterfaceV4");function Xd(e,t,n,i,o,a){let s=Tn(n,a),l={templateType:e,fioriElementsVersion:un.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return Kd(l,t)}r(Xd,"generateFreestyleInterfaceV4");var Xr=require("@sap-ux/vocabularies-types/vocabularies/UI"),rP=$(B());var $e=r(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Yc=r(e=>$e(e)+"/views/paths","getSettingsPathForLRViewsPaths"),qd=r(e=>$e(e)+"/content/header","getSettingsPathForHeaderOP"),Xn=r(e=>$e(e)+"/controlConfiguration","getControlConfigurationPath"),Zc=r((e,t,n)=>Xn(e)+`/@${Xr.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),On=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Xn(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),Fn=r((e,t,n,i,o)=>o?On(e,t,n,i,o):Xn(e)+`/@${Xr.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),ep=r((e,t,n,i,o)=>Fn(e,t,n,i,o)+rP.QUICKVARPATH,"getQuickVariantPath"),Kt=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Xn(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),jt=r((e,t,n,i,o)=>o?Kt(e,t,n,i,o):Xn(e)+`/@${Xr.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),zd=r((e,t,n,i,o)=>{let a=o==null?void 0:o.replace(/\//gi,"??");return a?Xn(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),tp=r((e,t,n,i,o)=>o?zd(e,t,n,i,o):Xn(e)+`/@${Xr.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Ro=r((e,t,n,i)=>Xn(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),sP=r((e,t,n,i)=>Xn(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),bt=r((e,t,n)=>Xn(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),qr=r((e,t,n,i)=>{let o=$e(e)+`/content/body/sections/${n}`;return i&&(o+="/"+i),o},"getCustomSectionPath"),zc=class zc{};r(zc,"ApplicationV4"),d([_e("settings")],zc.prototype,"settings",2);var qc=zc,Gi=class Gi{};r(Gi,"AppSettings"),d([g({manifest:{path:r(()=>"sap.app","path")}})],Gi.prototype,"title",2),d([g({manifest:{path:r(()=>"sap.app","path")}})],Gi.prototype,"description",2),d([g({manifest:{path:r(()=>"sap.fiori","path")}})],Gi.prototype,"cloudDevAdaptationStatus",2),d([g({manifest:{path:r(()=>"sap.ui5/routing/config","path")}}),T({since:"1.78.0"})],Gi.prototype,"flexibleColumnLayout",2),d([g({manifest:{path:r(()=>"sap.ui5","path")}}),T({since:"1.56.0"})],Gi.prototype,"flexEnabled",2);var Na=Gi;var ie=$(B());function ze(e,t,n,i,o,a,s){if(!n)return;let l={},c=e==null?void 0:e.getDeprecated,p=a&&a.replace("/","::");for(let f in n.properties){let u=st(e,f);if(u!=null&&u.manifest){let m=u.manifest.path([i],t,p,...o);l=ai(t,m,a,p,!0),l&&Object.keys(l).length>0&&(aa(u,l,f,e,a,o),ll(c,l,m,s))}}}r(ze,"importSettingsOfObject");var Qg={};Go(Qg,{ALPChart:()=>eg,ALPTable:()=>wa,ActionAfterExecutionConfiguration:()=>ug,ActionAfterExecutionConfigurationOP:()=>cs,ActionAfterExecutionConfigurationToolBarLR:()=>Ag,Actions:()=>Tg,CommonHeaderFacetSettings:()=>Qi,CommonViewSettings:()=>ja,FilterBar:()=>Ig,FlexSettings:()=>Lg,HeaderSections:()=>wg,LRChartView:()=>tg,LRTableView:()=>ng,MultiTableModeV4:()=>og,ObjectPageCustomSectionFragment:()=>ds,ObjectPageHeader:()=>Fg,ObjectPageHeaderSectionAddress:()=>jg,ObjectPageHeaderSectionChart:()=>Ng,ObjectPageHeaderSectionContact:()=>Rg,ObjectPageHeaderSectionDataPoint:()=>Dg,ObjectPageHeaderSectionForm:()=>Vg,ObjectPageLayout:()=>Hg,ObjectPageTable:()=>us,ObjectPageTableColumn:()=>$a,ObjectPageTableColumnAction:()=>Og,ObjectPageToolBarAction:()=>xg,Position:()=>mg,QuickVariantSelectionV4:()=>Zd,QuickVariantSelectionV4OP:()=>Wg,Table:()=>ag,TableColumn:()=>rp,TableColumnAction:()=>dg,TableCreationModeOP:()=>Gg,TableCustomColumn:()=>hg,TableSettings:()=>np,TableViewExtension:()=>ig,TableViewSettings:()=>Zr,ToolBar:()=>Sg,ToolBarAction:()=>Cg,ViewPosition:()=>yg,ViewTableColumn:()=>sp,ViewTableColumnAction:()=>gg,ViewTableCustomColumn:()=>bg,ViewToolBarAction:()=>Eg,checkViewOrder:()=>sg,deleteCreationModeCreateAtEnd:()=>fg,deleteCreationModeName:()=>lg,exportCreationModeCreateAtEnd:()=>pg,exportCreationModeName:()=>rg,exportPersonalization:()=>XV,exportPersonalizationProperty:()=>qV});var Yd=$(B());var KV=r((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function Ln(e,t,n,i,o,a){let s=Yc(e),l=KV(JSON.parse(JSON.stringify(t)),s),c;for(let p=0;p<l.length;p++){let f=l[p];if(f&&(f[Yd.SchemaTag.key]===(a==null?void 0:a.key)||f[Yd.SchemaTag.key]===i)){c=`${s}/${p}`;break}}return c||(c=`${s}/[]`),c}r(Ln,"getSettingsPathForLRViewsPath");function rg(e,t,n,i){typeof e.creationMode=="string"&&(e.creationMode={}),e.creationMode[i]=t[n]}r(rg,"exportCreationModeName");function JV(e,t,n,i,o,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let c of l){let p=Number(c),f=e[c];t===f.key?s[n]=f:p>=i&&p<=o?s[Math.max(0,p+a)]=f:s[c]=f}return s}r(JV,"fillNewlyOrderedViews");function sg(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),o=t.index;if(i>-1&&i!==o){let a=o>i?-1:1,s=Math.min(Number(i),o),l=Math.max(Number(i),o),c=JV(e,n,o,s,l,a);for(let p of Object.keys(c))e[p]=c[p]}}r(sg,"checkViewOrder");function XV(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}r(XV,"exportPersonalization");function qV(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}r(qV,"exportPersonalizationProperty");function lg(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}r(lg,"deleteCreationModeName");function cg(e,t,n,i,o,a){var l;let s;if(!t||Object.keys(t).length===0){let c=e;Object.keys(c).forEach(p=>{c[p]&&c[p].key===o&&(e[Number(p)]={},s=p)})}if(s){let c=(l=a.table)==null?void 0:l.views;for(let p in c)c[p].index>s&&c[p].index--}}r(cg,"deleteView");function pg(e,t,n,i){typeof e.creationMode=="object"?e.creationMode[i]=t[n]:typeof e.creationMode=="string"&&(e.creationMode={name:t.name,[i]:t[n]})}r(pg,"exportCreationModeCreateAtEnd");function fg(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0&&delete e.creationMode[t]}r(fg,"deleteCreationModeCreateAtEnd");function lP(e,t,n,i){let o=e.findIndex(a=>a.key===i[0]);return o===-1?void 0:o}r(lP,"determineIndexOfView");var Da=class Da{};r(Da,"QuickVariantSelectionV4"),d([g({manifest:{path:ep}})],Da.prototype,"paths",2),d([g({manifest:{path:ep}})],Da.prototype,"hideTableTitle",2),d([g({manifest:{path:ep}})],Da.prototype,"showCounts",2);var Zd=Da,dn=class dn{};r(dn,"TableSettings"),d([g({manifest:{path:Fn}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],dn.prototype,"type",2),d([g({manifest:{path:Fn}}),T({since:"1.86.0"})],dn.prototype,"personalization",2),d([g({manifest:{path:Fn}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],dn.prototype,"selectionMode",2),d([g({manifest:{path:Fn}}),T({since:"1.84.0"})],dn.prototype,"selectAll",2),d([g({manifest:{path:Fn}}),T({since:"1.84.0"})],dn.prototype,"selectionLimit",2),d([g({manifest:{path:Fn}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],dn.prototype,"enableExport",2),d([g({manifest:{path:Fn}}),T({since:"1.84.0"})],dn.prototype,"quickVariantSelection",2),d([g({manifest:{path:Fn}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],dn.prototype,"condensedTableLayout",2),d([g({manifest:{path:Fn}}),T({since:"1.117.0"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],dn.prototype,"hierarchyQualifier",2);var np=dn,ip=class ip{};r(ip,"ALPChart"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/primary/0","path"),delete:cg}})],ip.prototype,"annotationPath",2);var eg=ip,jo=class jo{};r(jo,"CommonViewSettings"),d([g({manifest:{path:Ln,delete:Zi}})],jo.prototype,"key",2),d([g({manifest:{path:Yc,import:lP,export:r((t,n)=>{sg(t,n)},"export"),delete:cg}})],jo.prototype,"index",2),d([g({manifest:{path:Ln,delete:Zi}})],jo.prototype,"annotationPath",2),d([g({manifest:{path:Ln}})],jo.prototype,"entitySet",2);var ja=jo,gn=class gn extends ja{};r(gn,"TableViewSettings"),d([g({manifest:{path:On}}),T({since:"1.84.0"})],gn.prototype,"type",2),d([g({manifest:{path:On}}),T({since:"1.86.0"})],gn.prototype,"personalization",2),d([g({manifest:{path:On}}),T({since:"1.84.0"})],gn.prototype,"selectionMode",2),d([g({manifest:{path:On}}),T({since:"1.84.0"})],gn.prototype,"selectAll",2),d([g({manifest:{path:On}}),T({since:"1.84.0"})],gn.prototype,"selectionLimit",2),d([g({manifest:{path:On}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],gn.prototype,"enableExport",2),d([g({manifest:{path:On}}),T({since:"1.84.0"})],gn.prototype,"quickVariantSelection",2),d([g({manifest:{path:On}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],gn.prototype,"condensedTableLayout",2),d([g({manifest:{path:On}}),T({since:"1.117.0"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],gn.prototype,"hierarchyQualifier",2);var Zr=gn;function zV(e){return Zr}r(zV,"getTableViewSettings");var zr=class zr extends Zr{};r(zr,"ALPTable"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/secondary/0","path"),delete:Zi}})],zr.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],zr.prototype,"initialLoad",2);var wa=zr,op=class op extends ja{};r(op,"LRChartView"),d([g({manifest:{path:Ln},generate:kn})],op.prototype,"visible",2);var tg=op,Ra=class Ra extends zV(ja){};r(Ra,"LRTableView"),d([g({manifest:{path:Ln}})],Ra.prototype,"keepPreviousPersonalization",2),d([g({manifest:{path:Ln}})],Ra.prototype,"entitySet",2),d([g({manifest:{path:Ln},generate:kn})],Ra.prototype,"visible",2);var ng=Ra,Wi=class Wi{};r(Wi,"TableViewExtension"),d([g({manifest:{path:Ln}})],Wi.prototype,"key",2),d([g({manifest:{path:Yc,import:lP,export:r((t,n)=>{sg(t,n)},"export"),delete:cg}})],Wi.prototype,"index",2),d([g({manifest:{path:Ln}})],Wi.prototype,"label",2),d([g({manifest:{path:Ln}})],Wi.prototype,"template",2),d([g({manifest:{path:Ln},generate:kn})],Wi.prototype,"visible",2);var ig=Wi,ap=class ap{};r(ap,"MultiTableModeV4"),d([g({manifest:{path:r(t=>$e(t)+"/views","path")}})],ap.prototype,"showCounts",2);var og=ap,Yr=class Yr extends np{};r(Yr,"Table"),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/0/secondary/0","path"),delete:Zi}})],Yr.prototype,"annotationPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Yr.prototype,"initialLoad",2);var ag=Yr;var es=class es{};r(es,"ActionAfterExecutionConfiguration"),d([g({manifest:{path:r((t,n,i,o,a)=>jt(t,n,i,o,a)+"/afterExecution","path")}}),ye("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],es.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>jt(t,n,i,o,a)+"/afterExecution","path")}})],es.prototype,"enableAutoScroll",2);var ug=es,ts=class ts{};r(ts,"TableColumn"),d([g({manifest:{path:jt}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ts.prototype,"width",2),d([g({manifest:{path:jt}}),T({since:"1.85.0"})],ts.prototype,"availability",2);var rp=ts,ns=class ns{};r(ns,"ViewTableColumn"),d([g({manifest:{path:Kt}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ns.prototype,"width",2),d([g({manifest:{path:Kt}}),T({since:"1.85.0"})],ns.prototype,"availability",2);var sp=ns,lp=class lp extends rp{};r(lp,"TableColumnAction"),d([g({manifest:{path:jt}}),T({since:"1.84.0"})],lp.prototype,"afterExecution",2);var dg=lp,cp=class cp extends sp{};r(cp,"ViewTableColumnAction"),d([g({manifest:{path:Kt}}),T({since:"1.84.0"})],cp.prototype,"afterExecution",2);var gg=cp,is=class is{};r(is,"Position"),d([g({manifest:{path:r((t,n,i,o,a)=>jt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],is.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o,a)=>jt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],is.prototype,"placement",2);var mg=is,os=class os{};r(os,"ViewPosition"),d([g({manifest:{path:r((t,n,i,o,a)=>Kt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],os.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o,a)=>Kt(t,n,i,o,a)+"/position","path")}}),T({since:"1.84.0"})],os.prototype,"placement",2);var yg=os,qn=class qn{};r(qn,"TableCustomColumn"),d([g({manifest:{path:jt}}),T({since:"1.84.0"})],qn.prototype,"position",2),d([g({manifest:{path:jt}}),T({since:"1.84.0"})],qn.prototype,"header",2),d([g({manifest:{path:jt}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],qn.prototype,"width",2),d([g({manifest:{path:jt}}),T({since:"1.84.0"})],qn.prototype,"template",2),d([g({manifest:{path:jt}}),T({since:"1.86.0"})],qn.prototype,"horizontalAlign",2),d([g({manifest:{path:jt}}),T({since:"1.84.0"})],qn.prototype,"availability",2),d([g({manifest:{path:jt}}),T({since:"1.85.0"})],qn.prototype,"properties",2);var hg=qn,zn=class zn{};r(zn,"ViewTableCustomColumn"),d([g({manifest:{path:Kt}}),T({since:"1.84.0"})],zn.prototype,"position",2),d([g({manifest:{path:Kt}}),T({since:"1.84.0"})],zn.prototype,"header",2),d([g({manifest:{path:Kt}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],zn.prototype,"width",2),d([g({manifest:{path:Kt}}),T({since:"1.84.0"})],zn.prototype,"template",2),d([g({manifest:{path:Kt}}),T({since:"1.86.0"})],zn.prototype,"horizontalAlign",2),d([g({manifest:{path:Kt}}),T({since:"1.84.0"})],zn.prototype,"availability",2),d([g({manifest:{path:Kt}}),T({since:"1.85.0"})],zn.prototype,"properties",2);var bg=zn;var vg=class vg{};r(vg,"Actions");var Tg=vg,Pg=class Pg{};r(Pg,"ToolBar");var Sg=Pg;var as=class as{};r(as,"ActionAfterExecutionConfigurationToolBarLR"),d([g({manifest:{path:r((t,n,i,o,a)=>tp(t,n,i,o,a)+"/afterExecution","path")}}),ye("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],as.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o,a)=>tp(t,n,i,o,a)+"/afterExecution","path")}})],as.prototype,"enableAutoScroll",2);var Ag=as,pp=class pp{};r(pp,"ToolBarAction"),d([g({manifest:{path:tp}})],pp.prototype,"enableOnSelect",2);var Cg=pp,fp=class fp{};r(fp,"ViewToolBarAction"),d([g({manifest:{path:zd}})],fp.prototype,"enableOnSelect",2);var Eg=fp;var up=class up{};r(up,"ObjectPageToolBarAction"),d([g({manifest:{path:sP}})],up.prototype,"enableOnSelect",2);var xg=up;var dp=class dp{};r(dp,"FilterBar"),d([g({manifest:{path:r(t=>$e(t),"path")}}),T({since:"1.99.0"}),ye("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],dp.prototype,"hideFilterBar",2);var Ig=dp;var rs=class rs{};r(rs,"ActionAfterExecutionConfigurationOP"),d([g({manifest:{path:r((t,n,i,o)=>Ro(t,n,i,o)+"/afterExecution","path")}}),ye("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],rs.prototype,"navigateToInstance",2),d([g({manifest:{path:r((t,n,i,o)=>Ro(t,n,i,o)+"/afterExecution","path")}})],rs.prototype,"enableAutoScroll",2);var cs=rs,ss=class ss{};r(ss,"ObjectPageTableColumn"),d([g({manifest:{path:Ro}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ss.prototype,"width",2),d([g({manifest:{path:Ro}}),T({since:"1.85.0"})],ss.prototype,"availability",2);var $a=ss,ls=class ls extends $a{};r(ls,"ObjectPageTableColumnAction"),d([g({manifest:{path:Ro}}),T({since:"1.84.0"})],ls.prototype,"anchor",2),d([g({manifest:{path:r((t,n,i,o)=>Ro(t,n,i,o)+"/position","path")}}),T({since:"1.84.0"})],ls.prototype,"placement",2);var Og=ls;var wo=class wo{};r(wo,"ObjectPageHeader"),d([g({manifest:{path:r(t=>$e(t),"path")}}),T({since:"1.84.0"})],wo.prototype,"editableHeaderContent",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),T({since:"1.84.0"})],wo.prototype,"showRelatedApps",2),d([g({manifest:{path:qd}}),T({since:"1.84.0"})],wo.prototype,"visible",2),d([g({manifest:{path:qd}}),T({since:"1.84.0"})],wo.prototype,"anchorBarVisible",2);var Fg=wo;var gp=class gp{};r(gp,"FlexSettings"),d([g({manifest:{path:r((t,n,i)=>Zc(t,n,i)+"/flexSettings","path")}}),T({since:"1.81.0"}),ye("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],gp.prototype,"designtime",2);var Lg=gp,ps=class ps{};r(ps,"CommonHeaderFacetSettings"),d([g({manifest:{path:Zc}}),T({since:"1.81.0"})],ps.prototype,"stashed",2),d([g({manifest:{path:Zc}}),T({since:"1.81.0"})],ps.prototype,"flexSettings",2);var Qi=ps,$g=class $g extends Qi{};r($g,"ObjectPageHeaderSectionForm");var Vg=$g,Mg=class Mg extends Qi{};r(Mg,"ObjectPageHeaderSectionChart");var Ng=Mg,Ug=class Ug extends Qi{};r(Ug,"ObjectPageHeaderSectionDataPoint");var Dg=Ug,kg=class kg extends Qi{};r(kg,"ObjectPageHeaderSectionContact");var Rg=kg,_g=class _g extends Qi{};r(_g,"ObjectPageHeaderSectionAddress");var jg=_g,Bg=class Bg{};r(Bg,"HeaderSections");var wg=Bg;var mp=class mp{};r(mp,"ObjectPageLayout"),d([g({manifest:{path:r(t=>$e(t),"path")}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],mp.prototype,"sectionLayout",2);var Hg=mp;var yp=$(B());var fs=class fs{};r(fs,"TableCreationModeOP"),d([g({manifest:{path:r((t,n,i)=>bt(t,n,i),"path"),export:r((t,n,i,o)=>{rg(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{lg(t,o)},"delete")}})],fs.prototype,"name",2),d([g({manifest:{path:r((t,n,i)=>bt(t,n,i),"path"),export:r((t,n,i,o)=>{pg(t,n,i,o)},"export"),delete:r((t,n,i,o)=>{fg(t,o)},"delete")}})],fs.prototype,"createAtEnd",2);var Gg=fs,Ma=class Ma{};r(Ma,"QuickVariantSelectionV4OP"),d([g({manifest:{path:r((t,n,i)=>bt(t,n,i)+yp.QUICKVARPATH,"path")}})],Ma.prototype,"paths",2),d([g({manifest:{path:r((t,n,i)=>bt(t,n,i)+yp.QUICKVARPATH,"path")}})],Ma.prototype,"hideTableTitle",2),d([g({manifest:{path:r((t,n,i)=>bt(t,n,i)+yp.QUICKVARPATH,"path")}})],Ma.prototype,"showCounts",2);var Wg=Ma,Jt=class Jt{};r(Jt,"ObjectPageTable"),d([g({manifest:{path:bt}}),T({since:"1.84.0"})],Jt.prototype,"type",2),d([g({manifest:{path:bt,import:r(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),T({since:"1.84.0"})],Jt.prototype,"creationMode",2),d([g({manifest:{path:bt}}),T({since:"1.86.0"})],Jt.prototype,"personalization",2),d([g({manifest:{path:bt}}),T({since:"1.84.0"})],Jt.prototype,"selectionMode",2),d([g({manifest:{path:bt}}),T({since:"1.84.0"})],Jt.prototype,"selectAll",2),d([g({manifest:{path:bt}}),T({since:"1.84.0"})],Jt.prototype,"selectionLimit",2),d([g({manifest:{path:bt}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Jt.prototype,"enableExport",2),d([g({manifest:{path:bt}}),T({since:"1.84.0"})],Jt.prototype,"quickVariantSelection",2),d([g({manifest:{path:bt}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Jt.prototype,"condensedTableLayout",2),d([g({manifest:{path:bt}}),T({since:"1.86.0"})],Jt.prototype,"enablePaste",2),d([g({manifest:{path:bt}}),T({since:"1.117.0"}),ye("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Jt.prototype,"hierarchyQualifier",2);var us=Jt;var $o=class $o{};r($o,"ObjectPageCustomSectionFragment"),d([g({manifest:{path:r((t,n,i)=>qr(t,n,i,"position"),"path"),key:"anchor"}}),T({since:"1.77.0"})],$o.prototype,"relatedFacet",2),d([g({manifest:{path:r((t,n,i)=>qr(t,n,i,"position"),"path"),key:"placement"}}),T({since:"1.77.0"})],$o.prototype,"relativePosition",2),d([g({manifest:{path:qr}}),T({since:"1.77.0"})],$o.prototype,"title",2),d([g({manifest:{path:qr,key:"name"}}),T({since:"1.77.0"})],$o.prototype,"fragmentName",2);var ds=$o;var qg={};Go(qg,{FreestylePage:()=>Jg,ListReport:()=>mn,ObjectPage:()=>Vn});function YV(e){var t,n,i,o;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(o=(i=e.paths)==null?void 0:i[0])!=null&&o.secondary)&&Object.keys(e).forEach(a=>delete e[a])}r(YV,"deleteAllALPViews");function ZV(){}r(ZV,"doNotExport");function eN(){}r(eN,"doNotImport");var mn=class{};r(mn,"ListReport"),d([g({manifest:{path:r(t=>$e(t)+"/views","path"),import:eN,export:ZV,delete:YV}})],mn.prototype,"chart",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),T({since:"1.84.0"})],mn.prototype,"variantManagement",2),d([g({manifest:{path:r(t=>$e(t)+"/views/paths/[]/0","path")}}),ye("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],mn.prototype,"defaultPath",2),d([g({manifest:{path:r(t=>$e(t),"path")}})],mn.prototype,"defaultTemplateAnnotationPath",2),d([_e("fe::FilterBar")],mn.prototype,"filterBar",2),mn=d([Gt({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],mn);var Kg=$(B());var Vn=class{};r(Vn,"ObjectPage"),d([_e("header")],Vn.prototype,"header",2),d([_e("layout")],Vn.prototype,"layout",2),d([g({manifest:{path:r(t=>$e(t),"path")}}),T({since:"1.84.0"}),ye("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],Vn.prototype,"variantManagement",2),d([_e("sections")],Vn.prototype,"sections",2),Vn=d([Gt({id:`${Kg.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:Kg.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Vn);var Xg=class Xg{};r(Xg,"FreestylePage");var Jg=Xg;var hp=$(B());var tN={ALPTableView:wa},nN={ALPTableView:wa},iN={Table:us,TableColumn:$a,ObjectPageCustomSectionView:ds,ActionAfterExecutionConfiguration:cs},oN={[hp.PageTypeV4.AnalyticalListPage]:tN,[hp.PageTypeV4.ListReport]:nN,[hp.PageTypeV4.ObjectPage]:iN},zg=class zg extends La{constructor(){super(Qg,qg,oN)}};r(zg,"MetadataInstanceFactoryV4");var bi=zg;var Yg=require("@sap-ux/vocabularies-types/vocabularies/UI");function Zg(e,t,n,i,o,a,s){var f,u,m,b,S,L;let l=t.jsonSchema.definitions,c=a&&a!==`@${Yg.UIAnnotationTerms.LineItem}`?a:ie.DefinitionName.LineItems,p=l[c];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let V in p.properties){let ee=l[c].properties[V].$ref.split(O)[1].split("<")[0];e.columns[V]=n.createInstance(i,ee);let te=s||a;ze(e.columns[V],t.manifest,l[ee],o,[V,te],te,t.logger),to(e.columns,V)}to(e,"columns")}else{let V=(L=(S=(b=(m=(u=(f=t.manifest["sap.ui5"])==null?void 0:f.routing)==null?void 0:u.targets)==null?void 0:m[o])==null?void 0:b.options)==null?void 0:S.settings)==null?void 0:L.views;(!V||V.paths.length<1)&&k(t.logger,{severity:ie.LogSeverity.Error,message:R.t("NOLINEITEMS")})}}r(Zg,"transferColumns");function aN(e,t,n,i,o,a=ie.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,c=s;!c&&[ie.DefinitionName.LineItems,`${ie.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(c=`@${Yg.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${ie.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let f in p.properties){let u=p.properties[f];if(typeof u=="object"&&u.$ref){let m=na(u.$ref),b=m.split("<")[0];t.toolBar.actions[f]=n.createInstance(i,b),ze(t.toolBar.actions[f],e.manifest,l[m],o,[f,c]),to(t.toolBar.actions,f)}}}r(aN,"importActions");function cP(e,t,n,i,o,a=ie.DefinitionName.LineItems,s){let l=n.createInstance(i,ie.DefinitionName.ToolBar,{actions:{}}),c;!s&&t&&"table"in t?c=t.table:c=t,c.toolBar=l,ze(c.toolBar,e.manifest,e.jsonSchema.definitions[ie.DefinitionName.ToolBarLR],o,[]),aN(e,c,n,i,o,a,s),to(c.toolBar,"actions"),to(c,"toolBar")}r(cP,"transferToolBar");function pP(e,t){var o;let n=(o=e[t])==null?void 0:o[ie.SchemaTag.annotationPath];return n==null?void 0:n.substr(n.lastIndexOf("@"))}r(pP,"determineTargetAnnotationOfView");function rN(e,t,n,i,o){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,ie.DefinitionName.ALPChart);let s=a[ie.DefinitionName.ALPChart],l=s[ie.SchemaTag.annotationPath];ze(t.chart,e.manifest,s,o,[s[ie.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,ie.DefinitionName.ToolBar,{actions:{}}),ze(t.chart.toolBar,e.manifest,a[ie.DefinitionName.ViewChartToolBar],o,[]);let c=a[ie.DefinitionName.ALPTable][ie.SchemaTag.annotationPath];if(c){let p=a[ie.DefinitionName.ALPTable],f=t.table=n.createInstance(i,ie.DefinitionName.ALPTable);cP(e,t,n,i,o);let u=c.substr(c.lastIndexOf("@"));ze(f,e.manifest,p,o,[p[ie.SchemaTag.key],u]),Zg(f,e,n,i,o,void 0,u)}}r(rN,"importALPViews");function sN(e){let t;return e.indexOf(ie.DefinitionName.LRTableView)>-1?t=ie.DefinitionName.LRTableView:e.indexOf(ie.DefinitionName.LRChartView)>-1?t=ie.DefinitionName.LRChartView:e===ie.DefinitionName.TableViewExtension&&(t=ie.DefinitionName.TableViewExtension),t}r(sN,"getViewTypeByDefinition");function lN(e,t,n,i,o){let a=t.table.views=n.createInstance(i,ie.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;ze(a,e.manifest,s[ie.DefinitionName.MultiTableModeV4],o,[]);let l=s[ie.DefinitionName.MultiTableModeV4].properties,c=Object.entries(l).sort((p,f)=>p[1][ie.SchemaTag.propertyIndex]-f[1][ie.SchemaTag.propertyIndex]);for(let p of c)if(p[1].$ref){let f=p[1].$ref.split(O)[1],u=sN(f),m=a[p[0]]=n.createInstance(i,u),b=pP(s,f);s[f].entitySet||(ze(m,e.manifest,s[f],o,[p[0],b]),u===ie.DefinitionName.LRTableView&&Zg(m,e,n,i,o,`${ie.DefinitionName.LineItemsOfView}::${p[0]}`,b)),Object.keys(m).length===0&&delete a[p[0]]}to(t.table,"views")}r(lN,"importLRViews");function cN(e,t,n,i,o,a){if(ze(t,e.manifest,e.jsonSchema,o,[]),t.filterBar=n.createInstance(i,ie.DefinitionName.FilterBar),ze(t.filterBar,e.manifest,e.jsonSchema.definitions[ie.DefinitionName.FilterBar],o,[]),a===ie.SchemaType.ListReport){let s=ie.DefinitionName.Table,l=e.jsonSchema.definitions[s],c;l.$ref&&(s=l.$ref.split(O)[1],l=e.jsonSchema.definitions[s],c=l.properties.columns.$ref.split(O)[1]),t.table=n.createInstance(i,ie.DefinitionName.Table);let p=pP(e.jsonSchema.definitions,s);ze(t.table,e.manifest,l,o,[s,p]),cP(e,t,n,i,o,c),Zg(t.table,e,n,i,o,c,p),lN(e,t,n,i,o)}else a===ie.SchemaType.AnalyticalListPage&&rN(e,t,n,i,o)}r(cN,"addSettings");function Mo(e,t){if(Je(),!e.jsonSchema)return;if(!e.manifest[ie.ManifestSection.ui5]||!e.manifest[ie.ManifestSection.ui5].routing){k(e.logger,{severity:ie.LogSeverity.Error,message:R.t("NOROUTING"),location:{path:ie.MANIFESTPATH,range:[ie.ManifestSection.ui5]}});return}let n=e.manifest[ie.ManifestSection.ui5].routing.targets;if(!n){k(e.logger,{severity:ie.LogSeverity.Error,message:R.t("NOTARGETS"),location:{path:ie.MANIFESTPATH,range:[ie.ManifestSection.ui5]}});return}let i=new bi,o=i.createPageInstance(ie.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=df(s);if("name"in s&&(l===ie.PageTypeV4.ListReport||l===ie.PageTypeV4.AnalyticalListPage)){cN(e,o,i,ie.PageTypeV4.ListReport,a,t);break}}return o}r(Mo,"createListReportConfig");var ce=$(B()),gs=require("@sap-ux/vocabularies-types/vocabularies/UI");function em(e,t=!1){var o,a,s;let i=(t?(o=e.split("<")[1])==null?void 0:o.slice(0,-1):e).split(`@${gs.UIAnnotationTerms.LineItem}`);return`${(a=i[0])==null?void 0:a.replace(/::/g,"/")}@${gs.UIAnnotationTerms.LineItem}${(s=i[1])==null?void 0:s.replace(/::/g,"#")}`}r(em,"getManifestId");function tm(e){return e.replace(/#/g,"::").replace(/\//g,"::")}r(tm,"getDefinitionId");function pN(e,t,n,i,o,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[tm(a)];if(l)for(let c in l.properties){l.properties[c].$ref.indexOf(ce.DefinitionName.CustomColumnOP)>-1?s=ce.DefinitionName.CustomColumnOP:s=ce.DefinitionName.ObjectPageTableColumn;let f=o.createInstance(ce.PageTypeV4.ObjectPage,s);ze(f,e.manifest,e.jsonSchema.definitions[s],e.routingId,[c],a),Object.keys(f).length>0&&(n[i].table.columns[c]=f)}}}r(pN,"fillTableColumnsInConfig");function fN(e,t,n,i,o=t){let a=e.jsonSchema.definitions[`${ce.DefinitionName.Actions}<${tm(o)}>`];if(a)for(let s in a.properties){let l=a.properties[s];if(typeof l=="object"&&l.$ref){let c=na(l.$ref),p=c.split("<")[0];n[t].table.toolBar.actions[s]=i.createInstance(ce.PageTypeV4.ObjectPage,p),ze(n[t].table.toolBar.actions[s],e.manifest,e.jsonSchema.definitions[c],e.routingId,[s],o),Object.keys(n[t].table.toolBar.actions[s]).length===0&&delete n[t].table.toolBar.actions[s]}}}r(fN,"fillTableActionsInConfig");function fP(e,t,n,i,o,a){let s=a||em(i),l=t.controlConfiguration[s];if(l){n[i]={},n[i].table=o.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageTable);let c=`${ce.DefinitionName.ObjectPageTable}<${a?tm(a):i.replace("#","::")}>`;ze(n[i].table,e.manifest,e.jsonSchema.definitions[c],e.routingId,[],s),n[i].table.toolBar=o.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ToolBar,{actions:{}}),fN(e,i,n,o,s),pN(e,l,n,i,o,s)}}r(fP,"fillTableInConfig");function uN(e,t,n,i,o){var l;let a=em(i);((l=t.controlConfiguration)==null?void 0:l[a])&&(n[i]={},n[i].form=o.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageForm,{actions:{}}))}r(uN,"fillFormInConfig");function uP(e,t,n,i,o){var a,s,l,c;for(let p in t){let f=t[p],u=p;if(p.includes(gs.UIAnnotationTerms.PresentationVariant)&&((a=f.$ref)!=null&&a.startsWith(O+ce.DefinitionName.ObjectPageSectionTableV4))){let m=f.$ref.split(O)[1];u=m?em(m,!0):p,fP(e,n,i,p,o,u)}else(s=f.$ref)!=null&&s.startsWith(O+ce.DefinitionName.ObjectPageSectionTableV4)?fP(e,n,i,p,o):f.properties&&f.properties.subsections?(i[p]={subsections:{}},uP(e,f.properties.subsections.properties,n,i[p].subsections,o)):(l=f.$ref)!=null&&l.startsWith(O+ce.DefinitionName.ObjectPageSectionForm)&&((c=f.$ref)!=null&&c.includes(`@${gs.UIAnnotationTerms.FieldGroup}::`))&&uN(e,n,i,p,o)}}r(uP,"fillSectionsInConfig");function dN(e,t,n,i){var a,s;let o=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(o)for(let l in o){if("subSections"in o[l])continue;let p=i.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageCustomSectionFragment);ze(p,e.manifest,e.jsonSchema.definitions[ce.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),n.sections[l]=p}}r(dN,"fillCustomSectionsInConfig");function gN(e,t,n,i,o){var s,l;let a=e.definitions[ce.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let c in a.properties){let p=a.properties[c],f,u=(s=a.properties[c].$ref)==null?void 0:s.split(O)[1];u&&(p=e.definitions[u],f=u.split("<")[0]),(f==null?void 0:f.includes(ce.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[c]=f?n.createInstance(ce.PageTypeV4.ObjectPage,f):{},ze(t.header.sections[c],i,p,o,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ce.FACETTITLEPREFIX)[1]))}}}r(gN,"fillHeaderFacets");function mN(e,t,n){let i=n.createPageInstance(ce.PageTypeV4.ObjectPage),o=t.options&&t.options.settings;return i.header=n.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageHeader),ze(i.header,e.manifest,e.jsonSchema.definitions[ce.DefinitionName.ObjectPageHeader],e.routingId,[]),i.layout=n.createInstance(ce.PageTypeV4.ObjectPage,ce.DefinitionName.ObjectPageLayout),ze(i.layout,e.manifest,e.jsonSchema.definitions[ce.DefinitionName.ObjectPageLayout],e.routingId,[]),ze(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),o&&(o.controlConfiguration&&e.jsonSchema.definitions[ce.DefinitionName.Sections]&&(i.sections={},uP(e,e.jsonSchema.definitions[ce.DefinitionName.Sections].properties,o,i.sections,n)),dN(e,o,i,n),gN(e.jsonSchema,i,n,e.manifest,e.routingId)),i}r(mN,"fillObjectPageConfig");function bp(e){if(Je(),!e.manifest[ce.ManifestSection.ui5]||!e.manifest[ce.ManifestSection.ui5].routing){k(e.logger,{severity:ce.LogSeverity.Error,message:R.t("NOROUTING"),location:{path:ce.MANIFESTPATH,range:[ce.ManifestSection.ui5]}});return}let t=e.manifest[ce.ManifestSection.ui5].routing.targets;if(!t){k(e.logger,{severity:ce.LogSeverity.Error,message:R.t("NOTARGETS"),location:{path:ce.MANIFESTPATH,range:[ce.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){k(e.logger,{severity:ce.LogSeverity.Error,message:R.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ce.MANIFESTPATH,range:[ce.ManifestSection.ui5,"routing"]}});return}let i=new bi;return mN(e,n,i)}r(bp,"createObjectPageConfigV4");var he=$(B());var nm=[],Tp={};function yN(e,t){let n=e.target,i=t.target,o=Array.isArray(n),a=Array.isArray(i);return o&&a?n.length-i.length:!o&&!a?0:o?1:-1}r(yN,"routesSorter");function im(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(o=>!i.includes(o));return n[0]}r(im,"resolveTarget");function hN(e){let t={};e=e.concat().sort(yN);let n=[];for(let i of e){let o=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=im(i.target,n),n.push(i.target)):a=i.target;for(let s of o){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}r(hN,"populateAssociations");function bN(e,t,n){let i;return e.name?e.name===he.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=he.PageTypeV4.CustomPage:e.name.endsWith(he.PageTypeV4.ListReport)||e.name.endsWith(he.PageTypeV4.AnalyticalListPage)?i=he.PageTypeV4.ListReport:e.name.endsWith(he.PageTypeV4.ObjectPage)?i=he.PageTypeV4.ObjectPage:i=he.PageTypeV4.CustomPage:"viewId"in e?i=he.PageTypeV4.CustomPage:(k(t,{severity:he.LogSeverity.Error,message:R.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:he.MANIFESTPATH,range:[`${he.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in he.ViewTypes&&"viewName"in e&&(i=he.PageTypeV4.CustomPage)),i}r(bN,"determinePageType");function TN(e){let t=ta(e.page.pageType,e.page.entitySet,e.target.viewId||e.pageType===he.PageTypeV4.CustomPage&&e.target.id);if(!t)return;let n=Object.keys(e.schemas).find(i=>i.includes(t))||Object.keys(e.schemas).find(i=>i.includes(t.slice(0,-1)))||Object.keys(e.schemas).find(i=>i.includes(e.page.pageType));if(n){if(e.page.pageType===he.PageTypeV4.ObjectPage){let i={manifest:e.manifest,jsonSchema:e.schemas[n],routingId:e.id,logger:e.logger};e.page.config=bp(i)}else if(e.templateType===he.TemplateType.ListReportObjectPageV4){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger};e.page.config=Mo(i,he.SchemaType.ListReport)}else if(e.templateType===he.TemplateType.AnalyticalListPageV4){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger};e.page.config=Mo(i,he.SchemaType.AnalyticalListPage)}else if(e.templateType===he.TemplateType.FreestylePageV4&&e.page.pageType===he.PageTypeV4.ListReport){let i={manifest:e.manifest,jsonSchema:e.schemas[n],logger:e.logger},a=Za(e.target)===he.TemplateType.AnalyticalListPageV4?he.SchemaType.AnalyticalListPage:he.SchemaType.ListReport;e.page.config=Mo(i,a)}}}r(TN,"convertSettingsToConfig");function SN(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");nm.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");nm.push(t[t.length-1])}}r(SN,"updateUnhandledControllers");function vN(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}r(vN,"setVariantManagmentAndNavigation");function PN(e,t,n){var i,o;if("viewId"in e)t.view={id:e.viewId,name:e.viewName};else if(n===he.PageTypeV4.CustomPage){let a=((o=(i=e.options)==null?void 0:i.settings)==null?void 0:o.viewName)||e.viewName;t.view={...e.id&&{id:e.id},...a&&{name:a}}}}r(PN,"evaluateCustomPageSettings");function AN(e,t,n,i){var p;let o=e.targets[t],a=bN(o,i.logger,t),s={pageType:a};if(o.options&&(s.entitySet=(p=o.options.settings)==null?void 0:p.entitySet),o.controlAggregation&&(s.controlAggregation=o.controlAggregation),Tp[t]&&Tp[t].indexOf(".")!==-1){let f=Tp[t].split(".");s.navigationProperty=f[f.length-1]}PN(o,s,a),vN(o,s),SN(o);let l=e.routes.find(f=>(f==null?void 0:f.target)&&f.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),!("template"in(s.view??{}))&&"name"in o&&o.name&&(s.template=o.name),n[t]=s;let c={target:o,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType};TN(c)}r(AN,"getSinglePageAndConfig");function dP(e){let t={},n=e.manifest[he.ManifestSection.ui5].routing;if(!n||!n.routes){let i=R.t("NOROUTING");return k(e.logger,{severity:he.LogSeverity.Error,message:i,location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}}),t}Tp=hN(n.routes||[]);for(let i in n.targets)AN(n,i,t,e);return t}r(dP,"getPagesAndConfigs");function gP(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return im(t?t.target:e.routes[0].target)}else return}r(gP,"getHome");function mP(e){var t,n,i,o;if((t=e==null?void 0:e.config)!=null&&t.flexibleColumnLayout||(n=e==null?void 0:e.config)!=null&&n.viewPath)return{flexibleColumnLayout:(i=e==null?void 0:e.config)==null?void 0:i.flexibleColumnLayout,...((o=e==null?void 0:e.config)==null?void 0:o.viewPath)&&{viewPath:e.config.viewPath}}}r(mP,"getSettings");function ms(e,t){let n=e[he.ManifestSection.ui5].routing,i={};if(n)for(let o in n.targets){let a=n.targets[o];ol(t,a.name)&&(i[o]=a)}return i}r(ms,"getPages");var om=class om extends Ei{constructor(t){Je();let n=new Na,i=Xe(he.SchemaType.Application),o=t.appSchemas[i.filename];ze(n,t.manifest,o.definitions.AppSettings,"",[]),super(t,gP(t.manifest[he.ManifestSection.ui5].routing),dP(t),{...mP(t.manifest[he.ManifestSection.ui5].routing),...n}),this.unhandledControllers=nm}};r(om,"V4AppProvider");var Ua=om;var yP=require("fs"),Uo=require("path"),hP=$(B()),am=$(B());var bP=r((e,t,n=__dirname)=>{let i=t===am.SchemaType.Application?`${am.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,Uo.join)(n,"schemas",e,i);if(n.endsWith((0,Uo.join)("specification","packages","specification")))return(0,Uo.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Uo.join)("src","specification")))return(0,Uo.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let o=n.substring(0,n.indexOf("node_modules")+12);return(0,Uo.join)(o,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),CN=r(async e=>new Promise((t,n)=>{(0,yP.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(JSON.parse(o))})}),"readJsonSchema"),Sp=r(async(e,t)=>{try{let n=bP(e||hP.FioriElementsVersion.v4,t,__dirname);return await CN(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function EN(e,t){let n={},i=[];switch(i=[K.SchemaType.Application],e){case K.TemplateType.ListReportObjectPageV4:case K.TemplateType.AnalyticalListPageV4:i.push(K.SchemaType.ListReport,K.SchemaType.ObjectPage);break;case K.TemplateType.FreestylePageV4:i.push(K.SchemaType.FreestylePage),t===K.FioriElementsVersion.v4&&i.push(K.SchemaType.ListReport,K.SchemaType.ObjectPage);break;case K.TemplateType.ListReportObjectPageV2:i.push(K.SchemaType.ListReport,K.SchemaType.ObjectPage);break;case K.TemplateType.AnalyticalListPageV2:i.push(K.SchemaType.AnalyticalListPage,K.SchemaType.ObjectPage);break;case K.TemplateType.OverviewPageV2:i.push(K.SchemaType.OverviewPage);break;default:break}for(let o of i){let a=Xe(o);n[a.filename]=await Sp(t,o)}return n}r(EN,"getGenericSchemas");function SP(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=kt(K.UIVOCABULARY,e);for(let o of n){if(!o.annotations||!o.annotations[i])continue;let{LineItem:a,Facets:s}=o.annotations[i];a&&!a.qualifier&&t.LineItems.push(o.name),s&&!s.qualifier&&t.Facets.push(o.name)}return t}r(SP,"getAnnotationsForUi");function hi(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}r(hi,"getEntitySetByEntitySetName");function TP(e,t,n){let i=Qr(e.manifest[K.ManifestSection.generic].pages,K.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let o in i){let a=i[o].entitySet,s=hi(a,e.serviceAVT);s||k(e.logger,{severity:K.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Xe(K.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),c=Xe(K.SchemaType.ObjectPage);n[l.filename]=ys(e,t[c.filename])}}r(TP,"generateObjectPageSchemasV2");function xN(e,t,n){let i=ms(e.manifest,K.v4.FE_TEMPLATE_V4_LIST_REPORT),o=ms(e.manifest,K.v4.FE_TEMPLATE_V4_ALP),a={...i,...o};for(let s in a){let l=a[s].options.settings.entitySet,c=hi(l,e.serviceAVT);e.entityType=c==null?void 0:c.entityType,e.entitySet=c;let p=Xe(K.SchemaType.ListReport,(c==null?void 0:c.name)||l),f=Xe(K.SchemaType.ListReport);e.templateType===K.TemplateType.FreestylePageV4&&(e.templateType=Za(a[s])),n[p.filename]=Kr(e,t[f.filename],c,a[s].name)}}r(xN,"generateListReportSchemasV4");function IN(e,t,n){var o;let i=Qr(e.manifest[K.ManifestSection.generic].pages,K.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=hi(s,e.serviceAVT);let l=Xe(K.SchemaType.ListReport,((o=e.entitySet)==null?void 0:o.name)||s),c=Xe(K.SchemaType.ListReport);t[l.filename]=Wr(e,n[c.filename])}}r(IN,"generateAppSchemaV2LR");function ON(e,t,n){let i=ms(e.manifest,K.v4.FE_TEMPLATE_V4_OBJECT_PAGE);for(let o in i){let a=i[o].options.settings.entitySet,s=hi(a,e.serviceAVT);s||k(e.logger,{severity:K.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySet:a})});let l=Xe(K.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),c=Xe(K.SchemaType.ObjectPage);n[l.filename]=Jr(e,t[c.filename],s)}}r(ON,"generateObjectPageSchemasV4");function FN(e,t,n,i){var a;let o={};if(i===K.TemplateType.ListReportObjectPageV2&&n)IN(e,o,t),TP(e,t,o);else if(i===K.TemplateType.AnalyticalListPageV2&&n){let s=Qr(e.manifest[K.ManifestSection.generic].pages,K.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let c=s[l].entitySet;e.entitySet=hi(c,e.serviceAVT);let p=Xe(K.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||c),f=Xe(K.SchemaType.AnalyticalListPage);o[p.filename]=hs(e,t[f.filename])}TP(e,t,o)}else if(i===K.TemplateType.OverviewPageV2){let s=Xe(K.SchemaType.OverviewPage),l=Xe(K.SchemaType.OverviewPage);o[s.filename]=bs(t[l.filename],e.manifest)}return{...t,...o}}r(FN,"generateAppSchemasV2");function LN(e,t,n){let i={};return n&&(xN(e,t,i),ON(e,t,i)),{...t,...i}}r(LN,"generateAppSchemasV4");async function vP(e,t,n){let i=await EN(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===K.FioriElementsVersion.v4?LN(e,i,t):FN(e,i,t,n)}r(vP,"generateAppSchemas");function VN(e){let t,n=[];switch(e.templateType){case K.TemplateType.ListReportObjectPageV2:case K.TemplateType.AnalyticalListPageV2:t=new Bc(e);break;case K.TemplateType.AnalyticalListPageV4:case K.TemplateType.ListReportObjectPageV4:case K.TemplateType.FreestylePageV4:t=new Ua(e);break;case K.TemplateType.OverviewPageV2:t=new Gc(e);break;default:t=new Ua(e);break}if(t){let{appConfig:i,pageConfigs:o}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in o)n.push({dataSourceUri:a,fileContent:JSON.stringify(o[a],null,4)})}return n}r(VN,"importConfigs");function PP(e,t){let n=[];for(let i of Object.keys(e).sort()){let o;i===K.SchemaType.Application?o=`${K.DirName.Schemas}/${K.FileName.App[0].toUpperCase()}${K.FileName.App.slice(1)}`:o=`${K.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:o,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}r(PP,"getFileList");async function rm(e){var S,L;Je();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,featureToggles:s}=e;new nr().doesUi5VersionFitDistTags((L=(S=t["sap.ui5"])==null?void 0:S.dependencies)==null?void 0:L.minUI5Version,i);let c=yf(t),p=Tn(n,i),f=SP(p),u=Yi(t,c,i),b=await vP({templateType:u,manifest:t,serviceAVT:p,fragments:o,views:a,fioriElementsVersion:c,logger:i,featureToggles:s},f,u);return PP(b)}r(rm,"importProjectSchema");async function sm(e){var ee,te;Je();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,flex:s,featureToggles:l}=e;new nr().doesUi5VersionFitDistTags((te=(ee=t["sap.ui5"])==null?void 0:ee.dependencies)==null?void 0:te.minUI5Version,i);let p=yf(t),f=CT(t),u=Tn(n,i),m=Yi(t,p,i),b={templateType:m,manifest:t,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},S=SP(u),L=await vP(b,S,m),H=VN({manifest:t,flexChanges:s,appSchemas:L,templateType:m,logger:i,serviceAVT:u,fragments:o,views:a,fioriElementsVersion:p,oDataVersion:f});return PP(L,H)}r(sm,"importProjectSchemaAndConfig");var NN=["header","sections","footer"];function DN(e,t,n,i){t.properties[n][j.SchemaTag.artifactType]=j.ArtifactType.FlexChange;let o;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":o=j.ControlType.Section;break;case"ObjectPageSubSectionV2":o=j.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":o=j.ControlType.Group;break;case"ObjectPageSubSectionChartV2":o=j.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":o=j.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":o=j.ControlType.ObjectPageHeaderSection;break}o&&(Oe(e,t,n),t.properties[n][j.SchemaTag.controlType]=o)}r(DN,"addFlexChangeForSection");function RN(e,t,n,i,o){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Nn.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:c}=Pl(a,o);if(!l)return;let p=a.Label||s,f=`HeaderAction<${Le(l)}>`;t.definitions[f]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let u=a.fullyQualifiedName.replace(`@${Nn.UIAnnotationTerms.Identification}`,`/@${Nn.UIAnnotationTerms.Identification}`);t.definitions[f][j.SchemaTag.annotationPath]=`/${u}`,t.definitions[f][j.SchemaTag.actionType]=j.ActionType.Annotation,t.definitions[f].description=p,t.definitions[f][j.SchemaTag.keys]=[{name:j.SchemaKeyName.action,value:s}],c&&(t.definitions[f][j.SchemaTag.target]=c),i.properties[l]={$ref:`${O}${f}`}}})}r(RN,"addHeaderActionCallBackV2");function jN(e,t,n,i){i.forEach(o=>{if(o.Determining&&o.$Type===Nn.UIAnnotationTypes.DataFieldForAction){let a=ci(o).split("::").splice(1).join("::"),s=Ct(o,e),l=Le(`${j.DefinitionName.ObjectPageFooterAction}<${a}>`),c=o.fullyQualifiedName.replace(`@${Nn.UIAnnotationTerms.Identification}`,`/@${Nn.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[j.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${c}`}}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${O}${l}`}}})}r(jN,"addFooterActionCallBackV2");function wN(e,t,n,i,o,a,s,l){let c,p;if(a.ID&&a.Label?c=a.ID+a.Label.replace(/\s+/g,""):a.ID?c=a.ID:a.Label&&(c=a.Label.replace(/\s+/g,"")),c?p=`${j.DefinitionName.CustomColumns}<${n}><${s}><${c}>`:p=`${j.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let f=`${j.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[f]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let u=[],m=o==null?void 0:o.entityTypes.find(S=>S.name===i),b=Fo(t[j.ManifestSection.generic].pages,n,u);return sa(e,m,b,t,l,p,f,a.ID),p}r(wN,"ensureCustomColumnDefinitionExists");function Ss(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&DN(e,t,"visible",n)}r(Ss,"addAppSchemaDefinition");function $N(e,t,n){e.properties[t]={$ref:`${O}${n}`}}r($N,"addSectionReference");function Ts(e,t,n,i){let o=Le(`${e}<${t}>`);try{i.definitions[o]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[o].properties.columns.$ref=O+t,i.definitions[o].properties.toolBar.$ref=`${O}ObjectPageToolBar<${t}>`,i.definitions[o][j.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[o].title=j.FACETTITLEPREFIX+n.ID,i.definitions[o][j.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[o].description=j.DefinitionName.Table,i.definitions[o].properties.quickVariantSelection.$ref=`${O}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${O}QuickVariant<${t}>`,Ai(n.entityType,i,`QuickVariant<${t}>`)}r(Ts,"addTableDefinition");function MN(e,t,n,i,o,a){if(i.base!==j.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=$n(n,i,t);let c=n.definitions[l];Ss(n,c,a,"ObjectPageSectionTableV2"),c.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[j.PropertyName.table])),c.properties.table.anyOf=[{$ref:`${O}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${O}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${O}ObjectPageAnalyticalTable<${t}>`},{$ref:`${O}ObjectPageGridTable<${t}>`},{$ref:`${O}ObjectPageTreeTable<${t}>`}],c[j.SchemaTag.annotationPath]=i.annotationPath,ri(i,c,t),vi(i,c,t),Ts("ObjectPageResponsiveTableWithMultiSelect",t,i,n),Ts("ObjectPageResponsiveTableWithInlineDelete",t,i,n),Ts("ObjectPageGridTable",t,i,n),Ts("ObjectPageTreeTable",t,i,n),Ts("ObjectPageAnalyticalTable",t,i,n);let p,f=cS(i.entityType,e.serviceAVT);f&&(p=wN(n,e.manifest,f.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let u in o){let m=o[u];m.base===j.FacetBase.LineItem&&(m.ID===s||u.includes(s))&&ra(!0,n,m.target,m.entityType,m.ID||u,p)}}r(MN,"handleLineItem");function UN(e,t,n,i,o,a=!1){e.definitions[t]=$n(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Ss(e,s,o,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[j.SchemaTag.isViewNode]=!0}r(UN,"handleSubSection");function kN(e,t,n,i,o){e.definitions[t]=$n(e,n,i);let a=e.definitions[t];Ss(e,a,o,"ObjectPageSectionChartV2")}r(kN,"handleSectionChart");function AP(e,t,n,i,o,a){e.definitions[t]=$n(e,n,i);let s=e.definitions[t];Ss(e,s,o,a||"CommonHeaderFacetSettings"),s[j.SchemaTag.annotationPath]=n.annotationPath,s[j.SchemaTag.isViewNode]=!0,s[j.SchemaTag.dataType]=lo(n==null?void 0:n.target)}r(AP,"handleHeaderFacet");function _N(e,t,n){let i=e.definitions[t],o=i[j.SchemaTag.dataType]=lo(n==null?void 0:n.target);o==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:o==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}r(_N,"addDataPointHeaderFacetDataType");function BN(e,t,n,i,o){e.definitions[t]=$n(e,n,i);let a=e.definitions[t];return Ss(e,a,o,"ObjectPageSectionFormV2"),a[j.SchemaTag.annotationPath]=n.annotationPath,a[j.SchemaTag.isViewNode]=!0,a}r(BN,"handleFormSection");function HN(e,t,n){let i=new Map([[j.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[j.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[j.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[j.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[j.FacetBase.Form,"ObjectPageHeaderSectionForm"],[j.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),o=new Map([[j.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[j.FacetBase.LineItem,"ObjectPageSectionTableV2"],[j.FacetBase.Chart,"ObjectPageSectionChartV2"],[j.FacetBase.Address,"ObjectPageSectionAddressV2"],[j.FacetBase.Contact,"ObjectPageSectionContactV2"],[j.FacetBase.Form,"ObjectPageSectionFormV2"],[j.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[j.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[j.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[j.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[j.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[j.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[j.FacetBase.Form,"ObjectPageSubSectionFormV2"],[j.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):o.get(e)}r(HN,"getSectionType");function GN(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Nn.UIAnnotationTerms.Facets}`,e.base)),`${i}`}r(GN,"getReferenceKey");function EP(e,t,n,i,o,a=!1,s=!1){let l=t[n],c=HN(l.base,a,s),p=GN(l,n,c),f=`${c}<${p}>`;switch($N(i,p,f),c){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,UN(o,f,l,n,c,s);let u=o.definitions[f].properties.subsections;for(let m in l.facets)EP(e,l.facets,m,u,o,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{MN(e,p,o,l,t,c),pa(o,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{kN(o,f,l,p,c);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let u=BN(o,f,l,p,c);vl(j.SectionType.Section,l,u,o,j.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{tr(l,p,i,o,j.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{tr(l,p,i,o,j.SectionType.Section,j.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{AP(o,f,l,p,c);break}case"ObjectPageHeaderSectionDataPoint":{AP(o,f,l,p,c),_N(o,f,l);break}default:i.properties[n]=$n(o,l,p)}}r(EP,"addSection");function CP(e,t,n,i,o,a=!1){if(e)for(let s in t)EP(i,t,s,n,o,!1,a)}r(CP,"addSectionsFromFacets");function xP(e,t,n){var f,u,m,b,S,L;let i=t.definitions[j.DefinitionName.Sections];i[j.SchemaTag.isViewNode]=!0,(f=e.entitySet)!=null&&f.entityType&&(i[j.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Nn.UIAnnotationTerms.Facets}`);let o=t.definitions[j.DefinitionName.HeaderSections];if(o[j.SchemaTag.isViewNode]=!0,o.properties||(o.properties={}),o.additionalProperties=!1,(u=e.entitySet)!=null&&u.entityType&&(o[j.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Nn.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=il((m=e.entitySet)==null?void 0:m.entityType,e.serviceAVT,j.FioriElementsVersion.v2,e.logger),s=nl((b=e.entitySet)==null?void 0:b.entityType,e.serviceAVT,j.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,c=s&&!!Object.keys(s).length;if(!l&&!c)return;for(let V in n){let H=n[V];(L=(S=e.entitySet)==null?void 0:S.name)!=null&&L.includes(H.entitySet)?(CP(l,a,i,e,t),CP(c,s,o,e,t,!0)):xP(e,t,H.pages)}let p=t.definitions.CustomSections;for(let V in p.properties)i.properties[V]=p.properties[V]}r(xP,"addSections");function WN(e,t,n,i){El(e,n),Cl(e,n,t,i,RN,!0)}r(WN,"addHeader");function QN(e,t,n,i){let o=xT(t,n,i,void 0,!0);o&&dS(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],o,["ID","key"])}r(QN,"addRelatedFacetKeysType");function ys(e,t){var s;Je();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[j.PropertyName.sections]={$ref:O+"Sections"};let o=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=o;let a=e.manifest[j.ManifestSection.generic].pages;return a?(WN(n,e.entitySet,o,e.serviceAVT),n.definitions[j.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},xP(e,n,a),QN(n,o,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[j.SchemaTag.isViewNode]=!0):delete n.properties[j.PropertyName.sections]),Al(n,e,j.FioriElementsVersion.v2,jN,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,Un(n,NN),n):(k(e.logger,{severity:j.LogSeverity.Error,message:R.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:j.MANIFESTPATH,range:[j.ManifestSection.generic]}}),n)}r(ys,"generateObjectPageSchemaV2");var Re=$(B());var KN=["filterBar","keyPerformanceIndicators","chart","table","footer"];function IP(e,t){let n=t.value;return n.includes(Re.UIVOCABULARYALPHADOT+e)?n.replace(Re.UIVOCABULARYALPHADOT,""):""}r(IP,"retrieveNameWithoutVocabulary");function JN(e,t,n){var S;let i=(S=e==null?void 0:e.component)==null?void 0:S.settings,o=i==null?void 0:i.qualifier,a=r(function(L){let V=L+(o?"#"+o:"");return t[V]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let L=o?R.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:o}):R.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return k(n,{severity:Re.LogSeverity.Error,message:L}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let c=(l==null?void 0:l.Visualizations)||[],p="",f="";c.some(function(L){return p=p||IP("LineItem",L),f=f||IP("Chart",L),p&&f}),p=p||"LineItem",f=f||"Chart";let u=t[p],m=t[f],b=(u||i.quickVariantSelectionX?0:1)+(m?0:2);if(b>0){let L=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][b-1],V=R.t(L);k(n,{severity:Re.LogSeverity.Warning,message:V})}return{lineItemAnnotation:u,chartAnnotation:m}}r(JN,"getLineItemAndChartAnnotation");function XN(e,t){let n=e.definitions[Re.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Re.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}r(XN,"addChart");function hs(e,t){var s,l,c,p,f;let n=JSON.parse(JSON.stringify(t));n.properties[Re.PropertyName.table].anyOf[0].$ref=O+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${O}${Re.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${O}${Re.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Re.PropertyName.table].anyOf[1].$ref=`${O}ALPGridTable<LineItems>`;try{let u=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));u.properties.columns.$ref=`${O}${Re.DefinitionName.LineItems}`,u.properties.toolBar.$ref=`${O}${Re.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=u}catch{throw new Error(R.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[Re.PropertyName.table].anyOf[2].$ref=`${O}ALPAnalyticalTable<LineItems>`;let o=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));o.properties.columns.$ref=`${O}${Re.DefinitionName.LineItems}`,o.properties.toolBar.$ref=`${O}${Re.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=o,nS(n.definitions.TableColumnExtensionTypeV2.enum,[Re.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let a=(s=e.entitySet)==null?void 0:s.entityType;if(!a)k(e.logger,{severity:Re.LogSeverity.Error,message:R.t("NOENTITYTYPE4SET",{entitySetName:(l=e.entitySet)==null?void 0:l.name})});else{la(n);let u=[],m=Fa(e.manifest[Re.ManifestSection.generic].pages,u,e.logger),b=(c=a==null?void 0:a.annotations)==null?void 0:c.UI,{lineItemAnnotation:S,chartAnnotation:L}=JN(m,b,e.logger);S&&qT.forEach(H=>{n.definitions[H][Re.SchemaTag.annotationPath]=Ut(a==null?void 0:a.fullyQualifiedName,S.term,S.qualifier)}),ra(!1,n,S,a),L&&XN(n,L);let V=(f=(p=a==null?void 0:a.annotations)==null?void 0:p.UI)==null?void 0:f.SelectionFields;if(yl(n,V,a),pa(n,a),!m)return k(e.logger,{severity:Re.LogSeverity.Error,message:R.t("NOLR"),location:{path:Re.MANIFESTPATH,range:[Re.ManifestSection.generic]}}),n;sa(n,a,m,e.manifest,e.fragments),Od(a,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return Un(n,KN),n}r(hs,"generateAnalyticalListReportSchemaV2");var OP=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function qN(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let o=i.$ref.split("/");return o[o.length-1]})}r(qN,"getCardDefinitionNames");function zN(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),o=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(o).filter(c=>i.includes(o[c].dataSource)));let s=e.definitions;s.CardModel={type:"string"},ro(a,s.CardModel);let l=qN(e);for(let c of l){let p=s[c].properties.model;delete p.type,p.$ref=O+"CardModel"}}r(zN,"addModelsEnum");function YN(e,t){let n=e.properties;for(let i in OP){let o=OP[i],a=o.key;n[a]&&(n[a].messages=[{text:oa(a,{since:o.since,deprecated:{since:o.deprecated.since,text:o.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}r(YN,"markDeprecatedProperties");function FP(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},YN(n,t),zN(n,t),n}r(FP,"generateOverviewPageSchemaV2");var Ki=$(B());function lm(e,t,n,i,o,a){Je();let s=Tn(e,t),l={templateType:a,fioriElementsVersion:Ki.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=hi(o,l.serviceAVT),l.entitySet||k(l.logger,{severity:Ki.LogSeverity.Error,message:R.t("ENTITYSETNOTFOUND",{entitySetName:o})}),l}r(lm,"prepareGenerationV2");function cm(e,t,n,i,o,a){let s=lm(n,a,i,o,t,Ki.TemplateType.ListReportObjectPageV2);return ys(s,e)}r(cm,"generateObjectPageInterfaceV2");function pm(e,t,n,i,o,a){let s=lm(n,a,i,o,t,Ki.TemplateType.ListReportObjectPageV2);return Wr(s,e)}r(pm,"generateListReportInterfaceV2");function fm(e,t,n,i,o,a){let s=lm(n,a,i,o,t,Ki.TemplateType.AnalyticalListPageV2);return hs(s,e)}r(fm,"generateAnalyticalListPageInterfaceV2");function bs(e,t){return FP(e,t)}r(bs,"generateOVPInterfaceV2");var vs=$(B());var LP=r((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),ZN=r((e,t)=>({settings:{...e&&{entitySet:e},...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function eD(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}r(eD,"initializeRouting");function tD(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}r(tD,"setTargetOptions");function nD(e,t,n){let i="";return e.forEach((o,a)=>{let s="";t&&t.pageType!==vs.PageTypeV4.ListReport&&(n[o]?s=`({${n[o]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${o}${s}`}),`${i}:?query:`}r(nD,"calculateQueryPattern");function VP(e,t,n,i){e.unshift(t);let o;for(let a in n){if(typeof n[a].navigation=="object"){let s=Object.keys(n[a].navigation).find(l=>n[a].navigation[l].route===i);s&&(t=s,o=n[a])}if(o){VP(e,t,n,a);return}}}r(VP,"fillNavigationParts");function iD(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let o=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[o]=a}),t}r(iD,"fillParentKeys");function oD(e,t,n,i,o){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(tD(n,a,s),s!=null&&s.route&&!i.routes.some(c=>c.name===s.route)){let c=l==null?void 0:l.routePattern;if(!c){let p=[];VP(p,a,t,o);let f=iD(e.routePattern);c=nD(p,l,f)}i.routes.push(LP(c,s.route,s.route))}}}r(oD,"handlePageNavigation");function aD(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(o=>o.name===n);i!==-1&&e.routes.splice(i,1)}}r(aD,"removeDeletedPages");function rD(e,t){var n,i;e.entitySet?(t.options||(t.options=ZN(e.entitySet,e.variantManagement)),t.options.settings.entitySet=e.entitySet):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.entitySet}r(rD,"transferEntitySet");function sD(e,t,n){let i=e.routes.find(o=>o.target&&o.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}r(sD,"updateRouteLayout");function lD(e,t,n){return e.pageType&&e.pageType!==vs.PageTypeV4.CustomPage?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:e.template??`sap.fe.templates.${e.pageType}`}:e.view&&(t={...t,viewName:e.view.name},e.view.id&&(t.viewId=e.view.id)),t}r(lD,"fillTarget");function NP(e,t,n){var o,a;let i=eD(n[vs.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(LP(":?query:",e,e));for(let s in t){let l,c=t[s];i.targets[s]&&(l=i.targets[s]),l=lD(c,l,s),rD(c,l),l&&!c.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(o=l==null?void 0:l.options)==null?void 0:o.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),oD(c,t,l,i,s),sD(i,s,c),i.targets[s]=l}return aD(i,t),i}r(NP,"transformRoutingV4");var Ft=$(B());function DP(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}r(DP,"updateDependencyLib");function RP(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}r(RP,"extractLastIdPart");var jP=[Ft.FlexibleColumnLayoutAggregations.BeginColumnPages,Ft.FlexibleColumnLayoutAggregations.MidColumnPages,Ft.FlexibleColumnLayoutAggregations.EndColumnPages],wP=r((e,t,n,i=[],o=0)=>{var p;let a=e.routing.routes.find(f=>f.name===n);if(!a)return;typeof a.target=="string"&&(a.target=o<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:jP[o]?s.controlAggregation=jP[o]:s.controlAggregation=Ft.FlexibleColumnLayoutAggregations.EndColumnPages;let c=a.pattern.replace(":?query:","");if(c?s.contextPattern=c.startsWith("/")?c:`/${c}`:s.contextPattern="",l.navigation){o++;for(let f in l.navigation)wP(e,t,l.navigation[f].route,a.target,o)}},"applyFCLRouting"),cD=r((e,t)=>{e.routing.config.routerClass=Ft.v4.FIORI_FCL_ROUTER_CLASS,wP(e,t,t.home);let n={viewName:Ft.FIORI_FCL_ROOT_VIEW_NAME,type:Ft.ViewTypes.XML,async:!0,id:Ft.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,DP(e,Ft.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),pD=r(e=>{var t;e.rootView&&e.rootView.viewName===Ft.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Ft.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),$P=r((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?cD(e,t):pD(e)},"updateFcl");var w=$(B());var vp=require("@sap-ux/vocabularies-types/vocabularies/UI");var MP=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],fD=[...MP,"views","initialLoad","template"],uD=r(e=>{let t=w.defaultExportResult;return t.fragments=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function dD(e,t,n){var s,l,c;let i=`@${vp.UIAnnotationTerms.LineItem}`,o=`@${vp.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[w.DefinitionName.TableSPV])==null?void 0:s[w.SchemaTag.annotationPath];if(e.length>1&&t.config.table.annotationPath){let p=(l=t.appSchema.definitions[w.DefinitionName.ALPTable])==null?void 0:l[w.SchemaTag.annotationPath];i=o=p&&p.substr(p.lastIndexOf("@"))}else if((c=n.table)!=null&&c.annotationPath)i=o=`@${n.table.annotationPath}`;else if(e[0]===w.PropertyName.table&&a){let p=a.split("/");i=o=p[p.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:o}}r(dD,"determineTargetAnnotationOfTable");function gD(e,t,n){var a,s;let i,o;if(e.length>1){let l=(a=t.appSchema.definitions[w.DefinitionName.ALPChart])==null?void 0:a[w.SchemaTag.annotationPath];i=o=l&&l.substr(l.lastIndexOf("@"))}else i=o=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:o}}r(gD,"determineTargetAnnotationOfChart");function mD(e,t,n,i,o){var a;if(e.length===3)t=n=i[w.SchemaTag.annotationPath]&&i[w.SchemaTag.annotationPath].substr(i[w.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split(O)[1],l=s&&o.appSchema.definitions[s],c=(l==null?void 0:l[w.SchemaTag.annotationPath])&&l[w.SchemaTag.annotationPath].substr(l[w.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${c}`:c}return{targetAnnotation:t,targetAnnotationEncoded:n}}r(mD,"determineTargetAnnotationBasedOnParentView");function yD(e,t){var a;let n,i,o=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(o)({targetAnnotation:n,targetAnnotationEncoded:i}=mD(t,n,i,o,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[w.SchemaTag.annotationPath]&&l[w.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let c=l[w.SchemaTag.annotationPath].split("/");return n=i=c[c.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[w.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}r(yD,"determineTargetAnnotationOfView");function hD(e,t,n){let i,o;return e[2].split(`@${w.UIVOCABULARY}`)[1]?n&&n.indexOf(w.FACETTITLEPREFIX)>-1?i=o=n.split(w.FACETTITLEPREFIX)[1]:e[2]?i=o=e[2].split("@")[1]:o&&(i=o=o.replace(/::/g,"/")):(t=!0,o=e[2],i=o&&o.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:o,targetAnnotation:i}}r(hD,"determineTargetAnnotationOfHeaderSections");function bD(e,t){let n=e[1].split(`@${w.UIVOCABULARY}`)[1],i,o;if(e[0]==="sections"&&!n)t=!0,o=e[1],i=o&&o.replace(/::/g,"/");else{let a=RP(e[1]);o=a&&a.replace(/\//g,"::"),i=o&&o.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:o,targetAnnotation:i}}r(bD,"determineTargetAnnotationOfSections");function TD(e,t,n){let i,o,a=!1;return e[0]===w.PropertyName.table&&e[1]!==w.PropertyName.views?{targetAnnotationEncoded:o,targetAnnotation:i}=dD(e,t,n):e[0]===w.PropertyName.chart&&t.templateType===w.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:o,targetAnnotation:i}=gD(e,t,n):e[0]===w.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=bD(e,a):e[1]===w.PropertyName.sections?{custom:a,targetAnnotationEncoded:o,targetAnnotation:i}=hD(e,a,t.title):e[1]===w.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:o}=yD(t,e)),{targetAnnotationEncoded:o,targetAnnotation:i,custom:a}}r(TD,"determineTargetAnnotation");function SD(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let o=e[i];if(o==="columns"||o===w.PropertyName.actions||o==="views"){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}r(SD,"determineKeyForSyncRule");function vD(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}r(vD,"createNewObjectInManifest");function PD(e,t,n){var o,a;let i=!1;return t.type!=="array"&&((o=n==null?void 0:n.targetDefinition)==null?void 0:o.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(vD(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}r(PD,"transferPropertyToManifest");function AD(e,t,n,i,o,a,s){var p,f,u;let l=!1,c=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((f=n.config.table)!=null&&f.views)||e[1]==="views"&&((u=n.config.table)!=null&&u.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&MP.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(c!=null&&c.annotationPath)&&!c.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&fD.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let m=t.syncRule.manifest.delete;typeof m=="function"&&(m(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return Pi(n.exportResults.manifest,o,n.deletionRequest,n.entityPathArray,a,s),l}r(AD,"deleteFromManifest");function CD(e,t,n,i){let o=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:c,custom:p}=TD(e,n.transferParameters,n.configObject),f=SD(e),u=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,f,c,n.configObject),m=ai(n.transferParameters.exportResults.manifest,u,c,p?void 0:l);if(m){let b={syncRule:t,manifestSection:m,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:f};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&Zo([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?o=AD(e,b,n.transferParameters,m,u,c,l):o=PD(b,n.propertyDefinition,i)}return o}r(CD,"exportManifestChange");function ED(e,t,n){let i=st(e.configObject,e.key);i!=null&&i.manifest&&CD(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=w.ChangeIndicator.Updated)}r(ED,"evaluateExportRule");function xD(e,t,n,i,o){let a=[];e.propertyDefinition.$ref&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,dm(e.transferParameters,s,[...i],o,[...e.breadcrumbs,e.key],t.targetDefinition),e.index++}r(xD,"transferSubObject");function ID(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let o=$e(e.pageNameArray)+"/views",a=ai(e.exportResults.manifest,o);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}r(ID,"createALPTableView");function OD(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=$e(e.transferParameters.pageNameArray)+"/views",o=ai(e.transferParameters.exportResults.manifest,i);return!o.paths||Object.keys(o.paths).length===0?(o.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):o.paths[0].primary||(o.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),o.paths[0].secondary||(o.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||vp.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}r(OD,"createALPChartView");function FD(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let o=!1,a=$e(t.pageNameArray)+"/views",s=ai(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],o=!0;else{let c=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(c===-1)s.paths.push(l),o=!0;else if(c!==i.index){let p=JSON.parse(JSON.stringify(s.paths[c]));s.paths.splice(c,1),s.paths.splice(e,0,p),o=!0}}return o}r(FD,"createLRTableView");function LD(e,t,n){let i=!1,o=!1;if(t&&!n&&!e.transferParameters.deletionRequest){if(t===w.DefinitionName.ALPChartView&&e.key===w.PropertyName.chart&&e.configObject)return OD(e);if(t===w.DefinitionName.ALPTableView&&e.key===w.PropertyName.table&&e.configObject)return ID(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(w.DefinitionName.LRTableView)||t.startsWith(w.DefinitionName.LRChartView))&&(i=FD(e.index,e.transferParameters,e.key,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:o}}r(LD,"createNewElement");function VD(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}r(VD,"isDefinitionTraversable");function um(e,t,n,i=!1){var f;let o=e.configObject[e.key],a=rl(e.configObject,e.key),s=Mn(e.transferParameters.appSchema,e.transferParameters.title,o,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:c}=LD(e,(f=e.propertyDefinition.$ref)==null?void 0:f.split(O)[1],i),p=a?[...t,a]:[...t,e.key];if(l||ED(e,p,s),e.propertyDefinition&&(typeof o=="object"&&Object.keys(o).length!==0||VD(e.propertyDefinition)&&s.configObject)&&!c){let u=a?[...n,a]:n;xD(e,s,o,p,u)}}r(um,"transferSortedListEntry");function ND(e,t,n,i,o){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,c)=>l[1]&&l[1].index-c[1].index),s.forEach(l=>{var c;(c=n.properties)!=null&&c[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],um(e,i,o),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,um(e,i,o),a=!0)}),e.index++})}return a}r(ND,"transferConfigEntriesWithAnyOfDefinitions");function DD(e,t,n,i){let o=IT(e.appSchema,t,i);if(o){n||(n=[]);for(let a of o)n.some(s=>s[0]===a)||n.push([a,t])}}r(DD,"mergeEntriesForInsert");function RD(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][w.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,o)=>i[1][w.SchemaTag.propertyIndex]-o[1][w.SchemaTag.propertyIndex])),t}r(RD,"sortProperties");function jD(e,t,n,i,o,a){var l,c;let s=!1;if(e){let p=e.anyOf;if(!p){let f=(l=e.$ref)==null?void 0:l.split(O)[1];p=f?(c=t.appSchema.definitions[f])==null?void 0:c.anyOf:void 0}s=ND(n,p,i,o,a)}return s}r(jD,"checkIfAnyOfDefinition");function dm(e,t,n,i,o,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:o,key:void 0,index:s,configObject:t,propertyDefinition:void 0},c=a.additionalProperties,p=jD(c,e,l,a,n,i),f=RD(a.properties);c!=null&&c.$ref&&DD(e,c,f,t),s=0,f&&f.forEach(u=>{e.entityPathArray&&e.entityPathArray[o.length]!==u[0]&&!Zo(o,e.entityPathArray)||(l.key=u[0],l.propertyDefinition=u[1],l.index=s,um(l,n,i,p),u[1].$ref&&s++)})}r(dm,"transferManifestEntriesAndFlexChange");function UP(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(w.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}r(UP,"getClassesForSingleSection");function kP(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],UP(n,i,t),kP(n,t)}}r(kP,"getSubsectionClasses");function wD(e,t,n){let i;for(let o in e.sections)i=t.sections[o],UP(e,o,n),kP(i,n)}r(wD,"getExportClassesForSections");function _P(e,t){let n=sl(e);return`${t.appId}::${n.id}::${t.page.name}--`}r(_P,"calculateBaseId");var BP=r((e,t,n=!1)=>{var l;let i=uD(e.manifest),o=new bi,a=o.createPageInstance(w.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[w.PropertyName.sections]&&wD(e.page.config,a,o);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:_P(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:o,pageNameArray:[e.page.name],pageType:w.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:w.TemplateType.ListReportObjectPageV4,entityPathArray:e.entityPath,deletionRequest:n};return dm(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),$D=r((e,t,n,i,o,a,s=!1)=>{var S,L;let l=w.defaultExportResult;l.manifest=JSON.parse(JSON.stringify(e.manifest));let c=e.jsonSchema,p=(S=n.table)!=null&&S[w.PropertyName.annotationPath]?w.DefinitionName.ALPTableView:w.DefinitionName.Table,f=n.table=t.createInstance(i,p,n.table),u=w.DefinitionName.LineItems;c.definitions[w.DefinitionName.TableSPV]&&(u=c.definitions[w.DefinitionName.TableSPV].properties.columns.$ref.split(O)[1]);let m=c.definitions[`${w.DefinitionName.Actions}<${u}>`];if((L=f.toolBar)!=null&&L.actions&&m)for(let V in m.properties)f.toolBar.actions[V]=t.createInstance(i,w.DefinitionName.ToolBarAction,f.toolBar.actions[V]);let b={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:_P(n,e),appSchema:e.jsonSchema,config:n,ui5Version:o,factory:t,pageNameArray:[e.page.name],pageType:w.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return dm(b,n,[],[],[],c),l},"exportListPage"),gm=r((e,t,n,i=!1)=>{let o=new bi,a=o.createPageInstance(w.PageTypeV2.ListReport,e.page.config);return $D(e,o,a,w.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),HP=r((e,t,n=!1)=>gm(e,t,w.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),MD=r((e,t,n)=>{var a,s;let i=w.defaultExportResult;i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new qc,e);o.settings=Object.assign(new Na,o.settings);for(let l in n.definitions.AppSettings.properties){let c=st(o.settings,l);if(c&&c.manifest){let p=c.manifest.path(),f=ai(i.manifest,p);if(((a=e.settings)==null?void 0:a[l])!==void 0)f[l]=e.settings[l];else{let u=ai(i.manifest,p);((s=e.settings)==null?void 0:s[l])!==void 0?u[l]=e.settings[l]:l in u&&(delete u[l],Pi(i.manifest,p,!1))}}}return i.manifest[w.ManifestSection.ui5].routing=NP(e.home,e.pages,i.manifest),$P(i.manifest[w.ManifestSection.ui5],e),i},"exportApplicationV4"),GP=r((e,t)=>{if(e[w.SchemaType.ListReport])return gm(e[w.SchemaType.ListReport],t,w.TemplateType.ListReportObjectPageV4);if(e[w.SchemaType.ObjectPage])return BP(e[w.SchemaType.ObjectPage],t);if(e[w.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[w.SchemaType.Application];return MD(n,i,o)}else if(e[w.SchemaType.AnalyticalListPage])return HP(e[w.SchemaType.AnalyticalListPage],t)},"exportPageV4"),mm=r((e,t,n=!1)=>{if(e[w.SchemaType.ListReport])return gm(e[w.SchemaType.ListReport],t,w.TemplateType.ListReportObjectPageV4,n);if(e[w.SchemaType.ObjectPage])return BP(e[w.SchemaType.ObjectPage],t,n);if(e[w.SchemaType.AnalyticalListPage])return HP(e[w.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");function UD(e){let t;if(e[Z.FioriElementsVersion.v2]){let n=e[Z.FioriElementsVersion.v2];if(n[Z.SchemaType.ListReport]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:l,logger:c}=n[Z.SchemaType.ListReport];t=pm(i,o,a,s,l,c)}else if(n[Z.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:l,logger:c}=n[Z.SchemaType.ObjectPage];t=cm(i,o,a,s,l,c)}else if(n[Z.SchemaType.OverviewPage]){let{genericSchema:i,manifest:o}=n[Z.SchemaType.OverviewPage];t=bs(i,o)}else if(n[Z.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:l,logger:c}=n[Z.SchemaType.AnalyticalListPage];t=fm(i,o,a,s,l,c)}}else if(e[Z.FioriElementsVersion.v4]){let n=e[Z.FioriElementsVersion.v4];if(n[Z.SchemaType.ListReport]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:l}=n[Z.SchemaType.ListReport];t=Xc(Z.TemplateType.ListReportObjectPageV4,i,o,a,s,l)}else if(n[Z.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,logger:l,fragments:c}=n[Z.SchemaType.ObjectPage];t=Jd(i,o,a,s,l,c)}else if(n[Z.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:l}=n[Z.SchemaType.AnalyticalListPage];t=Xc(Z.TemplateType.AnalyticalListPageV4,i,o,a,s,l)}else if(n[Z.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:o,annotations:a,logger:s,manifest:l}=n[Z.SchemaType.FreestylePage];t=Xd(Z.TemplateType.FreestylePageV4,i,a,l,o,s)}}return t}r(UD,"generateSchema");function kD(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Nv(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=GP(i,n)}return t}r(kD,"exportConfig");function _D(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Ld(i,n)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=mm(i,n)}return t}r(_D,"exportConfigEntityByPath");function BD(e){let t=Z.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Z.FioriElementsVersion.v2]){let i=e[Z.FioriElementsVersion.v2];t=Ld(i,n,!0)}else if(e[Z.FioriElementsVersion.v4]){let i=e[Z.FioriElementsVersion.v4];t=mm(i,n,!0)}return t}r(BD,"deleteConfigEntityByPath");function HD(e){let t;if(e[Z.FioriElementsVersion.v2]){let n=e[Z.FioriElementsVersion.v2];n[Z.SchemaType.ListReport]?t=_c(n[Z.SchemaType.ListReport]):n[Z.SchemaType.ObjectPage]?t=Dc(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.OverviewPage]?t=Rc(n[Z.SchemaType.OverviewPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=jc(n[Z.SchemaType.AnalyticalListPage]))}else if(e[Z.FioriElementsVersion.v4]){let n=e[Z.FioriElementsVersion.v4];n[Z.SchemaType.ListReport]?t=Mo(n[Z.SchemaType.ListReport],Z.SchemaType.ListReport):n[Z.SchemaType.ObjectPage]?t=bp(n[Z.SchemaType.ObjectPage]):n[Z.SchemaType.AnalyticalListPage]&&(t=Mo(n[Z.SchemaType.AnalyticalListPage],Z.SchemaType.AnalyticalListPage))}return t}r(HD,"importConfig");async function GD(e){return sm(e)}r(GD,"importProject");async function WD(e){return rm(e)}r(WD,"importProjectSchema");function QD(){return{version:"20",moduleVersion:vS.version}}r(QD,"getApiVersion");var yn=require("path"),Ji=require("fs");var ka=r(async e=>new Promise((t,n)=>{(0,Ji.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readFile"),KD=r(async e=>JSON.parse(await ka(e)),"readJSON"),ym=r(async e=>new Promise((t,n)=>{(0,Ji.readdir)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readDirectory"),JD=r(async e=>new Promise(t=>{(0,Ji.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),WP=r(async e=>new Promise(t=>{(0,Ji.exists)(e,n=>{t(n)})}),"resourceExists"),XD=r(async e=>KD((0,yn.join)(e,"manifest.json")),"getManifest"),QP=r(async e=>{let t=[],n=(0,yn.join)(e,"changes");if(!await WP(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],o=await ym(n);for(let a of o)i.some(s=>a.endsWith(s))&&t.push(await ka((0,yn.join)(n,a)));return t},"getChanges"),qD=r(async e=>{let t=[],n=(0,yn.join)(e,"ext","fragments");if(!await WP(n))return t;let i=await ym(n);for(let o of i){let a=(0,yn.join)(n,o),s=await ka(a);t.push({dataSourceUri:a,fileContent:s})}return t},"getFragments"),zD=r(async(e,t)=>{var o,a,s,l,c,p,f,u;let n=[],i=(o=e==null?void 0:e["sap.app"])==null?void 0:o.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let m=(0,yn.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:m,fileContent:await ka(m)})}if((c=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&c.annotations){for(let m of i.mainService.settings.annotations)if((f=(p=i[m])==null?void 0:p.settings)!=null&&f.localUri){let b=(0,yn.join)(t,i[m].settings.localUri);n.push({dataSourceUri:b,fileContent:await ka(b)})}}if(n.length===0)for(let m in i){let b=i[m];if((b==null?void 0:b.type)==="ODataAnnotation"&&((u=b==null?void 0:b.settings)!=null&&u.localUri)){let S=(0,yn.join)(t,b.settings.localUri);n.push({dataSourceUri:S,fileContent:await ka(S)})}}return n},"getAnnotations"),YD=r(async e=>{let t=(0,yn.basename)(e),n=(0,yn.join)(e,"webapp"),i=await XD(n),o=await zD(i,n),a=await QP(n),s=await qD(n);return{root:e,name:t,manifest:i,annotations:o,changes:a,fragments:s}},"getProject");qi(Zt,$(B()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
|
|
89
89
|
/*! Bundled license information:
|
|
90
90
|
|
|
91
91
|
sax/lib/sax.js:
|