@sap/ux-specification 1.108.57 → 1.108.59
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 +27 -3
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ListReportNew.html +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
- package/dist/documentation/v4/v4-FreestylePage.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +40 -40
- package/dist/index-min.js.map +3 -3
- package/dist/specification/package.json +3 -3
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +14 -3
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/package.json +3 -3
package/dist/index-min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var wG=Object.create;var Tl=Object.defineProperty;var nL=Object.getOwnPropertyDescriptor;var MG=Object.getOwnPropertyNames;var kG=Object.getPrototypeOf,UG=Object.prototype.hasOwnProperty;var o=(e,t)=>Tl(e,"name",{value:t,configurable:!0});var Ye=(e,t)=>()=>(e&&(t=e(e=0)),t);var ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sc=(e,t)=>{for(var n in t)Tl(e,n,{get:t[n],enumerable:!0})},Lg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of MG(t))!UG.call(e,r)&&r!==n&&Tl(e,r,{get:()=>t[r],enumerable:!(i=nL(t,r))||i.enumerable});return e},cc=(e,t,n)=>(Lg(e,t,"default"),n&&Lg(n,t,"default")),te=(e,t,n)=>(n=e!=null?wG(kG(e)):{},Lg(t||!e||!e.__esModule?Tl(n,"default",{value:e,enumerable:!0}):n,e)),Ng=e=>Lg(Tl({},"__esModule",{value:!0}),e),y=(e,t,n,i)=>{for(var r=i>1?void 0:i?nL(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&Tl(t,n,r),r};var DN=ze((RZ,FN)=>{var zv=Object.defineProperty,jG=Object.getOwnPropertyDescriptor,$G=Object.getOwnPropertyNames,BG=Object.prototype.hasOwnProperty,Jv=o((e,t)=>{for(var n in t)zv(e,n,{get:t[n],enumerable:!0})},"C"),HG=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of $G(t))!BG.call(e,r)&&r!==n&&zv(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=jG(t,r))||i.enumerable});return e},"Ze"),GG=o(e=>HG(zv({},"__esModule",{value:!0}),e),"et"),iL={};Jv(iL,{ACTIONTITLEPREFIX:o(()=>QG,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>fL,"ALPViewType"),ActionType:o(()=>dL,"ActionType"),ArtifactType:o(()=>pL,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>YG,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>TL,"ChangeIndicator"),ChartColor:o(()=>VL,"ChartColor"),CloudDevAdaptationStatus:o(()=>LL,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:o(()=>DL,"ColorPaletteDefinitionType"),ControlType:o(()=>gL,"ControlType"),CustomExtensionType:o(()=>UL,"CustomExtensionType"),DATESETTINGSPATH:o(()=>o5,"DATESETTINGSPATH"),DataSourceType:o(()=>NL,"DataSourceType"),DefinitionName:o(()=>EL,"DefinitionName"),DirName:o(()=>hL,"DirName"),DraftDiscardEnabledSettings:o(()=>CL,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>lL,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>XG,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>l5,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>c5,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>a5,"FRAGMENTNAMEPART"),FacetBase:o(()=>vL,"FacetBase"),Features:o(()=>jL,"Features"),FileName:o(()=>yL,"FileName"),FioriElementsVersion:o(()=>rL,"FioriElementsVersion"),FlexChangeLayer:o(()=>sL,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>RL,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>aL,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>s5,"GENERICAPPSETTINGS"),LogSeverity:o(()=>wL,"LogSeverity"),MANIFESTPATH:o(()=>zG,"MANIFESTPATH"),MacrosPropertyType:o(()=>xL,"MacrosPropertyType"),ManifestSection:o(()=>FL,"ManifestSection"),OdataVersion:o(()=>oL,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>KG,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>WG,"PageType"),PageTypeV2:o(()=>Zv,"PageTypeV2"),PageTypeV4:o(()=>eb,"PageTypeV4"),PropertyMessageType:o(()=>ML,"PropertyMessageType"),PropertyName:o(()=>SL,"PropertyName"),QUICKVARPATH:o(()=>i5,"QUICKVARPATH"),QUICKVARPATHX:o(()=>r5,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>u5,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>f5,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>PL,"SchemaKeyName"),SchemaTag:o(()=>AL,"SchemaTag"),SchemaType:o(()=>cL,"SchemaType"),SectionType:o(()=>uL,"SectionType"),StatePreservationMode:o(()=>OL,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>IL,"TableColumnVerticalAlignment"),TemplateType:o(()=>kL,"TemplateType"),UIVOCABULARY:o(()=>e5,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>n5,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>t5,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>ZG,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>JG,"VOCWITHSLASH"),ViewTemplateType:o(()=>bL,"ViewTemplateType"),ViewTypes:o(()=>_L,"ViewTypes"),Visualization:o(()=>mL,"Visualization"),defaultExportResult:o(()=>qG,"defaultExportResult"),logSeverityLabel:o(()=>p5,"logSeverityLabel"),v2:o(()=>$L,"v2"),v4:o(()=>pN,"v4")});FN.exports=GG(iL);var Zv=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Zv||{}),eb=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(eb||{}),WG={...Zv,...eb},KG=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"]]),rL=(e=>(e.v2="v2",e.v4="v4",e))(rL||{}),oL=(e=>(e.v2="v2",e.v4="v4",e))(oL||{}),aL=(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))(aL||{}),sL=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(sL||{}),cL=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e.FPMCustomPage="FPMCustomPage",e.BuildingBlocks="BuildingBlocks",e))(cL||{}),lL=(e=>(e.flex="flex",e.manifest="manifest",e))(lL||{}),fL=(e=>(e.Primary="primary",e.Secondary="secondary",e))(fL||{}),uL=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(uL||{}),pL=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(pL||{}),dL=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(dL||{}),gL=(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))(gL||{}),mL=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(mL||{}),hL=(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))(hL||{}),yL=(e=>(e.App="app.json",e))(yL||{}),XG="Facet ID: ",QG="Action ID: ",TL=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(TL||{}),qG={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},vL=(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))(vL||{}),YG="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",bL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(bL||{}),EL=(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.CustomTableActionOP="CustomTableActionOP",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.ObjectPageFormActionGroup="ObjectPageFormActionGroup",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.ObjectPageHeaderActionGroup="ObjectPageHeaderActionGroup",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.ObjectPageToolBarActionGroup="ObjectPageToolBarActionGroup",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.ToolBarActionGroup="ToolBarActionGroup",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarActionGroup="ViewToolBarActionGroup",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(EL||{}),SL=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.columns="columns",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.footer="footer",e.header="header",e.sections="sections",e.table="table",e.views="views",e.visualFilters="visualFilters",e.selectionFields="selectionFields",e))(SL||{}),AL=(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))(AL||{}),PL=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(PL||{}),zG="webapp/manifest.json",JG="/@com.sap.vocabularies",ZG="::@com.sap.vocabularies",e5="com.sap.vocabularies.UI.v1",t5="com.sap.vocabularies.UI.v1.",n5="@com.sap.vocabularies.UI.v1.",i5="/quickVariantSelection",r5="/quickVariantSelectionX",o5="/filterSettings/dateSettings",a5=".fragment.",xL=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(xL||{}),CL=(e=>(e.restricted="restricted",e))(CL||{}),IL=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(IL||{}),OL=(e=>(e.persistence="persistence",e.discovery="discovery",e))(OL||{}),RL=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(RL||{}),LL=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(LL||{}),NL=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(NL||{}),FL=(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))(FL||{}),s5="sap.ui.generic.app/settings",DL=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(DL||{}),c5="sap.fe.templates.RootContainer.view.Fcl",l5="appRootView",_L=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(_L||{}),f5="sap.ui.core.mvc.View",u5="sap.ui.core.Fragment",VL=(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))(VL||{}),wL=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(wL||{}),p5={error:"Error",warning:"Warning",info:"Information"},ML=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(ML||{}),kL=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(kL||{}),UL=(e=>(e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage",e))(UL||{}),jL=(e=>(e.BuildingBlocks="BuildingBlocks",e))(jL||{}),$L={};Jv($L,{CardSettingsType:o(()=>GL,"CardSettingsType"),CardTemplateType:o(()=>HL,"CardTemplateType"),ChartCardType:o(()=>BL,"ChartCardType"),ChartType:o(()=>sN,"ChartType"),ContainerLayoutType:o(()=>uN,"ContainerLayoutType"),CreateMode:o(()=>fN,"CreateMode"),DateRangeType:o(()=>YL,"DateRangeType"),DefaultContentView:o(()=>rN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>zL,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>oN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>lN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>m5,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>T5,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>y5,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>h5,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>JL,"FilterPathType"),IgnoredFieldsType:o(()=>iN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>qL,"LinkListFlavorType"),ListFlavorType:o(()=>KL,"ListFlavorType"),ListTypeType:o(()=>XL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>aN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>WL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>b5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>v5,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>A5,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>S5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>E5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>cN,"SectionPosition"),SortOrderType:o(()=>QL,"SortOrderType"),Strategy:o(()=>nN,"Strategy"),TableColumnExtensionTypeV2:o(()=>tN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>eN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>g5,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>d5,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>ZL,"customColumnViewTypes")});var BL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(BL||{}),HL=(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.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(HL||{}),d5={"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.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},g5={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},GL=(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))(GL||{}),WL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(WL||{}),KL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(KL||{}),XL=(e=>(e.extended="extended",e.condensed="condensed",e))(XL||{}),QL=(e=>(e.ascending="ascending",e.descending="descending",e))(QL||{}),qL=(e=>(e.standard="standard",e.carousel="carousel",e))(qL||{}),YL=(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))(YL||{}),zL=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(zL||{}),JL=(e=>(e.key="key",e.catgory="category",e))(JL||{}),ZL=(e=>(e.XML="XML",e))(ZL||{}),eN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(eN||{}),tN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(tN||{}),nN=(e=>(e.extension="extension",e))(nN||{}),iN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(iN||{}),rN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(rN||{}),oN=(e=>(e.visual="visual",e.compact="compact",e))(oN||{}),aN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(aN||{}),sN=(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))(sN||{}),cN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(cN||{}),lN=(e=>(e.XML="XML",e))(lN||{}),fN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(fN||{}),m5="sap.suite.ui.generic.template",h5="sap.suite.ui.generic.template.ObjectPage",y5="sap.suite.ui.generic.template.ListReport",T5="sap.suite.ui.generic.template.AnalyticalListPage",v5="sap.ui.viewExtensions",b5="sap.ui.controllerExtensions",E5="sap.suite.ui.generic.template.ObjectPage.view.Details",S5="sap.suite.ui.generic.template.ListReport.view.ListReport",A5="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",uN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(uN||{}),pN={};Jv(pN,{ActionPlacement:o(()=>dN,"ActionPlacement"),Availability:o(()=>ON,"Availability"),CustomSectionViewTypesV4:o(()=>PN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>yN,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>P5,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>O5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>x5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>I5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>C5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>L5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>bN,"FilterFieldPlacement"),HorizontalAlign:o(()=>RN,"HorizontalAlign"),InitialLayoutType:o(()=>vN,"InitialLayoutType"),InitialLoadType:o(()=>hN,"InitialLoadType"),LayoutType:o(()=>TN,"LayoutType"),Placement:o(()=>IN,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>F5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>N5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>R5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>_5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>D5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>SN,"SectionLayoutType"),SectionPosition:o(()=>AN,"SectionPosition"),SectionPositionV4:o(()=>CN,"SectionPositionV4"),SelectType:o(()=>EN,"SelectType"),SelectionMode:o(()=>gN,"SelectionMode"),TableCreationModeType:o(()=>xN,"TableCreationModeType"),TableTypeV4:o(()=>mN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>NN,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>LN,"VariantManagementTypeObjectPage")});var dN=(e=>(e.After="After",e.Before="Before",e))(dN||{}),gN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(gN||{}),mN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(mN||{}),hN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(hN||{}),yN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(yN||{}),TN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(TN||{}),vN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(vN||{}),bN=(e=>(e.After="After",e.Before="Before",e))(bN||{}),EN=(e=>(e.single="single",e.multi="multi",e))(EN||{}),SN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(SN||{}),AN=(e=>(e.After="After",e.Before="Before",e))(AN||{}),PN=(e=>(e.XML="XML",e))(PN||{}),xN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(xN||{}),P5="sap.fe",x5="sap.fe.core.fpm",C5="sap.fe.templates.ObjectPage",I5="sap.fe.templates.ListReport",O5="sap.fe.templates.AnalyticalListPage",R5="XMLFragment",CN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(CN||{}),L5="sap.f.routing.Router",N5="sap.f",F5="sap.ui.controllerExtensions",D5="sap.fe.templates.ObjectPage.ObjectPageController",_5="sap.fe.templates.ListReport.ListReportController",IN=(e=>(e.After="After",e.Before="Before",e))(IN||{}),ON=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(ON||{}),RN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(RN||{}),LN=(e=>(e.None="None",e.Control="Control",e))(LN||{}),NN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(NN||{})});var UN=ze(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.Features=Xi.CustomExtensionType=Xi.TemplateType=Xi.PropertyMessageType=Xi.logSeverityLabel=Xi.LogSeverity=void 0;var _N;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(_N||(Xi.LogSeverity=_N={}));Xi.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var VN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(VN||(Xi.PropertyMessageType=VN={}));var wN;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(wN||(Xi.TemplateType=wN={}));var MN;(function(e){e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage"})(MN||(Xi.CustomExtensionType=MN={}));var kN;(function(e){e.BuildingBlocks="BuildingBlocks"})(kN||(Xi.Features=kN={}))});var pF=ze((FZ,uF)=>{var tb=Object.defineProperty,V5=Object.getOwnPropertyDescriptor,w5=Object.getOwnPropertyNames,M5=Object.prototype.hasOwnProperty,k5=o((e,t)=>{for(var n in t)tb(e,n,{get:t[n],enumerable:!0})},"h"),U5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of w5(t))!M5.call(e,r)&&r!==n&&tb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=V5(t,r))||i.enumerable});return e},"M"),j5=o(e=>U5(tb({},"__esModule",{value:!0}),e),"Q"),jN={};k5(jN,{CardSettingsType:o(()=>HN,"CardSettingsType"),CardTemplateType:o(()=>BN,"CardTemplateType"),ChartCardType:o(()=>$N,"ChartCardType"),ChartType:o(()=>aF,"ChartType"),ContainerLayoutType:o(()=>fF,"ContainerLayoutType"),CreateMode:o(()=>lF,"CreateMode"),DateRangeType:o(()=>qN,"DateRangeType"),DefaultContentView:o(()=>iF,"DefaultContentView"),DefaultDateRangeValueType:o(()=>YN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>rF,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>cF,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>H5,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>K5,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>W5,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>G5,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>zN,"FilterPathType"),IgnoredFieldsType:o(()=>nF,"IgnoredFieldsType"),LinkListFlavorType:o(()=>QN,"LinkListFlavorType"),ListFlavorType:o(()=>WN,"ListFlavorType"),ListTypeType:o(()=>KN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>oF,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>GN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>Q5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>X5,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>z5,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>Y5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>q5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>sF,"SectionPosition"),SortOrderType:o(()=>XN,"SortOrderType"),Strategy:o(()=>tF,"Strategy"),TableColumnExtensionTypeV2:o(()=>eF,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>ZN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>B5,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>$5,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>JN,"customColumnViewTypes")});uF.exports=j5(jN);var $N=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))($N||{}),BN=(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.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(BN||{}),$5={"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.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},B5={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},HN=(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))(HN||{}),GN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(GN||{}),WN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(WN||{}),KN=(e=>(e.extended="extended",e.condensed="condensed",e))(KN||{}),XN=(e=>(e.ascending="ascending",e.descending="descending",e))(XN||{}),QN=(e=>(e.standard="standard",e.carousel="carousel",e))(QN||{}),qN=(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))(qN||{}),YN=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(YN||{}),zN=(e=>(e.key="key",e.catgory="category",e))(zN||{}),JN=(e=>(e.XML="XML",e))(JN||{}),ZN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(ZN||{}),eF=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(eF||{}),tF=(e=>(e.extension="extension",e))(tF||{}),nF=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(nF||{}),iF=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(iF||{}),rF=(e=>(e.visual="visual",e.compact="compact",e))(rF||{}),oF=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(oF||{}),aF=(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))(aF||{}),sF=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(sF||{}),cF=(e=>(e.XML="XML",e))(cF||{}),lF=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(lF||{}),H5="sap.suite.ui.generic.template",G5="sap.suite.ui.generic.template.ObjectPage",W5="sap.suite.ui.generic.template.ListReport",K5="sap.suite.ui.generic.template.AnalyticalListPage",X5="sap.ui.viewExtensions",Q5="sap.ui.controllerExtensions",q5="sap.suite.ui.generic.template.ObjectPage.view.Details",Y5="sap.suite.ui.generic.template.ListReport.view.ListReport",z5="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",fF=(e=>(e.fixed="fixed",e.resizable="resizable",e))(fF||{})});var _F=ze((_Z,DF)=>{var nb=Object.defineProperty,J5=Object.getOwnPropertyDescriptor,Z5=Object.getOwnPropertyNames,eW=Object.prototype.hasOwnProperty,tW=o((e,t)=>{for(var n in t)nb(e,n,{get:t[n],enumerable:!0})},"E"),nW=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Z5(t))!eW.call(e,r)&&r!==n&&nb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=J5(t,r))||i.enumerable});return e},"R"),iW=o(e=>nW(nb({},"__esModule",{value:!0}),e),"h"),dF={};tW(dF,{ActionPlacement:o(()=>gF,"ActionPlacement"),Availability:o(()=>RF,"Availability"),CustomSectionViewTypesV4:o(()=>xF,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>TF,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>rW,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>cW,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>oW,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>sW,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>aW,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>fW,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>EF,"FilterFieldPlacement"),HorizontalAlign:o(()=>LF,"HorizontalAlign"),InitialLayoutType:o(()=>bF,"InitialLayoutType"),InitialLoadType:o(()=>yF,"InitialLoadType"),LayoutType:o(()=>vF,"LayoutType"),Placement:o(()=>OF,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>pW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>uW,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>lW,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>gW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>dW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>AF,"SectionLayoutType"),SectionPosition:o(()=>PF,"SectionPosition"),SectionPositionV4:o(()=>IF,"SectionPositionV4"),SelectType:o(()=>SF,"SelectType"),SelectionMode:o(()=>mF,"SelectionMode"),TableCreationModeType:o(()=>CF,"TableCreationModeType"),TableTypeV4:o(()=>hF,"TableTypeV4"),VariantManagementTypeListReport:o(()=>FF,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>NF,"VariantManagementTypeObjectPage")});DF.exports=iW(dF);var gF=(e=>(e.After="After",e.Before="Before",e))(gF||{}),mF=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(mF||{}),hF=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(hF||{}),yF=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(yF||{}),TF=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(TF||{}),vF=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(vF||{}),bF=(e=>(e.Compact="Compact",e.Visual="Visual",e))(bF||{}),EF=(e=>(e.After="After",e.Before="Before",e))(EF||{}),SF=(e=>(e.single="single",e.multi="multi",e))(SF||{}),AF=(e=>(e.Tabs="Tabs",e.Page="Page",e))(AF||{}),PF=(e=>(e.After="After",e.Before="Before",e))(PF||{}),xF=(e=>(e.XML="XML",e))(xF||{}),CF=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(CF||{}),rW="sap.fe",oW="sap.fe.core.fpm",aW="sap.fe.templates.ObjectPage",sW="sap.fe.templates.ListReport",cW="sap.fe.templates.AnalyticalListPage",lW="XMLFragment",IF=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(IF||{}),fW="sap.f.routing.Router",uW="sap.f",pW="sap.ui.controllerExtensions",dW="sap.fe.templates.ObjectPage.ObjectPageController",gW="sap.fe.templates.ListReport.ListReportController",OF=(e=>(e.After="After",e.Before="Before",e))(OF||{}),RF=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(RF||{}),LF=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(LF||{}),NF=(e=>(e.None="None",e.Control="Control",e))(NF||{}),FF=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(FF||{})});var ce=ze(hi=>{"use strict";var VF=hi&&hi.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),mW=hi&&hi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),wF=hi&&hi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&VF(t,e,n)},MF=hi&&hi.__importStar||function(){var e=o(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),r=0;r<i.length;r++)i[r]!=="default"&&VF(n,t,i[r]);return mW(n,t),n}}();Object.defineProperty(hi,"__esModule",{value:!0});hi.v4=hi.v2=void 0;wF(DN(),hi);wF(UN(),hi);hi.v2=MF(pF());hi.v4=MF(_F())});var bb=ze((eee,zF)=>{"use strict";var _W=o(function(t){return VW(t)&&!wW(t)},"isMergeableObject");function VW(e){return!!e&&typeof e=="object"}o(VW,"isNonNullObject");function wW(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||UW(e)}o(wW,"isSpecial");var MW=typeof Symbol=="function"&&Symbol.for,kW=MW?Symbol.for("react.element"):60103;function UW(e){return e.$$typeof===kW}o(UW,"isReactElement");function jW(e){return Array.isArray(e)?[]:{}}o(jW,"emptyTarget");function yu(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Sl(jW(e),e,t):e}o(yu,"cloneUnlessOtherwiseSpecified");function $W(e,t,n){return e.concat(t).map(function(i){return yu(i,n)})}o($W,"defaultArrayMerge");function BW(e,t){if(!t.customMerge)return Sl;var n=t.customMerge(e);return typeof n=="function"?n:Sl}o(BW,"getMergeFunction");function HW(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(HW,"getEnumerableOwnPropertySymbols");function qF(e){return Object.keys(e).concat(HW(e))}o(qF,"getKeys");function YF(e,t){try{return t in e}catch{return!1}}o(YF,"propertyIsOnObject");function GW(e,t){return YF(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(GW,"propertyIsUnsafe");function WW(e,t,n){var i={};return n.isMergeableObject(e)&&qF(e).forEach(function(r){i[r]=yu(e[r],n)}),qF(t).forEach(function(r){GW(e,r)||(YF(e,r)&&n.isMergeableObject(t[r])?i[r]=BW(r,n)(e[r],t[r],n):i[r]=yu(t[r],n))}),i}o(WW,"mergeObject");function Sl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||$W,n.isMergeableObject=n.isMergeableObject||_W,n.cloneUnlessOtherwiseSpecified=yu;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):WW(e,t,n):yu(t,n)}o(Sl,"deepmerge");Sl.all=o(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Sl(i,r,n)},{})},"deepmergeAll");var KW=Sl;zF.exports=KW});var $g=ze(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.mergeAnnotations=yt.addGetByValue=yt.createIndexedFind=yt.lazy=yt.Decimal=yt.Double=yt.isComplexTypeDefinition=yt.unalias=yt.alias=yt.substringBeforeLast=yt.substringBeforeFirst=yt.splitAtLast=yt.splitAtFirst=yt.defaultReferences=yt.TermToTypes=yt.EnumIsFlag=void 0;var XW=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(yt,"EnumIsFlag",{enumerable:!0,get:o(function(){return XW.EnumIsFlag},"get")});var QW=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(yt,"TermToTypes",{enumerable:!0,get:o(function(){return QW.TermToTypes},"get")});var qW=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(yt,"defaultReferences",{enumerable:!0,get:o(function(){return qW.VocabularyReferences},"get")});function JF(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(JF,"splitAt");function ZF(e,t){return t<0?e:e.substring(0,t)}o(ZF,"substringAt");function jg(e,t){return JF(e,e.indexOf(t))}o(jg,"splitAtFirst");yt.splitAtFirst=jg;function e0(e,t){return JF(e,e.lastIndexOf(t))}o(e0,"splitAtLast");yt.splitAtLast=e0;function YW(e,t){return ZF(e,e.indexOf(t))}o(YW,"substringBeforeFirst");yt.substringBeforeFirst=YW;function zW(e,t){return ZF(e,e.lastIndexOf(t))}o(zW,"substringBeforeLast");yt.substringBeforeLast=zW;function t0(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=e0(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=jg(t,"@");return`${a}@${t0(e,s)}`}else return t}o(t0,"alias");yt.alias=t0;function Eb(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=jg(a,".");if(!l||l.includes("."))return a;let u=s.startsWith("@"),p=u?s.substring(1):s,g=e.referenceMap[p];return g?u?`@${g.namespace}.${l}`:`${g.namespace}.${l}`:n&&!u?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,u]=jg(s,"("),p=[r(l)];if(u){let g=u.slice(0,-1);p.push(`(${r(g)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}o(Eb,"unalias");yt.unalias=Eb;function JW(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(JW,"isComplexTypeDefinition");yt.isComplexTypeDefinition=JW;function ZW(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(ZW,"Double");yt.Double=ZW;function e8(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(e8,"Decimal");yt.Decimal=e8;function t8(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(a){r=a}})}o(t8,"lazy");yt.lazy=t8;function n0(e,t){let n=new Map;return o(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}o(n0,"createIndexedFind");yt.createIndexedFind=n0;function n8(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:n0(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(n8,"addGetByValue");yt.addGetByValue=n8;function i8(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=Eb(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=Eb(e,g.term))!==null&&m!==void 0?m:g.term,g.fullyQualifiedName=g.qualifier?`${u}@${g.term}#${g.qualifier}`:`${u}@${g.term}`,g.__source=i,g}).filter(g=>!n[u].some(m=>m.term===g.term&&m.qualifier===g.qualifier));n[u].push(...p)}return n},{})}o(i8,"mergeAnnotations");yt.mergeAnnotations=i8});var h0=ze(Gg=>{"use strict";Object.defineProperty(Gg,"__esModule",{value:!0});Gg.convert=void 0;var Bg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Se=$g(),co=Symbol("Annotation Target");function ua(e,t){return e[e.length-1]!==t&&e.push(t),e}o(ua,"appendObjectPath");function mr(e,t,n,i){var r,a,s,l,u;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((m,h)=>{if(h.includes("@")){let[E,b]=(0,Se.splitAtFirst)(h,"@");m.push(E),m.push(`@${b}`)}else m.push(h);return m},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.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[co]!==void 0)t=t[co];else if(t._type==="Property"){let m=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,h)=>{var E,b,O,N,M;let H=o($=>(m.messages.push({message:$}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=ua(m.objectPath,m.target),h.startsWith("@")&&h!=="@$ui5.overload"){let[$,re]=e.splitTerm(h),Z=(E=m.target.annotations[$.substring(1)])===null||E===void 0?void 0:E[re];return Z!==void 0?(m.target=Z,m):H(`Annotation '${h.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let $;if(h==="$AnnotationPath"?$=m.target.value:h==="$Path"&&($=m.target.path),$!==void 0){let re=mr(e,m.target[co],$);return re.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=ua(m.objectPath,Z))}),m.target=re.target,m.objectPath=ua(m.objectPath,m.target),m}}switch((b=m.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let Z=m.target;if(h===""||e.unalias(h)===Z.fullyQualifiedName)return m;let oe=(N=(O=Z.entitySets.by_name(h))!==null&&O!==void 0?O:Z.singletons.by_name(h))!==null&&N!==void 0?N:Z.actionImports.by_name(h);if(oe)return m.target=oe,m}break;case"EntitySet":case"Singleton":{let Z=m.target;if(h===""||h==="$Type")return m.target=Z.entityType,m;if(h==="$")return m;if(h==="$NavigationPropertyBinding"){let Ae=Z.navigationPropertyBinding;return m.target=Ae,m}let oe=mr(e,Z.entityType,h);return m.target=oe.target,m.objectPath=oe.objectPath.reduce(ua,m.objectPath),m}case"EntityType":{let Z=m.target;if(h===""||h==="$Type")return m;let oe=Z.entityProperties.by_name(h);if(oe)return m.target=oe,m;let Ae=Z.navigationProperties.by_name(h);if(Ae)return m.target=Ae,m;let D=(0,Se.substringBeforeFirst)(e.unalias(h),"("),ut=Z.actions[D];if(ut)return m.target=ut,m}break;case"ActionImport":{let Z=mr(e,m.target.action,h);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(ua,m.objectPath),m}case"Action":{let Z=m.target;if(h===""||h==="@$ui5.overload"||h==="0")return m;if(h==="$Parameter"&&Z.isBound)return m.target=Z.parameters,m;let oe=(M=Z.parameters[h])!==null&&M!==void 0?M:Z.parameters.find(Ae=>Ae.name===h);if(oe)return m.target=oe,m;break}case"Property":{let oe=m.target.targetType;if(oe!==void 0){let Ae=oe.properties.by_name(h);if(Ae)return m.target=Ae,m;let D=oe.navigationProperties.by_name(h);if(D)return m.target=D,m}}break;case"ActionParameter":let $=m.target.typeReference;if($!==void 0){let Z=mr(e,$,h);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(ua,m.objectPath),m}break;case"NavigationProperty":let re=mr(e,m.target.targetType,h);return m.target=re.target,m.objectPath=re.objectPath.reduce(ua,m.objectPath),m;default:if(h==="")return m;if(m.target[h])return m.target=m.target[h],m.objectPath=ua(m.objectPath,m.target),m}return H(`Element '${h}' not found at ${m.target._type} '${m.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(g.messages.forEach(m=>e.logError(m.message)),!g.target)if(i){let m=s0(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
1
|
+
var wG=Object.create;var Tl=Object.defineProperty;var nL=Object.getOwnPropertyDescriptor;var MG=Object.getOwnPropertyNames;var kG=Object.getPrototypeOf,UG=Object.prototype.hasOwnProperty;var o=(e,t)=>Tl(e,"name",{value:t,configurable:!0});var Ye=(e,t)=>()=>(e&&(t=e(e=0)),t);var ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sc=(e,t)=>{for(var n in t)Tl(e,n,{get:t[n],enumerable:!0})},Lg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of MG(t))!UG.call(e,r)&&r!==n&&Tl(e,r,{get:()=>t[r],enumerable:!(i=nL(t,r))||i.enumerable});return e},cc=(e,t,n)=>(Lg(e,t,"default"),n&&Lg(n,t,"default")),te=(e,t,n)=>(n=e!=null?wG(kG(e)):{},Lg(t||!e||!e.__esModule?Tl(n,"default",{value:e,enumerable:!0}):n,e)),Ng=e=>Lg(Tl({},"__esModule",{value:!0}),e),y=(e,t,n,i)=>{for(var r=i>1?void 0:i?nL(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&Tl(t,n,r),r};var DN=ze((LZ,FN)=>{var zv=Object.defineProperty,jG=Object.getOwnPropertyDescriptor,$G=Object.getOwnPropertyNames,BG=Object.prototype.hasOwnProperty,Jv=o((e,t)=>{for(var n in t)zv(e,n,{get:t[n],enumerable:!0})},"C"),HG=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of $G(t))!BG.call(e,r)&&r!==n&&zv(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=jG(t,r))||i.enumerable});return e},"Ze"),GG=o(e=>HG(zv({},"__esModule",{value:!0}),e),"et"),iL={};Jv(iL,{ACTIONTITLEPREFIX:o(()=>QG,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>fL,"ALPViewType"),ActionType:o(()=>dL,"ActionType"),ArtifactType:o(()=>pL,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>YG,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>TL,"ChangeIndicator"),ChartColor:o(()=>VL,"ChartColor"),CloudDevAdaptationStatus:o(()=>LL,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:o(()=>DL,"ColorPaletteDefinitionType"),ControlType:o(()=>gL,"ControlType"),CustomExtensionType:o(()=>UL,"CustomExtensionType"),DATESETTINGSPATH:o(()=>o5,"DATESETTINGSPATH"),DataSourceType:o(()=>NL,"DataSourceType"),DefinitionName:o(()=>EL,"DefinitionName"),DirName:o(()=>hL,"DirName"),DraftDiscardEnabledSettings:o(()=>CL,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>lL,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>XG,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>l5,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>c5,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>a5,"FRAGMENTNAMEPART"),FacetBase:o(()=>vL,"FacetBase"),Features:o(()=>jL,"Features"),FileName:o(()=>yL,"FileName"),FioriElementsVersion:o(()=>rL,"FioriElementsVersion"),FlexChangeLayer:o(()=>sL,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>RL,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>aL,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>s5,"GENERICAPPSETTINGS"),LogSeverity:o(()=>wL,"LogSeverity"),MANIFESTPATH:o(()=>zG,"MANIFESTPATH"),MacrosPropertyType:o(()=>xL,"MacrosPropertyType"),ManifestSection:o(()=>FL,"ManifestSection"),OdataVersion:o(()=>oL,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>KG,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>WG,"PageType"),PageTypeV2:o(()=>Zv,"PageTypeV2"),PageTypeV4:o(()=>eb,"PageTypeV4"),PropertyMessageType:o(()=>ML,"PropertyMessageType"),PropertyName:o(()=>SL,"PropertyName"),QUICKVARPATH:o(()=>i5,"QUICKVARPATH"),QUICKVARPATHX:o(()=>r5,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>u5,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>f5,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>PL,"SchemaKeyName"),SchemaTag:o(()=>AL,"SchemaTag"),SchemaType:o(()=>cL,"SchemaType"),SectionType:o(()=>uL,"SectionType"),StatePreservationMode:o(()=>OL,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>IL,"TableColumnVerticalAlignment"),TemplateType:o(()=>kL,"TemplateType"),UIVOCABULARY:o(()=>e5,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>n5,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>t5,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>ZG,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>JG,"VOCWITHSLASH"),ViewTemplateType:o(()=>bL,"ViewTemplateType"),ViewTypes:o(()=>_L,"ViewTypes"),Visualization:o(()=>mL,"Visualization"),defaultExportResult:o(()=>qG,"defaultExportResult"),logSeverityLabel:o(()=>p5,"logSeverityLabel"),v2:o(()=>$L,"v2"),v4:o(()=>pN,"v4")});FN.exports=GG(iL);var Zv=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Zv||{}),eb=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(eb||{}),WG={...Zv,...eb},KG=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"]]),rL=(e=>(e.v2="v2",e.v4="v4",e))(rL||{}),oL=(e=>(e.v2="v2",e.v4="v4",e))(oL||{}),aL=(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))(aL||{}),sL=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(sL||{}),cL=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e.FPMCustomPage="FPMCustomPage",e.BuildingBlocks="BuildingBlocks",e))(cL||{}),lL=(e=>(e.flex="flex",e.manifest="manifest",e))(lL||{}),fL=(e=>(e.Primary="primary",e.Secondary="secondary",e))(fL||{}),uL=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(uL||{}),pL=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(pL||{}),dL=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(dL||{}),gL=(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))(gL||{}),mL=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(mL||{}),hL=(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))(hL||{}),yL=(e=>(e.App="app.json",e))(yL||{}),XG="Facet ID: ",QG="Action ID: ",TL=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(TL||{}),qG={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},vL=(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))(vL||{}),YG="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",bL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(bL||{}),EL=(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.CustomTableActionOP="CustomTableActionOP",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.ObjectPageFormActionGroup="ObjectPageFormActionGroup",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.ObjectPageHeaderActionGroup="ObjectPageHeaderActionGroup",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.ObjectPageToolBarActionGroup="ObjectPageToolBarActionGroup",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.ToolBarActionGroup="ToolBarActionGroup",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarActionGroup="ViewToolBarActionGroup",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(EL||{}),SL=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.columns="columns",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.footer="footer",e.header="header",e.sections="sections",e.table="table",e.views="views",e.visualFilters="visualFilters",e.selectionFields="selectionFields",e))(SL||{}),AL=(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))(AL||{}),PL=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(PL||{}),zG="webapp/manifest.json",JG="/@com.sap.vocabularies",ZG="::@com.sap.vocabularies",e5="com.sap.vocabularies.UI.v1",t5="com.sap.vocabularies.UI.v1.",n5="@com.sap.vocabularies.UI.v1.",i5="/quickVariantSelection",r5="/quickVariantSelectionX",o5="/filterSettings/dateSettings",a5=".fragment.",xL=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(xL||{}),CL=(e=>(e.restricted="restricted",e))(CL||{}),IL=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(IL||{}),OL=(e=>(e.persistence="persistence",e.discovery="discovery",e))(OL||{}),RL=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(RL||{}),LL=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(LL||{}),NL=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(NL||{}),FL=(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))(FL||{}),s5="sap.ui.generic.app/settings",DL=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(DL||{}),c5="sap.fe.templates.RootContainer.view.Fcl",l5="appRootView",_L=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(_L||{}),f5="sap.ui.core.mvc.View",u5="sap.ui.core.Fragment",VL=(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))(VL||{}),wL=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(wL||{}),p5={error:"Error",warning:"Warning",info:"Information"},ML=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(ML||{}),kL=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(kL||{}),UL=(e=>(e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage",e))(UL||{}),jL=(e=>(e.BuildingBlocks="BuildingBlocks",e))(jL||{}),$L={};Jv($L,{CardSettingsType:o(()=>GL,"CardSettingsType"),CardTemplateType:o(()=>HL,"CardTemplateType"),ChartCardType:o(()=>BL,"ChartCardType"),ChartType:o(()=>sN,"ChartType"),ContainerLayoutType:o(()=>uN,"ContainerLayoutType"),CreateMode:o(()=>fN,"CreateMode"),DateRangeType:o(()=>YL,"DateRangeType"),DefaultContentView:o(()=>rN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>zL,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>oN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>lN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>m5,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>T5,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>y5,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>h5,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>JL,"FilterPathType"),IgnoredFieldsType:o(()=>iN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>qL,"LinkListFlavorType"),ListFlavorType:o(()=>KL,"ListFlavorType"),ListTypeType:o(()=>XL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>aN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>WL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>b5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>v5,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>A5,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>S5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>E5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>cN,"SectionPosition"),SortOrderType:o(()=>QL,"SortOrderType"),Strategy:o(()=>nN,"Strategy"),TableColumnExtensionTypeV2:o(()=>tN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>eN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>g5,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>d5,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>ZL,"customColumnViewTypes")});var BL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(BL||{}),HL=(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.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(HL||{}),d5={"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.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},g5={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},GL=(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))(GL||{}),WL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(WL||{}),KL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(KL||{}),XL=(e=>(e.extended="extended",e.condensed="condensed",e))(XL||{}),QL=(e=>(e.ascending="ascending",e.descending="descending",e))(QL||{}),qL=(e=>(e.standard="standard",e.carousel="carousel",e))(qL||{}),YL=(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))(YL||{}),zL=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(zL||{}),JL=(e=>(e.key="key",e.catgory="category",e))(JL||{}),ZL=(e=>(e.XML="XML",e))(ZL||{}),eN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(eN||{}),tN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(tN||{}),nN=(e=>(e.extension="extension",e))(nN||{}),iN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(iN||{}),rN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(rN||{}),oN=(e=>(e.visual="visual",e.compact="compact",e))(oN||{}),aN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(aN||{}),sN=(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))(sN||{}),cN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(cN||{}),lN=(e=>(e.XML="XML",e))(lN||{}),fN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(fN||{}),m5="sap.suite.ui.generic.template",h5="sap.suite.ui.generic.template.ObjectPage",y5="sap.suite.ui.generic.template.ListReport",T5="sap.suite.ui.generic.template.AnalyticalListPage",v5="sap.ui.viewExtensions",b5="sap.ui.controllerExtensions",E5="sap.suite.ui.generic.template.ObjectPage.view.Details",S5="sap.suite.ui.generic.template.ListReport.view.ListReport",A5="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",uN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(uN||{}),pN={};Jv(pN,{ActionPlacement:o(()=>dN,"ActionPlacement"),Availability:o(()=>ON,"Availability"),CustomSectionViewTypesV4:o(()=>PN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>yN,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>P5,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>O5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>x5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>I5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>C5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>L5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>bN,"FilterFieldPlacement"),HorizontalAlign:o(()=>RN,"HorizontalAlign"),InitialLayoutType:o(()=>vN,"InitialLayoutType"),InitialLoadType:o(()=>hN,"InitialLoadType"),LayoutType:o(()=>TN,"LayoutType"),Placement:o(()=>IN,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>F5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>N5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>R5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>_5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>D5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>SN,"SectionLayoutType"),SectionPosition:o(()=>AN,"SectionPosition"),SectionPositionV4:o(()=>CN,"SectionPositionV4"),SelectType:o(()=>EN,"SelectType"),SelectionMode:o(()=>gN,"SelectionMode"),TableCreationModeType:o(()=>xN,"TableCreationModeType"),TableTypeV4:o(()=>mN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>NN,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>LN,"VariantManagementTypeObjectPage")});var dN=(e=>(e.After="After",e.Before="Before",e))(dN||{}),gN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(gN||{}),mN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(mN||{}),hN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(hN||{}),yN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(yN||{}),TN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(TN||{}),vN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(vN||{}),bN=(e=>(e.After="After",e.Before="Before",e))(bN||{}),EN=(e=>(e.single="single",e.multi="multi",e))(EN||{}),SN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(SN||{}),AN=(e=>(e.After="After",e.Before="Before",e))(AN||{}),PN=(e=>(e.XML="XML",e))(PN||{}),xN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(xN||{}),P5="sap.fe",x5="sap.fe.core.fpm",C5="sap.fe.templates.ObjectPage",I5="sap.fe.templates.ListReport",O5="sap.fe.templates.AnalyticalListPage",R5="XMLFragment",CN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(CN||{}),L5="sap.f.routing.Router",N5="sap.f",F5="sap.ui.controllerExtensions",D5="sap.fe.templates.ObjectPage.ObjectPageController",_5="sap.fe.templates.ListReport.ListReportController",IN=(e=>(e.After="After",e.Before="Before",e))(IN||{}),ON=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(ON||{}),RN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(RN||{}),LN=(e=>(e.None="None",e.Control="Control",e))(LN||{}),NN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(NN||{})});var UN=ze(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.Features=Xi.CustomExtensionType=Xi.TemplateType=Xi.PropertyMessageType=Xi.logSeverityLabel=Xi.LogSeverity=void 0;var _N;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(_N||(Xi.LogSeverity=_N={}));Xi.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var VN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(VN||(Xi.PropertyMessageType=VN={}));var wN;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(wN||(Xi.TemplateType=wN={}));var MN;(function(e){e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage"})(MN||(Xi.CustomExtensionType=MN={}));var kN;(function(e){e.BuildingBlocks="BuildingBlocks"})(kN||(Xi.Features=kN={}))});var pF=ze((DZ,uF)=>{var tb=Object.defineProperty,V5=Object.getOwnPropertyDescriptor,w5=Object.getOwnPropertyNames,M5=Object.prototype.hasOwnProperty,k5=o((e,t)=>{for(var n in t)tb(e,n,{get:t[n],enumerable:!0})},"h"),U5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of w5(t))!M5.call(e,r)&&r!==n&&tb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=V5(t,r))||i.enumerable});return e},"M"),j5=o(e=>U5(tb({},"__esModule",{value:!0}),e),"Q"),jN={};k5(jN,{CardSettingsType:o(()=>HN,"CardSettingsType"),CardTemplateType:o(()=>BN,"CardTemplateType"),ChartCardType:o(()=>$N,"ChartCardType"),ChartType:o(()=>aF,"ChartType"),ContainerLayoutType:o(()=>fF,"ContainerLayoutType"),CreateMode:o(()=>lF,"CreateMode"),DateRangeType:o(()=>qN,"DateRangeType"),DefaultContentView:o(()=>iF,"DefaultContentView"),DefaultDateRangeValueType:o(()=>YN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>rF,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>cF,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>H5,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>K5,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>W5,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>G5,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>zN,"FilterPathType"),IgnoredFieldsType:o(()=>nF,"IgnoredFieldsType"),LinkListFlavorType:o(()=>QN,"LinkListFlavorType"),ListFlavorType:o(()=>WN,"ListFlavorType"),ListTypeType:o(()=>KN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>oF,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>GN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>Q5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>X5,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>z5,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>Y5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>q5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>sF,"SectionPosition"),SortOrderType:o(()=>XN,"SortOrderType"),Strategy:o(()=>tF,"Strategy"),TableColumnExtensionTypeV2:o(()=>eF,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>ZN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>B5,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>$5,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>JN,"customColumnViewTypes")});uF.exports=j5(jN);var $N=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))($N||{}),BN=(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.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(BN||{}),$5={"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.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},B5={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},HN=(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))(HN||{}),GN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(GN||{}),WN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(WN||{}),KN=(e=>(e.extended="extended",e.condensed="condensed",e))(KN||{}),XN=(e=>(e.ascending="ascending",e.descending="descending",e))(XN||{}),QN=(e=>(e.standard="standard",e.carousel="carousel",e))(QN||{}),qN=(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))(qN||{}),YN=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(YN||{}),zN=(e=>(e.key="key",e.catgory="category",e))(zN||{}),JN=(e=>(e.XML="XML",e))(JN||{}),ZN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(ZN||{}),eF=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(eF||{}),tF=(e=>(e.extension="extension",e))(tF||{}),nF=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(nF||{}),iF=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(iF||{}),rF=(e=>(e.visual="visual",e.compact="compact",e))(rF||{}),oF=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(oF||{}),aF=(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))(aF||{}),sF=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(sF||{}),cF=(e=>(e.XML="XML",e))(cF||{}),lF=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(lF||{}),H5="sap.suite.ui.generic.template",G5="sap.suite.ui.generic.template.ObjectPage",W5="sap.suite.ui.generic.template.ListReport",K5="sap.suite.ui.generic.template.AnalyticalListPage",X5="sap.ui.viewExtensions",Q5="sap.ui.controllerExtensions",q5="sap.suite.ui.generic.template.ObjectPage.view.Details",Y5="sap.suite.ui.generic.template.ListReport.view.ListReport",z5="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",fF=(e=>(e.fixed="fixed",e.resizable="resizable",e))(fF||{})});var _F=ze((VZ,DF)=>{var nb=Object.defineProperty,J5=Object.getOwnPropertyDescriptor,Z5=Object.getOwnPropertyNames,eW=Object.prototype.hasOwnProperty,tW=o((e,t)=>{for(var n in t)nb(e,n,{get:t[n],enumerable:!0})},"E"),nW=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Z5(t))!eW.call(e,r)&&r!==n&&nb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=J5(t,r))||i.enumerable});return e},"R"),iW=o(e=>nW(nb({},"__esModule",{value:!0}),e),"h"),dF={};tW(dF,{ActionPlacement:o(()=>gF,"ActionPlacement"),Availability:o(()=>RF,"Availability"),CustomSectionViewTypesV4:o(()=>xF,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>TF,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>rW,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>cW,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>oW,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>sW,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>aW,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>fW,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>EF,"FilterFieldPlacement"),HorizontalAlign:o(()=>LF,"HorizontalAlign"),InitialLayoutType:o(()=>bF,"InitialLayoutType"),InitialLoadType:o(()=>yF,"InitialLoadType"),LayoutType:o(()=>vF,"LayoutType"),Placement:o(()=>OF,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>pW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>uW,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>lW,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>gW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>dW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>AF,"SectionLayoutType"),SectionPosition:o(()=>PF,"SectionPosition"),SectionPositionV4:o(()=>IF,"SectionPositionV4"),SelectType:o(()=>SF,"SelectType"),SelectionMode:o(()=>mF,"SelectionMode"),TableCreationModeType:o(()=>CF,"TableCreationModeType"),TableTypeV4:o(()=>hF,"TableTypeV4"),VariantManagementTypeListReport:o(()=>FF,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>NF,"VariantManagementTypeObjectPage")});DF.exports=iW(dF);var gF=(e=>(e.After="After",e.Before="Before",e))(gF||{}),mF=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(mF||{}),hF=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(hF||{}),yF=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(yF||{}),TF=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(TF||{}),vF=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(vF||{}),bF=(e=>(e.Compact="Compact",e.Visual="Visual",e))(bF||{}),EF=(e=>(e.After="After",e.Before="Before",e))(EF||{}),SF=(e=>(e.single="single",e.multi="multi",e))(SF||{}),AF=(e=>(e.Tabs="Tabs",e.Page="Page",e))(AF||{}),PF=(e=>(e.After="After",e.Before="Before",e))(PF||{}),xF=(e=>(e.XML="XML",e))(xF||{}),CF=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(CF||{}),rW="sap.fe",oW="sap.fe.core.fpm",aW="sap.fe.templates.ObjectPage",sW="sap.fe.templates.ListReport",cW="sap.fe.templates.AnalyticalListPage",lW="XMLFragment",IF=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(IF||{}),fW="sap.f.routing.Router",uW="sap.f",pW="sap.ui.controllerExtensions",dW="sap.fe.templates.ObjectPage.ObjectPageController",gW="sap.fe.templates.ListReport.ListReportController",OF=(e=>(e.After="After",e.Before="Before",e))(OF||{}),RF=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(RF||{}),LF=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(LF||{}),NF=(e=>(e.None="None",e.Control="Control",e))(NF||{}),FF=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(FF||{})});var ce=ze(hi=>{"use strict";var VF=hi&&hi.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),mW=hi&&hi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),wF=hi&&hi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&VF(t,e,n)},MF=hi&&hi.__importStar||function(){var e=o(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),r=0;r<i.length;r++)i[r]!=="default"&&VF(n,t,i[r]);return mW(n,t),n}}();Object.defineProperty(hi,"__esModule",{value:!0});hi.v4=hi.v2=void 0;wF(DN(),hi);wF(UN(),hi);hi.v2=MF(pF());hi.v4=MF(_F())});var bb=ze((tee,zF)=>{"use strict";var _W=o(function(t){return VW(t)&&!wW(t)},"isMergeableObject");function VW(e){return!!e&&typeof e=="object"}o(VW,"isNonNullObject");function wW(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||UW(e)}o(wW,"isSpecial");var MW=typeof Symbol=="function"&&Symbol.for,kW=MW?Symbol.for("react.element"):60103;function UW(e){return e.$$typeof===kW}o(UW,"isReactElement");function jW(e){return Array.isArray(e)?[]:{}}o(jW,"emptyTarget");function yu(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Sl(jW(e),e,t):e}o(yu,"cloneUnlessOtherwiseSpecified");function $W(e,t,n){return e.concat(t).map(function(i){return yu(i,n)})}o($W,"defaultArrayMerge");function BW(e,t){if(!t.customMerge)return Sl;var n=t.customMerge(e);return typeof n=="function"?n:Sl}o(BW,"getMergeFunction");function HW(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(HW,"getEnumerableOwnPropertySymbols");function qF(e){return Object.keys(e).concat(HW(e))}o(qF,"getKeys");function YF(e,t){try{return t in e}catch{return!1}}o(YF,"propertyIsOnObject");function GW(e,t){return YF(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(GW,"propertyIsUnsafe");function WW(e,t,n){var i={};return n.isMergeableObject(e)&&qF(e).forEach(function(r){i[r]=yu(e[r],n)}),qF(t).forEach(function(r){GW(e,r)||(YF(e,r)&&n.isMergeableObject(t[r])?i[r]=BW(r,n)(e[r],t[r],n):i[r]=yu(t[r],n))}),i}o(WW,"mergeObject");function Sl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||$W,n.isMergeableObject=n.isMergeableObject||_W,n.cloneUnlessOtherwiseSpecified=yu;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):WW(e,t,n):yu(t,n)}o(Sl,"deepmerge");Sl.all=o(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Sl(i,r,n)},{})},"deepmergeAll");var KW=Sl;zF.exports=KW});var $g=ze(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.mergeAnnotations=yt.addGetByValue=yt.createIndexedFind=yt.lazy=yt.Decimal=yt.Double=yt.isComplexTypeDefinition=yt.unalias=yt.alias=yt.substringBeforeLast=yt.substringBeforeFirst=yt.splitAtLast=yt.splitAtFirst=yt.defaultReferences=yt.TermToTypes=yt.EnumIsFlag=void 0;var XW=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(yt,"EnumIsFlag",{enumerable:!0,get:o(function(){return XW.EnumIsFlag},"get")});var QW=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(yt,"TermToTypes",{enumerable:!0,get:o(function(){return QW.TermToTypes},"get")});var qW=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(yt,"defaultReferences",{enumerable:!0,get:o(function(){return qW.VocabularyReferences},"get")});function JF(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(JF,"splitAt");function ZF(e,t){return t<0?e:e.substring(0,t)}o(ZF,"substringAt");function jg(e,t){return JF(e,e.indexOf(t))}o(jg,"splitAtFirst");yt.splitAtFirst=jg;function e0(e,t){return JF(e,e.lastIndexOf(t))}o(e0,"splitAtLast");yt.splitAtLast=e0;function YW(e,t){return ZF(e,e.indexOf(t))}o(YW,"substringBeforeFirst");yt.substringBeforeFirst=YW;function zW(e,t){return ZF(e,e.lastIndexOf(t))}o(zW,"substringBeforeLast");yt.substringBeforeLast=zW;function t0(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=e0(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=jg(t,"@");return`${a}@${t0(e,s)}`}else return t}o(t0,"alias");yt.alias=t0;function Eb(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=jg(a,".");if(!l||l.includes("."))return a;let u=s.startsWith("@"),p=u?s.substring(1):s,g=e.referenceMap[p];return g?u?`@${g.namespace}.${l}`:`${g.namespace}.${l}`:n&&!u?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,u]=jg(s,"("),p=[r(l)];if(u){let g=u.slice(0,-1);p.push(`(${r(g)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}o(Eb,"unalias");yt.unalias=Eb;function JW(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(JW,"isComplexTypeDefinition");yt.isComplexTypeDefinition=JW;function ZW(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(ZW,"Double");yt.Double=ZW;function e8(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(e8,"Decimal");yt.Decimal=e8;function t8(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(a){r=a}})}o(t8,"lazy");yt.lazy=t8;function n0(e,t){let n=new Map;return o(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}o(n0,"createIndexedFind");yt.createIndexedFind=n0;function n8(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:n0(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(n8,"addGetByValue");yt.addGetByValue=n8;function i8(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=Eb(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=Eb(e,g.term))!==null&&m!==void 0?m:g.term,g.fullyQualifiedName=g.qualifier?`${u}@${g.term}#${g.qualifier}`:`${u}@${g.term}`,g.__source=i,g}).filter(g=>!n[u].some(m=>m.term===g.term&&m.qualifier===g.qualifier));n[u].push(...p)}return n},{})}o(i8,"mergeAnnotations");yt.mergeAnnotations=i8});var h0=ze(Gg=>{"use strict";Object.defineProperty(Gg,"__esModule",{value:!0});Gg.convert=void 0;var Bg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Se=$g(),co=Symbol("Annotation Target");function ua(e,t){return e[e.length-1]!==t&&e.push(t),e}o(ua,"appendObjectPath");function mr(e,t,n,i){var r,a,s,l,u;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((m,h)=>{if(h.includes("@")){let[E,b]=(0,Se.splitAtFirst)(h,"@");m.push(E),m.push(`@${b}`)}else m.push(h);return m},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.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[co]!==void 0)t=t[co];else if(t._type==="Property"){let m=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,h)=>{var E,b,O,N,M;let H=o($=>(m.messages.push({message:$}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=ua(m.objectPath,m.target),h.startsWith("@")&&h!=="@$ui5.overload"){let[$,re]=e.splitTerm(h),Z=(E=m.target.annotations[$.substring(1)])===null||E===void 0?void 0:E[re];return Z!==void 0?(m.target=Z,m):H(`Annotation '${h.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let $;if(h==="$AnnotationPath"?$=m.target.value:h==="$Path"&&($=m.target.path),$!==void 0){let re=mr(e,m.target[co],$);return re.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=ua(m.objectPath,Z))}),m.target=re.target,m.objectPath=ua(m.objectPath,m.target),m}}switch((b=m.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let Z=m.target;if(h===""||e.unalias(h)===Z.fullyQualifiedName)return m;let oe=(N=(O=Z.entitySets.by_name(h))!==null&&O!==void 0?O:Z.singletons.by_name(h))!==null&&N!==void 0?N:Z.actionImports.by_name(h);if(oe)return m.target=oe,m}break;case"EntitySet":case"Singleton":{let Z=m.target;if(h===""||h==="$Type")return m.target=Z.entityType,m;if(h==="$")return m;if(h==="$NavigationPropertyBinding"){let Ae=Z.navigationPropertyBinding;return m.target=Ae,m}let oe=mr(e,Z.entityType,h);return m.target=oe.target,m.objectPath=oe.objectPath.reduce(ua,m.objectPath),m}case"EntityType":{let Z=m.target;if(h===""||h==="$Type")return m;let oe=Z.entityProperties.by_name(h);if(oe)return m.target=oe,m;let Ae=Z.navigationProperties.by_name(h);if(Ae)return m.target=Ae,m;let D=(0,Se.substringBeforeFirst)(e.unalias(h),"("),ut=Z.actions[D];if(ut)return m.target=ut,m}break;case"ActionImport":{let Z=mr(e,m.target.action,h);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(ua,m.objectPath),m}case"Action":{let Z=m.target;if(h===""||h==="@$ui5.overload"||h==="0")return m;if(h==="$Parameter"&&Z.isBound)return m.target=Z.parameters,m;let oe=(M=Z.parameters[h])!==null&&M!==void 0?M:Z.parameters.find(Ae=>Ae.name===h);if(oe)return m.target=oe,m;break}case"Property":{let oe=m.target.targetType;if(oe!==void 0){let Ae=oe.properties.by_name(h);if(Ae)return m.target=Ae,m;let D=oe.navigationProperties.by_name(h);if(D)return m.target=D,m}}break;case"ActionParameter":let $=m.target.typeReference;if($!==void 0){let Z=mr(e,$,h);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(ua,m.objectPath),m}break;case"NavigationProperty":let re=mr(e,m.target.targetType,h);return m.target=re.target,m.objectPath=re.objectPath.reduce(ua,m.objectPath),m;default:if(h==="")return m;if(m.target[h])return m.target=m.target[h],m.objectPath=ua(m.objectPath,m.target),m}return H(`Element '${h}' not found at ${m.target._type} '${m.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(g.messages.forEach(m=>e.logError(m.message)),!g.target)if(i){let m=s0(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):
|
|
@@ -24,9 +24,9 @@ Char: `+I.c),A=new Error(A),I.error=A,ht(I,"onerror",A),I}o(tn,"error");function
|
|
|
24
24
|
Actual: `+I.attribValue);else if(V==="xmlns"&&I.attribValue!==E)Ne(I,"xmlns: prefix must be bound to "+E+`
|
|
25
25
|
Actual: `+I.attribValue);else{var _e=I.tag,Nt=I.tags[I.tags.length-1]||I;_e.ns===Nt.ns&&(_e.ns=Object.create(Nt.ns)),_e.ns[V]=I.attribValue}I.attribList.push([I.attribName,I.attribValue])}else I.tag.attributes[I.attribName]=I.attribValue,je(I,"onattribute",{name:I.attribName,value:I.attribValue});I.attribName=I.attribValue=""}o(kt,"attrib");function cn(I,A){if(I.opt.xmlns){var Y=I.tag,V=Ct(I.tagName);Y.prefix=V.prefix,Y.local=V.local,Y.uri=Y.ns[V.prefix]||"",Y.prefix&&!Y.uri&&(Ne(I,"Unbound namespace prefix: "+JSON.stringify(I.tagName)),Y.uri=V.prefix);var _e=I.tags[I.tags.length-1]||I;Y.ns&&_e.ns!==Y.ns&&Object.keys(Y.ns).forEach(function(Gt){je(I,"onopennamespace",{prefix:Gt,uri:Y.ns[Gt]})});for(var Nt=0,qe=I.attribList.length;Nt<qe;Nt++){var Ut=I.attribList[Nt],yn=Ut[0],ln=Ut[1],Ht=Ct(yn,!0),ti=Ht.prefix,sr=Ht.local,gn=ti===""?"":Y.ns[ti]||"",di={name:yn,value:ln,prefix:ti,local:sr,uri:gn};ti&&ti!=="xmlns"&&!gn&&(Ne(I,"Unbound namespace prefix: "+JSON.stringify(ti)),di.uri=ti),I.tag.attributes[yn]=di,je(I,"onattribute",di)}I.attribList.length=0}I.tag.isSelfClosing=!!A,I.sawRoot=!0,I.tags.push(I.tag),je(I,"onopentag",I.tag),A||(!I.noscript&&I.tagName.toLowerCase()==="script"?I.state=D.SCRIPT:I.state=D.TEXT,I.tag=null,I.tagName=""),I.attribName=I.attribValue="",I.attribList.length=0}o(cn,"openTag");function $i(I){if(!I.tagName){Ne(I,"Weird empty close tag."),I.textNode+="</>",I.state=D.TEXT;return}if(I.script){if(I.tagName!=="script"){I.script+="</"+I.tagName+">",I.tagName="",I.state=D.SCRIPT;return}je(I,"onscript",I.script),I.script=""}var A=I.tags.length,Y=I.tagName;I.strict||(Y=Y[I.looseCase]());for(var V=Y;A--;){var _e=I.tags[A];if(_e.name!==V)Ne(I,"Unexpected close tag");else break}if(A<0){Ne(I,"Unmatched closing tag: "+I.tagName),I.textNode+="</"+I.tagName+">",I.state=D.TEXT;return}I.tagName=Y;for(var Nt=I.tags.length;Nt-- >A;){var qe=I.tag=I.tags.pop();I.tagName=I.tag.name,je(I,"onclosetag",I.tagName);var Ut={};for(var yn in qe.ns)Ut[yn]=qe.ns[yn];var ln=I.tags[I.tags.length-1]||I;I.opt.xmlns&&qe.ns!==ln.ns&&Object.keys(qe.ns).forEach(function(Ht){var ti=qe.ns[Ht];je(I,"onclosenamespace",{prefix:Ht,uri:ti})})}A===0&&(I.closedRoot=!0),I.tagName=I.attribValue=I.attribName="",I.attribList.length=0,I.state=D.TEXT}o($i,"closeTag");function Fe(I){var A=I.entity,Y=A.toLowerCase(),V,_e="";return I.ENTITIES[A]?I.ENTITIES[A]:I.ENTITIES[Y]?I.ENTITIES[Y]:(A=Y,A.charAt(0)==="#"&&(A.charAt(1)==="x"?(A=A.slice(2),V=parseInt(A,16),_e=V.toString(16)):(A=A.slice(1),V=parseInt(A,10),_e=V.toString(10))),A=A.replace(/^0+/,""),isNaN(V)||_e.toLowerCase()!==A?(Ne(I,"Invalid character entity"),"&"+I.entity+";"):String.fromCodePoint(V))}o(Fe,"parseEntity");function Kn(I,A){A==="<"?(I.state=D.OPEN_WAKA,I.startTagPosition=I.position):$(A)||(Ne(I,"Non-whitespace before first tag."),I.textNode=A,I.state=D.TEXT)}o(Kn,"beginWhiteSpace");function Lr(I,A){var Y="";return A<I.length&&(Y=I.charAt(A)),Y}o(Lr,"charAt");function ot(I){var A=this;if(this.error)throw this.error;if(A.closed)return tn(A,"Cannot write after close. Assign an onready handler.");if(I===null)return Lt(A);typeof I=="object"&&(I=I.toString());for(var Y=0,V="";V=Lr(I,Y++),A.c=V,!!V;)switch(A.trackPosition&&(A.position++,V===`
|
|
26
26
|
`?(A.line++,A.column=0):A.column++),A.state){case D.BEGIN:if(A.state=D.BEGIN_WHITESPACE,V==="\uFEFF")continue;Kn(A,V);continue;case D.BEGIN_WHITESPACE:Kn(A,V);continue;case D.TEXT:if(A.sawRoot&&!A.closedRoot){for(var _e=Y-1;V&&V!=="<"&&V!=="&";)V=Lr(I,Y++),V&&A.trackPosition&&(A.position++,V===`
|
|
27
|
-
`?(A.line++,A.column=0):A.column++);A.textNode+=I.substring(_e,Y-1)}V==="<"&&!(A.sawRoot&&A.closedRoot&&!A.strict)?(A.state=D.OPEN_WAKA,A.startTagPosition=A.position):(!$(V)&&(!A.sawRoot||A.closedRoot)&&Ne(A,"Text data outside of root node."),V==="&"?A.state=D.TEXT_ENTITY:A.textNode+=V);continue;case D.SCRIPT:V==="<"?A.state=D.SCRIPT_ENDING:A.script+=V;continue;case D.SCRIPT_ENDING:V==="/"?A.state=D.CLOSE_TAG:(A.script+="<"+V,A.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(V==="!")A.state=D.SGML_DECL,A.sgmlDecl="";else if(!$(V))if(oe(O,V))A.state=D.OPEN_TAG,A.tagName=V;else if(V==="/")A.state=D.CLOSE_TAG,A.tagName="";else if(V==="?")A.state=D.PROC_INST,A.procInstName=A.procInstBody="";else{if(Ne(A,"Unencoded <"),A.startTagPosition+1<A.position){var Nt=A.position-A.startTagPosition;V=new Array(Nt).join(" ")+V}A.textNode+="<"+V,A.state=D.TEXT}continue;case D.SGML_DECL:if(A.sgmlDecl+V==="--"){A.state=D.COMMENT,A.comment="",A.sgmlDecl="";continue}A.doctype&&A.doctype!==!0&&A.sgmlDecl?(A.state=D.DOCTYPE_DTD,A.doctype+="<!"+A.sgmlDecl+V,A.sgmlDecl=""):(A.sgmlDecl+V).toUpperCase()===g?(je(A,"onopencdata"),A.state=D.CDATA,A.sgmlDecl="",A.cdata=""):(A.sgmlDecl+V).toUpperCase()===m?(A.state=D.DOCTYPE,(A.doctype||A.sawRoot)&&Ne(A,"Inappropriately located doctype declaration"),A.doctype="",A.sgmlDecl=""):V===">"?(je(A,"onsgmldeclaration",A.sgmlDecl),A.sgmlDecl="",A.state=D.TEXT):(re(V)&&(A.state=D.SGML_DECL_QUOTED),A.sgmlDecl+=V);continue;case D.SGML_DECL_QUOTED:V===A.q&&(A.state=D.SGML_DECL,A.q=""),A.sgmlDecl+=V;continue;case D.DOCTYPE:V===">"?(A.state=D.TEXT,je(A,"ondoctype",A.doctype),A.doctype=!0):(A.doctype+=V,V==="["?A.state=D.DOCTYPE_DTD:re(V)&&(A.state=D.DOCTYPE_QUOTED,A.q=V));continue;case D.DOCTYPE_QUOTED:A.doctype+=V,V===A.q&&(A.q="",A.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:V==="]"?(A.doctype+=V,A.state=D.DOCTYPE):V==="<"?(A.state=D.OPEN_WAKA,A.startTagPosition=A.position):re(V)?(A.doctype+=V,A.state=D.DOCTYPE_DTD_QUOTED,A.q=V):A.doctype+=V;continue;case D.DOCTYPE_DTD_QUOTED:A.doctype+=V,V===A.q&&(A.state=D.DOCTYPE_DTD,A.q="");continue;case D.COMMENT:V==="-"?A.state=D.COMMENT_ENDING:A.comment+=V;continue;case D.COMMENT_ENDING:V==="-"?(A.state=D.COMMENT_ENDED,A.comment=Wn(A.opt,A.comment),A.comment&&je(A,"oncomment",A.comment),A.comment=""):(A.comment+="-"+V,A.state=D.COMMENT);continue;case D.COMMENT_ENDED:V!==">"?(Ne(A,"Malformed comment"),A.comment+="--"+V,A.state=D.COMMENT):A.doctype&&A.doctype!==!0?A.state=D.DOCTYPE_DTD:A.state=D.TEXT;continue;case D.CDATA:V==="]"?A.state=D.CDATA_ENDING:A.cdata+=V;continue;case D.CDATA_ENDING:V==="]"?A.state=D.CDATA_ENDING_2:(A.cdata+="]"+V,A.state=D.CDATA);continue;case D.CDATA_ENDING_2:V===">"?(A.cdata&&je(A,"oncdata",A.cdata),je(A,"onclosecdata"),A.cdata="",A.state=D.TEXT):V==="]"?A.cdata+="]":(A.cdata+="]]"+V,A.state=D.CDATA);continue;case D.PROC_INST:V==="?"?A.state=D.PROC_INST_ENDING:$(V)?A.state=D.PROC_INST_BODY:A.procInstName+=V;continue;case D.PROC_INST_BODY:if(!A.procInstBody&&$(V))continue;V==="?"?A.state=D.PROC_INST_ENDING:A.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(je(A,"onprocessinginstruction",{name:A.procInstName,body:A.procInstBody}),A.procInstName=A.procInstBody="",A.state=D.TEXT):(A.procInstBody+="?"+V,A.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:oe(N,V)?A.tagName+=V:(Ci(A),V===">"?cn(A):V==="/"?A.state=D.OPEN_TAG_SLASH:($(V)||Ne(A,"Invalid character in tag name"),A.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(cn(A,!0),$i(A)):(Ne(A,"Forward-slash in opening tag not followed by >"),A.state=D.ATTRIB);continue;case D.ATTRIB:if($(V))continue;V===">"?cn(A):V==="/"?A.state=D.OPEN_TAG_SLASH:oe(O,V)?(A.attribName=V,A.attribValue="",A.state=D.ATTRIB_NAME):Ne(A,"Invalid attribute name");continue;case D.ATTRIB_NAME:V==="="?A.state=D.ATTRIB_VALUE:V===">"?(Ne(A,"Attribute without value"),A.attribValue=A.attribName,kt(A),cn(A)):$(V)?A.state=D.ATTRIB_NAME_SAW_WHITE:oe(N,V)?A.attribName+=V:Ne(A,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(V==="=")A.state=D.ATTRIB_VALUE;else{if($(V))continue;Ne(A,"Attribute without value"),A.tag.attributes[A.attribName]="",A.attribValue="",je(A,"onattribute",{name:A.attribName,value:""}),A.attribName="",V===">"?cn(A):oe(O,V)?(A.attribName=V,A.state=D.ATTRIB_NAME):(Ne(A,"Invalid attribute name"),A.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if($(V))continue;re(V)?(A.q=V,A.state=D.ATTRIB_VALUE_QUOTED):(A.opt.unquotedAttributeValues||tn(A,"Unquoted attribute value"),A.state=D.ATTRIB_VALUE_UNQUOTED,A.attribValue=V);continue;case D.ATTRIB_VALUE_QUOTED:if(V!==A.q){V==="&"?A.state=D.ATTRIB_VALUE_ENTITY_Q:A.attribValue+=V;continue}kt(A),A.q="",A.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:$(V)?A.state=D.ATTRIB:V===">"?cn(A):V==="/"?A.state=D.OPEN_TAG_SLASH:oe(O,V)?(Ne(A,"No whitespace between attributes"),A.attribName=V,A.attribValue="",A.state=D.ATTRIB_NAME):Ne(A,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!Z(V)){V==="&"?A.state=D.ATTRIB_VALUE_ENTITY_U:A.attribValue+=V;continue}kt(A),V===">"?cn(A):A.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(A.tagName)V===">"?$i(A):oe(N,V)?A.tagName+=V:A.script?(A.script+="</"+A.tagName,A.tagName="",A.state=D.SCRIPT):($(V)||Ne(A,"Invalid tagname in closing tag"),A.state=D.CLOSE_TAG_SAW_WHITE);else{if($(V))continue;Ae(O,V)?A.script?(A.script+="</"+V,A.state=D.SCRIPT):Ne(A,"Invalid tagname in closing tag."):A.tagName=V}continue;case D.CLOSE_TAG_SAW_WHITE:if($(V))continue;V===">"?$i(A):Ne(A,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var qe,Ut;switch(A.state){case D.TEXT_ENTITY:qe=D.TEXT,Ut="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:qe=D.ATTRIB_VALUE_QUOTED,Ut="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:qe=D.ATTRIB_VALUE_UNQUOTED,Ut="attribValue";break}if(V===";"){var yn=Fe(A);A.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(yn)?(A.entity="",A.state=qe,A.write(yn)):(A[Ut]+=yn,A.entity="",A.state=qe)}else oe(A.entity.length?H:M,V)?A.entity+=V:(Ne(A,"Invalid character in entity name"),A[Ut]+="&"+A.entity+V,A.entity="",A.state=qe);continue;default:throw new Error(A,"Unknown state: "+A.state)}return A.position>=A.bufferCheckPosition&&i(A),A}o(ot,"write");String.fromCodePoint||function(){var I=String.fromCharCode,A=Math.floor,Y=o(function(){var V=16384,_e=[],Nt,qe,Ut=-1,yn=arguments.length;if(!yn)return"";for(var ln="";++Ut<yn;){var Ht=Number(arguments[Ut]);if(!isFinite(Ht)||Ht<0||Ht>1114111||A(Ht)!==Ht)throw RangeError("Invalid code point: "+Ht);Ht<=65535?_e.push(Ht):(Ht-=65536,Nt=(Ht>>10)+55296,qe=Ht%1024+56320,_e.push(Nt,qe)),(Ut+1===yn||_e.length>V)&&(ln+=I.apply(null,_e),_e.length=0)}return ln},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y}()})(typeof Qg>"u"?Qg.sax={}:Qg)});var qg=ze((hee,P0)=>{P0.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Yg=ze((Tee,x0)=>{var A8=qg().isArray;x0.exports={copyOptions:o(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:o(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:o(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:o(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!A8(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:o(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:o(function(e,t){return e+"Fn"in t},"checkFnExists")}});var _b=ze((bee,D0)=>{var P8=A0(),x8={on:o(function(){},"on"),parse:o(function(){},"parse")},nt=Yg(),Al=qg().isArray,G,Db=!0,$e;function C8(e){return G=nt.copyOptions(e),nt.ensureFlagExists("ignoreDeclaration",G),nt.ensureFlagExists("ignoreInstruction",G),nt.ensureFlagExists("ignoreAttributes",G),nt.ensureFlagExists("ignoreText",G),nt.ensureFlagExists("ignoreComment",G),nt.ensureFlagExists("ignoreCdata",G),nt.ensureFlagExists("ignoreDoctype",G),nt.ensureFlagExists("compact",G),nt.ensureFlagExists("alwaysChildren",G),nt.ensureFlagExists("addParent",G),nt.ensureFlagExists("trim",G),nt.ensureFlagExists("nativeType",G),nt.ensureFlagExists("nativeTypeAttributes",G),nt.ensureFlagExists("sanitize",G),nt.ensureFlagExists("instructionHasAttributes",G),nt.ensureFlagExists("captureSpacesBetweenElements",G),nt.ensureAlwaysArrayExists(G),nt.ensureKeyExists("declaration",G),nt.ensureKeyExists("instruction",G),nt.ensureKeyExists("attributes",G),nt.ensureKeyExists("text",G),nt.ensureKeyExists("comment",G),nt.ensureKeyExists("cdata",G),nt.ensureKeyExists("doctype",G),nt.ensureKeyExists("type",G),nt.ensureKeyExists("name",G),nt.ensureKeyExists("elements",G),nt.ensureKeyExists("parent",G),nt.checkFnExists("doctype",G),nt.checkFnExists("instruction",G),nt.checkFnExists("cdata",G),nt.checkFnExists("comment",G),nt.checkFnExists("text",G),nt.checkFnExists("instructionName",G),nt.checkFnExists("elementName",G),nt.checkFnExists("attributeName",G),nt.checkFnExists("attributeValue",G),nt.checkFnExists("attributes",G),G}o(C8,"validateOptions");function N0(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(N0,"nativeType");function vu(e,t){var n;if(G.compact){if(!$e[G[e+"Key"]]&&(Al(G.alwaysArray)?G.alwaysArray.indexOf(G[e+"Key"])!==-1:G.alwaysArray)&&($e[G[e+"Key"]]=[]),$e[G[e+"Key"]]&&!Al($e[G[e+"Key"]])&&($e[G[e+"Key"]]=[$e[G[e+"Key"]]]),e+"Fn"in G&&typeof t=="string"&&(t=G[e+"Fn"](t,$e)),e==="instruction"&&("instructionFn"in G||"instructionNameFn"in G)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in G)t[n]=G.instructionFn(t[n],n,$e);else{var i=t[n];delete t[n],t[G.instructionNameFn(n,i,$e)]=i}}Al($e[G[e+"Key"]])?$e[G[e+"Key"]].push(t):$e[G[e+"Key"]]=t}else{$e[G.elementsKey]||($e[G.elementsKey]=[]);var r={};if(r[G.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[G.nameKey]="instructionNameFn"in G?G.instructionNameFn(n,t,$e):n,G.instructionHasAttributes?(r[G.attributesKey]=t[n][G.attributesKey],"instructionFn"in G&&(r[G.attributesKey]=G.instructionFn(r[G.attributesKey],n,$e))):("instructionFn"in G&&(t[n]=G.instructionFn(t[n],n,$e)),r[G.instructionKey]=t[n])}else e+"Fn"in G&&(t=G[e+"Fn"](t,$e)),r[G[e+"Key"]]=t;G.addParent&&(r[G.parentKey]=$e),$e[G.elementsKey].push(r)}}o(vu,"addField");function F0(e){if("attributesFn"in G&&e&&(e=G.attributesFn(e,$e)),(G.trim||"attributeValueFn"in G||"attributeNameFn"in G||G.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(G.trim&&(e[t]=e[t].trim()),G.nativeTypeAttributes&&(e[t]=N0(e[t])),"attributeValueFn"in G&&(e[t]=G.attributeValueFn(e[t],t,$e)),"attributeNameFn"in G)){var n=e[t];delete e[t],e[G.attributeNameFn(t,e[t],$e)]=n}}return e}o(F0,"manipulateAttributes");function I8(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||G.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=F0(t)}if(e.name.toLowerCase()==="xml"){if(G.ignoreDeclaration)return;$e[G.declarationKey]={},Object.keys(t).length&&($e[G.declarationKey][G.attributesKey]=t),G.addParent&&($e[G.declarationKey][G.parentKey]=$e)}else{if(G.ignoreInstruction)return;G.trim&&(e.body=e.body.trim());var r={};G.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][G.attributesKey]=t):r[e.name]=e.body,vu("instruction",r)}}o(I8,"onInstruction");function C0(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=F0(t),"elementNameFn"in G&&(e=G.elementNameFn(e,$e)),G.compact){if(n={},!G.ignoreAttributes&&t&&Object.keys(t).length){n[G.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[G.attributesKey][i]=t[i])}!(e in $e)&&(Al(G.alwaysArray)?G.alwaysArray.indexOf(e)!==-1:G.alwaysArray)&&($e[e]=[]),$e[e]&&!Al($e[e])&&($e[e]=[$e[e]]),Al($e[e])?$e[e].push(n):$e[e]=n}else $e[G.elementsKey]||($e[G.elementsKey]=[]),n={},n[G.typeKey]="element",n[G.nameKey]=e,!G.ignoreAttributes&&t&&Object.keys(t).length&&(n[G.attributesKey]=t),G.alwaysChildren&&(n[G.elementsKey]=[]),$e[G.elementsKey].push(n);n[G.parentKey]=$e,$e=n}o(C0,"onStartElement");function I0(e){G.ignoreText||!e.trim()&&!G.captureSpacesBetweenElements||(G.trim&&(e=e.trim()),G.nativeType&&(e=N0(e)),G.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),vu("text",e))}o(I0,"onText");function O0(e){G.ignoreComment||(G.trim&&(e=e.trim()),vu("comment",e))}o(O0,"onComment");function R0(e){var t=$e[G.parentKey];G.addParent||delete $e[G.parentKey],$e=t}o(R0,"onEndElement");function O8(e){G.ignoreCdata||(G.trim&&(e=e.trim()),vu("cdata",e))}o(O8,"onCdata");function R8(e){G.ignoreDoctype||(e=e.replace(/^ /,""),G.trim&&(e=e.trim()),vu("doctype",e))}o(R8,"onDoctype");function L0(e){e.note=e}o(L0,"onError");D0.exports=function(e,t){var n=Db?P8.parser(!0,{}):n=new x8.Parser("UTF-8"),i={};if($e=i,G=C8(t),Db?(n.opt={strictEntities:!0},n.onopentag=C0,n.ontext=I0,n.oncomment=O0,n.onclosetag=R0,n.onerror=L0,n.oncdata=O8,n.ondoctype=R8,n.onprocessinginstruction=I8):(n.on("startElement",C0),n.on("text",I0),n.on("comment",O0),n.on("endElement",R0),n.on("error",L0)),Db)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[G.elementsKey]){var r=i[G.elementsKey];delete i[G.elementsKey],i[G.elementsKey]=r,delete i.text}return i}});var w0=ze((See,V0)=>{var _0=Yg(),L8=_b();function N8(e){var t=_0.copyOptions(e);return _0.ensureSpacesExists(t),t}o(N8,"validateOptions");V0.exports=function(e,t){var n,i,r,a;return n=N8(t),i=L8(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var wb=ze((Pee,W0)=>{var st=Yg(),F8=qg().isArray,yi,Ti;function D8(e){var t=st.copyOptions(e);return st.ensureFlagExists("ignoreDeclaration",t),st.ensureFlagExists("ignoreInstruction",t),st.ensureFlagExists("ignoreAttributes",t),st.ensureFlagExists("ignoreText",t),st.ensureFlagExists("ignoreComment",t),st.ensureFlagExists("ignoreCdata",t),st.ensureFlagExists("ignoreDoctype",t),st.ensureFlagExists("compact",t),st.ensureFlagExists("indentText",t),st.ensureFlagExists("indentCdata",t),st.ensureFlagExists("indentAttributes",t),st.ensureFlagExists("indentInstruction",t),st.ensureFlagExists("fullTagEmptyElement",t),st.ensureFlagExists("noQuotesForNativeAttributes",t),st.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),st.ensureKeyExists("declaration",t),st.ensureKeyExists("instruction",t),st.ensureKeyExists("attributes",t),st.ensureKeyExists("text",t),st.ensureKeyExists("comment",t),st.ensureKeyExists("cdata",t),st.ensureKeyExists("doctype",t),st.ensureKeyExists("type",t),st.ensureKeyExists("name",t),st.ensureKeyExists("elements",t),st.checkFnExists("doctype",t),st.checkFnExists("instruction",t),st.checkFnExists("cdata",t),st.checkFnExists("comment",t),st.checkFnExists("text",t),st.checkFnExists("instructionName",t),st.checkFnExists("elementName",t),st.checkFnExists("attributeName",t),st.checkFnExists("attributeValue",t),st.checkFnExists("attributes",t),st.checkFnExists("fullTagEmptyElement",t),t}o(D8,"validateOptions");function Do(e,t,n){return(!n&&e.spaces?`
|
|
27
|
+
`?(A.line++,A.column=0):A.column++);A.textNode+=I.substring(_e,Y-1)}V==="<"&&!(A.sawRoot&&A.closedRoot&&!A.strict)?(A.state=D.OPEN_WAKA,A.startTagPosition=A.position):(!$(V)&&(!A.sawRoot||A.closedRoot)&&Ne(A,"Text data outside of root node."),V==="&"?A.state=D.TEXT_ENTITY:A.textNode+=V);continue;case D.SCRIPT:V==="<"?A.state=D.SCRIPT_ENDING:A.script+=V;continue;case D.SCRIPT_ENDING:V==="/"?A.state=D.CLOSE_TAG:(A.script+="<"+V,A.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(V==="!")A.state=D.SGML_DECL,A.sgmlDecl="";else if(!$(V))if(oe(O,V))A.state=D.OPEN_TAG,A.tagName=V;else if(V==="/")A.state=D.CLOSE_TAG,A.tagName="";else if(V==="?")A.state=D.PROC_INST,A.procInstName=A.procInstBody="";else{if(Ne(A,"Unencoded <"),A.startTagPosition+1<A.position){var Nt=A.position-A.startTagPosition;V=new Array(Nt).join(" ")+V}A.textNode+="<"+V,A.state=D.TEXT}continue;case D.SGML_DECL:if(A.sgmlDecl+V==="--"){A.state=D.COMMENT,A.comment="",A.sgmlDecl="";continue}A.doctype&&A.doctype!==!0&&A.sgmlDecl?(A.state=D.DOCTYPE_DTD,A.doctype+="<!"+A.sgmlDecl+V,A.sgmlDecl=""):(A.sgmlDecl+V).toUpperCase()===g?(je(A,"onopencdata"),A.state=D.CDATA,A.sgmlDecl="",A.cdata=""):(A.sgmlDecl+V).toUpperCase()===m?(A.state=D.DOCTYPE,(A.doctype||A.sawRoot)&&Ne(A,"Inappropriately located doctype declaration"),A.doctype="",A.sgmlDecl=""):V===">"?(je(A,"onsgmldeclaration",A.sgmlDecl),A.sgmlDecl="",A.state=D.TEXT):(re(V)&&(A.state=D.SGML_DECL_QUOTED),A.sgmlDecl+=V);continue;case D.SGML_DECL_QUOTED:V===A.q&&(A.state=D.SGML_DECL,A.q=""),A.sgmlDecl+=V;continue;case D.DOCTYPE:V===">"?(A.state=D.TEXT,je(A,"ondoctype",A.doctype),A.doctype=!0):(A.doctype+=V,V==="["?A.state=D.DOCTYPE_DTD:re(V)&&(A.state=D.DOCTYPE_QUOTED,A.q=V));continue;case D.DOCTYPE_QUOTED:A.doctype+=V,V===A.q&&(A.q="",A.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:V==="]"?(A.doctype+=V,A.state=D.DOCTYPE):V==="<"?(A.state=D.OPEN_WAKA,A.startTagPosition=A.position):re(V)?(A.doctype+=V,A.state=D.DOCTYPE_DTD_QUOTED,A.q=V):A.doctype+=V;continue;case D.DOCTYPE_DTD_QUOTED:A.doctype+=V,V===A.q&&(A.state=D.DOCTYPE_DTD,A.q="");continue;case D.COMMENT:V==="-"?A.state=D.COMMENT_ENDING:A.comment+=V;continue;case D.COMMENT_ENDING:V==="-"?(A.state=D.COMMENT_ENDED,A.comment=Wn(A.opt,A.comment),A.comment&&je(A,"oncomment",A.comment),A.comment=""):(A.comment+="-"+V,A.state=D.COMMENT);continue;case D.COMMENT_ENDED:V!==">"?(Ne(A,"Malformed comment"),A.comment+="--"+V,A.state=D.COMMENT):A.doctype&&A.doctype!==!0?A.state=D.DOCTYPE_DTD:A.state=D.TEXT;continue;case D.CDATA:V==="]"?A.state=D.CDATA_ENDING:A.cdata+=V;continue;case D.CDATA_ENDING:V==="]"?A.state=D.CDATA_ENDING_2:(A.cdata+="]"+V,A.state=D.CDATA);continue;case D.CDATA_ENDING_2:V===">"?(A.cdata&&je(A,"oncdata",A.cdata),je(A,"onclosecdata"),A.cdata="",A.state=D.TEXT):V==="]"?A.cdata+="]":(A.cdata+="]]"+V,A.state=D.CDATA);continue;case D.PROC_INST:V==="?"?A.state=D.PROC_INST_ENDING:$(V)?A.state=D.PROC_INST_BODY:A.procInstName+=V;continue;case D.PROC_INST_BODY:if(!A.procInstBody&&$(V))continue;V==="?"?A.state=D.PROC_INST_ENDING:A.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(je(A,"onprocessinginstruction",{name:A.procInstName,body:A.procInstBody}),A.procInstName=A.procInstBody="",A.state=D.TEXT):(A.procInstBody+="?"+V,A.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:oe(N,V)?A.tagName+=V:(Ci(A),V===">"?cn(A):V==="/"?A.state=D.OPEN_TAG_SLASH:($(V)||Ne(A,"Invalid character in tag name"),A.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(cn(A,!0),$i(A)):(Ne(A,"Forward-slash in opening tag not followed by >"),A.state=D.ATTRIB);continue;case D.ATTRIB:if($(V))continue;V===">"?cn(A):V==="/"?A.state=D.OPEN_TAG_SLASH:oe(O,V)?(A.attribName=V,A.attribValue="",A.state=D.ATTRIB_NAME):Ne(A,"Invalid attribute name");continue;case D.ATTRIB_NAME:V==="="?A.state=D.ATTRIB_VALUE:V===">"?(Ne(A,"Attribute without value"),A.attribValue=A.attribName,kt(A),cn(A)):$(V)?A.state=D.ATTRIB_NAME_SAW_WHITE:oe(N,V)?A.attribName+=V:Ne(A,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(V==="=")A.state=D.ATTRIB_VALUE;else{if($(V))continue;Ne(A,"Attribute without value"),A.tag.attributes[A.attribName]="",A.attribValue="",je(A,"onattribute",{name:A.attribName,value:""}),A.attribName="",V===">"?cn(A):oe(O,V)?(A.attribName=V,A.state=D.ATTRIB_NAME):(Ne(A,"Invalid attribute name"),A.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if($(V))continue;re(V)?(A.q=V,A.state=D.ATTRIB_VALUE_QUOTED):(A.opt.unquotedAttributeValues||tn(A,"Unquoted attribute value"),A.state=D.ATTRIB_VALUE_UNQUOTED,A.attribValue=V);continue;case D.ATTRIB_VALUE_QUOTED:if(V!==A.q){V==="&"?A.state=D.ATTRIB_VALUE_ENTITY_Q:A.attribValue+=V;continue}kt(A),A.q="",A.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:$(V)?A.state=D.ATTRIB:V===">"?cn(A):V==="/"?A.state=D.OPEN_TAG_SLASH:oe(O,V)?(Ne(A,"No whitespace between attributes"),A.attribName=V,A.attribValue="",A.state=D.ATTRIB_NAME):Ne(A,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!Z(V)){V==="&"?A.state=D.ATTRIB_VALUE_ENTITY_U:A.attribValue+=V;continue}kt(A),V===">"?cn(A):A.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(A.tagName)V===">"?$i(A):oe(N,V)?A.tagName+=V:A.script?(A.script+="</"+A.tagName,A.tagName="",A.state=D.SCRIPT):($(V)||Ne(A,"Invalid tagname in closing tag"),A.state=D.CLOSE_TAG_SAW_WHITE);else{if($(V))continue;Ae(O,V)?A.script?(A.script+="</"+V,A.state=D.SCRIPT):Ne(A,"Invalid tagname in closing tag."):A.tagName=V}continue;case D.CLOSE_TAG_SAW_WHITE:if($(V))continue;V===">"?$i(A):Ne(A,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var qe,Ut;switch(A.state){case D.TEXT_ENTITY:qe=D.TEXT,Ut="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:qe=D.ATTRIB_VALUE_QUOTED,Ut="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:qe=D.ATTRIB_VALUE_UNQUOTED,Ut="attribValue";break}if(V===";"){var yn=Fe(A);A.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(yn)?(A.entity="",A.state=qe,A.write(yn)):(A[Ut]+=yn,A.entity="",A.state=qe)}else oe(A.entity.length?H:M,V)?A.entity+=V:(Ne(A,"Invalid character in entity name"),A[Ut]+="&"+A.entity+V,A.entity="",A.state=qe);continue;default:throw new Error(A,"Unknown state: "+A.state)}return A.position>=A.bufferCheckPosition&&i(A),A}o(ot,"write");String.fromCodePoint||function(){var I=String.fromCharCode,A=Math.floor,Y=o(function(){var V=16384,_e=[],Nt,qe,Ut=-1,yn=arguments.length;if(!yn)return"";for(var ln="";++Ut<yn;){var Ht=Number(arguments[Ut]);if(!isFinite(Ht)||Ht<0||Ht>1114111||A(Ht)!==Ht)throw RangeError("Invalid code point: "+Ht);Ht<=65535?_e.push(Ht):(Ht-=65536,Nt=(Ht>>10)+55296,qe=Ht%1024+56320,_e.push(Nt,qe)),(Ut+1===yn||_e.length>V)&&(ln+=I.apply(null,_e),_e.length=0)}return ln},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y}()})(typeof Qg>"u"?Qg.sax={}:Qg)});var qg=ze((yee,P0)=>{P0.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Yg=ze((vee,x0)=>{var A8=qg().isArray;x0.exports={copyOptions:o(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:o(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:o(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:o(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!A8(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:o(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:o(function(e,t){return e+"Fn"in t},"checkFnExists")}});var _b=ze((Eee,D0)=>{var P8=A0(),x8={on:o(function(){},"on"),parse:o(function(){},"parse")},nt=Yg(),Al=qg().isArray,G,Db=!0,$e;function C8(e){return G=nt.copyOptions(e),nt.ensureFlagExists("ignoreDeclaration",G),nt.ensureFlagExists("ignoreInstruction",G),nt.ensureFlagExists("ignoreAttributes",G),nt.ensureFlagExists("ignoreText",G),nt.ensureFlagExists("ignoreComment",G),nt.ensureFlagExists("ignoreCdata",G),nt.ensureFlagExists("ignoreDoctype",G),nt.ensureFlagExists("compact",G),nt.ensureFlagExists("alwaysChildren",G),nt.ensureFlagExists("addParent",G),nt.ensureFlagExists("trim",G),nt.ensureFlagExists("nativeType",G),nt.ensureFlagExists("nativeTypeAttributes",G),nt.ensureFlagExists("sanitize",G),nt.ensureFlagExists("instructionHasAttributes",G),nt.ensureFlagExists("captureSpacesBetweenElements",G),nt.ensureAlwaysArrayExists(G),nt.ensureKeyExists("declaration",G),nt.ensureKeyExists("instruction",G),nt.ensureKeyExists("attributes",G),nt.ensureKeyExists("text",G),nt.ensureKeyExists("comment",G),nt.ensureKeyExists("cdata",G),nt.ensureKeyExists("doctype",G),nt.ensureKeyExists("type",G),nt.ensureKeyExists("name",G),nt.ensureKeyExists("elements",G),nt.ensureKeyExists("parent",G),nt.checkFnExists("doctype",G),nt.checkFnExists("instruction",G),nt.checkFnExists("cdata",G),nt.checkFnExists("comment",G),nt.checkFnExists("text",G),nt.checkFnExists("instructionName",G),nt.checkFnExists("elementName",G),nt.checkFnExists("attributeName",G),nt.checkFnExists("attributeValue",G),nt.checkFnExists("attributes",G),G}o(C8,"validateOptions");function N0(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(N0,"nativeType");function vu(e,t){var n;if(G.compact){if(!$e[G[e+"Key"]]&&(Al(G.alwaysArray)?G.alwaysArray.indexOf(G[e+"Key"])!==-1:G.alwaysArray)&&($e[G[e+"Key"]]=[]),$e[G[e+"Key"]]&&!Al($e[G[e+"Key"]])&&($e[G[e+"Key"]]=[$e[G[e+"Key"]]]),e+"Fn"in G&&typeof t=="string"&&(t=G[e+"Fn"](t,$e)),e==="instruction"&&("instructionFn"in G||"instructionNameFn"in G)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in G)t[n]=G.instructionFn(t[n],n,$e);else{var i=t[n];delete t[n],t[G.instructionNameFn(n,i,$e)]=i}}Al($e[G[e+"Key"]])?$e[G[e+"Key"]].push(t):$e[G[e+"Key"]]=t}else{$e[G.elementsKey]||($e[G.elementsKey]=[]);var r={};if(r[G.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[G.nameKey]="instructionNameFn"in G?G.instructionNameFn(n,t,$e):n,G.instructionHasAttributes?(r[G.attributesKey]=t[n][G.attributesKey],"instructionFn"in G&&(r[G.attributesKey]=G.instructionFn(r[G.attributesKey],n,$e))):("instructionFn"in G&&(t[n]=G.instructionFn(t[n],n,$e)),r[G.instructionKey]=t[n])}else e+"Fn"in G&&(t=G[e+"Fn"](t,$e)),r[G[e+"Key"]]=t;G.addParent&&(r[G.parentKey]=$e),$e[G.elementsKey].push(r)}}o(vu,"addField");function F0(e){if("attributesFn"in G&&e&&(e=G.attributesFn(e,$e)),(G.trim||"attributeValueFn"in G||"attributeNameFn"in G||G.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(G.trim&&(e[t]=e[t].trim()),G.nativeTypeAttributes&&(e[t]=N0(e[t])),"attributeValueFn"in G&&(e[t]=G.attributeValueFn(e[t],t,$e)),"attributeNameFn"in G)){var n=e[t];delete e[t],e[G.attributeNameFn(t,e[t],$e)]=n}}return e}o(F0,"manipulateAttributes");function I8(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||G.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=F0(t)}if(e.name.toLowerCase()==="xml"){if(G.ignoreDeclaration)return;$e[G.declarationKey]={},Object.keys(t).length&&($e[G.declarationKey][G.attributesKey]=t),G.addParent&&($e[G.declarationKey][G.parentKey]=$e)}else{if(G.ignoreInstruction)return;G.trim&&(e.body=e.body.trim());var r={};G.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][G.attributesKey]=t):r[e.name]=e.body,vu("instruction",r)}}o(I8,"onInstruction");function C0(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=F0(t),"elementNameFn"in G&&(e=G.elementNameFn(e,$e)),G.compact){if(n={},!G.ignoreAttributes&&t&&Object.keys(t).length){n[G.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[G.attributesKey][i]=t[i])}!(e in $e)&&(Al(G.alwaysArray)?G.alwaysArray.indexOf(e)!==-1:G.alwaysArray)&&($e[e]=[]),$e[e]&&!Al($e[e])&&($e[e]=[$e[e]]),Al($e[e])?$e[e].push(n):$e[e]=n}else $e[G.elementsKey]||($e[G.elementsKey]=[]),n={},n[G.typeKey]="element",n[G.nameKey]=e,!G.ignoreAttributes&&t&&Object.keys(t).length&&(n[G.attributesKey]=t),G.alwaysChildren&&(n[G.elementsKey]=[]),$e[G.elementsKey].push(n);n[G.parentKey]=$e,$e=n}o(C0,"onStartElement");function I0(e){G.ignoreText||!e.trim()&&!G.captureSpacesBetweenElements||(G.trim&&(e=e.trim()),G.nativeType&&(e=N0(e)),G.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),vu("text",e))}o(I0,"onText");function O0(e){G.ignoreComment||(G.trim&&(e=e.trim()),vu("comment",e))}o(O0,"onComment");function R0(e){var t=$e[G.parentKey];G.addParent||delete $e[G.parentKey],$e=t}o(R0,"onEndElement");function O8(e){G.ignoreCdata||(G.trim&&(e=e.trim()),vu("cdata",e))}o(O8,"onCdata");function R8(e){G.ignoreDoctype||(e=e.replace(/^ /,""),G.trim&&(e=e.trim()),vu("doctype",e))}o(R8,"onDoctype");function L0(e){e.note=e}o(L0,"onError");D0.exports=function(e,t){var n=Db?P8.parser(!0,{}):n=new x8.Parser("UTF-8"),i={};if($e=i,G=C8(t),Db?(n.opt={strictEntities:!0},n.onopentag=C0,n.ontext=I0,n.oncomment=O0,n.onclosetag=R0,n.onerror=L0,n.oncdata=O8,n.ondoctype=R8,n.onprocessinginstruction=I8):(n.on("startElement",C0),n.on("text",I0),n.on("comment",O0),n.on("endElement",R0),n.on("error",L0)),Db)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[G.elementsKey]){var r=i[G.elementsKey];delete i[G.elementsKey],i[G.elementsKey]=r,delete i.text}return i}});var w0=ze((Aee,V0)=>{var _0=Yg(),L8=_b();function N8(e){var t=_0.copyOptions(e);return _0.ensureSpacesExists(t),t}o(N8,"validateOptions");V0.exports=function(e,t){var n,i,r,a;return n=N8(t),i=L8(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var wb=ze((xee,W0)=>{var st=Yg(),F8=qg().isArray,yi,Ti;function D8(e){var t=st.copyOptions(e);return st.ensureFlagExists("ignoreDeclaration",t),st.ensureFlagExists("ignoreInstruction",t),st.ensureFlagExists("ignoreAttributes",t),st.ensureFlagExists("ignoreText",t),st.ensureFlagExists("ignoreComment",t),st.ensureFlagExists("ignoreCdata",t),st.ensureFlagExists("ignoreDoctype",t),st.ensureFlagExists("compact",t),st.ensureFlagExists("indentText",t),st.ensureFlagExists("indentCdata",t),st.ensureFlagExists("indentAttributes",t),st.ensureFlagExists("indentInstruction",t),st.ensureFlagExists("fullTagEmptyElement",t),st.ensureFlagExists("noQuotesForNativeAttributes",t),st.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),st.ensureKeyExists("declaration",t),st.ensureKeyExists("instruction",t),st.ensureKeyExists("attributes",t),st.ensureKeyExists("text",t),st.ensureKeyExists("comment",t),st.ensureKeyExists("cdata",t),st.ensureKeyExists("doctype",t),st.ensureKeyExists("type",t),st.ensureKeyExists("name",t),st.ensureKeyExists("elements",t),st.checkFnExists("doctype",t),st.checkFnExists("instruction",t),st.checkFnExists("cdata",t),st.checkFnExists("comment",t),st.checkFnExists("text",t),st.checkFnExists("instructionName",t),st.checkFnExists("elementName",t),st.checkFnExists("attributeName",t),st.checkFnExists("attributeValue",t),st.checkFnExists("attributes",t),st.checkFnExists("fullTagEmptyElement",t),t}o(D8,"validateOptions");function Do(e,t,n){return(!n&&e.spaces?`
|
|
28
28
|
`:"")+Array(t+1).join(e.spaces)}o(Do,"writeIndentation");function zg(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Ti,yi));var i,r,a,s,l=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(s=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',r=""+e[i],r=r.replace(/"/g,"""),a="attributeNameFn"in t?t.attributeNameFn(i,r,Ti,yi):i,l.push(t.spaces&&t.indentAttributes?Do(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,Ti,yi):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Do(t,n,!1)),l.join("")}o(zg,"writeAttributes");function M0(e,t,n){return yi=e,Ti="xml",t.ignoreDeclaration?"":"<?xml"+zg(e[t.attributesKey],t,n)+"?>"}o(M0,"writeDeclaration");function k0(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var r="instructionNameFn"in t?t.instructionNameFn(i,e[i],Ti,yi):i;if(typeof e[i]=="object")return yi=e,Ti=r,"<?"+r+zg(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,Ti,yi)),"<?"+r+(a?" "+a:"")+"?>"}o(k0,"writeInstruction");function U0(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Ti,yi):e)+"-->"}o(U0,"writeComment");function j0(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Ti,yi):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(j0,"writeCdata");function $0(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Ti,yi):e)+">"}o($0,"writeDoctype");function Vb(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,Ti,yi):e)}o(Vb,"writeText");function _8(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}o(_8,"hasContent");function V8(e,t,n){yi=e,Ti=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(zg(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(B0(e[t.elementsKey],t,n+1)),yi=e,Ti=e.name),i.push(t.spaces&&_8(e,t)?`
|
|
29
|
-
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(V8,"writeElement");function B0(e,t,n,i){return e.reduce(function(r,a){var s=Do(t,n,i&&!r);switch(a.type){case"element":return r+s+V8(a,t,n);case"comment":return r+s+U0(a[t.commentKey],t);case"doctype":return r+s+$0(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+j0(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+Vb(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+k0(l,t,n)}},"")}o(B0,"writeElements");function H0(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}o(H0,"hasContentCompact");function w8(e,t,n,i,r){yi=e,Ti=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(">"+Vb(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(zg(e[n.attributesKey],n,i));var l=H0(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(G0(e,n,i+1,!1)),yi=e,Ti=t,t&&s.push((r?Do(n,i,!1):"")+"</"+a+">"),s.join("")}o(w8,"writeElementCompact");function G0(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=F8(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(M0(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Do(t,n,i):"")+k0(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Do(t,n,i):"")+Vb(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Do(t,n,i):"")+j0(s[r],t));break;case t.doctypeKey:l.push(Do(t,n,i)+$0(s[r],t));break;case t.commentKey:l.push(Do(t,n,i)+U0(s[r],t));break;default:l.push(Do(t,n,i)+w8(s[r],a,t,n,H0(s[r],t)))}i=i&&!l.length}return l.join("")}o(G0,"writeElementsCompact");W0.exports=function(e,t){t=D8(t);var n=[];return yi=e,Ti="_root_",t.compact?n.push(G0(e,t,0,!0)):(e[t.declarationKey]&&n.push(M0(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(B0(e[t.elementsKey],t,0,!n.length))),n.join("")}});var X0=ze((Cee,K0)=>{var M8=wb();K0.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 M8(n,t)}});var lc=ze((Iee,Q0)=>{var k8=_b(),U8=w0(),j8=wb(),$8=X0();Q0.exports={xml2js:k8,xml2json:U8,js2xml:j8,json2xml:$8}});var eD=ze(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.convertEntityTypeAnnotations=Qi.convertPropertyAnnotations=Qi.convertNavigationPropertyAnnotations=Qi.convertEntitySetAnnotations=Qi.convertGenericAnnotations=Qi.convertV2Annotations=void 0;function B8(e,t,n){let i=[];switch(t){case"EntitySet":Y0(e,i);break;case"EntityType":Z0(e,i);break;case"NavigationProperty":z0(e,n,i);break;case"Property":J0(e,n,i);break;case"Singleton":break;default:break}return q0(e,n,i),i}o(B8,"convertV2Annotations");Qi.convertV2Annotations=B8;function q0(e,t,n){function i(r,a){r&&n.push(a)}if(o(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}o(q0,"convertGenericAnnotations");Qi.convertGenericAnnotations=q0;function Y0(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}o(Y0,"convertEntitySetAnnotations");Qi.convertEntitySetAnnotations=Y0;function z0(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}o(z0,"convertNavigationPropertyAnnotations");Qi.convertNavigationPropertyAnnotations=z0;function J0(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}o(J0,"convertPropertyAnnotations");Qi.convertPropertyAnnotations=J0;function Z0(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}o(Z0,"convertEntityTypeAnnotations");Qi.convertEntityTypeAnnotations=Z0});var aD=ze(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.parse=void 0;var H8=lc(),He=Fb(),bu=eD(),em=/^Collection\((.+)\)$/;function G8(e){return e.Type!==null&&e.Type!==void 0}o(G8,"isV4NavProperty");function W8(e){return e.map(t=>t._attributes.Name)}o(W8,"getEntityTypeKeys");function iD(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:Pl(a._attributes.Type).type};if(a._attributes.MaxLength&&(s.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(s.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(s.scale=parseInt(a._attributes.Scale,10)),s.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,bu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(fc(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(iD,"parseProperties");function K8(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(K8,"parseReferentialConstraint");function X8(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,He.ensureArray)(i.Principal.PropertyRef),l=(0,He.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,He.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(X8,"parseV2ReferentialConstraint");function rD(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(G8(s)){let l=s.Type.match(em),u=l!==null,p=_o(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:u,targetTypeName:p,referentialConstraint:K8((0,He.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,bu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(fc(`${n}/${s.Name}`,g))}return r},[])}o(rD,"parseNavigationProperties");function Q8(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,He.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(Q8,"parseAssociationSets");function q8(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,He.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:X8((0,He.ensureArray)(n.ReferentialConstraint),r)}})}o(q8,"parseAssociations");function Y8(e,t,n){return e.reduce((i,r)=>{let a=r.Key?W8((0,He.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=iD((0,He.ensureArray)(r.Property),a,s,t),p=rD((0,He.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,bu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(fc(g.fullyQualifiedName,m)),i.push(g),i},[])}o(Y8,"parseEntityTypes");function z8(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=iD((0,He.ensureArray)(r.Property),[],a,t),l=rD((0,He.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(z8,"parseComplexTypes");function J8(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}o(J8,"parseTypeDefinitions");function Z8(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:_o(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,bu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(fc(l.fullyQualifiedName,u)),l})}o(Z8,"parseEntitySets");function eK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:_o(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,bu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(fc(l.fullyQualifiedName,u)),l})}o(eK,"parseSingletons");function tD(e,t,n){return e.map(i=>{let r=(0,He.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>Pl(u._attributes.Type).type).join(","):s=a?Pl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Pl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=Pl(u._attributes.Type),m={_type:"ActionParameter",fullyQualifiedName:`${l}/${u._attributes.Name}`,name:`${u._attributes.Name}`,type:g,isCollection:p};return u._attributes.MaxLength&&(m.maxLength=parseInt(u._attributes.MaxLength,10)),u._attributes.Precision&&(m.precision=parseInt(u._attributes.Precision,10)),u._attributes.Scale&&(m.scale=parseInt(u._attributes.Scale,10)),m.nullable=u._attributes.Nullable!=="false",m}),returnType:i.ReturnType?Pl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(em)!==null:!1}})}o(tD,"parseActions");function tK(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,He.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(em)!==null:!1}})}o(tK,"parseV2FunctionImport");function nD(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:_o(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:_o(r)}})}o(nD,"parseActionImports");function nK(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let u=Object.keys(a).find(g=>g!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Zg(s,p,n,!1):u&&(l.value=oD({[u]:a[u]},p,n)),i.Annotation){let g=nm((0,He.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(fc(p,g))}}return l})}o(nK,"parsePropertyValues");function tm(e,t,n){let i=nm((0,He.ensureArray)(e.Annotation),t,n),r={type:e._attributes?_o(e._attributes.Type):void 0,propertyValues:nK((0,He.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(tm,"parseRecord");function ga(e,t){return e[t]!=null}o(ga,"isExpressionOfType");function Jg(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}o(Jg,"parseModelPath");function kb(e,t,n){if(ga(e,"Record")){let i=(0,He.ensureArray)(e.Record).map((r,a)=>tm(r,t+"/"+a,n));return i.type="Record",i}else if(ga(e,"PropertyPath")){let i=(0,He.ensureArray)(e.PropertyPath).map(r=>Jg(r,"PropertyPath"));return i.type="PropertyPath",i}else if(ga(e,"NavigationPropertyPath")){let i=(0,He.ensureArray)(e.NavigationPropertyPath).map(r=>Jg(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(ga(e,"String")){let i=(0,He.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(ga(e,"AnnotationPath")){let i=(0,He.ensureArray)(e.AnnotationPath).map(r=>Jg(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(ga(e,"Path")){let i=(0,He.ensureArray)(e.Path).map(r=>Jg(r,"Path"));return i.type="Path",i}else if(ga(e,"If")){let i=(0,He.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(kb,"parseCollection");function vn(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>Zg({[i]:r},"",[],!0))):n.push(Zg({[i]:e[i]},"",[],!0))}),n}o(vn,"parseChildren");function oD(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:kb(e.Collection,t,n)};case"Record":return{type:"Record",Record:tm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:vn(e.Apply),$Function:vn(e.Function)};case"And":return{type:"And",$And:vn(e.And)};case"Or":return{type:"Or",$Or:vn(e.Or)};case"Eq":return{type:"Eq",$Eq:vn(e.Eq)};case"Gt":return{type:"Gt",$Gt:vn(e.Gt)};case"Ge":return{type:"Ge",$Ge:vn(e.Ge)};case"Lt":return{type:"Lt",$Lt:vn(e.Lt)};case"Le":return{type:"Le",$Le:vn(e.Le)};case"If":return{type:"If",$If:vn(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(oD,"parseInlineExpression");function Zg(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:vn(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:kb(e.Collection,t,n)};case"Record":return{type:"Record",Record:tm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:vn(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:vn(e.And)};case"Ne":return{type:"Ne",$Ne:vn(e.Ne)};case"Not":return{type:"Not",$Not:vn(e.Not)[0]};case"Or":return{type:"Or",$Or:vn(e.Or)};case"Eq":return{type:"Eq",$Eq:vn(e.Eq)};case"If":return{type:"If",$If:vn(e.If)};case"Gt":return{type:"Gt",$Gt:vn(e.Gt)};case"Ge":return{type:"Ge",$Ge:vn(e.Ge)};case"Lt":return{type:"Lt",$Lt:vn(e.Lt)};case"Le":return{type:"Le",$Le:vn(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Zg,"parseExpression");function iK(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:_o(i),qualifier:r},l=`${t}@${_o(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=oD(a,l,n)),e.Annotation){let p=nm((0,He.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return ga(e,"Record")?s.record=tm(e.Record,l,n):ga(e,"Collection")?s.collection=kb(e.Collection,l,n):u.length===1?s.value=Zg({[u[0]]:e[u[0]]},l,n,!1):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(iK,"parseAnnotation");function nm(e,t,n){return e.map(i=>iK(i,t,n))}o(nm,"parseAnnotations");function fc(e,t){return{target:e,annotations:t}}o(fc,"createAnnotationList");function rK(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(fc(_o(n._attributes.Target),nm((0,He.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(rK,"parseAnnotationLists");function oK(e,t,n){let i=e._attributes.Namespace,r=[],a=Y8((0,He.ensureArray)(e.EntityType),r,i),s=z8((0,He.ensureArray)(e.ComplexType),r,i),l=J8((0,He.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},h=[],E=[];if(e.EntityContainer)if(u=Z8((0,He.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=eK((0,He.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=Q8((0,He.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")h=h.concat(tK((0,He.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")E=E.concat(nD((0,He.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),E=E.concat(nD((0,He.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(h=h.concat(tD((0,He.ensureArray)(e.Action),i,!1)),h=h.concat(tD((0,He.ensureArray)(e.Function),i,!0)));let b=q8((0,He.ensureArray)(e.Association),i);rK((0,He.ensureArray)(e.Annotations),r);let O={};return O[n]=r,{associations:b,associationSets:g,annotations:O,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:h,actionImports:E,entityTypes:a}}o(oK,"parseSchema");function aK(e){return e.reduce((t,n)=>((0,He.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(aK,"parseReferences");var Mb={};function Pl(e){let t=e.match(em),n=t?t[1]:e,i=_o(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(Pl,"unaliasType");function _o(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let u=e.substring(r,a);i.push((t=Mb[u])!==null&&t!==void 0?t:u),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(_o,"unalias");function sK(e){let t=e.reduce((E,b)=>E.concat(b.associations),[]),n=e.reduce((E,b)=>E.concat(b.associationSets),[]),i=e.reduce((E,b)=>E.concat(b.entitySets),[]),r=e.reduce((E,b)=>E.concat(b.singletons),[]),a=e.reduce((E,b)=>E.concat(b.entityTypes),[]),s=e.reduce((E,b)=>E.concat(b.actions),[]),l=e.reduce((E,b)=>E.concat(b.actionImports),[]),u=e.reduce((E,b)=>E.concat(b.complexTypes),[]),p=e.reduce((E,b)=>E.concat(b.typeDefinitions),[]),g={};e.forEach(E=>{g=Object.assign(g,E.annotations)});let m,h;return e.forEach(E=>{E.entityContainer&&Object.keys(E.entityContainer).length>0&&(m=E.entityContainer,h=E.namespace)}),i.forEach(E=>{let b=a.find(O=>O.fullyQualifiedName===E.entityTypeName);b==null||b.navigationProperties.forEach(O=>{let N=O,M=n.find(H=>H.association===N.relationship);if(M){let H=M.associationEnd.find($=>$.entitySet!==E.fullyQualifiedName);H&&(E.navigationPropertyBinding[O.name]=H.entitySet)}})}),a.forEach(E=>{E.navigationProperties.forEach(b=>{let O=b,N=t.find(M=>M.fullyQualifiedName===O.relationship);N&&N.referentialConstraints&&N.referentialConstraints.length>0&&(N.referentialConstraints[0].sourceTypeName===E.fullyQualifiedName?O.referentialConstraint=N.referentialConstraints:O.referentialConstraint=N.referentialConstraints.map(M=>({sourceTypeName:M.targetTypeName,sourceProperty:M.targetProperty,targetTypeName:M.sourceTypeName,targetProperty:M.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:h,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(sK,"mergeSchemas");function cK(e,t){Mb=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{Mb[n._attributes.Alias]=n._attributes.Namespace})}o(cK,"createAliasMap");function lK(e,t="serviceFile"){let n=(0,H8.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,He.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=aK((0,He.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));cK(a,r);let s=r.map(u=>oK(u,i,t));return new He.RawMetadataInstance(t,i,sK(s),a)}o(lK,"parse");im.parse=lK});var sD=ze(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.parse=xl.merge=void 0;var fK=S0();Object.defineProperty(xl,"merge",{enumerable:!0,get:o(function(){return fK.merge},"get")});var uK=aD();Object.defineProperty(xl,"parse",{enumerable:!0,get:o(function(){return uK.parse},"get")})});var bD=ze(()=>{var vD;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(u,p){return function(g,m){Object.defineProperty(u,g,{configurable:!0,writable:!0,value:m}),p&&p(g,m)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!l&&!u,g={create:l?function(){return zs(Object.create(null))}:u?function(){return zs({__proto__:null})}:function(){return zs({})},has:p?function(U,B){return i.call(U,B)}:function(U,B){return B in U},get:p?function(U,B){return i.call(U,B)?U[B]:void 0}:function(U,B){return U[B]}},m=Object.getPrototypeOf(Function),h=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Qf(),E=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:qf(),b=typeof WeakMap=="function"?WeakMap:Yf(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,N=Bi(),M=Xf(N);function H(U,B,q,le){if(Fe(q)){if(!Nt(U))throw new TypeError;if(!Ut(B))throw new TypeError;return sn(U,B)}else{if(!Nt(U))throw new TypeError;if(!ot(B))throw new TypeError;if(!ot(le)&&!Fe(le)&&!Kn(le))throw new TypeError;return Kn(le)&&(le=void 0),q=_e(q),Wn(U,B,q,le)}}o(H,"decorate"),t("decorate",H);function $(U,B){function q(le,Le){if(!ot(le))throw new TypeError;if(!Fe(Le)&&!yn(Le))throw new TypeError;Ct(U,B,le,Le)}return o(q,"decorator"),q}o($,"metadata"),t("metadata",$);function re(U,B,q,le){if(!ot(q))throw new TypeError;return Fe(le)||(le=_e(le)),Ct(U,B,q,le)}o(re,"defineMetadata"),t("defineMetadata",re);function Z(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),tn(U,B,q)}o(Z,"hasMetadata"),t("hasMetadata",Z);function oe(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),Lt(U,B,q)}o(oe,"hasOwnMetadata"),t("hasOwnMetadata",oe);function Ae(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),Ne(U,B,q)}o(Ae,"getMetadata"),t("getMetadata",Ae);function D(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),Ci(U,B,q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function ut(U,B){if(!ot(U))throw new TypeError;return Fe(B)||(B=_e(B)),kt(U,B)}o(ut,"getMetadataKeys"),t("getMetadataKeys",ut);function ht(U,B){if(!ot(U))throw new TypeError;return Fe(B)||(B=_e(B)),cn(U,B)}o(ht,"getOwnMetadataKeys"),t("getOwnMetadataKeys",ht);function je(U,B,q){if(!ot(B))throw new TypeError;if(Fe(q)||(q=_e(q)),!ot(B))throw new TypeError;Fe(q)||(q=_e(q));var le=Nr(B,q,!1);return Fe(le)?!1:le.OrdinaryDeleteMetadata(U,B,q)}o(je,"deleteMetadata"),t("deleteMetadata",je);function sn(U,B){for(var q=U.length-1;q>=0;--q){var le=U[q],Le=le(B);if(!Fe(Le)&&!Kn(Le)){if(!Ut(Le))throw new TypeError;B=Le}}return B}o(sn,"DecorateConstructor");function Wn(U,B,q,le){for(var Le=U.length-1;Le>=0;--Le){var mn=U[Le],xn=mn(B,q,le);if(!Fe(xn)&&!Kn(xn)){if(!ot(xn))throw new TypeError;le=xn}}return le}o(Wn,"DecorateProperty");function tn(U,B,q){var le=Lt(U,B,q);if(le)return!0;var Le=Gt(B);return Kn(Le)?!1:tn(U,Le,q)}o(tn,"OrdinaryHasMetadata");function Lt(U,B,q){var le=Nr(B,q,!1);return Fe(le)?!1:Y(le.OrdinaryHasOwnMetadata(U,B,q))}o(Lt,"OrdinaryHasOwnMetadata");function Ne(U,B,q){var le=Lt(U,B,q);if(le)return Ci(U,B,q);var Le=Gt(B);if(!Kn(Le))return Ne(U,Le,q)}o(Ne,"OrdinaryGetMetadata");function Ci(U,B,q){var le=Nr(B,q,!1);if(!Fe(le))return le.OrdinaryGetOwnMetadata(U,B,q)}o(Ci,"OrdinaryGetOwnMetadata");function Ct(U,B,q,le){var Le=Nr(q,le,!0);Le.OrdinaryDefineOwnMetadata(U,B,q,le)}o(Ct,"OrdinaryDefineOwnMetadata");function kt(U,B){var q=cn(U,B),le=Gt(U);if(le===null)return q;var Le=kt(le,B);if(Le.length<=0)return q;if(q.length<=0)return Le;for(var mn=new E,xn=[],et=0,me=q;et<me.length;et++){var Te=me[et],Pe=mn.has(Te);Pe||(mn.add(Te),xn.push(Te))}for(var Ie=0,it=Le;Ie<it.length;Ie++){var Te=it[Ie],Pe=mn.has(Te);Pe||(mn.add(Te),xn.push(Te))}return xn}o(kt,"OrdinaryMetadataKeys");function cn(U,B){var q=Nr(U,B,!1);return q?q.OrdinaryOwnMetadataKeys(U,B):[]}o(cn,"OrdinaryOwnMetadataKeys");function $i(U){if(U===null)return 1;switch(typeof U){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return U===null?1:6;default:return 6}}o($i,"Type");function Fe(U){return U===void 0}o(Fe,"IsUndefined");function Kn(U){return U===null}o(Kn,"IsNull");function Lr(U){return typeof U=="symbol"}o(Lr,"IsSymbol");function ot(U){return typeof U=="object"?U!==null:typeof U=="function"}o(ot,"IsObject");function I(U,B){switch($i(U)){case 0:return U;case 1:return U;case 2:return U;case 3:return U;case 4:return U;case 5:return U}var q=B===3?"string":B===5?"number":"default",le=Ht(U,a);if(le!==void 0){var Le=le.call(U,q);if(ot(Le))throw new TypeError;return Le}return A(U,q==="default"?"number":q)}o(I,"ToPrimitive");function A(U,B){if(B==="string"){var q=U.toString;if(qe(q)){var le=q.call(U);if(!ot(le))return le}var Le=U.valueOf;if(qe(Le)){var le=Le.call(U);if(!ot(le))return le}}else{var Le=U.valueOf;if(qe(Le)){var le=Le.call(U);if(!ot(le))return le}var mn=U.toString;if(qe(mn)){var le=mn.call(U);if(!ot(le))return le}}throw new TypeError}o(A,"OrdinaryToPrimitive");function Y(U){return!!U}o(Y,"ToBoolean");function V(U){return""+U}o(V,"ToString");function _e(U){var B=I(U,3);return Lr(B)?B:V(B)}o(_e,"ToPropertyKey");function Nt(U){return Array.isArray?Array.isArray(U):U instanceof Object?U instanceof Array:Object.prototype.toString.call(U)==="[object Array]"}o(Nt,"IsArray");function qe(U){return typeof U=="function"}o(qe,"IsCallable");function Ut(U){return typeof U=="function"}o(Ut,"IsConstructor");function yn(U){switch($i(U)){case 3:return!0;case 4:return!0;default:return!1}}o(yn,"IsPropertyKey");function ln(U,B){return U===B||U!==U&&B!==B}o(ln,"SameValueZero");function Ht(U,B){var q=U[B];if(q!=null){if(!qe(q))throw new TypeError;return q}}o(Ht,"GetMethod");function ti(U){var B=Ht(U,s);if(!qe(B))throw new TypeError;var q=B.call(U);if(!ot(q))throw new TypeError;return q}o(ti,"GetIterator");function sr(U){return U.value}o(sr,"IteratorValue");function gn(U){var B=U.next();return B.done?!1:B}o(gn,"IteratorStep");function di(U){var B=U.return;B&&B.call(U)}o(di,"IteratorClose");function Gt(U){var B=Object.getPrototypeOf(U);if(typeof U!="function"||U===m||B!==m)return B;var q=U.prototype,le=q&&Object.getPrototypeOf(q);if(le==null||le===Object.prototype)return B;var Le=le.constructor;return typeof Le!="function"||Le===U?B:Le}o(Gt,"OrdinaryGetPrototypeOf");function ta(){var U;!Fe(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(U=Ys(n.Reflect));var B,q,le,Le=new b,mn={registerProvider:xn,getProvider:me,setProvider:Pe};return mn;function xn(Ie){if(!Object.isExtensible(mn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case U===Ie:break;case Fe(B):B=Ie;break;case B===Ie:break;case Fe(q):q=Ie;break;case q===Ie:break;default:le===void 0&&(le=new E),le.add(Ie);break}}function et(Ie,it){if(!Fe(B)){if(B.isProviderFor(Ie,it))return B;if(!Fe(q)){if(q.isProviderFor(Ie,it))return B;if(!Fe(le))for(var Wt=ti(le);;){var fn=gn(Wt);if(!fn)return;var cr=sr(fn);if(cr.isProviderFor(Ie,it))return di(Wt),cr}}}if(!Fe(U)&&U.isProviderFor(Ie,it))return U}function me(Ie,it){var Wt=Le.get(Ie),fn;return Fe(Wt)||(fn=Wt.get(it)),Fe(fn)&&(fn=et(Ie,it),Fe(fn)||(Fe(Wt)&&(Wt=new h,Le.set(Ie,Wt)),Wt.set(it,fn))),fn}function Te(Ie){if(Fe(Ie))throw new TypeError;return B===Ie||q===Ie||!Fe(le)&&le.has(Ie)}function Pe(Ie,it,Wt){if(!Te(Wt))throw new Error("Metadata provider not registered.");var fn=me(Ie,it);if(fn!==Wt){if(!Fe(fn))return!1;var cr=Le.get(Ie);Fe(cr)&&(cr=new h,Le.set(Ie,cr)),cr.set(it,Wt)}return!0}}o(ta,"CreateMetadataRegistry");function Bi(){var U;return!Fe(O)&&ot(n.Reflect)&&Object.isExtensible(n.Reflect)&&(U=n.Reflect[O]),Fe(U)&&(U=ta()),!Fe(O)&&ot(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:U}),U}o(Bi,"GetOrCreateMetadataRegistry");function Xf(U){var B=new b,q={isProviderFor:o(function(Te,Pe){var Ie=B.get(Te);return Fe(Ie)?!1:Ie.has(Pe)},"isProviderFor"),OrdinaryDefineOwnMetadata:xn,OrdinaryHasOwnMetadata:Le,OrdinaryGetOwnMetadata:mn,OrdinaryOwnMetadataKeys:et,OrdinaryDeleteMetadata:me};return N.registerProvider(q),q;function le(Te,Pe,Ie){var it=B.get(Te),Wt=!1;if(Fe(it)){if(!Ie)return;it=new h,B.set(Te,it),Wt=!0}var fn=it.get(Pe);if(Fe(fn)){if(!Ie)return;if(fn=new h,it.set(Pe,fn),!U.setProvider(Te,Pe,q))throw it.delete(Pe),Wt&&B.delete(Te),new Error("Wrong provider for target.")}return fn}o(le,"GetOrCreateMetadataMap");function Le(Te,Pe,Ie){var it=le(Pe,Ie,!1);return Fe(it)?!1:Y(it.has(Te))}o(Le,"OrdinaryHasOwnMetadata");function mn(Te,Pe,Ie){var it=le(Pe,Ie,!1);if(!Fe(it))return it.get(Te)}o(mn,"OrdinaryGetOwnMetadata");function xn(Te,Pe,Ie,it){var Wt=le(Ie,it,!0);Wt.set(Te,Pe)}o(xn,"OrdinaryDefineOwnMetadata");function et(Te,Pe){var Ie=[],it=le(Te,Pe,!1);if(Fe(it))return Ie;for(var Wt=it.keys(),fn=ti(Wt),cr=0;;){var $d=gn(fn);if(!$d)return Ie.length=cr,Ie;var UT=sr($d);try{Ie[cr]=UT}catch(zf){try{di(fn)}finally{throw zf}}cr++}}o(et,"OrdinaryOwnMetadataKeys");function me(Te,Pe,Ie){var it=le(Pe,Ie,!1);if(Fe(it)||!it.delete(Te))return!1;if(it.size===0){var Wt=B.get(Pe);Fe(Wt)||(Wt.delete(Ie),Wt.size===0&&B.delete(Wt))}return!0}o(me,"OrdinaryDeleteMetadata")}o(Xf,"CreateMetadataProvider");function Ys(U){var B=U.defineMetadata,q=U.hasOwnMetadata,le=U.getOwnMetadata,Le=U.getOwnMetadataKeys,mn=U.deleteMetadata,xn=new b,et={isProviderFor:o(function(me,Te){var Pe=xn.get(me);return!Fe(Pe)&&Pe.has(Te)?!0:Le(me,Te).length?(Fe(Pe)&&(Pe=new E,xn.set(me,Pe)),Pe.add(Te),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:q,OrdinaryGetOwnMetadata:le,OrdinaryOwnMetadataKeys:Le,OrdinaryDeleteMetadata:mn};return et}o(Ys,"CreateFallbackProvider");function Nr(U,B,q){var le=N.getProvider(U,B);if(!Fe(le))return le;if(q){if(N.setProvider(U,B,M))return M;throw new Error("Illegal state.")}}o(Nr,"GetMetadataProvider");function Qf(){var U={},B=[],q=function(){function et(me,Te,Pe){this._index=0,this._keys=me,this._values=Te,this._selector=Pe}return o(et,"MapIterator"),et.prototype["@@iterator"]=function(){return this},et.prototype[s]=function(){return this},et.prototype.next=function(){var me=this._index;if(me>=0&&me<this._keys.length){var Te=this._selector(this._keys[me],this._values[me]);return me+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:Te,done:!1}}return{value:void 0,done:!0}},et.prototype.throw=function(me){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),me},et.prototype.return=function(me){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:me,done:!0}},et}(),le=function(){function et(){this._keys=[],this._values=[],this._cacheKey=U,this._cacheIndex=-2}return o(et,"Map"),Object.defineProperty(et.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),et.prototype.has=function(me){return this._find(me,!1)>=0},et.prototype.get=function(me){var Te=this._find(me,!1);return Te>=0?this._values[Te]:void 0},et.prototype.set=function(me,Te){var Pe=this._find(me,!0);return this._values[Pe]=Te,this},et.prototype.delete=function(me){var Te=this._find(me,!1);if(Te>=0){for(var Pe=this._keys.length,Ie=Te+1;Ie<Pe;Ie++)this._keys[Ie-1]=this._keys[Ie],this._values[Ie-1]=this._values[Ie];return this._keys.length--,this._values.length--,ln(me,this._cacheKey)&&(this._cacheKey=U,this._cacheIndex=-2),!0}return!1},et.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=U,this._cacheIndex=-2},et.prototype.keys=function(){return new q(this._keys,this._values,Le)},et.prototype.values=function(){return new q(this._keys,this._values,mn)},et.prototype.entries=function(){return new q(this._keys,this._values,xn)},et.prototype["@@iterator"]=function(){return this.entries()},et.prototype[s]=function(){return this.entries()},et.prototype._find=function(me,Te){if(!ln(this._cacheKey,me)){this._cacheIndex=-1;for(var Pe=0;Pe<this._keys.length;Pe++)if(ln(this._keys[Pe],me)){this._cacheIndex=Pe;break}}return this._cacheIndex<0&&Te&&(this._cacheIndex=this._keys.length,this._keys.push(me),this._values.push(void 0)),this._cacheIndex},et}();return le;function Le(et,me){return et}function mn(et,me){return me}function xn(et,me){return[et,me]}}o(Qf,"CreateMapPolyfill");function qf(){var U=function(){function B(){this._map=new h}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(q){return this._map.has(q)},B.prototype.add=function(q){return this._map.set(q,q),this},B.prototype.delete=function(q){return this._map.delete(q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B}();return U}o(qf,"CreateSetPolyfill");function Yf(){var U=16,B=g.create(),q=le();return function(){function me(){this._key=le()}return o(me,"WeakMap"),me.prototype.has=function(Te){var Pe=Le(Te,!1);return Pe!==void 0?g.has(Pe,this._key):!1},me.prototype.get=function(Te){var Pe=Le(Te,!1);return Pe!==void 0?g.get(Pe,this._key):void 0},me.prototype.set=function(Te,Pe){var Ie=Le(Te,!0);return Ie[this._key]=Pe,this},me.prototype.delete=function(Te){var Pe=Le(Te,!1);return Pe!==void 0?delete Pe[this._key]:!1},me.prototype.clear=function(){this._key=le()},me}();function le(){var me;do me="@@WeakMap@@"+et();while(g.has(B,me));return B[me]=!0,me}function Le(me,Te){if(!i.call(me,q)){if(!Te)return;Object.defineProperty(me,q,{value:g.create()})}return me[q]}function mn(me,Te){for(var Pe=0;Pe<Te;++Pe)me[Pe]=Math.random()*255|0;return me}function xn(me){if(typeof Uint8Array=="function"){var Te=new Uint8Array(me);return typeof crypto<"u"?crypto.getRandomValues(Te):typeof msCrypto<"u"?msCrypto.getRandomValues(Te):mn(Te,me),Te}return mn(new Array(me),me)}function et(){var me=xn(U);me[6]=me[6]&79|64,me[8]=me[8]&191|128;for(var Te="",Pe=0;Pe<U;++Pe){var Ie=me[Pe];(Pe===4||Pe===6||Pe===8)&&(Te+="-"),Ie<16&&(Te+="0"),Te+=Ie.toString(16).toLowerCase()}return Te}}o(Yf,"CreateWeakMapPolyfill");function zs(U){return U.__=void 0,delete U.__,U}o(zs,"MakeDictionary")})})(vD||(vD={}))});var CD=ze((qee,xD)=>{var wK=0,PD="changeUtils: ";function MK(){return"id-"+new Date().valueOf()+"-"+wK++}o(MK,"uid");function kK(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(kK,"appendComponentToReference");function UK(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return kK(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(UK,"getFlexReference");function jK(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}o(jK,"getAppVersion");function $K(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o($K,"getProjectId");function AD(e){return JSON.stringify({fileName:e.id||MK().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:PD+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}o(AD,"createString");xD.exports={parse:o(function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(PD,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:o(function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=UK(t),e.appVersion=jK(t),e.projectId=$K(t,e.reference),AD(e)},"createChangeString"),toString:o(function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return AD(e)},"toString")}});var OD=ze((zee,ID)=>{ID.exports={change:CD()}});var R1=ze(Kr=>{"use strict";var _X=/[|\\{}()[\]^$+*?.]/g,VX=Object.prototype.hasOwnProperty,sS=o(function(e,t){return VX.apply(e,[t])},"hasOwn");Kr.escapeRegExpChars=function(e){return e?String(e).replace(_X,"\\$&"):""};var wX={"&":"&","<":"<",">":">",'"':""","'":"'"},MX=/[&<>'"]/g;function kX(e){return wX[e]||e}o(kX,"encode_char");var UX=`var _ENCODE_HTML_RULES = {
|
|
29
|
+
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(V8,"writeElement");function B0(e,t,n,i){return e.reduce(function(r,a){var s=Do(t,n,i&&!r);switch(a.type){case"element":return r+s+V8(a,t,n);case"comment":return r+s+U0(a[t.commentKey],t);case"doctype":return r+s+$0(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+j0(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+Vb(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+k0(l,t,n)}},"")}o(B0,"writeElements");function H0(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}o(H0,"hasContentCompact");function w8(e,t,n,i,r){yi=e,Ti=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(">"+Vb(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(zg(e[n.attributesKey],n,i));var l=H0(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(G0(e,n,i+1,!1)),yi=e,Ti=t,t&&s.push((r?Do(n,i,!1):"")+"</"+a+">"),s.join("")}o(w8,"writeElementCompact");function G0(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=F8(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(M0(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Do(t,n,i):"")+k0(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Do(t,n,i):"")+Vb(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Do(t,n,i):"")+j0(s[r],t));break;case t.doctypeKey:l.push(Do(t,n,i)+$0(s[r],t));break;case t.commentKey:l.push(Do(t,n,i)+U0(s[r],t));break;default:l.push(Do(t,n,i)+w8(s[r],a,t,n,H0(s[r],t)))}i=i&&!l.length}return l.join("")}o(G0,"writeElementsCompact");W0.exports=function(e,t){t=D8(t);var n=[];return yi=e,Ti="_root_",t.compact?n.push(G0(e,t,0,!0)):(e[t.declarationKey]&&n.push(M0(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(B0(e[t.elementsKey],t,0,!n.length))),n.join("")}});var X0=ze((Iee,K0)=>{var M8=wb();K0.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 M8(n,t)}});var lc=ze((Oee,Q0)=>{var k8=_b(),U8=w0(),j8=wb(),$8=X0();Q0.exports={xml2js:k8,xml2json:U8,js2xml:j8,json2xml:$8}});var eD=ze(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.convertEntityTypeAnnotations=Qi.convertPropertyAnnotations=Qi.convertNavigationPropertyAnnotations=Qi.convertEntitySetAnnotations=Qi.convertGenericAnnotations=Qi.convertV2Annotations=void 0;function B8(e,t,n){let i=[];switch(t){case"EntitySet":Y0(e,i);break;case"EntityType":Z0(e,i);break;case"NavigationProperty":z0(e,n,i);break;case"Property":J0(e,n,i);break;case"Singleton":break;default:break}return q0(e,n,i),i}o(B8,"convertV2Annotations");Qi.convertV2Annotations=B8;function q0(e,t,n){function i(r,a){r&&n.push(a)}if(o(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}o(q0,"convertGenericAnnotations");Qi.convertGenericAnnotations=q0;function Y0(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}o(Y0,"convertEntitySetAnnotations");Qi.convertEntitySetAnnotations=Y0;function z0(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}o(z0,"convertNavigationPropertyAnnotations");Qi.convertNavigationPropertyAnnotations=z0;function J0(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}o(J0,"convertPropertyAnnotations");Qi.convertPropertyAnnotations=J0;function Z0(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}o(Z0,"convertEntityTypeAnnotations");Qi.convertEntityTypeAnnotations=Z0});var aD=ze(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.parse=void 0;var H8=lc(),He=Fb(),bu=eD(),em=/^Collection\((.+)\)$/;function G8(e){return e.Type!==null&&e.Type!==void 0}o(G8,"isV4NavProperty");function W8(e){return e.map(t=>t._attributes.Name)}o(W8,"getEntityTypeKeys");function iD(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:Pl(a._attributes.Type).type};if(a._attributes.MaxLength&&(s.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(s.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(s.scale=parseInt(a._attributes.Scale,10)),s.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,bu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(fc(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(iD,"parseProperties");function K8(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(K8,"parseReferentialConstraint");function X8(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,He.ensureArray)(i.Principal.PropertyRef),l=(0,He.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,He.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(X8,"parseV2ReferentialConstraint");function rD(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(G8(s)){let l=s.Type.match(em),u=l!==null,p=_o(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:u,targetTypeName:p,referentialConstraint:K8((0,He.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,bu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(fc(`${n}/${s.Name}`,g))}return r},[])}o(rD,"parseNavigationProperties");function Q8(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,He.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(Q8,"parseAssociationSets");function q8(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,He.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:X8((0,He.ensureArray)(n.ReferentialConstraint),r)}})}o(q8,"parseAssociations");function Y8(e,t,n){return e.reduce((i,r)=>{let a=r.Key?W8((0,He.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=iD((0,He.ensureArray)(r.Property),a,s,t),p=rD((0,He.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,bu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(fc(g.fullyQualifiedName,m)),i.push(g),i},[])}o(Y8,"parseEntityTypes");function z8(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=iD((0,He.ensureArray)(r.Property),[],a,t),l=rD((0,He.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(z8,"parseComplexTypes");function J8(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}o(J8,"parseTypeDefinitions");function Z8(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:_o(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,bu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(fc(l.fullyQualifiedName,u)),l})}o(Z8,"parseEntitySets");function eK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:_o(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,bu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(fc(l.fullyQualifiedName,u)),l})}o(eK,"parseSingletons");function tD(e,t,n){return e.map(i=>{let r=(0,He.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>Pl(u._attributes.Type).type).join(","):s=a?Pl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Pl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=Pl(u._attributes.Type),m={_type:"ActionParameter",fullyQualifiedName:`${l}/${u._attributes.Name}`,name:`${u._attributes.Name}`,type:g,isCollection:p};return u._attributes.MaxLength&&(m.maxLength=parseInt(u._attributes.MaxLength,10)),u._attributes.Precision&&(m.precision=parseInt(u._attributes.Precision,10)),u._attributes.Scale&&(m.scale=parseInt(u._attributes.Scale,10)),m.nullable=u._attributes.Nullable!=="false",m}),returnType:i.ReturnType?Pl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(em)!==null:!1}})}o(tD,"parseActions");function tK(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,He.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(em)!==null:!1}})}o(tK,"parseV2FunctionImport");function nD(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:_o(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:_o(r)}})}o(nD,"parseActionImports");function nK(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let u=Object.keys(a).find(g=>g!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Zg(s,p,n,!1):u&&(l.value=oD({[u]:a[u]},p,n)),i.Annotation){let g=nm((0,He.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(fc(p,g))}}return l})}o(nK,"parsePropertyValues");function tm(e,t,n){let i=nm((0,He.ensureArray)(e.Annotation),t,n),r={type:e._attributes?_o(e._attributes.Type):void 0,propertyValues:nK((0,He.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(tm,"parseRecord");function ga(e,t){return e[t]!=null}o(ga,"isExpressionOfType");function Jg(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}o(Jg,"parseModelPath");function kb(e,t,n){if(ga(e,"Record")){let i=(0,He.ensureArray)(e.Record).map((r,a)=>tm(r,t+"/"+a,n));return i.type="Record",i}else if(ga(e,"PropertyPath")){let i=(0,He.ensureArray)(e.PropertyPath).map(r=>Jg(r,"PropertyPath"));return i.type="PropertyPath",i}else if(ga(e,"NavigationPropertyPath")){let i=(0,He.ensureArray)(e.NavigationPropertyPath).map(r=>Jg(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(ga(e,"String")){let i=(0,He.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(ga(e,"AnnotationPath")){let i=(0,He.ensureArray)(e.AnnotationPath).map(r=>Jg(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(ga(e,"Path")){let i=(0,He.ensureArray)(e.Path).map(r=>Jg(r,"Path"));return i.type="Path",i}else if(ga(e,"If")){let i=(0,He.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(kb,"parseCollection");function vn(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>Zg({[i]:r},"",[],!0))):n.push(Zg({[i]:e[i]},"",[],!0))}),n}o(vn,"parseChildren");function oD(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:kb(e.Collection,t,n)};case"Record":return{type:"Record",Record:tm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:vn(e.Apply),$Function:vn(e.Function)};case"And":return{type:"And",$And:vn(e.And)};case"Or":return{type:"Or",$Or:vn(e.Or)};case"Eq":return{type:"Eq",$Eq:vn(e.Eq)};case"Gt":return{type:"Gt",$Gt:vn(e.Gt)};case"Ge":return{type:"Ge",$Ge:vn(e.Ge)};case"Lt":return{type:"Lt",$Lt:vn(e.Lt)};case"Le":return{type:"Le",$Le:vn(e.Le)};case"If":return{type:"If",$If:vn(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(oD,"parseInlineExpression");function Zg(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:vn(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:kb(e.Collection,t,n)};case"Record":return{type:"Record",Record:tm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:vn(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:vn(e.And)};case"Ne":return{type:"Ne",$Ne:vn(e.Ne)};case"Not":return{type:"Not",$Not:vn(e.Not)[0]};case"Or":return{type:"Or",$Or:vn(e.Or)};case"Eq":return{type:"Eq",$Eq:vn(e.Eq)};case"If":return{type:"If",$If:vn(e.If)};case"Gt":return{type:"Gt",$Gt:vn(e.Gt)};case"Ge":return{type:"Ge",$Ge:vn(e.Ge)};case"Lt":return{type:"Lt",$Lt:vn(e.Lt)};case"Le":return{type:"Le",$Le:vn(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Zg,"parseExpression");function iK(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:_o(i),qualifier:r},l=`${t}@${_o(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=oD(a,l,n)),e.Annotation){let p=nm((0,He.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return ga(e,"Record")?s.record=tm(e.Record,l,n):ga(e,"Collection")?s.collection=kb(e.Collection,l,n):u.length===1?s.value=Zg({[u[0]]:e[u[0]]},l,n,!1):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(iK,"parseAnnotation");function nm(e,t,n){return e.map(i=>iK(i,t,n))}o(nm,"parseAnnotations");function fc(e,t){return{target:e,annotations:t}}o(fc,"createAnnotationList");function rK(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(fc(_o(n._attributes.Target),nm((0,He.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(rK,"parseAnnotationLists");function oK(e,t,n){let i=e._attributes.Namespace,r=[],a=Y8((0,He.ensureArray)(e.EntityType),r,i),s=z8((0,He.ensureArray)(e.ComplexType),r,i),l=J8((0,He.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},h=[],E=[];if(e.EntityContainer)if(u=Z8((0,He.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=eK((0,He.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=Q8((0,He.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")h=h.concat(tK((0,He.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")E=E.concat(nD((0,He.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),E=E.concat(nD((0,He.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(h=h.concat(tD((0,He.ensureArray)(e.Action),i,!1)),h=h.concat(tD((0,He.ensureArray)(e.Function),i,!0)));let b=q8((0,He.ensureArray)(e.Association),i);rK((0,He.ensureArray)(e.Annotations),r);let O={};return O[n]=r,{associations:b,associationSets:g,annotations:O,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:h,actionImports:E,entityTypes:a}}o(oK,"parseSchema");function aK(e){return e.reduce((t,n)=>((0,He.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(aK,"parseReferences");var Mb={};function Pl(e){let t=e.match(em),n=t?t[1]:e,i=_o(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(Pl,"unaliasType");function _o(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let u=e.substring(r,a);i.push((t=Mb[u])!==null&&t!==void 0?t:u),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(_o,"unalias");function sK(e){let t=e.reduce((E,b)=>E.concat(b.associations),[]),n=e.reduce((E,b)=>E.concat(b.associationSets),[]),i=e.reduce((E,b)=>E.concat(b.entitySets),[]),r=e.reduce((E,b)=>E.concat(b.singletons),[]),a=e.reduce((E,b)=>E.concat(b.entityTypes),[]),s=e.reduce((E,b)=>E.concat(b.actions),[]),l=e.reduce((E,b)=>E.concat(b.actionImports),[]),u=e.reduce((E,b)=>E.concat(b.complexTypes),[]),p=e.reduce((E,b)=>E.concat(b.typeDefinitions),[]),g={};e.forEach(E=>{g=Object.assign(g,E.annotations)});let m,h;return e.forEach(E=>{E.entityContainer&&Object.keys(E.entityContainer).length>0&&(m=E.entityContainer,h=E.namespace)}),i.forEach(E=>{let b=a.find(O=>O.fullyQualifiedName===E.entityTypeName);b==null||b.navigationProperties.forEach(O=>{let N=O,M=n.find(H=>H.association===N.relationship);if(M){let H=M.associationEnd.find($=>$.entitySet!==E.fullyQualifiedName);H&&(E.navigationPropertyBinding[O.name]=H.entitySet)}})}),a.forEach(E=>{E.navigationProperties.forEach(b=>{let O=b,N=t.find(M=>M.fullyQualifiedName===O.relationship);N&&N.referentialConstraints&&N.referentialConstraints.length>0&&(N.referentialConstraints[0].sourceTypeName===E.fullyQualifiedName?O.referentialConstraint=N.referentialConstraints:O.referentialConstraint=N.referentialConstraints.map(M=>({sourceTypeName:M.targetTypeName,sourceProperty:M.targetProperty,targetTypeName:M.sourceTypeName,targetProperty:M.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:h,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(sK,"mergeSchemas");function cK(e,t){Mb=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{Mb[n._attributes.Alias]=n._attributes.Namespace})}o(cK,"createAliasMap");function lK(e,t="serviceFile"){let n=(0,H8.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,He.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=aK((0,He.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));cK(a,r);let s=r.map(u=>oK(u,i,t));return new He.RawMetadataInstance(t,i,sK(s),a)}o(lK,"parse");im.parse=lK});var sD=ze(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.parse=xl.merge=void 0;var fK=S0();Object.defineProperty(xl,"merge",{enumerable:!0,get:o(function(){return fK.merge},"get")});var uK=aD();Object.defineProperty(xl,"parse",{enumerable:!0,get:o(function(){return uK.parse},"get")})});var bD=ze(()=>{var vD;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(u,p){return function(g,m){Object.defineProperty(u,g,{configurable:!0,writable:!0,value:m}),p&&p(g,m)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!l&&!u,g={create:l?function(){return zs(Object.create(null))}:u?function(){return zs({__proto__:null})}:function(){return zs({})},has:p?function(U,B){return i.call(U,B)}:function(U,B){return B in U},get:p?function(U,B){return i.call(U,B)?U[B]:void 0}:function(U,B){return U[B]}},m=Object.getPrototypeOf(Function),h=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Qf(),E=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:qf(),b=typeof WeakMap=="function"?WeakMap:Yf(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,N=Bi(),M=Xf(N);function H(U,B,q,le){if(Fe(q)){if(!Nt(U))throw new TypeError;if(!Ut(B))throw new TypeError;return sn(U,B)}else{if(!Nt(U))throw new TypeError;if(!ot(B))throw new TypeError;if(!ot(le)&&!Fe(le)&&!Kn(le))throw new TypeError;return Kn(le)&&(le=void 0),q=_e(q),Wn(U,B,q,le)}}o(H,"decorate"),t("decorate",H);function $(U,B){function q(le,Le){if(!ot(le))throw new TypeError;if(!Fe(Le)&&!yn(Le))throw new TypeError;Ct(U,B,le,Le)}return o(q,"decorator"),q}o($,"metadata"),t("metadata",$);function re(U,B,q,le){if(!ot(q))throw new TypeError;return Fe(le)||(le=_e(le)),Ct(U,B,q,le)}o(re,"defineMetadata"),t("defineMetadata",re);function Z(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),tn(U,B,q)}o(Z,"hasMetadata"),t("hasMetadata",Z);function oe(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),Lt(U,B,q)}o(oe,"hasOwnMetadata"),t("hasOwnMetadata",oe);function Ae(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),Ne(U,B,q)}o(Ae,"getMetadata"),t("getMetadata",Ae);function D(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),Ci(U,B,q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function ut(U,B){if(!ot(U))throw new TypeError;return Fe(B)||(B=_e(B)),kt(U,B)}o(ut,"getMetadataKeys"),t("getMetadataKeys",ut);function ht(U,B){if(!ot(U))throw new TypeError;return Fe(B)||(B=_e(B)),cn(U,B)}o(ht,"getOwnMetadataKeys"),t("getOwnMetadataKeys",ht);function je(U,B,q){if(!ot(B))throw new TypeError;if(Fe(q)||(q=_e(q)),!ot(B))throw new TypeError;Fe(q)||(q=_e(q));var le=Nr(B,q,!1);return Fe(le)?!1:le.OrdinaryDeleteMetadata(U,B,q)}o(je,"deleteMetadata"),t("deleteMetadata",je);function sn(U,B){for(var q=U.length-1;q>=0;--q){var le=U[q],Le=le(B);if(!Fe(Le)&&!Kn(Le)){if(!Ut(Le))throw new TypeError;B=Le}}return B}o(sn,"DecorateConstructor");function Wn(U,B,q,le){for(var Le=U.length-1;Le>=0;--Le){var mn=U[Le],xn=mn(B,q,le);if(!Fe(xn)&&!Kn(xn)){if(!ot(xn))throw new TypeError;le=xn}}return le}o(Wn,"DecorateProperty");function tn(U,B,q){var le=Lt(U,B,q);if(le)return!0;var Le=Gt(B);return Kn(Le)?!1:tn(U,Le,q)}o(tn,"OrdinaryHasMetadata");function Lt(U,B,q){var le=Nr(B,q,!1);return Fe(le)?!1:Y(le.OrdinaryHasOwnMetadata(U,B,q))}o(Lt,"OrdinaryHasOwnMetadata");function Ne(U,B,q){var le=Lt(U,B,q);if(le)return Ci(U,B,q);var Le=Gt(B);if(!Kn(Le))return Ne(U,Le,q)}o(Ne,"OrdinaryGetMetadata");function Ci(U,B,q){var le=Nr(B,q,!1);if(!Fe(le))return le.OrdinaryGetOwnMetadata(U,B,q)}o(Ci,"OrdinaryGetOwnMetadata");function Ct(U,B,q,le){var Le=Nr(q,le,!0);Le.OrdinaryDefineOwnMetadata(U,B,q,le)}o(Ct,"OrdinaryDefineOwnMetadata");function kt(U,B){var q=cn(U,B),le=Gt(U);if(le===null)return q;var Le=kt(le,B);if(Le.length<=0)return q;if(q.length<=0)return Le;for(var mn=new E,xn=[],et=0,me=q;et<me.length;et++){var Te=me[et],Pe=mn.has(Te);Pe||(mn.add(Te),xn.push(Te))}for(var Ie=0,it=Le;Ie<it.length;Ie++){var Te=it[Ie],Pe=mn.has(Te);Pe||(mn.add(Te),xn.push(Te))}return xn}o(kt,"OrdinaryMetadataKeys");function cn(U,B){var q=Nr(U,B,!1);return q?q.OrdinaryOwnMetadataKeys(U,B):[]}o(cn,"OrdinaryOwnMetadataKeys");function $i(U){if(U===null)return 1;switch(typeof U){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return U===null?1:6;default:return 6}}o($i,"Type");function Fe(U){return U===void 0}o(Fe,"IsUndefined");function Kn(U){return U===null}o(Kn,"IsNull");function Lr(U){return typeof U=="symbol"}o(Lr,"IsSymbol");function ot(U){return typeof U=="object"?U!==null:typeof U=="function"}o(ot,"IsObject");function I(U,B){switch($i(U)){case 0:return U;case 1:return U;case 2:return U;case 3:return U;case 4:return U;case 5:return U}var q=B===3?"string":B===5?"number":"default",le=Ht(U,a);if(le!==void 0){var Le=le.call(U,q);if(ot(Le))throw new TypeError;return Le}return A(U,q==="default"?"number":q)}o(I,"ToPrimitive");function A(U,B){if(B==="string"){var q=U.toString;if(qe(q)){var le=q.call(U);if(!ot(le))return le}var Le=U.valueOf;if(qe(Le)){var le=Le.call(U);if(!ot(le))return le}}else{var Le=U.valueOf;if(qe(Le)){var le=Le.call(U);if(!ot(le))return le}var mn=U.toString;if(qe(mn)){var le=mn.call(U);if(!ot(le))return le}}throw new TypeError}o(A,"OrdinaryToPrimitive");function Y(U){return!!U}o(Y,"ToBoolean");function V(U){return""+U}o(V,"ToString");function _e(U){var B=I(U,3);return Lr(B)?B:V(B)}o(_e,"ToPropertyKey");function Nt(U){return Array.isArray?Array.isArray(U):U instanceof Object?U instanceof Array:Object.prototype.toString.call(U)==="[object Array]"}o(Nt,"IsArray");function qe(U){return typeof U=="function"}o(qe,"IsCallable");function Ut(U){return typeof U=="function"}o(Ut,"IsConstructor");function yn(U){switch($i(U)){case 3:return!0;case 4:return!0;default:return!1}}o(yn,"IsPropertyKey");function ln(U,B){return U===B||U!==U&&B!==B}o(ln,"SameValueZero");function Ht(U,B){var q=U[B];if(q!=null){if(!qe(q))throw new TypeError;return q}}o(Ht,"GetMethod");function ti(U){var B=Ht(U,s);if(!qe(B))throw new TypeError;var q=B.call(U);if(!ot(q))throw new TypeError;return q}o(ti,"GetIterator");function sr(U){return U.value}o(sr,"IteratorValue");function gn(U){var B=U.next();return B.done?!1:B}o(gn,"IteratorStep");function di(U){var B=U.return;B&&B.call(U)}o(di,"IteratorClose");function Gt(U){var B=Object.getPrototypeOf(U);if(typeof U!="function"||U===m||B!==m)return B;var q=U.prototype,le=q&&Object.getPrototypeOf(q);if(le==null||le===Object.prototype)return B;var Le=le.constructor;return typeof Le!="function"||Le===U?B:Le}o(Gt,"OrdinaryGetPrototypeOf");function ta(){var U;!Fe(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(U=Ys(n.Reflect));var B,q,le,Le=new b,mn={registerProvider:xn,getProvider:me,setProvider:Pe};return mn;function xn(Ie){if(!Object.isExtensible(mn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case U===Ie:break;case Fe(B):B=Ie;break;case B===Ie:break;case Fe(q):q=Ie;break;case q===Ie:break;default:le===void 0&&(le=new E),le.add(Ie);break}}function et(Ie,it){if(!Fe(B)){if(B.isProviderFor(Ie,it))return B;if(!Fe(q)){if(q.isProviderFor(Ie,it))return B;if(!Fe(le))for(var Wt=ti(le);;){var fn=gn(Wt);if(!fn)return;var cr=sr(fn);if(cr.isProviderFor(Ie,it))return di(Wt),cr}}}if(!Fe(U)&&U.isProviderFor(Ie,it))return U}function me(Ie,it){var Wt=Le.get(Ie),fn;return Fe(Wt)||(fn=Wt.get(it)),Fe(fn)&&(fn=et(Ie,it),Fe(fn)||(Fe(Wt)&&(Wt=new h,Le.set(Ie,Wt)),Wt.set(it,fn))),fn}function Te(Ie){if(Fe(Ie))throw new TypeError;return B===Ie||q===Ie||!Fe(le)&&le.has(Ie)}function Pe(Ie,it,Wt){if(!Te(Wt))throw new Error("Metadata provider not registered.");var fn=me(Ie,it);if(fn!==Wt){if(!Fe(fn))return!1;var cr=Le.get(Ie);Fe(cr)&&(cr=new h,Le.set(Ie,cr)),cr.set(it,Wt)}return!0}}o(ta,"CreateMetadataRegistry");function Bi(){var U;return!Fe(O)&&ot(n.Reflect)&&Object.isExtensible(n.Reflect)&&(U=n.Reflect[O]),Fe(U)&&(U=ta()),!Fe(O)&&ot(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:U}),U}o(Bi,"GetOrCreateMetadataRegistry");function Xf(U){var B=new b,q={isProviderFor:o(function(Te,Pe){var Ie=B.get(Te);return Fe(Ie)?!1:Ie.has(Pe)},"isProviderFor"),OrdinaryDefineOwnMetadata:xn,OrdinaryHasOwnMetadata:Le,OrdinaryGetOwnMetadata:mn,OrdinaryOwnMetadataKeys:et,OrdinaryDeleteMetadata:me};return N.registerProvider(q),q;function le(Te,Pe,Ie){var it=B.get(Te),Wt=!1;if(Fe(it)){if(!Ie)return;it=new h,B.set(Te,it),Wt=!0}var fn=it.get(Pe);if(Fe(fn)){if(!Ie)return;if(fn=new h,it.set(Pe,fn),!U.setProvider(Te,Pe,q))throw it.delete(Pe),Wt&&B.delete(Te),new Error("Wrong provider for target.")}return fn}o(le,"GetOrCreateMetadataMap");function Le(Te,Pe,Ie){var it=le(Pe,Ie,!1);return Fe(it)?!1:Y(it.has(Te))}o(Le,"OrdinaryHasOwnMetadata");function mn(Te,Pe,Ie){var it=le(Pe,Ie,!1);if(!Fe(it))return it.get(Te)}o(mn,"OrdinaryGetOwnMetadata");function xn(Te,Pe,Ie,it){var Wt=le(Ie,it,!0);Wt.set(Te,Pe)}o(xn,"OrdinaryDefineOwnMetadata");function et(Te,Pe){var Ie=[],it=le(Te,Pe,!1);if(Fe(it))return Ie;for(var Wt=it.keys(),fn=ti(Wt),cr=0;;){var $d=gn(fn);if(!$d)return Ie.length=cr,Ie;var UT=sr($d);try{Ie[cr]=UT}catch(zf){try{di(fn)}finally{throw zf}}cr++}}o(et,"OrdinaryOwnMetadataKeys");function me(Te,Pe,Ie){var it=le(Pe,Ie,!1);if(Fe(it)||!it.delete(Te))return!1;if(it.size===0){var Wt=B.get(Pe);Fe(Wt)||(Wt.delete(Ie),Wt.size===0&&B.delete(Wt))}return!0}o(me,"OrdinaryDeleteMetadata")}o(Xf,"CreateMetadataProvider");function Ys(U){var B=U.defineMetadata,q=U.hasOwnMetadata,le=U.getOwnMetadata,Le=U.getOwnMetadataKeys,mn=U.deleteMetadata,xn=new b,et={isProviderFor:o(function(me,Te){var Pe=xn.get(me);return!Fe(Pe)&&Pe.has(Te)?!0:Le(me,Te).length?(Fe(Pe)&&(Pe=new E,xn.set(me,Pe)),Pe.add(Te),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:q,OrdinaryGetOwnMetadata:le,OrdinaryOwnMetadataKeys:Le,OrdinaryDeleteMetadata:mn};return et}o(Ys,"CreateFallbackProvider");function Nr(U,B,q){var le=N.getProvider(U,B);if(!Fe(le))return le;if(q){if(N.setProvider(U,B,M))return M;throw new Error("Illegal state.")}}o(Nr,"GetMetadataProvider");function Qf(){var U={},B=[],q=function(){function et(me,Te,Pe){this._index=0,this._keys=me,this._values=Te,this._selector=Pe}return o(et,"MapIterator"),et.prototype["@@iterator"]=function(){return this},et.prototype[s]=function(){return this},et.prototype.next=function(){var me=this._index;if(me>=0&&me<this._keys.length){var Te=this._selector(this._keys[me],this._values[me]);return me+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:Te,done:!1}}return{value:void 0,done:!0}},et.prototype.throw=function(me){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),me},et.prototype.return=function(me){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:me,done:!0}},et}(),le=function(){function et(){this._keys=[],this._values=[],this._cacheKey=U,this._cacheIndex=-2}return o(et,"Map"),Object.defineProperty(et.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),et.prototype.has=function(me){return this._find(me,!1)>=0},et.prototype.get=function(me){var Te=this._find(me,!1);return Te>=0?this._values[Te]:void 0},et.prototype.set=function(me,Te){var Pe=this._find(me,!0);return this._values[Pe]=Te,this},et.prototype.delete=function(me){var Te=this._find(me,!1);if(Te>=0){for(var Pe=this._keys.length,Ie=Te+1;Ie<Pe;Ie++)this._keys[Ie-1]=this._keys[Ie],this._values[Ie-1]=this._values[Ie];return this._keys.length--,this._values.length--,ln(me,this._cacheKey)&&(this._cacheKey=U,this._cacheIndex=-2),!0}return!1},et.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=U,this._cacheIndex=-2},et.prototype.keys=function(){return new q(this._keys,this._values,Le)},et.prototype.values=function(){return new q(this._keys,this._values,mn)},et.prototype.entries=function(){return new q(this._keys,this._values,xn)},et.prototype["@@iterator"]=function(){return this.entries()},et.prototype[s]=function(){return this.entries()},et.prototype._find=function(me,Te){if(!ln(this._cacheKey,me)){this._cacheIndex=-1;for(var Pe=0;Pe<this._keys.length;Pe++)if(ln(this._keys[Pe],me)){this._cacheIndex=Pe;break}}return this._cacheIndex<0&&Te&&(this._cacheIndex=this._keys.length,this._keys.push(me),this._values.push(void 0)),this._cacheIndex},et}();return le;function Le(et,me){return et}function mn(et,me){return me}function xn(et,me){return[et,me]}}o(Qf,"CreateMapPolyfill");function qf(){var U=function(){function B(){this._map=new h}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(q){return this._map.has(q)},B.prototype.add=function(q){return this._map.set(q,q),this},B.prototype.delete=function(q){return this._map.delete(q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B}();return U}o(qf,"CreateSetPolyfill");function Yf(){var U=16,B=g.create(),q=le();return function(){function me(){this._key=le()}return o(me,"WeakMap"),me.prototype.has=function(Te){var Pe=Le(Te,!1);return Pe!==void 0?g.has(Pe,this._key):!1},me.prototype.get=function(Te){var Pe=Le(Te,!1);return Pe!==void 0?g.get(Pe,this._key):void 0},me.prototype.set=function(Te,Pe){var Ie=Le(Te,!0);return Ie[this._key]=Pe,this},me.prototype.delete=function(Te){var Pe=Le(Te,!1);return Pe!==void 0?delete Pe[this._key]:!1},me.prototype.clear=function(){this._key=le()},me}();function le(){var me;do me="@@WeakMap@@"+et();while(g.has(B,me));return B[me]=!0,me}function Le(me,Te){if(!i.call(me,q)){if(!Te)return;Object.defineProperty(me,q,{value:g.create()})}return me[q]}function mn(me,Te){for(var Pe=0;Pe<Te;++Pe)me[Pe]=Math.random()*255|0;return me}function xn(me){if(typeof Uint8Array=="function"){var Te=new Uint8Array(me);return typeof crypto<"u"?crypto.getRandomValues(Te):typeof msCrypto<"u"?msCrypto.getRandomValues(Te):mn(Te,me),Te}return mn(new Array(me),me)}function et(){var me=xn(U);me[6]=me[6]&79|64,me[8]=me[8]&191|128;for(var Te="",Pe=0;Pe<U;++Pe){var Ie=me[Pe];(Pe===4||Pe===6||Pe===8)&&(Te+="-"),Ie<16&&(Te+="0"),Te+=Ie.toString(16).toLowerCase()}return Te}}o(Yf,"CreateWeakMapPolyfill");function zs(U){return U.__=void 0,delete U.__,U}o(zs,"MakeDictionary")})})(vD||(vD={}))});var CD=ze((Yee,xD)=>{var MK=0,PD="changeUtils: ";function kK(){return"id-"+new Date().valueOf()+"-"+MK++}o(kK,"uid");function UK(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(UK,"appendComponentToReference");function jK(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return UK(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(jK,"getFlexReference");function $K(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}o($K,"getAppVersion");function BK(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(BK,"getProjectId");function AD(e){return JSON.stringify({fileName:e.id||kK().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:PD+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}o(AD,"createString");xD.exports={parse:o(function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(PD,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:o(function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=jK(t),e.appVersion=$K(t),e.projectId=BK(t,e.reference),AD(e)},"createChangeString"),toString:o(function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return AD(e)},"toString")}});var OD=ze((Jee,ID)=>{ID.exports={change:CD()}});var R1=ze(Kr=>{"use strict";var VX=/[|\\{}()[\]^$+*?.]/g,wX=Object.prototype.hasOwnProperty,sS=o(function(e,t){return wX.apply(e,[t])},"hasOwn");Kr.escapeRegExpChars=function(e){return e?String(e).replace(VX,"\\$&"):""};var MX={"&":"&","<":"<",">":">",'"':""","'":"'"},kX=/[&<>'"]/g;function UX(e){return MX[e]||e}o(UX,"encode_char");var jX=`var _ENCODE_HTML_RULES = {
|
|
30
30
|
"&": "&"
|
|
31
31
|
, "<": "<"
|
|
32
32
|
, ">": ">"
|
|
@@ -37,13 +37,13 @@ Actual: `+I.attribValue);else{var _e=I.tag,Nt=I.tags[I.tags.length-1]||I;_e.ns==
|
|
|
37
37
|
function encode_char(c) {
|
|
38
38
|
return _ENCODE_HTML_RULES[c] || c;
|
|
39
39
|
};
|
|
40
|
-
`;Kr.escapeXML=function(e){return e==null?"":String(e).replace(
|
|
41
|
-
`+
|
|
40
|
+
`;Kr.escapeXML=function(e){return e==null?"":String(e).replace(kX,UX)};function O1(){return Function.prototype.toString.call(this)+`;
|
|
41
|
+
`+jX}o(O1,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(Kr.escapeXML,"toString",{value:O1}):Kr.escapeXML.toString=O1}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Kr.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)sS(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};Kr.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var r=n[i];if(typeof t[r]<"u"){if(!sS(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};Kr.cache={_data:{},set:o(function(e,t){this._data[e]=t},"set"),get:o(function(e){return this._data[e]},"get"),remove:o(function(e){delete this._data[e]},"remove"),reset:o(function(){this._data={}},"reset")};Kr.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};Kr.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();Kr.hasOwnOnlyObject=function(e){var t=Kr.createNullProtoObjWherePossible();for(var n in e)sS(e,n)&&(t[n]=e[n]);return t}});var L1=ze((jne,$X)=>{$X.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 U1=ze(At=>{"use strict";var lS=require("fs"),Hu=require("path"),On=R1(),N1=!1,BX=L1().version,HX="<",GX=">",WX="%",M1="locals",KX="ejs",XX="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",k1=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],QX=k1.concat("cache"),F1=/^\uFEFF/,cS=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;At.cache=On.cache;At.fileLoader=lS.readFileSync;At.localsName=M1;At.promiseImpl=new Function("return this;")().Promise;At.resolveInclude=function(e,t,n){var i=Hu.dirname,r=Hu.extname,a=Hu.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function D1(e,t){var n;if(t.some(function(i){return n=At.resolveInclude(e,i,!0),lS.existsSync(n)}))return n}o(D1,"resolvePaths");function qX(e,t){var n,i,r=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=D1(e,t.root):n=At.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=At.resolveInclude(e,t.filename),lS.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=D1(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(qX,"getIncludePath");function Gu(e,t){var n,i=e.filename,r=arguments.length>1;if(e.cache){if(!i)throw new Error("cache option requires a filename");if(n=At.cache.get(i),n)return n;r||(t=_1(i).toString().replace(F1,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=_1(i).toString().replace(F1,"")}return n=At.compile(t,e),e.cache&&At.cache.set(i,n),n}o(Gu,"handleCache");function YX(e,t,n){var i;if(n){try{i=Gu(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof At.promiseImpl=="function")return new At.promiseImpl(function(r,a){try{i=Gu(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(YX,"tryHandleCache");function _1(e){return At.fileLoader(e)}o(_1,"fileLoader");function zX(e,t){var n=On.shallowCopy(On.createNullProtoObjWherePossible(),t);if(n.filename=qX(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return Gu(n,i.template)}return Gu(n)}o(zX,"includeFile");function V1(e,t,n,i,r){var a=t.split(`
|
|
42
42
|
`),s=Math.max(i-3,0),l=Math.min(a.length,i+3),u=r(n),p=a.slice(s,l).map(function(g,m){var h=m+s+1;return(h==i?" >> ":" ")+h+"| "+g}).join(`
|
|
43
43
|
`);throw e.path=u,e.message=(u||"ejs")+":"+i+`
|
|
44
44
|
`+p+`
|
|
45
45
|
|
|
46
|
-
`+e.message,e}o(V1,"rethrow");function w1(e){return e.replace(/;(\s*$)/,"$1")}o(w1,"stripSemi");At.compile=o(function(t,n){var i;return n&&n.scope&&(N1||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),N1=!0),n.context||(n.context=n.scope),delete n.scope),i=new Hn(t,n),i.compile()},"compile");At.render=function(e,t,n){var i=t||On.createNullProtoObjWherePossible(),r=n||On.createNullProtoObjWherePossible();return arguments.length==2&&On.shallowCopyFromList(r,i,k1),Gu(r,e)(i)};At.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},r,a;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(r=e.shift(),e.length?On.shallowCopy(i,e.pop()):(r.settings&&(r.settings.views&&(i.views=r.settings.views),r.settings["view cache"]&&(i.cache=!0),a=r.settings["view options"],a&&On.shallowCopy(i,a)),On.shallowCopyFromList(i,r,
|
|
46
|
+
`+e.message,e}o(V1,"rethrow");function w1(e){return e.replace(/;(\s*$)/,"$1")}o(w1,"stripSemi");At.compile=o(function(t,n){var i;return n&&n.scope&&(N1||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),N1=!0),n.context||(n.context=n.scope),delete n.scope),i=new Hn(t,n),i.compile()},"compile");At.render=function(e,t,n){var i=t||On.createNullProtoObjWherePossible(),r=n||On.createNullProtoObjWherePossible();return arguments.length==2&&On.shallowCopyFromList(r,i,k1),Gu(r,e)(i)};At.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},r,a;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(r=e.shift(),e.length?On.shallowCopy(i,e.pop()):(r.settings&&(r.settings.views&&(i.views=r.settings.views),r.settings["view cache"]&&(i.cache=!0),a=r.settings["view options"],a&&On.shallowCopy(i,a)),On.shallowCopyFromList(i,r,QX)),i.filename=t):r=On.createNullProtoObjWherePossible(),YX(i,r,n)};At.Template=Hn;At.clearCache=function(){At.cache.reset()};function Hn(e,t){var n=On.hasOwnOnlyObject(t),i=On.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||On.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||At.openDelimiter||HX,i.closeDelimiter=n.closeDelimiter||At.closeDelimiter||GX,i.delimiter=n.delimiter||At.delimiter||WX,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||At.localsName||M1,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()}o(Hn,"Template");Hn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Hn.prototype={createRegex:o(function(){var e=XX,t=On.escapeRegExpChars(this.opts.delimiter),n=On.escapeRegExpChars(this.opts.openDelimiter),i=On.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},"createRegex"),compile:o(function(){var e,t,n=this.opts,i="",r="",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
48
|
`,n.outputFunctionName){if(!cS.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
|
|
49
49
|
`}if(n.localsName&&!cS.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var u=" var __locals = ("+n.localsName+` || {}),
|
|
@@ -68,7 +68,7 @@ try {
|
|
|
68
68
|
|
|
69
69
|
`,b.message+=`If the above error is not helpful, you may want to try EJS-Lint:
|
|
70
70
|
`,b.message+="https://github.com/RyanZim/EJS-Lint",n.async||(b.message+=`
|
|
71
|
-
`,b.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),b}var m=n.client?t:o(function(O){var N=o(function(M,H){var $=On.shallowCopy(On.createNullProtoObjWherePossible(),O);return H&&($=On.shallowCopy($,H)),
|
|
71
|
+
`,b.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),b}var m=n.client?t:o(function(O){var N=o(function(M,H){var $=On.shallowCopy(On.createNullProtoObjWherePossible(),O);return H&&($=On.shallowCopy($,H)),zX(M,n)($)},"include");return t.apply(n.context,[O||On.createNullProtoObjWherePossible(),a,N,V1])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var h=n.filename,E=Hu.basename(h,Hu.extname(h));try{Object.defineProperty(m,"name",{value:E,writable:!1,enumerable:!1,configurable:!0})}catch{}}return m},"compile"),generateSource:o(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,r=this.opts.openDelimiter,a=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(s,l){var u;if(s.indexOf(r+i)===0&&s.indexOf(r+i+i)!==0&&(u=n[l+2],!(u==i+a||u=="-"+i+a||u=="_"+i+a)))throw new Error('Could not find matching close tag for "'+s+'".');t.scanLine(s)})},"generateSource"),parseTemplateText:o(function(){for(var e=this.templateText,t=this.regex,n=t.exec(e),i=[],r;n;)r=n.index,r!==0&&(i.push(e.substring(0,r)),e=e.slice(r)),i.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&i.push(e),i},"parseTemplateText"),_addOutput:o(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:o(function(e){var t=this,n=this.opts.delimiter,i=this.opts.openDelimiter,r=this.opts.closeDelimiter,a=0;switch(a=e.split(`
|
|
74
74
|
`).length-1,e){case i+n:case i+n+"_":this.mode=Hn.modes.EVAL;break;case i+n+"=":this.mode=Hn.modes.ESCAPED;break;case i+n+"-":this.mode=Hn.modes.RAW;break;case i+n+"#":this.mode=Hn.modes.COMMENT;break;case i+n+n:this.mode=Hn.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
|
|
@@ -79,7 +79,7 @@ try {
|
|
|
79
79
|
`;break;case Hn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+w1(e)+`))
|
|
80
80
|
`;break;case Hn.modes.RAW:this.source+=" ; __append("+w1(e)+`)
|
|
81
81
|
`;break;case Hn.modes.COMMENT:break;case Hn.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
|
|
82
|
-
`)},"scanLine")};At.escapeXML=On.escapeXML;At.__express=At.renderFile;At.VERSION
|
|
82
|
+
`)},"scanLine")};At.escapeXML=On.escapeXML;At.__express=At.renderFile;At.VERSION=BX;At.name=KX;typeof window<"u"&&(window.ejs=At)});var Pp,nP=Ye(()=>{Pp="7.1.1"});function rt(e){return e&&e.length===0}function Vi(e){return e==null?[]:Object.keys(e)}function wn(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function G_(e,t){for(var n=[],i=Vi(e),r=0;r<i.length;r++){var a=i[r];n.push(t.call(null,e[a],a))}return n}function pe(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function Rn(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(Rn(i)):t.push(i)}return t}function Ai(e){return rt(e)?void 0:e[0]}function ly(e){var t=e&&e.length;return t?e[t-1]:void 0}function ye(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(fy(e))for(var i=Vi(e),n=0;n<i.length;n++){var r=i[n],a=e[r];t.call(null,a,r)}else throw Error("non exhaustive match")}function Qr(e){return typeof e=="string"}function Pi(e){return e===void 0}function vo(e){return e instanceof Function}function Mn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function Os(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function qr(e,t){var n=[];if(Array.isArray(e))for(var i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function Fa(e,t){return qr(e,function(n){return!t(n)})}function Er(e,t){for(var n=Object.keys(e),i={},r=0;r<n.length;r++){var a=n[r],s=e[a];t(s)&&(i[a]=s)}return i}function Ce(e,t){return fy(e)?e.hasOwnProperty(t):!1}function wt(e,t){return Da(e,function(n){return n===t})!==void 0}function En(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function Rs(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Da(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function W_(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function pn(e,t,n){for(var i=Array.isArray(e),r=i?e:wn(e),a=i?[]:Vi(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:a[l]);return s}function _a(e){return Fa(e,function(t){return t==null})}function xp(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return pn(e,function(i,r){var a=t(r);return wt(n,a)?i:(n.push(a),i.concat(r))},[])}function tle(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=[null],r=i.concat(t);return Function.bind.apply(e,r)}function li(e){return Array.isArray(e)}function bo(e){return e instanceof RegExp}function fy(e){return e instanceof Object}function fi(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function Wc(e,t){return Fa(e,function(n){return wt(t,n)})}function uy(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function K_(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function nle(e,t){var n=En(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function ile(e,t){if(e.length!==t.length)throw Error("can't zipObject with different number of keys and values!");for(var n={},i=0;i<e.length;i++)n[e[i]]=t[i];return n}function Sr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=Vi(r),s=0;s<a.length;s++){var l=a[s];e[l]=r[l]}return e}function _6(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=Vi(r),s=0;s<a.length;s++){var l=a[s];Ce(e,l)||(e[l]=r[l])}return e}function Cp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _6.apply(null,[{}].concat(e))}function X_(e,t){var n={};return ye(e,function(i){var r=t(i),a=n[r];a?a.push(i):n[r]=[i]}),n}function iP(e,t){for(var n=Rs(e),i=Vi(t),r=0;r<i.length;r++){var a=i[r],s=t[a];n[a]=s}return n}function kn(){}function rP(e){return e}function Q_(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i!==void 0?i:void 0)}return t}function Ip(e){console&&console.error&&console.error("Error: "+e)}function py(e){console&&console.warn&&console.warn("Warning: "+e)}function oP(){return typeof Map=="function"}function q_(e,t){t.forEach(function(n){var i=n.prototype;Object.getOwnPropertyNames(i).forEach(function(r){if(r!=="constructor"){var a=Object.getOwnPropertyDescriptor(i,r);a&&(a.get||a.set)?Object.defineProperty(e.prototype,r,a):e.prototype[r]=n.prototype[r]}})})}function dy(toBecomeFast){function FakeConstructor(){}o(FakeConstructor,"FakeConstructor"),FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return o(fakeAccess,"fakeAccess"),fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}function Op(e){return e[e.length-1]}function gy(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var bt=Ye(()=>{o(rt,"isEmpty");o(Vi,"keys");o(wn,"values");o(G_,"mapValues");o(pe,"map");o(Rn,"flatten");o(Ai,"first");o(ly,"last");o(ye,"forEach");o(Qr,"isString");o(Pi,"isUndefined");o(vo,"isFunction");o(Mn,"drop");o(Os,"dropRight");o(qr,"filter");o(Fa,"reject");o(Er,"pick");o(Ce,"has");o(wt,"contains");o(En,"cloneArr");o(Rs,"cloneObj");o(Da,"find");o(W_,"findAll");o(pn,"reduce");o(_a,"compact");o(xp,"uniq");o(tle,"partial");o(li,"isArray");o(bo,"isRegExp");o(fy,"isObject");o(fi,"every");o(Wc,"difference");o(uy,"some");o(K_,"indexOf");o(nle,"sortBy");o(ile,"zipObject");o(Sr,"assign");o(_6,"assignNoOverwrite");o(Cp,"defaults");o(X_,"groupBy");o(iP,"merge");o(kn,"NOOP");o(rP,"IDENTITY");o(Q_,"packArray");o(Ip,"PRINT_ERROR");o(py,"PRINT_WARNING");o(oP,"isES2015MapSupported");o(q_,"applyMixins");o(dy,"toFastProperties");o(Op,"peek");o(gy,"timer")});var hy=ze((z_,my)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof my=="object"&&my.exports?my.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:z_,function(){function e(){}o(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(b){this.idx=b.idx,this.input=b.input,this.groupIdx=b.groupIdx},e.prototype.pattern=function(b){this.idx=0,this.input=b,this.groupIdx=0,this.consumeChar("/");var O=this.disjunction();this.consumeChar("/");for(var N={type:"Flags",loc:{begin:this.idx,end:b.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(N,"global");break;case"i":s(N,"ignoreCase");break;case"m":s(N,"multiLine");break;case"u":s(N,"unicode");break;case"y":s(N,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:N,value:O,loc:this.loc(0)}},e.prototype.disjunction=function(){var b=[],O=this.idx;for(b.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(O)}},e.prototype.alternative=function(){for(var b=[],O=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(O)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var b=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(b)};case"$":return{type:"EndAnchor",loc:this.loc(b)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(b)};case"B":return{type:"NonWordBoundary",loc:this.loc(b)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var O;switch(this.popChar()){case"=":O="Lookahead";break;case"!":O="NegativeLookahead";break}l(O);var N=this.disjunction();return this.consumeChar(")"),{type:O,value:N,loc:this.loc(b)}}u()},e.prototype.quantifier=function(b){var O,N=this.idx;switch(this.popChar()){case"*":O={atLeast:0,atMost:1/0};break;case"+":O={atLeast:1,atMost:1/0};break;case"?":O={atLeast:0,atMost:1};break;case"{":var M=this.integerIncludingZero();switch(this.popChar()){case"}":O={atLeast:M,atMost:M};break;case",":var H;this.isDigit()?(H=this.integerIncludingZero(),O={atLeast:M,atMost:H}):O={atLeast:M,atMost:1/0},this.consumeChar("}");break}if(b===!0&&O===void 0)return;l(O);break}if(!(b===!0&&O===void 0))return l(O),this.peekChar(0)==="?"?(this.consumeChar("?"),O.greedy=!1):O.greedy=!0,O.type="Quantifier",O.loc=this.loc(N),O},e.prototype.atom=function(){var b,O=this.idx;switch(this.peekChar()){case".":b=this.dotAll();break;case"\\":b=this.atomEscape();break;case"[":b=this.characterClass();break;case"(":b=this.group();break}return b===void 0&&this.isPatternCharacter()&&(b=this.patternCharacter()),l(b),b.loc=this.loc(O),this.isQuantifier()&&(b.quantifier=this.quantifier()),b},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r(`
|
|
83
83
|
`),r("\r"),r("\u2028"),r("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){var b=this.positiveInteger();return{type:"GroupBackReference",value:b}},e.prototype.characterClassEscape=function(){var b,O=!1;switch(this.popChar()){case"d":b=g;break;case"D":b=g,O=!0;break;case"s":b=h;break;case"S":b=h,O=!0;break;case"w":b=m;break;case"W":b=m,O=!0;break}return l(b),{type:"Set",value:b,complement:O}},e.prototype.controlEscapeAtom=function(){var b;switch(this.popChar()){case"f":b=r("\f");break;case"n":b=r(`
|
|
84
84
|
`);break;case"r":b=r("\r");break;case"t":b=r(" ");break;case"v":b=r("\v");break}return l(b),{type:"Character",value:b}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var b=this.popChar();if(/[a-zA-Z]/.test(b)===!1)throw Error("Invalid ");var O=b.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:O}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:r("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){var b=this.popChar();return{type:"Character",value:r(b)}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case`
|
|
85
85
|
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var b=this.popChar();return{type:"Character",value:r(b)}}},e.prototype.characterClass=function(){var b=[],O=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),O=!0);this.isClassAtom();){var N=this.classAtom(),M=N.type==="Character";if(M&&this.isRangeDash()){this.consumeChar("-");var H=this.classAtom(),$=H.type==="Character";if($){if(H.value<N.value)throw Error("Range out of order in character class");b.push({from:N.value,to:H.value})}else a(N.value,b),b.push(r("-")),a(H.value,b)}else a(N.value,b)}return this.consumeChar("]"),{type:"Set",complement:O,value:b}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case`
|
|
@@ -87,7 +87,7 @@ try {
|
|
|
87
87
|
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:r(b)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return this.peekChar()==="-"&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(b){switch(b===void 0&&(b=0),this.peekChar(b)){case"]":case`
|
|
88
88
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!");default:return!1}},e.prototype.isQuantifier=function(){var b=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(b)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
|
|
89
89
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(b){for(var O="",N=0;N<b;N++){var M=this.popChar();if(t.test(M)===!1)throw Error("Expecting a HexDecimal digits");O+=M}var H=parseInt(O,16);return{type:"Character",value:H}},e.prototype.peekChar=function(b){return b===void 0&&(b=0),this.input[this.idx+b]},e.prototype.popChar=function(){var b=this.peekChar(0);return this.consumeChar(),b},e.prototype.consumeChar=function(b){if(b!==void 0&&this.input[this.idx]!==b)throw Error("Expected: '"+b+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},e.prototype.loc=function(b){return{begin:b,end:this.idx}};var t=/[0-9a-fA-F]/,n=/[0-9]/,i=/[1-9]/;function r(b){return b.charCodeAt(0)}o(r,"cc");function a(b,O){b.length!==void 0?b.forEach(function(N){O.push(N)}):O.push(b)}o(a,"insertToSet");function s(b,O){if(b[O]===!0)throw"duplicate flag "+O;b[O]=!0}o(s,"addFlag");function l(b){if(b===void 0)throw Error("Internal Error - Should never get here!")}o(l,"ASSERT_EXISTS");function u(){throw Error("Internal Error - Should never get here!")}o(u,"ASSERT_NEVER_REACH_HERE");var p,g=[];for(p=r("0");p<=r("9");p++)g.push(p);var m=[r("_")].concat(g);for(p=r("a");p<=r("z");p++)m.push(p);for(p=r("A");p<=r("Z");p++)m.push(p);var h=[r(" "),r("\f"),r(`
|
|
90
|
-
`),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function E(){}return o(E,"BaseRegExpVisitor"),E.prototype.visitChildren=function(b){for(var O in b){var N=b[O];b.hasOwnProperty(O)&&(N.type!==void 0?this.visit(N):Array.isArray(N)&&N.forEach(function(M){this.visit(M)},this))}},E.prototype.visit=function(b){switch(b.type){case"Pattern":this.visitPattern(b);break;case"Flags":this.visitFlags(b);break;case"Disjunction":this.visitDisjunction(b);break;case"Alternative":this.visitAlternative(b);break;case"StartAnchor":this.visitStartAnchor(b);break;case"EndAnchor":this.visitEndAnchor(b);break;case"WordBoundary":this.visitWordBoundary(b);break;case"NonWordBoundary":this.visitNonWordBoundary(b);break;case"Lookahead":this.visitLookahead(b);break;case"NegativeLookahead":this.visitNegativeLookahead(b);break;case"Character":this.visitCharacter(b);break;case"Set":this.visitSet(b);break;case"Group":this.visitGroup(b);break;case"GroupBackReference":this.visitGroupBackReference(b);break;case"Quantifier":this.visitQuantifier(b);break}this.visitChildren(b)},E.prototype.visitPattern=function(b){},E.prototype.visitFlags=function(b){},E.prototype.visitDisjunction=function(b){},E.prototype.visitAlternative=function(b){},E.prototype.visitStartAnchor=function(b){},E.prototype.visitEndAnchor=function(b){},E.prototype.visitWordBoundary=function(b){},E.prototype.visitNonWordBoundary=function(b){},E.prototype.visitLookahead=function(b){},E.prototype.visitNegativeLookahead=function(b){},E.prototype.visitCharacter=function(b){},E.prototype.visitSet=function(b){},E.prototype.visitGroup=function(b){},E.prototype.visitGroupBackReference=function(b){},E.prototype.visitQuantifier=function(b){},{RegExpParser:e,BaseRegExpVisitor:E,VERSION:"0.5.0"}})});function cf(e){var t=e.toString();if(yy.hasOwnProperty(t))return yy[t];var n=
|
|
90
|
+
`),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function E(){}return o(E,"BaseRegExpVisitor"),E.prototype.visitChildren=function(b){for(var O in b){var N=b[O];b.hasOwnProperty(O)&&(N.type!==void 0?this.visit(N):Array.isArray(N)&&N.forEach(function(M){this.visit(M)},this))}},E.prototype.visit=function(b){switch(b.type){case"Pattern":this.visitPattern(b);break;case"Flags":this.visitFlags(b);break;case"Disjunction":this.visitDisjunction(b);break;case"Alternative":this.visitAlternative(b);break;case"StartAnchor":this.visitStartAnchor(b);break;case"EndAnchor":this.visitEndAnchor(b);break;case"WordBoundary":this.visitWordBoundary(b);break;case"NonWordBoundary":this.visitNonWordBoundary(b);break;case"Lookahead":this.visitLookahead(b);break;case"NegativeLookahead":this.visitNegativeLookahead(b);break;case"Character":this.visitCharacter(b);break;case"Set":this.visitSet(b);break;case"Group":this.visitGroup(b);break;case"GroupBackReference":this.visitGroupBackReference(b);break;case"Quantifier":this.visitQuantifier(b);break}this.visitChildren(b)},E.prototype.visitPattern=function(b){},E.prototype.visitFlags=function(b){},E.prototype.visitDisjunction=function(b){},E.prototype.visitAlternative=function(b){},E.prototype.visitStartAnchor=function(b){},E.prototype.visitEndAnchor=function(b){},E.prototype.visitWordBoundary=function(b){},E.prototype.visitNonWordBoundary=function(b){},E.prototype.visitLookahead=function(b){},E.prototype.visitNegativeLookahead=function(b){},E.prototype.visitCharacter=function(b){},E.prototype.visitSet=function(b){},E.prototype.visitGroup=function(b){},E.prototype.visitGroupBackReference=function(b){},E.prototype.visitQuantifier=function(b){},{RegExpParser:e,BaseRegExpVisitor:E,VERSION:"0.5.0"}})});function cf(e){var t=e.toString();if(yy.hasOwnProperty(t))return yy[t];var n=V6.pattern(t);return yy[t]=n,n}function Z_(){yy={}}var J_,yy,V6,Ty=Ye(()=>{J_=te(hy()),yy={},V6=new J_.RegExpParser;o(cf,"getRegExpAst");o(Z_,"clearRegExpParserCache")});function nV(e,t){t===void 0&&(t=!1);try{var n=cf(e),i=aP(n.value,{},n.flags.ignoreCase);return i}catch(a){if(a.message===tV)t&&py(""+Rp+(" Unable to optimize: < "+e.toString()+` >
|
|
91
91
|
`)+` Complement Sets cannot be automatically optimized.
|
|
92
92
|
This will disable the lexer's first char optimizations.
|
|
93
93
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{var r="";t&&(r=`
|
|
@@ -95,33 +95,33 @@ try {
|
|
|
95
95
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Ip(Rp+`
|
|
96
96
|
`+(" Failed parsing: < "+e.toString()+` >
|
|
97
97
|
`)+(" Using the regexp-to-ast library version: "+by.VERSION+`
|
|
98
|
-
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function aP(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)aP(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var a=r[i];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=a;switch(s.type){case"Character":vy(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(tV);ye(s.value,function(p){if(typeof p=="number")vy(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)vy(m,t,n);else{for(var m=g.from;m<=g.to&&m<lf;m++)vy(m,t,n);if(g.to>=lf)for(var h=g.from>=lf?g.from:lf,E=g.to,b=Qo(h),O=Qo(E),N=b;N<=O;N++)t[N]=N}}});break;case"Group":aP(s.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&sP(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return wn(t)}function vy(e,t,n){var i=Qo(e);t[i]=i,n===!0&&
|
|
99
|
-
`;o(nV,"getOptimizedStartCodesIndices");o(aP,"firstCharOptimizedIndices");o(vy,"addOptimizedIdxToResult");o(
|
|
100
|
-
`],tracer:o(function(H,$){return $()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){
|
|
98
|
+
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function aP(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)aP(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var a=r[i];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=a;switch(s.type){case"Character":vy(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(tV);ye(s.value,function(p){if(typeof p=="number")vy(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)vy(m,t,n);else{for(var m=g.from;m<=g.to&&m<lf;m++)vy(m,t,n);if(g.to>=lf)for(var h=g.from>=lf?g.from:lf,E=g.to,b=Qo(h),O=Qo(E),N=b;N<=O;N++)t[N]=N}}});break;case"Group":aP(s.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&sP(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return wn(t)}function vy(e,t,n){var i=Qo(e);t[i]=i,n===!0&&M6(e,t)}function M6(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=Qo(i.charCodeAt(0));t[r]=r}else{var a=n.toLowerCase();if(a!==n){var r=Qo(a.charCodeAt(0));t[r]=r}}}function eV(e,t){return Da(e.value,function(n){if(typeof n=="number")return wt(t,n);var i=n;return Da(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function sP(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?li(e.value)?fi(e.value,sP):sP(e.value):!1}function Ey(e,t){if(t instanceof RegExp){var n=cf(t),i=new k6(e);return i.visit(n),i.found}else return Da(t,function(r){return wt(e,r.charCodeAt(0))})!==void 0}var by,w6,tV,Rp,k6,iV=Ye(()=>{by=te(hy());bt();Ty();cP();w6=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),tV="Complement Sets are not supported for first char optimization",Rp=`Unable to use "first char" lexer optimizations:
|
|
99
|
+
`;o(nV,"getOptimizedStartCodesIndices");o(aP,"firstCharOptimizedIndices");o(vy,"addOptimizedIdxToResult");o(M6,"handleIgnoreCase");o(eV,"findCode");o(sP,"isWholeOptional");k6=function(e){w6(t,e);function t(n){var i=e.call(this)||this;return i.targetCharCodes=n,i.found=!1,i}return o(t,"CharCodeFinder"),t.prototype.visitChildren=function(n){if(this.found!==!0){switch(n.type){case"Lookahead":this.visitLookahead(n);return;case"NegativeLookahead":this.visitNegativeLookahead(n);return}e.prototype.visitChildren.call(this,n)}},t.prototype.visitCharacter=function(n){wt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?eV(n,this.targetCharCodes)===void 0&&(this.found=!0):eV(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(by.BaseRegExpVisitor);o(Ey,"canMatchCharCode")});function sV(e,t){t=Cp(t,{useSticky:uP,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
|
100
|
+
`],tracer:o(function(H,$){return $()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){nq()});var i;n("Reject Lexer.NA",function(){i=Fa(e,function(H){return H[qo]===wi.NA})});var r=!1,a;n("Transform Patterns",function(){r=!1,a=pe(i,function(H){var $=H[qo];if(bo($)){var re=$.source;return re.length===1&&re!=="^"&&re!=="$"&&re!=="."&&!$.ignoreCase?re:re.length===2&&re[0]==="\\"&&!wt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],re[1])?re[1]:t.useSticky?oV($):rV($)}else{if(vo($))return r=!0,{exec:$};if(Ce($,"exec"))return r=!0,$;if(typeof $=="string"){if($.length===1)return $;var Z=$.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),oe=new RegExp(Z);return t.useSticky?oV(oe):rV(oe)}else throw Error("non exhaustive match")}})});var s,l,u,p,g;n("misc mapping",function(){s=pe(i,function(H){return H.tokenTypeIdx}),l=pe(i,function(H){var $=H.GROUP;if($!==wi.SKIPPED){if(Qr($))return $;if(Pi($))return!1;throw Error("non exhaustive match")}}),u=pe(i,function(H){var $=H.LONGER_ALT;if($){var re=K_(i,$);return re}}),p=pe(i,function(H){return H.PUSH_MODE}),g=pe(i,function(H){return Ce(H,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var H=mV(t.lineTerminatorCharacters);m=pe(i,function($){return!1}),t.positionTracking!=="onlyOffset"&&(m=pe(i,function($){if(Ce($,"LINE_BREAKS"))return $.LINE_BREAKS;if(gV($,H)===!1)return Ey(H,$.PATTERN)}))});var h,E,b,O;n("Misc Mapping #2",function(){h=pe(i,pV),E=pe(a,eq),b=pn(i,function(H,$){var re=$.GROUP;return Qr(re)&&re!==wi.SKIPPED&&(H[re]=[]),H},{}),O=pe(a,function(H,$){return{pattern:a[$],longerAlt:u[$],canLineTerminator:m[$],isCustom:h[$],short:E[$],group:l[$],push:p[$],pop:g[$],tokenTypeIdx:s[$],tokenType:i[$]}})});var N=!0,M=[];return t.safeMode||n("First Char Optimization",function(){M=pn(i,function(H,$,re){if(typeof $.PATTERN=="string"){var Z=$.PATTERN.charCodeAt(0),oe=Qo(Z);lP(H,oe,O[re])}else if(li($.START_CHARS_HINT)){var Ae;ye($.START_CHARS_HINT,function(ut){var ht=typeof ut=="string"?ut.charCodeAt(0):ut,je=Qo(ht);Ae!==je&&(Ae=je,lP(H,je,O[re]))})}else if(bo($.PATTERN))if($.PATTERN.unicode)N=!1,t.ensureOptimizations&&Ip(""+Rp+(" Unable to analyze < "+$.PATTERN.toString()+` > pattern.
|
|
101
101
|
`)+` The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
102
102
|
This will disable the lexer's first char optimizations.
|
|
103
103
|
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var D=nV($.PATTERN,t.ensureOptimizations);rt(D)&&(N=!1),ye(D,function(ut){lP(H,ut,O[re])})}else t.ensureOptimizations&&Ip(""+Rp+(" TokenType: <"+$.name+`> is using a custom token pattern without providing <start_chars_hint> parameter.
|
|
104
104
|
`)+` This will disable the lexer's first char optimizations.
|
|
105
|
-
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),N=!1;return H},[])}),n("ArrayPacking",function(){M=Q_(M)}),{emptyGroups:b,patternIdxToConfig:O,charCodeToPatternIdxToConfig:M,hasCustom:r,canBeOptimized:N}}function cV(e,t){var n=[],i=
|
|
105
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),N=!1;return H},[])}),n("ArrayPacking",function(){M=Q_(M)}),{emptyGroups:b,patternIdxToConfig:O,charCodeToPatternIdxToConfig:M,hasCustom:r,canBeOptimized:N}}function cV(e,t){var n=[],i=j6(e);n=n.concat(i.errors);var r=$6(i.valid),a=r.valid;return n=n.concat(r.errors),n=n.concat(U6(a)),n=n.concat(q6(a)),n=n.concat(Y6(a,t)),n=n.concat(z6(a)),n}function U6(e){var t=[],n=qr(e,function(i){return bo(i[qo])});return t=t.concat(H6(n)),t=t.concat(K6(n)),t=t.concat(X6(n)),t=t.concat(Q6(n)),t=t.concat(G6(n)),t}function j6(e){var t=qr(e,function(r){return!Ce(r,qo)}),n=pe(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:dn.MISSING_PATTERN,tokenTypes:[r]}}),i=Wc(e,t);return{errors:n,valid:i}}function $6(e){var t=qr(e,function(r){var a=r[qo];return!bo(a)&&!vo(a)&&!Ce(a,"exec")&&!Qr(a)}),n=pe(t,function(r){return{message:"Token Type: ->"+r.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:dn.INVALID_PATTERN,tokenTypes:[r]}}),i=Wc(e,t);return{errors:n,valid:i}}function H6(e){var t=function(r){aV(a,r);function a(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return o(a,"EndAnchorFinder"),a.prototype.visitEndAnchor=function(s){this.found=!0},a}(fP.BaseRegExpVisitor),n=qr(e,function(r){var a=r[qo];try{var s=cf(a),l=new t;return l.visit(s),l.found}catch{return B6.test(a.source)}}),i=pe(n,function(r){return{message:`Unexpected RegExp Anchor Error:
|
|
106
106
|
Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
|
|
107
|
-
See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:dn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function
|
|
107
|
+
See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:dn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function G6(e){var t=qr(e,function(i){var r=i[qo];return r.test("")}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:dn.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function K6(e){var t=function(r){aV(a,r);function a(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return o(a,"StartAnchorFinder"),a.prototype.visitStartAnchor=function(s){this.found=!0},a}(fP.BaseRegExpVisitor),n=qr(e,function(r){var a=r[qo];try{var s=cf(a),l=new t;return l.visit(s),l.found}catch{return W6.test(a.source)}}),i=pe(n,function(r){return{message:`Unexpected RegExp Anchor Error:
|
|
108
108
|
Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
|
|
109
|
-
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:dn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function
|
|
109
|
+
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:dn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function X6(e){var t=qr(e,function(i){var r=i[qo];return r instanceof RegExp&&(r.multiline||r.global)}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:dn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function Q6(e){var t=[],n=pe(e,function(a){return pn(e,function(s,l){return a.PATTERN.source===l.PATTERN.source&&!wt(t,l)&&l.PATTERN!==wi.NA&&(t.push(l),s.push(l)),s},[])});n=_a(n);var i=qr(n,function(a){return a.length>1}),r=pe(i,function(a){var s=pe(a,function(u){return u.name}),l=Ai(a).PATTERN;return{message:"The same RegExp pattern ->"+l+"<-"+("has been used in all of the following Token Types: "+s.join(", ")+" <-"),type:dn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}});return r}function q6(e){var t=qr(e,function(i){if(!Ce(i,"GROUP"))return!1;var r=i.GROUP;return r!==wi.SKIPPED&&r!==wi.NA&&!Qr(r)}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:dn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function Y6(e,t){var n=qr(e,function(r){return r.PUSH_MODE!==void 0&&!wt(t,r.PUSH_MODE)}),i=pe(n,function(r){var a="Token Type: ->"+r.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+r.PUSH_MODE+"<-which does not exist";return{message:a,type:dn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function z6(e){var t=[],n=pn(e,function(i,r,a){var s=r.PATTERN;return s===wi.NA||(Qr(s)?i.push({str:s,idx:a,tokenType:r}):bo(s)&&Z6(s)&&i.push({str:s.source,idx:a,tokenType:r})),i},[]);return ye(e,function(i,r){ye(n,function(a){var s=a.str,l=a.idx,u=a.tokenType;if(r<l&&J6(s,i.PATTERN)){var p="Token: ->"+u.name+`<- can never be matched.
|
|
110
110
|
`+("Because it appears AFTER the Token Type ->"+i.name+"<-")+`in the lexer's definition.
|
|
111
|
-
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:dn.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function
|
|
111
|
+
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:dn.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function J6(e,t){if(bo(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(vo(t))return t(e,0,[],{});if(Ce(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function Z6(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return Da(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function rV(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function oV(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function lV(e,t,n){var i=[];return Ce(e,Ls)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Ls+`> property in its definition
|
|
112
112
|
`,type:dn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Ce(e,Sy)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Sy+`> property in its definition
|
|
113
113
|
`,type:dn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Ce(e,Sy)&&Ce(e,Ls)&&!Ce(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+Ls+": <"+e.defaultMode+`>which does not exist
|
|
114
114
|
`,type:dn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Ce(e,Sy)&&ye(e.modes,function(r,a){ye(r,function(s,l){Pi(s)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+a+"> at index: <"+l+`>
|
|
115
|
-
`),type:dn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function fV(e,t,n){var i=[],r=!1,a=_a(Rn(G_(e.modes,function(u){return u}))),s=Fa(a,function(u){return u[qo]===wi.NA}),l=mV(n);return t&&ye(s,function(u){var p=gV(u,l);if(p!==!1){var g=
|
|
115
|
+
`),type:dn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function fV(e,t,n){var i=[],r=!1,a=_a(Rn(G_(e.modes,function(u){return u}))),s=Fa(a,function(u){return u[qo]===wi.NA}),l=mV(n);return t&&ye(s,function(u){var p=gV(u,l);if(p!==!1){var g=tq(u,p),m={message:g,type:p.issue,tokenType:u};i.push(m)}else Ce(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(r=!0):Ey(l,u.PATTERN)&&(r=!0)}),t&&!r&&i.push({message:`Warning: No LINE_BREAKS Found.
|
|
116
116
|
This Lexer has been defined to track line and column information,
|
|
117
117
|
But none of the Token Types can be identified as matching a line terminator.
|
|
118
118
|
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
|
|
119
|
-
for details.`,type:dn.NO_LINE_BREAKS_FLAGS}),i}function uV(e){var t={},n=Vi(e);return ye(n,function(i){var r=e[i];if(li(r))t[i]=[];else throw Error("non exhaustive match")}),t}function pV(e){var t=e.PATTERN;if(bo(t))return!1;if(vo(t))return!0;if(Ce(t,"exec"))return!0;if(Qr(t))return!1;throw Error("non exhaustive match")}function
|
|
119
|
+
for details.`,type:dn.NO_LINE_BREAKS_FLAGS}),i}function uV(e){var t={},n=Vi(e);return ye(n,function(i){var r=e[i];if(li(r))t[i]=[];else throw Error("non exhaustive match")}),t}function pV(e){var t=e.PATTERN;if(bo(t))return!1;if(vo(t))return!0;if(Ce(t,"exec"))return!0;if(Qr(t))return!1;throw Error("non exhaustive match")}function eq(e){return Qr(e)&&e.length===1?e.charCodeAt(0):!1}function gV(e,t){if(Ce(e,"LINE_BREAKS"))return!1;if(bo(e.PATTERN)){try{Ey(t,e.PATTERN)}catch(n){return{issue:dn.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(Qr(e.PATTERN))return!1;if(pV(e))return{issue:dn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function tq(e,t){if(t.issue===dn.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
|
|
120
120
|
`+(" The problem is in the <"+e.name+`> Token Type
|
|
121
121
|
`)+(" Root cause: "+t.errMsg+`.
|
|
122
122
|
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===dn.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
|
|
123
123
|
`+(" The problem is in the <"+e.name+`> Token Type
|
|
124
|
-
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function mV(e){var t=pe(e,function(n){return Qr(n)&&n.length>0?n.charCodeAt(0):n});return t}function lP(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function Qo(e){return e<lf?e:Ay[e]}function
|
|
124
|
+
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function mV(e){var t=pe(e,function(n){return Qr(n)&&n.length>0?n.charCodeAt(0):n});return t}function lP(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function Qo(e){return e<lf?e:Ay[e]}function nq(){if(rt(Ay)){Ay=new Array(65536);for(var e=0;e<65536;e++)Ay[e]=e>255?255+~~(e/255):e}}var fP,aV,qo,Ls,Sy,uP,B6,W6,dV,lf,Ay,cP=Ye(()=>{fP=te(hy());Lp();bt();iV();Ty();aV=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),qo="PATTERN",Ls="defaultMode",Sy="modes",uP=typeof new RegExp("(?:)").sticky=="boolean";o(sV,"analyzeTokenTypes");o(cV,"validatePatterns");o(U6,"validateRegExpPattern");o(j6,"findMissingPatterns");o($6,"findInvalidPatterns");B6=/[^\\][\$]/;o(H6,"findEndOfInputAnchor");o(G6,"findEmptyMatchRegExps");W6=/[^\\[][\^]|^\^/;o(K6,"findStartOfInputAnchor");o(X6,"findUnsupportedFlags");o(Q6,"findDuplicatePatterns");o(q6,"findInvalidGroupType");o(Y6,"findModesThatDoNotExist");o(z6,"findUnreachablePatterns");o(J6,"testTokenType");o(Z6,"noMetaChar");o(rV,"addStartOfInput");o(oV,"addStickyFlag");o(lV,"performRuntimeChecks");o(fV,"performWarningRuntimeChecks");o(uV,"cloneEmptyGroups");o(pV,"isCustomPattern");o(eq,"isShortPattern");dV={test:o(function(e){for(var t=e.length,n=this.lastIndex;n<t;n++){var i=e.charCodeAt(n);if(i===10)return this.lastIndex=n+1,!0;if(i===13)return e.charCodeAt(n+1)===10?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},"test"),lastIndex:0};o(gV,"checkLineBreaksIssues");o(tq,"buildLineBreakIssueMessage");o(mV,"getCharCodes");o(lP,"addToMapOfArrays");lf=256;o(Qo,"charCodeToOptimizedIndex");Ay=[];o(nq,"initCharCodeToOptimizedIndexMap")});function Kc(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function ff(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Va(e){var t=iq(e);rq(t),aq(t),oq(t),ye(t,function(n){n.isParent=n.categoryMatches.length>0})}function iq(e){for(var t=En(e),n=e,i=!0;i;){n=_a(Rn(pe(n,function(a){return a.CATEGORIES})));var r=Wc(n,t);t=t.concat(r),rt(r)?i=!1:n=r}return t}function rq(e){ye(e,function(t){pP(t)||(TV[hV]=t,t.tokenTypeIdx=hV++),yV(t)&&!li(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),yV(t)||(t.CATEGORIES=[]),sq(t)||(t.categoryMatches=[]),cq(t)||(t.categoryMatchesMap={})})}function oq(e){ye(e,function(t){t.categoryMatches=[],ye(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(TV[i].tokenTypeIdx)})})}function aq(e){ye(e,function(t){vV([],t)})}function vV(e,t){ye(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),ye(t.CATEGORIES,function(n){var i=e.concat(t);wt(i,n)||vV(i,n)})}function pP(e){return Ce(e,"tokenTypeIdx")}function yV(e){return Ce(e,"CATEGORIES")}function sq(e){return Ce(e,"categoryMatches")}function cq(e){return Ce(e,"categoryMatchesMap")}function bV(e){return Ce(e,"tokenTypeIdx")}var hV,TV,uf=Ye(()=>{bt();o(Kc,"tokenStructuredMatcher");o(ff,"tokenStructuredMatcherNoCategories");hV=1,TV={};o(Va,"augmentTokenTypes");o(iq,"expandCategories");o(rq,"assignTokenDefaultProps");o(oq,"assignCategoriesTokensProp");o(aq,"assignCategoriesMapProp");o(vV,"singleAssignCategoriesToksMap");o(pP,"hasShortKeyProperty");o(yV,"hasCategoriesProperty");o(sq,"hasExtendingTokensTypesProperty");o(cq,"hasExtendingTokensTypesMapProperty");o(bV,"isTokenType")});var Py,dP=Ye(()=>{Py={buildUnableToPopLexerModeMessage:o(function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},"buildUnableToPopLexerModeMessage"),buildUnexpectedCharactersMessage:o(function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")},"buildUnexpectedCharactersMessage")}});var dn,Np,wi,Lp=Ye(()=>{cP();bt();uf();dP();Ty();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(dn||(dn={}));Np={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
|
125
125
|
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Py,traceInitPerf:!1,skipValidations:!1};Object.freeze(Np);wi=function(){function e(t,n){var i=this;if(n===void 0&&(n=Np),this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},typeof n=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
|
|
126
126
|
a boolean 2nd argument is no longer supported`);this.config=iP(Np,n);var r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var a,s=!0;i.TRACE_INIT("Lexer Config handling",function(){if(i.config.lineTerminatorsPattern===Np.lineTerminatorsPattern)i.config.lineTerminatorsPattern=dV;else if(i.config.lineTerminatorCharacters===Np.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
|
|
127
127
|
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(n.safeMode&&n.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),li(t)?(a={modes:{}},a.modes[Ls]=En(t),a[Ls]=Ls):(s=!1,a=Rs(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(lV(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(fV(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},ye(a.modes,function(g,m){a.modes[m]=Fa(g,function(h){return Pi(h)})});var l=Vi(a.modes);if(ye(a.modes,function(g,m){i.TRACE_INIT("Mode: <"+m+"> processing",function(){if(i.modes.push(m),i.config.skipValidations===!1&&i.TRACE_INIT("validatePatterns",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(cV(g,l))}),rt(i.lexerDefinitionErrors)){Va(g);var h;i.TRACE_INIT("analyzeTokenTypes",function(){h=sV(g,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:n.positionTracking,ensureOptimizations:n.ensureOptimizations,safeMode:n.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[m]=h.patternIdxToConfig,i.charCodeToPatternIdxToConfig[m]=h.charCodeToPatternIdxToConfig,i.emptyGroups=iP(i.emptyGroups,h.emptyGroups),i.hasCustom=h.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=h.canBeOptimized}})}),i.defaultMode=a.defaultMode,!rt(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var u=pe(i.lexerDefinitionErrors,function(g){return g.message}),p=u.join(`-----------------------
|
|
@@ -130,8 +130,8 @@ a boolean 2nd argument is no longer supported`);this.config=iP(Np,n);var r=this.
|
|
|
130
130
|
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
|
131
131
|
Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){Z_()}),i.TRACE_INIT("toFastProperties",function(){dy(i)})})}return o(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!rt(this.lexerDefinitionErrors)){var i=pe(this.lexerDefinitionErrors,function(s){return s.message}),r=i.join(`-----------------------
|
|
132
132
|
`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
|
|
133
|
-
`+r)}var a=this.tokenizeInternal(t,n);return a},e.prototype.tokenizeInternal=function(t,n){var i=this,r,a,s,l,u,p,g,m,h,E,b,O,N,M,H,$=t,re=$.length,Z=0,oe=0,Ae=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Ae),ut=[],ht=this.trackStartLines?1:void 0,je=this.trackStartLines?1:void 0,sn=uV(this.emptyGroups),Wn=this.trackStartLines,tn=this.config.lineTerminatorsPattern,Lt=0,Ne=[],Ci=[],Ct=[],kt=[];Object.freeze(kt);var cn=void 0;function $i(){return Ne}o($i,"getPossiblePatternsSlow");function Fe(Gt){var ta=Qo(Gt),Bi=Ci[ta];return Bi===void 0?kt:Bi}o(Fe,"getPossiblePatternsOptimized");var Kn=o(function(Gt){if(Ct.length===1&&Gt.tokenType.PUSH_MODE===void 0){var ta=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Gt);ut.push({offset:Gt.startOffset,line:Gt.startLine!==void 0?Gt.startLine:void 0,column:Gt.startColumn!==void 0?Gt.startColumn:void 0,length:Gt.image.length,message:ta})}else{Ct.pop();var Bi=ly(Ct);Ne=i.patternIdxToConfig[Bi],Ci=i.charCodeToPatternIdxToConfig[Bi],Lt=Ne.length;var Xf=i.canModeBeOptimized[Bi]&&i.config.safeMode===!1;Ci&&Xf?cn=Fe:cn=$i}},"pop_mode");function Lr(Gt){Ct.push(Gt),Ci=this.charCodeToPatternIdxToConfig[Gt],Ne=this.patternIdxToConfig[Gt],Lt=Ne.length,Lt=Ne.length;var ta=this.canModeBeOptimized[Gt]&&this.config.safeMode===!1;Ci&&ta?cn=Fe:cn=$i}o(Lr,"push_mode"),Lr.call(this,n);for(var ot;Z<re;){u=null;var I=$.charCodeAt(Z),A=cn(I),Y=A.length;for(r=0;r<Y;r++){ot=A[r];var V=ot.pattern;p=null;var _e=ot.short;if(_e!==!1?I===_e&&(u=V):ot.isCustom===!0?(H=V.exec($,Z,D,sn),H!==null?(u=H[0],H.payload!==void 0&&(p=H.payload)):u=null):(this.updateLastIndex(V,Z),u=this.match(V,t,Z)),u!==null){if(l=ot.longerAlt,l!==void 0){var Nt=Ne[l],qe=Nt.pattern;g=null,Nt.isCustom===!0?(H=qe.exec($,Z,D,sn),H!==null?(s=H[0],H.payload!==void 0&&(g=H.payload)):s=null):(this.updateLastIndex(qe,Z),s=this.match(qe,t,Z)),s&&s.length>u.length&&(u=s,p=g,ot=Nt)}break}}if(u!==null){if(m=u.length,h=ot.group,h!==void 0&&(E=ot.tokenTypeIdx,b=this.createTokenInstance(u,Z,E,ot.tokenType,ht,je,m),this.handlePayload(b,p),h===!1?oe=this.addToken(D,oe,b):sn[h].push(b)),t=this.chopInput(t,m),Z=Z+m,je=this.computeNewColumn(je,m),Wn===!0&&ot.canLineTerminator===!0){var Ut=0,yn=void 0,ln=void 0;tn.lastIndex=0;do yn=tn.test(u),yn===!0&&(ln=tn.lastIndex-1,Ut++);while(yn===!0);Ut!==0&&(ht=ht+Ut,je=m-ln,this.updateTokenEndLineColumnLocation(b,h,ln,Ut,ht,je,m))}this.handleModes(ot,Kn,Lr,b)}else{for(var Ht=Z,ti=ht,sr=je,gn=!1;!gn&&Z<re;)for(N=$.charCodeAt(Z),t=this.chopInput(t,1),Z++,a=0;a<Lt;a++){var di=Ne[a],V=di.pattern,_e=di.short;if(_e!==!1?$.charCodeAt(Z)===_e&&(gn=!0):di.isCustom===!0?gn=V.exec($,Z,D,sn)!==null:(this.updateLastIndex(V,Z),gn=V.exec(t)!==null),gn===!0)break}O=Z-Ht,M=this.config.errorMessageProvider.buildUnexpectedCharactersMessage($,Ht,O,ti,sr),ut.push({offset:Ht,line:ti,column:sr,length:O,message:M})}}return this.hasCustom||(D.length=oe),{tokens:D,groups:sn,errors:ut}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var a=t.push;n(r),a!==void 0&&i.call(this,a)}else t.push!==void 0&&i.call(this,t.push)},e.prototype.chopInput=function(t,n){return t.substring(n)},e.prototype.updateLastIndex=function(t,n){t.lastIndex=n},e.prototype.updateTokenEndLineColumnLocation=function(t,n,i,r,a,s,l){var u,p;n!==void 0&&(u=i===l-1,p=u?-1:0,r===1&&u===!0||(t.endLine=a+p,t.endColumn=s-1+-p))},e.prototype.computeNewColumn=function(t,n){return t+n},e.prototype.createTokenInstance=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null},e.prototype.createOffsetOnlyToken=function(t,n,i,r){return{image:t,startOffset:n,tokenTypeIdx:i,tokenType:r}},e.prototype.createStartOnlyToken=function(t,n,i,r,a,s){return{image:t,startOffset:n,startLine:a,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:a,endLine:a,startColumn:s,endColumn:s+l-1,tokenTypeIdx:i,tokenType:r}},e.prototype.addToken=function(t,n,i){return 666},e.prototype.addTokenUsingPush=function(t,n,i){return t.push(i),n},e.prototype.addTokenUsingMemberAccess=function(t,n,i){return t[n]=i,n++,n},e.prototype.handlePayload=function(t,n){},e.prototype.handlePayloadNoCustom=function(t,n){},e.prototype.handlePayloadWithCustom=function(t,n){n!==null&&(t.payload=n)},e.prototype.match=function(t,n,i){return null},e.prototype.matchWithTest=function(t,n,i){var r=t.test(n);return r===!0?n.substring(i,t.lastIndex):null},e.prototype.matchWithExec=function(t,n){var i=t.exec(n);return i!==null?i[0]:i},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=gy(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}()});function Yo(e){return gP(e)?e.LABEL:e.name}function RV(e){return e.name}function gP(e){return Qr(e.LABEL)&&e.LABEL!==""}function Fp(e){return
|
|
134
|
-
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ce(e,EV)&&(n.CATEGORIES=e[EV]),Va([n]),Ce(e,SV)&&(n.LABEL=e[SV]),Ce(e,AV)&&(n.GROUP=e[AV]),Ce(e,xV)&&(n.POP_MODE=e[xV]),Ce(e,PV)&&(n.PUSH_MODE=e[PV]),Ce(e,CV)&&(n.LONGER_ALT=e[CV]),Ce(e,IV)&&(n.LINE_BREAKS=e[IV]),Ce(e,OV)&&(n.START_CHARS_HINT=e[OV]),n}function Ns(e,t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function LV(e,t){return Kc(e,t)}var cq,EV,SV,AV,PV,xV,CV,IV,OV,Yr,Fs=Ye(()=>{bt();Lp();uf();o(Yo,"tokenLabel");o(RV,"tokenName");o(gP,"hasTokenLabel");cq="parent",EV="categories",SV="label",AV="group",PV="push_mode",xV="pop_mode",CV="longer_alt",IV="line_breaks",OV="start_chars_hint";o(Fp,"createToken");o(lq,"createTokenInternal");Yr=Fp({name:"EOF",pattern:wi.NA});Va([Yr]);o(Ns,"createTokenInstance");o(LV,"tokenMatcher")});function xy(e){return pe(e,pf)}function pf(e){function t(r){return pe(r,pf)}if(o(t,"convertDefinition"),e instanceof on)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Zt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof an)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Ln)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Nn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:pf(new mt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Sn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:pf(new mt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Rt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof An)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof mt){var n={type:"Terminal",name:e.terminalType.name,label:Yo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=bo(i)?i.source:i),n}else{if(e instanceof Ar)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var wa,Eo,on,Ar,Zt,an,Ln,Nn,Rt,Sn,An,mt,Mi=Ye(()=>{bt();Fs();wa=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Eo=function(){function e(t){this._definition=t}return o(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(t){this._definition=t},"set"),enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),ye(this.definition,function(n){n.accept(t)})},e}(),on=function(e){wa(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},"get"),set:o(function(n){},"set"),enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t}(Eo),Ar=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(Eo),Zt=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(Eo),an=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(Eo),Ln=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(Eo),Nn=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(Eo),Rt=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(Eo),Sn=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(Eo),An=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(n){this._definition=n},"set"),enumerable:!1,configurable:!0}),t}(Eo),mt=function(){function e(t){this.idx=1,Sr(this,Er(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(xy,"serializeGrammar");o(pf,"serializeProduction")});function NV(e,t,n){var i=[new an({definition:[new mt({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Xc,Cy=Ye(()=>{bt();Mi();Xc=function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),ye(t.definition,function(r,a){var s=Mn(t.definition,a+1);if(r instanceof on)i.walkProdRef(r,s,n);else if(r instanceof mt)i.walkTerminal(r,s,n);else if(r instanceof Zt)i.walkFlat(r,s,n);else if(r instanceof an)i.walkOption(r,s,n);else if(r instanceof Ln)i.walkAtLeastOne(r,s,n);else if(r instanceof Nn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof Sn)i.walkManySep(r,s,n);else if(r instanceof Rt)i.walkMany(r,s,n);else if(r instanceof An)i.walkOr(r,s,n);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,n,i){},e.prototype.walkProdRef=function(t,n,i){},e.prototype.walkFlat=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkOption=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkAtLeastOne=function(t,n,i){var r=[new an({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=NV(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new an({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=NV(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);ye(t.definition,function(s){var l=new Zt({definition:[s]});r.walk(l,a)})},e}();o(NV,"restForRepetitionWithSeparator")});var zr,df=Ye(()=>{Mi();zr=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case on:return this.visitNonTerminal(n);case Zt:return this.visitAlternative(n);case an:return this.visitOption(n);case Ln:return this.visitRepetitionMandatory(n);case Nn:return this.visitRepetitionMandatoryWithSeparator(n);case Sn:return this.visitRepetitionWithSeparator(n);case Rt:return this.visitRepetition(n);case An:return this.visitAlternation(n);case mt:return this.visitTerminal(n);case Ar:return this.visitRule(n);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(t){},e.prototype.visitAlternative=function(t){},e.prototype.visitOption=function(t){},e.prototype.visitRepetition=function(t){},e.prototype.visitRepetitionMandatory=function(t){},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){},e.prototype.visitRepetitionWithSeparator=function(t){},e.prototype.visitAlternation=function(t){},e.prototype.visitTerminal=function(t){},e.prototype.visitRule=function(t){},e}()});function FV(e){return e instanceof Zt||e instanceof an||e instanceof Rt||e instanceof Ln||e instanceof Nn||e instanceof Sn||e instanceof mt||e instanceof Ar}function gf(e,t){t===void 0&&(t=[]);var n=e instanceof an||e instanceof Rt||e instanceof Sn;return n?!0:e instanceof An?uy(e.definition,function(i){return gf(i,t)}):e instanceof on&&wt(t,e)?!1:e instanceof Eo?(e instanceof on&&t.push(e),fi(e.definition,function(i){return gf(i,t)})):!1}function DV(e){return e instanceof An}function Pr(e){if(e instanceof on)return"SUBRULE";if(e instanceof an)return"OPTION";if(e instanceof An)return"OR";if(e instanceof Ln)return"AT_LEAST_ONE";if(e instanceof Nn)return"AT_LEAST_ONE_SEP";if(e instanceof Sn)return"MANY_SEP";if(e instanceof Rt)return"MANY";if(e instanceof mt)return"CONSUME";throw Error("non exhaustive match")}function _V(e){Iy.reset(),e.accept(Iy);var t=Iy.dslMethods;return Iy.reset(),t}var fq,mP,Iy,mf=Ye(()=>{bt();Mi();df();fq=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(FV,"isSequenceProd");o(gf,"isOptionalProd");o(DV,"isBranchingProd");o(Pr,"getProductionDslName");mP=function(e){fq(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.separator="-",n.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},n}return o(t,"DslMethodsCollectorVisitor"),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(n){var i=n.terminalType.name+this.separator+"Terminal";Ce(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Ce(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitOption=function(n){this.dslMethods.option.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.dslMethods.repetitionWithSeparator.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.dslMethods.repetitionMandatory.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)},t.prototype.visitRepetition=function(n){this.dslMethods.repetition.push(n)},t.prototype.visitAlternation=function(n){this.dslMethods.alternation.push(n)},t}(zr),Iy=new mP;o(_V,"collectMethods")});function Qc(e){if(e instanceof on)return Qc(e.referencedRule);if(e instanceof mt)return dq(e);if(FV(e))return uq(e);if(DV(e))return pq(e);throw Error("non exhaustive match")}function uq(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=gf(a),t=t.concat(Qc(a)),i=i+1,r=n.length>i;return xp(t)}function pq(e){var t=pe(e.definition,function(n){return Qc(n)});return xp(Rn(t))}function dq(e){return[e.terminalType]}var hP=Ye(()=>{bt();Mi();mf();o(Qc,"first");o(uq,"firstForSequence");o(pq,"firstForBranching");o(dq,"firstForTerminal")});var Oy,yP=Ye(()=>{Oy="_~IN~_"});function VV(e){var t={};return ye(e,function(n){var i=new mq(n).startWalking();Sr(t,i)}),t}function hq(e,t){return e.name+t+Oy}var gq,mq,wV=Ye(()=>{Cy();hP();bt();yP();Mi();gq=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),mq=function(e){gq(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return o(t,"ResyncFollowsWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(n,i,r){},t.prototype.walkProdRef=function(n,i,r){var a=hq(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Zt({definition:s}),u=Qc(l);this.follows[a]=u},t}(Xc);o(VV,"computeAllProdsFollows");o(hq,"buildBetweenProdsFollowPrefix")});var Dp,Ry,Ds,_p=Ye(()=>{Fs();bt();bt();Mi();mf();Dp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=gP(t),s=a?"--> "+Yo(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},"buildMismatchTokenMessage"),buildNotAllInputParsedMessage:o(function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},"buildNotAllInputParsedMessage"),buildNoViableAltMessage:o(function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,a=e.ruleName,s="Expecting: ",l=Ai(n).image,u=`
|
|
133
|
+
`+r)}var a=this.tokenizeInternal(t,n);return a},e.prototype.tokenizeInternal=function(t,n){var i=this,r,a,s,l,u,p,g,m,h,E,b,O,N,M,H,$=t,re=$.length,Z=0,oe=0,Ae=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Ae),ut=[],ht=this.trackStartLines?1:void 0,je=this.trackStartLines?1:void 0,sn=uV(this.emptyGroups),Wn=this.trackStartLines,tn=this.config.lineTerminatorsPattern,Lt=0,Ne=[],Ci=[],Ct=[],kt=[];Object.freeze(kt);var cn=void 0;function $i(){return Ne}o($i,"getPossiblePatternsSlow");function Fe(Gt){var ta=Qo(Gt),Bi=Ci[ta];return Bi===void 0?kt:Bi}o(Fe,"getPossiblePatternsOptimized");var Kn=o(function(Gt){if(Ct.length===1&&Gt.tokenType.PUSH_MODE===void 0){var ta=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Gt);ut.push({offset:Gt.startOffset,line:Gt.startLine!==void 0?Gt.startLine:void 0,column:Gt.startColumn!==void 0?Gt.startColumn:void 0,length:Gt.image.length,message:ta})}else{Ct.pop();var Bi=ly(Ct);Ne=i.patternIdxToConfig[Bi],Ci=i.charCodeToPatternIdxToConfig[Bi],Lt=Ne.length;var Xf=i.canModeBeOptimized[Bi]&&i.config.safeMode===!1;Ci&&Xf?cn=Fe:cn=$i}},"pop_mode");function Lr(Gt){Ct.push(Gt),Ci=this.charCodeToPatternIdxToConfig[Gt],Ne=this.patternIdxToConfig[Gt],Lt=Ne.length,Lt=Ne.length;var ta=this.canModeBeOptimized[Gt]&&this.config.safeMode===!1;Ci&&ta?cn=Fe:cn=$i}o(Lr,"push_mode"),Lr.call(this,n);for(var ot;Z<re;){u=null;var I=$.charCodeAt(Z),A=cn(I),Y=A.length;for(r=0;r<Y;r++){ot=A[r];var V=ot.pattern;p=null;var _e=ot.short;if(_e!==!1?I===_e&&(u=V):ot.isCustom===!0?(H=V.exec($,Z,D,sn),H!==null?(u=H[0],H.payload!==void 0&&(p=H.payload)):u=null):(this.updateLastIndex(V,Z),u=this.match(V,t,Z)),u!==null){if(l=ot.longerAlt,l!==void 0){var Nt=Ne[l],qe=Nt.pattern;g=null,Nt.isCustom===!0?(H=qe.exec($,Z,D,sn),H!==null?(s=H[0],H.payload!==void 0&&(g=H.payload)):s=null):(this.updateLastIndex(qe,Z),s=this.match(qe,t,Z)),s&&s.length>u.length&&(u=s,p=g,ot=Nt)}break}}if(u!==null){if(m=u.length,h=ot.group,h!==void 0&&(E=ot.tokenTypeIdx,b=this.createTokenInstance(u,Z,E,ot.tokenType,ht,je,m),this.handlePayload(b,p),h===!1?oe=this.addToken(D,oe,b):sn[h].push(b)),t=this.chopInput(t,m),Z=Z+m,je=this.computeNewColumn(je,m),Wn===!0&&ot.canLineTerminator===!0){var Ut=0,yn=void 0,ln=void 0;tn.lastIndex=0;do yn=tn.test(u),yn===!0&&(ln=tn.lastIndex-1,Ut++);while(yn===!0);Ut!==0&&(ht=ht+Ut,je=m-ln,this.updateTokenEndLineColumnLocation(b,h,ln,Ut,ht,je,m))}this.handleModes(ot,Kn,Lr,b)}else{for(var Ht=Z,ti=ht,sr=je,gn=!1;!gn&&Z<re;)for(N=$.charCodeAt(Z),t=this.chopInput(t,1),Z++,a=0;a<Lt;a++){var di=Ne[a],V=di.pattern,_e=di.short;if(_e!==!1?$.charCodeAt(Z)===_e&&(gn=!0):di.isCustom===!0?gn=V.exec($,Z,D,sn)!==null:(this.updateLastIndex(V,Z),gn=V.exec(t)!==null),gn===!0)break}O=Z-Ht,M=this.config.errorMessageProvider.buildUnexpectedCharactersMessage($,Ht,O,ti,sr),ut.push({offset:Ht,line:ti,column:sr,length:O,message:M})}}return this.hasCustom||(D.length=oe),{tokens:D,groups:sn,errors:ut}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var a=t.push;n(r),a!==void 0&&i.call(this,a)}else t.push!==void 0&&i.call(this,t.push)},e.prototype.chopInput=function(t,n){return t.substring(n)},e.prototype.updateLastIndex=function(t,n){t.lastIndex=n},e.prototype.updateTokenEndLineColumnLocation=function(t,n,i,r,a,s,l){var u,p;n!==void 0&&(u=i===l-1,p=u?-1:0,r===1&&u===!0||(t.endLine=a+p,t.endColumn=s-1+-p))},e.prototype.computeNewColumn=function(t,n){return t+n},e.prototype.createTokenInstance=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null},e.prototype.createOffsetOnlyToken=function(t,n,i,r){return{image:t,startOffset:n,tokenTypeIdx:i,tokenType:r}},e.prototype.createStartOnlyToken=function(t,n,i,r,a,s){return{image:t,startOffset:n,startLine:a,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:a,endLine:a,startColumn:s,endColumn:s+l-1,tokenTypeIdx:i,tokenType:r}},e.prototype.addToken=function(t,n,i){return 666},e.prototype.addTokenUsingPush=function(t,n,i){return t.push(i),n},e.prototype.addTokenUsingMemberAccess=function(t,n,i){return t[n]=i,n++,n},e.prototype.handlePayload=function(t,n){},e.prototype.handlePayloadNoCustom=function(t,n){},e.prototype.handlePayloadWithCustom=function(t,n){n!==null&&(t.payload=n)},e.prototype.match=function(t,n,i){return null},e.prototype.matchWithTest=function(t,n,i){var r=t.test(n);return r===!0?n.substring(i,t.lastIndex):null},e.prototype.matchWithExec=function(t,n){var i=t.exec(n);return i!==null?i[0]:i},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=gy(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}()});function Yo(e){return gP(e)?e.LABEL:e.name}function RV(e){return e.name}function gP(e){return Qr(e.LABEL)&&e.LABEL!==""}function Fp(e){return fq(e)}function fq(e){var t=e.pattern,n={};if(n.name=e.name,Pi(t)||(n.PATTERN=t),Ce(e,lq))throw`The parent property is no longer supported.
|
|
134
|
+
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ce(e,EV)&&(n.CATEGORIES=e[EV]),Va([n]),Ce(e,SV)&&(n.LABEL=e[SV]),Ce(e,AV)&&(n.GROUP=e[AV]),Ce(e,xV)&&(n.POP_MODE=e[xV]),Ce(e,PV)&&(n.PUSH_MODE=e[PV]),Ce(e,CV)&&(n.LONGER_ALT=e[CV]),Ce(e,IV)&&(n.LINE_BREAKS=e[IV]),Ce(e,OV)&&(n.START_CHARS_HINT=e[OV]),n}function Ns(e,t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function LV(e,t){return Kc(e,t)}var lq,EV,SV,AV,PV,xV,CV,IV,OV,Yr,Fs=Ye(()=>{bt();Lp();uf();o(Yo,"tokenLabel");o(RV,"tokenName");o(gP,"hasTokenLabel");lq="parent",EV="categories",SV="label",AV="group",PV="push_mode",xV="pop_mode",CV="longer_alt",IV="line_breaks",OV="start_chars_hint";o(Fp,"createToken");o(fq,"createTokenInternal");Yr=Fp({name:"EOF",pattern:wi.NA});Va([Yr]);o(Ns,"createTokenInstance");o(LV,"tokenMatcher")});function xy(e){return pe(e,pf)}function pf(e){function t(r){return pe(r,pf)}if(o(t,"convertDefinition"),e instanceof on)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Zt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof an)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Ln)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Nn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:pf(new mt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Sn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:pf(new mt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Rt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof An)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof mt){var n={type:"Terminal",name:e.terminalType.name,label:Yo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=bo(i)?i.source:i),n}else{if(e instanceof Ar)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var wa,Eo,on,Ar,Zt,an,Ln,Nn,Rt,Sn,An,mt,Mi=Ye(()=>{bt();Fs();wa=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Eo=function(){function e(t){this._definition=t}return o(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(t){this._definition=t},"set"),enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),ye(this.definition,function(n){n.accept(t)})},e}(),on=function(e){wa(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},"get"),set:o(function(n){},"set"),enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t}(Eo),Ar=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(Eo),Zt=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(Eo),an=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(Eo),Ln=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(Eo),Nn=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(Eo),Rt=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(Eo),Sn=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(Eo),An=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,Sr(i,Er(n,function(r){return r!==void 0})),i}return o(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(n){this._definition=n},"set"),enumerable:!1,configurable:!0}),t}(Eo),mt=function(){function e(t){this.idx=1,Sr(this,Er(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(xy,"serializeGrammar");o(pf,"serializeProduction")});function NV(e,t,n){var i=[new an({definition:[new mt({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Xc,Cy=Ye(()=>{bt();Mi();Xc=function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),ye(t.definition,function(r,a){var s=Mn(t.definition,a+1);if(r instanceof on)i.walkProdRef(r,s,n);else if(r instanceof mt)i.walkTerminal(r,s,n);else if(r instanceof Zt)i.walkFlat(r,s,n);else if(r instanceof an)i.walkOption(r,s,n);else if(r instanceof Ln)i.walkAtLeastOne(r,s,n);else if(r instanceof Nn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof Sn)i.walkManySep(r,s,n);else if(r instanceof Rt)i.walkMany(r,s,n);else if(r instanceof An)i.walkOr(r,s,n);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,n,i){},e.prototype.walkProdRef=function(t,n,i){},e.prototype.walkFlat=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkOption=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkAtLeastOne=function(t,n,i){var r=[new an({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=NV(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new an({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=NV(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);ye(t.definition,function(s){var l=new Zt({definition:[s]});r.walk(l,a)})},e}();o(NV,"restForRepetitionWithSeparator")});var zr,df=Ye(()=>{Mi();zr=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case on:return this.visitNonTerminal(n);case Zt:return this.visitAlternative(n);case an:return this.visitOption(n);case Ln:return this.visitRepetitionMandatory(n);case Nn:return this.visitRepetitionMandatoryWithSeparator(n);case Sn:return this.visitRepetitionWithSeparator(n);case Rt:return this.visitRepetition(n);case An:return this.visitAlternation(n);case mt:return this.visitTerminal(n);case Ar:return this.visitRule(n);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(t){},e.prototype.visitAlternative=function(t){},e.prototype.visitOption=function(t){},e.prototype.visitRepetition=function(t){},e.prototype.visitRepetitionMandatory=function(t){},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){},e.prototype.visitRepetitionWithSeparator=function(t){},e.prototype.visitAlternation=function(t){},e.prototype.visitTerminal=function(t){},e.prototype.visitRule=function(t){},e}()});function FV(e){return e instanceof Zt||e instanceof an||e instanceof Rt||e instanceof Ln||e instanceof Nn||e instanceof Sn||e instanceof mt||e instanceof Ar}function gf(e,t){t===void 0&&(t=[]);var n=e instanceof an||e instanceof Rt||e instanceof Sn;return n?!0:e instanceof An?uy(e.definition,function(i){return gf(i,t)}):e instanceof on&&wt(t,e)?!1:e instanceof Eo?(e instanceof on&&t.push(e),fi(e.definition,function(i){return gf(i,t)})):!1}function DV(e){return e instanceof An}function Pr(e){if(e instanceof on)return"SUBRULE";if(e instanceof an)return"OPTION";if(e instanceof An)return"OR";if(e instanceof Ln)return"AT_LEAST_ONE";if(e instanceof Nn)return"AT_LEAST_ONE_SEP";if(e instanceof Sn)return"MANY_SEP";if(e instanceof Rt)return"MANY";if(e instanceof mt)return"CONSUME";throw Error("non exhaustive match")}function _V(e){Iy.reset(),e.accept(Iy);var t=Iy.dslMethods;return Iy.reset(),t}var uq,mP,Iy,mf=Ye(()=>{bt();Mi();df();uq=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(FV,"isSequenceProd");o(gf,"isOptionalProd");o(DV,"isBranchingProd");o(Pr,"getProductionDslName");mP=function(e){uq(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.separator="-",n.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},n}return o(t,"DslMethodsCollectorVisitor"),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(n){var i=n.terminalType.name+this.separator+"Terminal";Ce(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Ce(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitOption=function(n){this.dslMethods.option.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.dslMethods.repetitionWithSeparator.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.dslMethods.repetitionMandatory.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)},t.prototype.visitRepetition=function(n){this.dslMethods.repetition.push(n)},t.prototype.visitAlternation=function(n){this.dslMethods.alternation.push(n)},t}(zr),Iy=new mP;o(_V,"collectMethods")});function Qc(e){if(e instanceof on)return Qc(e.referencedRule);if(e instanceof mt)return gq(e);if(FV(e))return pq(e);if(DV(e))return dq(e);throw Error("non exhaustive match")}function pq(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=gf(a),t=t.concat(Qc(a)),i=i+1,r=n.length>i;return xp(t)}function dq(e){var t=pe(e.definition,function(n){return Qc(n)});return xp(Rn(t))}function gq(e){return[e.terminalType]}var hP=Ye(()=>{bt();Mi();mf();o(Qc,"first");o(pq,"firstForSequence");o(dq,"firstForBranching");o(gq,"firstForTerminal")});var Oy,yP=Ye(()=>{Oy="_~IN~_"});function VV(e){var t={};return ye(e,function(n){var i=new hq(n).startWalking();Sr(t,i)}),t}function yq(e,t){return e.name+t+Oy}var mq,hq,wV=Ye(()=>{Cy();hP();bt();yP();Mi();mq=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),hq=function(e){mq(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return o(t,"ResyncFollowsWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(n,i,r){},t.prototype.walkProdRef=function(n,i,r){var a=yq(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Zt({definition:s}),u=Qc(l);this.follows[a]=u},t}(Xc);o(VV,"computeAllProdsFollows");o(yq,"buildBetweenProdsFollowPrefix")});var Dp,Ry,Ds,_p=Ye(()=>{Fs();bt();bt();Mi();mf();Dp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=gP(t),s=a?"--> "+Yo(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},"buildMismatchTokenMessage"),buildNotAllInputParsedMessage:o(function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},"buildNotAllInputParsedMessage"),buildNoViableAltMessage:o(function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,a=e.ruleName,s="Expecting: ",l=Ai(n).image,u=`
|
|
135
135
|
but found: '`+l+"'";if(r)return s+r+u;var p=pn(t,function(E,b){return E.concat(b)},[]),g=pe(p,function(E){return"["+pe(E,function(b){return Yo(b)}).join(", ")+"]"}),m=pe(g,function(E,b){return" "+(b+1)+". "+E}),h=`one of these possible Token sequences:
|
|
136
136
|
`+m.join(`
|
|
137
137
|
`);return s+h+u},"buildNoViableAltMessage"),buildEarlyExitMessage:o(function(e){var t=e.expectedIterationPaths,n=e.actual,i=e.customUserDescription,r=e.ruleName,a="Expecting: ",s=Ai(n).image,l=`
|
|
@@ -161,27 +161,27 @@ This could lead to an infinite loop.`;return n},"buildEmptyRepetitionError"),bui
|
|
|
161
161
|
`)+(`without consuming any Tokens. The grammar path that causes this is:
|
|
162
162
|
`+i+`
|
|
163
163
|
`)+` To fix this refactor your grammar to remove the left recursion.
|
|
164
|
-
see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof Ar?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function MV(e,t){var n=new Tq(e,t);return n.resolveRefs(),n.errors}var yq,Tq,kV=Ye(()=>{xr();bt();df();yq=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(MV,"resolveGrammar");Tq=function(e){yq(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ye(wn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Gn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(zr)});function Ny(e,t,n){n===void 0&&(n=[]),n=En(n);var i=[],r=0;function a(p){return p.concat(Mn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=Ny(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Zt)return s(l.definition);if(l instanceof on)return s(l.definition);if(l instanceof an)i=s(l.definition);else if(l instanceof Ln){var u=l.definition.concat([new Rt({definition:l.definition})]);return s(u)}else if(l instanceof Nn){var u=[new Zt({definition:l.definition}),new Rt({definition:[new mt({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof Sn){var u=l.definition.concat([new Rt({definition:[new mt({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Rt){var u=l.definition.concat([new Rt({definition:l.definition})]);i=s(u)}else{if(l instanceof An)return ye(l.definition,function(p){rt(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof mt)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:Mn(e,r)}),i}function Fy(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!rt(m);){var h=m.pop();if(h===s){l&&ly(m).idx<=p&&m.pop();continue}var E=h.def,b=h.idx,O=h.ruleStack,N=h.occurrenceStack;if(!rt(E)){var M=E[0];if(M===r){var H={idx:b,def:Mn(E),ruleStack:Os(O),occurrenceStack:Os(N)};m.push(H)}else if(M instanceof mt)if(b<u-1){var $=b+1,re=t[$];if(n(re,M.terminalType)){var H={idx:$,def:Mn(E),ruleStack:O,occurrenceStack:N};m.push(H)}}else if(b===u-1)g.push({nextTokenType:M.terminalType,nextTokenOccurrence:M.idx,ruleStack:O,occurrenceStack:N}),l=!0;else throw Error("non exhaustive match");else if(M instanceof on){var Z=En(O);Z.push(M.nonTerminalName);var oe=En(N);oe.push(M.idx);var H={idx:b,def:M.definition.concat(a,Mn(E)),ruleStack:Z,occurrenceStack:oe};m.push(H)}else if(M instanceof an){var Ae={idx:b,def:Mn(E),ruleStack:O,occurrenceStack:N};m.push(Ae),m.push(s);var D={idx:b,def:M.definition.concat(Mn(E)),ruleStack:O,occurrenceStack:N};m.push(D)}else if(M instanceof Ln){var ut=new Rt({definition:M.definition,idx:M.idx}),ht=M.definition.concat([ut],Mn(E)),H={idx:b,def:ht,ruleStack:O,occurrenceStack:N};m.push(H)}else if(M instanceof Nn){var je=new mt({terminalType:M.separator}),ut=new Rt({definition:[je].concat(M.definition),idx:M.idx}),ht=M.definition.concat([ut],Mn(E)),H={idx:b,def:ht,ruleStack:O,occurrenceStack:N};m.push(H)}else if(M instanceof Sn){var Ae={idx:b,def:Mn(E),ruleStack:O,occurrenceStack:N};m.push(Ae),m.push(s);var je=new mt({terminalType:M.separator}),sn=new Rt({definition:[je].concat(M.definition),idx:M.idx}),ht=M.definition.concat([sn],Mn(E)),D={idx:b,def:ht,ruleStack:O,occurrenceStack:N};m.push(D)}else if(M instanceof Rt){var Ae={idx:b,def:Mn(E),ruleStack:O,occurrenceStack:N};m.push(Ae),m.push(s);var sn=new Rt({definition:M.definition,idx:M.idx}),ht=M.definition.concat([sn],Mn(E)),D={idx:b,def:ht,ruleStack:O,occurrenceStack:N};m.push(D)}else if(M instanceof An)for(var Wn=M.definition.length-1;Wn>=0;Wn--){var tn=M.definition[Wn],Lt={idx:b,def:tn.definition.concat(Mn(E)),ruleStack:O,occurrenceStack:N};m.push(Lt),m.push(s)}else if(M instanceof Zt)m.push({idx:b,def:M.definition.concat(Mn(E)),ruleStack:O,occurrenceStack:N});else if(M instanceof Ar)m.push(bq(M,b,O,N));else throw Error("non exhaustive match")}}return g}function bq(e,t,n,i){var r=En(n);r.push(e.name);var a=En(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var qc,vq,UV,Ly,jV,TP,$V,vP,Vp=Ye(()=>{Cy();bt();hP();Mi();qc=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),vq=function(e){qc(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=En(this.path.ruleStack).reverse(),this.occurrenceStack=En(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){rt(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Xc),UV=function(e){qc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new Zt({definition:a});this.possibleTokTypes=Qc(s),this.found=!0}},t}(vq),Ly=function(e){qc(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Xc),jV=function(e){qc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(Ly),TP=function(e){qc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(Ly),$V=function(e){qc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(Ly),vP=function(e){qc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(Ly);o(Ny,"possiblePathsFrom");o(Fy,"nextPossibleTokensAfter");o(bq,"expandTopLevelRule")});function GV(e){if(e instanceof an)return Mt.OPTION;if(e instanceof Rt)return Mt.REPETITION;if(e instanceof Ln)return Mt.REPETITION_MANDATORY;if(e instanceof Nn)return Mt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Sn)return Mt.REPETITION_WITH_SEPARATOR;if(e instanceof An)return Mt.ALTERNATION;throw Error("non exhaustive match")}function WV(e,t,n,i,r,a){var s=wp(e,t,n),l=JV(s)?ff:Kc;return a(s,i,l,r)}function KV(e,t,n,i,r,a){var s=Mp(e,t,r,n),l=JV(s)?ff:Kc;return a(s[0],l,i)}function XV(e,t,n,i){var r=e.length,a=fi(e,function(u){return fi(u,function(p){return p.length===1})});if(t)return function(u){for(var p=pe(u,function($){return $.GATE}),g=0;g<r;g++){var m=e[g],h=m.length,E=p[g];if(!(E!==void 0&&E.call(this)===!1))e:for(var b=0;b<h;b++){for(var O=m[b],N=O.length,M=0;M<N;M++){var H=this.LA(M+1);if(n(H,O[M])===!1)continue e}return g}}};if(a&&!i){var s=pe(e,function(u){return Rn(u)}),l=pn(s,function(u,p,g){return ye(p,function(m){Ce(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ye(m.categoryMatches,function(h){Ce(u,h)||(u[h]=g)})}),u},[]);return function(){var u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(var u=0;u<r;u++){var p=e[u],g=p.length;e:for(var m=0;m<g;m++){for(var h=p[m],E=h.length,b=0;b<E;b++){var O=this.LA(b+1);if(n(O,h[b])===!1)continue e}return u}}}}function QV(e,t,n){var i=fi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Rn(e);if(a.length===1&&rt(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=pn(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,ye(g.categoryMatches,function(h){p[h]=!0}),p},[]);return function(){var p=this.LA(1);return u[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var g=e[p],m=g.length,h=0;h<m;h++){var E=this.LA(h+1);if(t(E,g[h])===!1)continue e}return!0}return!1}}function BV(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function bP(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var u="_"+i.categoryMatches[l];r.push(s+u)}}t=r}return t}function Sq(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function YV(e,t){for(var n=pe(e,function(g){return Ny([g],1)}),i=BV(n.length),r=pe(n,function(g){var m={};return ye(g,function(h){var E=bP(h.partialPath);ye(E,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=BV(l.length);for(var u=o(function(g){for(var m=l[g],h=0;h<m.length;h++){var E=m[h].partialPath,b=m[h].suffixDef,O=bP(E),N=Sq(r,O,g);if(N||rt(b)||E.length===t){var M=i[g];if(Dy(M,E)===!1){M.push(E);for(var H=0;H<O.length;H++){var $=O[H];r[g][$]=!0}}}else{var re=Ny(b,s+1,E);a[g]=a[g].concat(re),ye(re,function(Z){var oe=bP(Z.partialPath);ye(oe,function(Ae){r[g][Ae]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function wp(e,t,n,i){var r=new qV(e,Mt.ALTERNATION,i);return t.accept(r),YV(r.result,n)}function Mp(e,t,n,i){var r=new qV(e,n);t.accept(r);var a=r.result,s=new Eq(t,e,n),l=s.startWalking(),u=new Zt({definition:a}),p=new Zt({definition:l});return YV([u,p],i)}function Dy(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function zV(e,t){return e.length<t.length&&fi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function JV(e){return fi(e,function(t){return fi(t,function(n){return fi(n,function(i){return rt(i.categoryMatches)})})})}var HV,Mt,Eq,qV,kp=Ye(()=>{bt();Vp();Cy();uf();Mi();df();HV=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(Mt||(Mt={}));o(GV,"getProdType");o(WV,"buildLookaheadFuncForOr");o(KV,"buildLookaheadFuncForOptionalProd");o(XV,"buildAlternativesLookAheadFunc");o(QV,"buildSingleAlternativeLookaheadFunction");Eq=function(e){HV(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,Mt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Xc),qV=function(e){HV(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,Mt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,Mt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,Mt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,Mt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,Mt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,Mt.ALTERNATION)},t}(zr);o(BV,"initializeArrayOfArrays");o(bP,"pathToHashKeys");o(Sq,"isUniquePrefixHash");o(YV,"lookAheadSequenceFromAlternatives");o(wp,"getLookaheadPathsForOr");o(Mp,"getLookaheadPathsForOptionalProd");o(Dy,"containsPath");o(zV,"isStrictPrefixOfPath");o(JV,"areTokenCategoriesNotUsed")});function ZV(e,t,n,i,r){var a=pe(e,function(E){return Aq(E,i)}),s=pe(e,function(E){return nw(E,E,i)}),l=[],u=[],p=[];fi(s,rt)&&(l=pe(e,function(E){return Iq(E,i)}),u=pe(e,function(E){return Oq(E,t,i)}),p=Nq(e,t,i));var g=_q(e,n,i),m=pe(e,function(E){return Lq(E,i)}),h=pe(e,function(E){return Cq(E,e,r,i)});return Rn(a.concat(p,s,l,u,g,m,h))}function Aq(e,t){var n=new xq;e.accept(n);var i=n.allProductions,r=X_(i,Pq),a=Er(r,function(l){return l.length>1}),s=pe(wn(a),function(l){var u=Ai(l),p=t.buildDuplicateFoundError(e,l),g=Pr(u),m={message:p,type:Gn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},h=ew(u);return h&&(m.parameter=h),m});return s}function Pq(e){return Pr(e)+"_#_"+e.idx+"_#_"+ew(e)}function ew(e){return e instanceof mt?e.terminalType.name:e instanceof on?e.nonTerminalName:""}function Cq(e,t,n,i){var r=[],a=pn(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Gn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function tw(e,t,n){var i=[],r;return wt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Gn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function nw(e,t,n,i){i===void 0&&(i=[]);var r=[],a=_y(t.definition);if(rt(a))return[];var s=e.name,l=wt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Gn.LEFT_RECURSION,ruleName:s});var u=Wc(a,i.concat([e])),p=pe(u,function(g){var m=En(i);return m.push(g),nw(e,g,n,m)});return r.concat(Rn(p))}function _y(e){var t=[];if(rt(e))return t;var n=Ai(e);if(n instanceof on)t.push(n.referencedRule);else if(n instanceof Zt||n instanceof an||n instanceof Ln||n instanceof Nn||n instanceof Sn||n instanceof Rt)t=t.concat(_y(n.definition));else if(n instanceof An)t=Rn(pe(n.definition,function(s){return _y(s.definition)}));else if(!(n instanceof mt))throw Error("non exhaustive match");var i=gf(n),r=e.length>1;if(i&&r){var a=Mn(e);return t.concat(_y(a))}else return t}function Iq(e,t){var n=new SP;e.accept(n);var i=n.alternations,r=pn(i,function(a,s){var l=Os(s.definition),u=pe(l,function(p,g){var m=Fy([p],[],null,1);return rt(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Gn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(_a(u))},[]);return r}function Oq(e,t,n){var i=new SP;e.accept(i);var r=i.alternations;r=Fa(r,function(s){return s.ignoreAmbiguities===!0});var a=pn(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=wp(u,e,p,l),m=Fq(g,l,e,n),h=Dq(g,l,e,n);return s.concat(m,h)},[]);return a}function Lq(e,t){var n=new SP;e.accept(n);var i=n.alternations,r=pn(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Gn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function Nq(e,t,n){var i=[];return ye(e,function(r){var a=new Rq;r.accept(a);var s=a.allProductions;ye(s,function(l){var u=GV(l),p=l.maxLookahead||t,g=l.idx,m=Mp(g,r,u,p),h=m[0];if(rt(Rn(h))){var E=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:E,type:Gn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function Fq(e,t,n,i){var r=[],a=pn(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ye(u,function(g){var m=[p];ye(e,function(h,E){p!==E&&Dy(h,g)&&t.definition[E].ignoreAmbiguities!==!0&&m.push(E)}),m.length>1&&!Dy(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=pe(a,function(l){var u=pe(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Gn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function Dq(e,t,n,i){var r=[],a=pn(e,function(s,l,u){var p=pe(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ye(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=W_(a,function(h){return t.definition[h.idx].ignoreAmbiguities!==!0&&h.idx<u&&zV(h.path,p)}),m=pe(g,function(h){var E=[h.idx+1,u+1],b=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:E,prefixPath:h.path});return{message:O,type:Gn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:E}});r=r.concat(m)}}),r}function _q(e,t,n){var i=[],r=pe(t,function(a){return a.name});return ye(e,function(a){var s=a.name;if(wt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Gn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var EP,xq,SP,Rq,AP=Ye(()=>{bt();bt();xr();mf();kp();Vp();Mi();df();EP=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(ZV,"validateGrammar");o(Aq,"validateDuplicateProductions");o(Pq,"identifyProductionForDuplicates");o(ew,"getExtraProductionArgument");xq=function(e){EP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t}(zr);o(Cq,"validateRuleDoesNotAlreadyExist");o(tw,"validateRuleIsOverridden");o(nw,"validateNoLeftRecursion");o(_y,"getFirstNoneTerminal");SP=function(e){EP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}(zr);o(Iq,"validateEmptyOrAlternative");o(Oq,"validateAmbiguousAlternationAlternatives");Rq=function(e){EP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t}(zr);o(Lq,"validateTooManyAlts");o(Nq,"validateSomeNonEmptyLookaheadPath");o(Fq,"checkAlternativesAmbiguities");o(Dq,"checkPrefixAlternativesAmbiguities");o(_q,"checkTerminalAndNoneTerminalsNameSpace")});function Vy(e){e=Cp(e,{errMsgProvider:Ry});var t={};return ye(e.rules,function(n){t[n.name]=n}),MV(t,e.errMsgProvider)}function wy(e){return e=Cp(e,{errMsgProvider:Ds}),ZV(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function iw(e){ye(e.rules,function(t){var n=new mP;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,a){r.idx=a+1})})})}var PP=Ye(()=>{bt();kV();AP();_p();mf();o(Vy,"resolveGrammar");o(wy,"validateGrammar");o(iw,"assignOccurrenceIndices")});function Ma(e){return wt(cw,e.name)}var Up,rw,ow,aw,sw,cw,My,hf,ky,Uy,jy,yf=Ye(()=>{bt();Up=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),rw="MismatchedTokenException",ow="NoViableAltException",aw="EarlyExitException",sw="NotAllInputParsedException",cw=[rw,ow,aw,sw];Object.freeze(cw);o(Ma,"isRecognitionException");My=function(e){Up(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t}(Error),hf=function(e){Up(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=rw,a}return o(t,"MismatchedTokenException"),t}(My),ky=function(e){Up(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=ow,a}return o(t,"NoViableAltException"),t}(My),Uy=function(e){Up(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=sw,r}return o(t,"NotAllInputParsedException"),t}(My),jy=function(e){Up(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=aw,a}return o(t,"EarlyExitException"),t}(My)});function lw(e){this.name=CP,this.message=e}function Vq(e,t,n,i,r,a,s){var l=this.getKeyForAutomaticLookahead(i,r),u=this.firstAfterRepMap[l];if(u===void 0){var p=this.getCurrRuleFullName(),g=this.getGAstProductions()[p],m=new a(g,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var h=u.token,E=u.occurrence,b=u.isEndOfRule;this.RULE_STACK.length===1&&b&&h===void 0&&(h=Yr,E=1),this.shouldInRepetitionRecoveryBeTried(h,E,s)&&this.tryInRepetitionRecovery(e,t,n,h)}var xP,CP,fw,IP=Ye(()=>{Fs();bt();yf();yP();xr();xP={},CP="InRuleRecoveryException";o(lw,"InRuleRecoveryException");lw.prototype=Error.prototype;fw=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ce(t,"recoveryEnabled")?t.recoveryEnabled:tr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Vq)},e.prototype.getTokenToInsert=function(t){var n=Ns(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,g=this.LA(1),m=this.LA(1),h=o(function(){var E=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:E,ruleName:a.getCurrRuleFullName()}),O=new hf(b,g,a.LA(0));O.resyncedTokens=Os(u),a.SAVE_ERROR(O)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){h();return}else if(i.call(this)){h(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,u));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new lw("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||rt(n))return!1;var r=this.LA(1),a=Da(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return wt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(wt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return xP;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return pe(n,function(r,a){return a===0?xP:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=pe(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Rn(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===xP)return[Yr];var n=t.ruleName+t.idxInCallingRule+Oy+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Yr)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return Os(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=En(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return pe(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(Vq,"attemptInRepetitionRecovery")});function Hy(e,t,n){return n|t|e}var uw,zo,wq,$y,By,jp,$p,Bp,Tf,sue,Gy=Ye(()=>{uw=4,zo=8,wq=8,$y=1<<zo,By=2<<zo,jp=3<<zo,$p=4<<zo,Bp=5<<zo,Tf=6<<zo;o(Hy,"getKeyForAutomaticLookahead");sue=32-wq});var pw,dw=Ye(()=>{kp();bt();xr();Gy();mf();pw=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ce(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:tr.dynamicTokensEnabled,this.maxLookahead=Ce(t,"maxLookahead")?t.maxLookahead:tr.maxLookahead,this.lookAheadFuncsCache=oP()?new Map:[],oP()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;ye(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=_V(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;ye(a,function(m){var h=m.idx===0?"":m.idx;n.TRACE_INIT(""+Pr(m)+h,function(){var E=WV(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=Hy(n.fullRuleNameToShort[i.name],$y,m.idx);n.setLaFuncCache(b,E)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,jp,Mt.REPETITION,m.maxLookahead,Pr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,By,Mt.OPTION,m.maxLookahead,Pr(m))}),ye(u,function(m){n.computeLookaheadFunc(i,m.idx,$p,Mt.REPETITION_MANDATORY,m.maxLookahead,Pr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,Tf,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Pr(m))}),ye(g,function(m){n.computeLookaheadFunc(i,m.idx,Bp,Mt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Pr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=KV(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=Hy(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return QV(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return XV(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return Hy(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e}()});function OP(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function RP(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function gw(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function mw(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var hw=Ye(()=>{o(OP,"setNodeLocationOnlyOffset");o(RP,"setNodeLocationFull");o(gw,"addTerminalToCst");o(mw,"addNoneTerminalToCst")});function Tw(e){return Hp(e.constructor)}function Hp(e){var t=e.name;return t||"anonymous"}function LP(e,t){var n=Object.getOwnPropertyDescriptor(e,yw);return Pi(n)||n.configurable?(Object.defineProperty(e,yw,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var yw,NP=Ye(()=>{bt();o(Tw,"classNameFromInstance");yw="name";o(Hp,"functionName");o(LP,"defineNameProp")});function Mq(e,t){for(var n=Vi(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function vw(e,t){var n=o(function(){},"derivedConstructor");LP(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(li(r)&&(r=r[0]),!Pi(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=kq(this,t);if(!rt(r)){var a=pe(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+Hp(this.constructor)+`>:
|
|
164
|
+
see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof Ar?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function MV(e,t){var n=new vq(e,t);return n.resolveRefs(),n.errors}var Tq,vq,kV=Ye(()=>{xr();bt();df();Tq=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(MV,"resolveGrammar");vq=function(e){Tq(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ye(wn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Gn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(zr)});function Ny(e,t,n){n===void 0&&(n=[]),n=En(n);var i=[],r=0;function a(p){return p.concat(Mn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=Ny(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Zt)return s(l.definition);if(l instanceof on)return s(l.definition);if(l instanceof an)i=s(l.definition);else if(l instanceof Ln){var u=l.definition.concat([new Rt({definition:l.definition})]);return s(u)}else if(l instanceof Nn){var u=[new Zt({definition:l.definition}),new Rt({definition:[new mt({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof Sn){var u=l.definition.concat([new Rt({definition:[new mt({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Rt){var u=l.definition.concat([new Rt({definition:l.definition})]);i=s(u)}else{if(l instanceof An)return ye(l.definition,function(p){rt(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof mt)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:Mn(e,r)}),i}function Fy(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!rt(m);){var h=m.pop();if(h===s){l&&ly(m).idx<=p&&m.pop();continue}var E=h.def,b=h.idx,O=h.ruleStack,N=h.occurrenceStack;if(!rt(E)){var M=E[0];if(M===r){var H={idx:b,def:Mn(E),ruleStack:Os(O),occurrenceStack:Os(N)};m.push(H)}else if(M instanceof mt)if(b<u-1){var $=b+1,re=t[$];if(n(re,M.terminalType)){var H={idx:$,def:Mn(E),ruleStack:O,occurrenceStack:N};m.push(H)}}else if(b===u-1)g.push({nextTokenType:M.terminalType,nextTokenOccurrence:M.idx,ruleStack:O,occurrenceStack:N}),l=!0;else throw Error("non exhaustive match");else if(M instanceof on){var Z=En(O);Z.push(M.nonTerminalName);var oe=En(N);oe.push(M.idx);var H={idx:b,def:M.definition.concat(a,Mn(E)),ruleStack:Z,occurrenceStack:oe};m.push(H)}else if(M instanceof an){var Ae={idx:b,def:Mn(E),ruleStack:O,occurrenceStack:N};m.push(Ae),m.push(s);var D={idx:b,def:M.definition.concat(Mn(E)),ruleStack:O,occurrenceStack:N};m.push(D)}else if(M instanceof Ln){var ut=new Rt({definition:M.definition,idx:M.idx}),ht=M.definition.concat([ut],Mn(E)),H={idx:b,def:ht,ruleStack:O,occurrenceStack:N};m.push(H)}else if(M instanceof Nn){var je=new mt({terminalType:M.separator}),ut=new Rt({definition:[je].concat(M.definition),idx:M.idx}),ht=M.definition.concat([ut],Mn(E)),H={idx:b,def:ht,ruleStack:O,occurrenceStack:N};m.push(H)}else if(M instanceof Sn){var Ae={idx:b,def:Mn(E),ruleStack:O,occurrenceStack:N};m.push(Ae),m.push(s);var je=new mt({terminalType:M.separator}),sn=new Rt({definition:[je].concat(M.definition),idx:M.idx}),ht=M.definition.concat([sn],Mn(E)),D={idx:b,def:ht,ruleStack:O,occurrenceStack:N};m.push(D)}else if(M instanceof Rt){var Ae={idx:b,def:Mn(E),ruleStack:O,occurrenceStack:N};m.push(Ae),m.push(s);var sn=new Rt({definition:M.definition,idx:M.idx}),ht=M.definition.concat([sn],Mn(E)),D={idx:b,def:ht,ruleStack:O,occurrenceStack:N};m.push(D)}else if(M instanceof An)for(var Wn=M.definition.length-1;Wn>=0;Wn--){var tn=M.definition[Wn],Lt={idx:b,def:tn.definition.concat(Mn(E)),ruleStack:O,occurrenceStack:N};m.push(Lt),m.push(s)}else if(M instanceof Zt)m.push({idx:b,def:M.definition.concat(Mn(E)),ruleStack:O,occurrenceStack:N});else if(M instanceof Ar)m.push(Eq(M,b,O,N));else throw Error("non exhaustive match")}}return g}function Eq(e,t,n,i){var r=En(n);r.push(e.name);var a=En(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var qc,bq,UV,Ly,jV,TP,$V,vP,Vp=Ye(()=>{Cy();bt();hP();Mi();qc=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),bq=function(e){qc(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=En(this.path.ruleStack).reverse(),this.occurrenceStack=En(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){rt(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Xc),UV=function(e){qc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new Zt({definition:a});this.possibleTokTypes=Qc(s),this.found=!0}},t}(bq),Ly=function(e){qc(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Xc),jV=function(e){qc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(Ly),TP=function(e){qc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(Ly),$V=function(e){qc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(Ly),vP=function(e){qc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(Ly);o(Ny,"possiblePathsFrom");o(Fy,"nextPossibleTokensAfter");o(Eq,"expandTopLevelRule")});function GV(e){if(e instanceof an)return Mt.OPTION;if(e instanceof Rt)return Mt.REPETITION;if(e instanceof Ln)return Mt.REPETITION_MANDATORY;if(e instanceof Nn)return Mt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Sn)return Mt.REPETITION_WITH_SEPARATOR;if(e instanceof An)return Mt.ALTERNATION;throw Error("non exhaustive match")}function WV(e,t,n,i,r,a){var s=wp(e,t,n),l=JV(s)?ff:Kc;return a(s,i,l,r)}function KV(e,t,n,i,r,a){var s=Mp(e,t,r,n),l=JV(s)?ff:Kc;return a(s[0],l,i)}function XV(e,t,n,i){var r=e.length,a=fi(e,function(u){return fi(u,function(p){return p.length===1})});if(t)return function(u){for(var p=pe(u,function($){return $.GATE}),g=0;g<r;g++){var m=e[g],h=m.length,E=p[g];if(!(E!==void 0&&E.call(this)===!1))e:for(var b=0;b<h;b++){for(var O=m[b],N=O.length,M=0;M<N;M++){var H=this.LA(M+1);if(n(H,O[M])===!1)continue e}return g}}};if(a&&!i){var s=pe(e,function(u){return Rn(u)}),l=pn(s,function(u,p,g){return ye(p,function(m){Ce(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ye(m.categoryMatches,function(h){Ce(u,h)||(u[h]=g)})}),u},[]);return function(){var u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(var u=0;u<r;u++){var p=e[u],g=p.length;e:for(var m=0;m<g;m++){for(var h=p[m],E=h.length,b=0;b<E;b++){var O=this.LA(b+1);if(n(O,h[b])===!1)continue e}return u}}}}function QV(e,t,n){var i=fi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Rn(e);if(a.length===1&&rt(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=pn(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,ye(g.categoryMatches,function(h){p[h]=!0}),p},[]);return function(){var p=this.LA(1);return u[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var g=e[p],m=g.length,h=0;h<m;h++){var E=this.LA(h+1);if(t(E,g[h])===!1)continue e}return!0}return!1}}function BV(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function bP(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var u="_"+i.categoryMatches[l];r.push(s+u)}}t=r}return t}function Aq(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function YV(e,t){for(var n=pe(e,function(g){return Ny([g],1)}),i=BV(n.length),r=pe(n,function(g){var m={};return ye(g,function(h){var E=bP(h.partialPath);ye(E,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=BV(l.length);for(var u=o(function(g){for(var m=l[g],h=0;h<m.length;h++){var E=m[h].partialPath,b=m[h].suffixDef,O=bP(E),N=Aq(r,O,g);if(N||rt(b)||E.length===t){var M=i[g];if(Dy(M,E)===!1){M.push(E);for(var H=0;H<O.length;H++){var $=O[H];r[g][$]=!0}}}else{var re=Ny(b,s+1,E);a[g]=a[g].concat(re),ye(re,function(Z){var oe=bP(Z.partialPath);ye(oe,function(Ae){r[g][Ae]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function wp(e,t,n,i){var r=new qV(e,Mt.ALTERNATION,i);return t.accept(r),YV(r.result,n)}function Mp(e,t,n,i){var r=new qV(e,n);t.accept(r);var a=r.result,s=new Sq(t,e,n),l=s.startWalking(),u=new Zt({definition:a}),p=new Zt({definition:l});return YV([u,p],i)}function Dy(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function zV(e,t){return e.length<t.length&&fi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function JV(e){return fi(e,function(t){return fi(t,function(n){return fi(n,function(i){return rt(i.categoryMatches)})})})}var HV,Mt,Sq,qV,kp=Ye(()=>{bt();Vp();Cy();uf();Mi();df();HV=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(Mt||(Mt={}));o(GV,"getProdType");o(WV,"buildLookaheadFuncForOr");o(KV,"buildLookaheadFuncForOptionalProd");o(XV,"buildAlternativesLookAheadFunc");o(QV,"buildSingleAlternativeLookaheadFunction");Sq=function(e){HV(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,Mt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Xc),qV=function(e){HV(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,Mt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,Mt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,Mt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,Mt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,Mt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,Mt.ALTERNATION)},t}(zr);o(BV,"initializeArrayOfArrays");o(bP,"pathToHashKeys");o(Aq,"isUniquePrefixHash");o(YV,"lookAheadSequenceFromAlternatives");o(wp,"getLookaheadPathsForOr");o(Mp,"getLookaheadPathsForOptionalProd");o(Dy,"containsPath");o(zV,"isStrictPrefixOfPath");o(JV,"areTokenCategoriesNotUsed")});function ZV(e,t,n,i,r){var a=pe(e,function(E){return Pq(E,i)}),s=pe(e,function(E){return nw(E,E,i)}),l=[],u=[],p=[];fi(s,rt)&&(l=pe(e,function(E){return Oq(E,i)}),u=pe(e,function(E){return Rq(E,t,i)}),p=Fq(e,t,i));var g=Vq(e,n,i),m=pe(e,function(E){return Nq(E,i)}),h=pe(e,function(E){return Iq(E,e,r,i)});return Rn(a.concat(p,s,l,u,g,m,h))}function Pq(e,t){var n=new Cq;e.accept(n);var i=n.allProductions,r=X_(i,xq),a=Er(r,function(l){return l.length>1}),s=pe(wn(a),function(l){var u=Ai(l),p=t.buildDuplicateFoundError(e,l),g=Pr(u),m={message:p,type:Gn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},h=ew(u);return h&&(m.parameter=h),m});return s}function xq(e){return Pr(e)+"_#_"+e.idx+"_#_"+ew(e)}function ew(e){return e instanceof mt?e.terminalType.name:e instanceof on?e.nonTerminalName:""}function Iq(e,t,n,i){var r=[],a=pn(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Gn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function tw(e,t,n){var i=[],r;return wt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Gn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function nw(e,t,n,i){i===void 0&&(i=[]);var r=[],a=_y(t.definition);if(rt(a))return[];var s=e.name,l=wt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Gn.LEFT_RECURSION,ruleName:s});var u=Wc(a,i.concat([e])),p=pe(u,function(g){var m=En(i);return m.push(g),nw(e,g,n,m)});return r.concat(Rn(p))}function _y(e){var t=[];if(rt(e))return t;var n=Ai(e);if(n instanceof on)t.push(n.referencedRule);else if(n instanceof Zt||n instanceof an||n instanceof Ln||n instanceof Nn||n instanceof Sn||n instanceof Rt)t=t.concat(_y(n.definition));else if(n instanceof An)t=Rn(pe(n.definition,function(s){return _y(s.definition)}));else if(!(n instanceof mt))throw Error("non exhaustive match");var i=gf(n),r=e.length>1;if(i&&r){var a=Mn(e);return t.concat(_y(a))}else return t}function Oq(e,t){var n=new SP;e.accept(n);var i=n.alternations,r=pn(i,function(a,s){var l=Os(s.definition),u=pe(l,function(p,g){var m=Fy([p],[],null,1);return rt(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Gn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(_a(u))},[]);return r}function Rq(e,t,n){var i=new SP;e.accept(i);var r=i.alternations;r=Fa(r,function(s){return s.ignoreAmbiguities===!0});var a=pn(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=wp(u,e,p,l),m=Dq(g,l,e,n),h=_q(g,l,e,n);return s.concat(m,h)},[]);return a}function Nq(e,t){var n=new SP;e.accept(n);var i=n.alternations,r=pn(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Gn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function Fq(e,t,n){var i=[];return ye(e,function(r){var a=new Lq;r.accept(a);var s=a.allProductions;ye(s,function(l){var u=GV(l),p=l.maxLookahead||t,g=l.idx,m=Mp(g,r,u,p),h=m[0];if(rt(Rn(h))){var E=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:E,type:Gn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function Dq(e,t,n,i){var r=[],a=pn(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ye(u,function(g){var m=[p];ye(e,function(h,E){p!==E&&Dy(h,g)&&t.definition[E].ignoreAmbiguities!==!0&&m.push(E)}),m.length>1&&!Dy(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=pe(a,function(l){var u=pe(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Gn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function _q(e,t,n,i){var r=[],a=pn(e,function(s,l,u){var p=pe(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ye(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=W_(a,function(h){return t.definition[h.idx].ignoreAmbiguities!==!0&&h.idx<u&&zV(h.path,p)}),m=pe(g,function(h){var E=[h.idx+1,u+1],b=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:E,prefixPath:h.path});return{message:O,type:Gn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:E}});r=r.concat(m)}}),r}function Vq(e,t,n){var i=[],r=pe(t,function(a){return a.name});return ye(e,function(a){var s=a.name;if(wt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Gn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var EP,Cq,SP,Lq,AP=Ye(()=>{bt();bt();xr();mf();kp();Vp();Mi();df();EP=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(ZV,"validateGrammar");o(Pq,"validateDuplicateProductions");o(xq,"identifyProductionForDuplicates");o(ew,"getExtraProductionArgument");Cq=function(e){EP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t}(zr);o(Iq,"validateRuleDoesNotAlreadyExist");o(tw,"validateRuleIsOverridden");o(nw,"validateNoLeftRecursion");o(_y,"getFirstNoneTerminal");SP=function(e){EP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}(zr);o(Oq,"validateEmptyOrAlternative");o(Rq,"validateAmbiguousAlternationAlternatives");Lq=function(e){EP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t}(zr);o(Nq,"validateTooManyAlts");o(Fq,"validateSomeNonEmptyLookaheadPath");o(Dq,"checkAlternativesAmbiguities");o(_q,"checkPrefixAlternativesAmbiguities");o(Vq,"checkTerminalAndNoneTerminalsNameSpace")});function Vy(e){e=Cp(e,{errMsgProvider:Ry});var t={};return ye(e.rules,function(n){t[n.name]=n}),MV(t,e.errMsgProvider)}function wy(e){return e=Cp(e,{errMsgProvider:Ds}),ZV(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function iw(e){ye(e.rules,function(t){var n=new mP;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,a){r.idx=a+1})})})}var PP=Ye(()=>{bt();kV();AP();_p();mf();o(Vy,"resolveGrammar");o(wy,"validateGrammar");o(iw,"assignOccurrenceIndices")});function Ma(e){return wt(cw,e.name)}var Up,rw,ow,aw,sw,cw,My,hf,ky,Uy,jy,yf=Ye(()=>{bt();Up=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),rw="MismatchedTokenException",ow="NoViableAltException",aw="EarlyExitException",sw="NotAllInputParsedException",cw=[rw,ow,aw,sw];Object.freeze(cw);o(Ma,"isRecognitionException");My=function(e){Up(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t}(Error),hf=function(e){Up(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=rw,a}return o(t,"MismatchedTokenException"),t}(My),ky=function(e){Up(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=ow,a}return o(t,"NoViableAltException"),t}(My),Uy=function(e){Up(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=sw,r}return o(t,"NotAllInputParsedException"),t}(My),jy=function(e){Up(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=aw,a}return o(t,"EarlyExitException"),t}(My)});function lw(e){this.name=CP,this.message=e}function wq(e,t,n,i,r,a,s){var l=this.getKeyForAutomaticLookahead(i,r),u=this.firstAfterRepMap[l];if(u===void 0){var p=this.getCurrRuleFullName(),g=this.getGAstProductions()[p],m=new a(g,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var h=u.token,E=u.occurrence,b=u.isEndOfRule;this.RULE_STACK.length===1&&b&&h===void 0&&(h=Yr,E=1),this.shouldInRepetitionRecoveryBeTried(h,E,s)&&this.tryInRepetitionRecovery(e,t,n,h)}var xP,CP,fw,IP=Ye(()=>{Fs();bt();yf();yP();xr();xP={},CP="InRuleRecoveryException";o(lw,"InRuleRecoveryException");lw.prototype=Error.prototype;fw=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ce(t,"recoveryEnabled")?t.recoveryEnabled:tr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=wq)},e.prototype.getTokenToInsert=function(t){var n=Ns(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,g=this.LA(1),m=this.LA(1),h=o(function(){var E=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:E,ruleName:a.getCurrRuleFullName()}),O=new hf(b,g,a.LA(0));O.resyncedTokens=Os(u),a.SAVE_ERROR(O)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){h();return}else if(i.call(this)){h(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,u));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new lw("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||rt(n))return!1;var r=this.LA(1),a=Da(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return wt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(wt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return xP;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return pe(n,function(r,a){return a===0?xP:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=pe(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Rn(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===xP)return[Yr];var n=t.ruleName+t.idxInCallingRule+Oy+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Yr)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return Os(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=En(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return pe(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(wq,"attemptInRepetitionRecovery")});function Hy(e,t,n){return n|t|e}var uw,zo,Mq,$y,By,jp,$p,Bp,Tf,cue,Gy=Ye(()=>{uw=4,zo=8,Mq=8,$y=1<<zo,By=2<<zo,jp=3<<zo,$p=4<<zo,Bp=5<<zo,Tf=6<<zo;o(Hy,"getKeyForAutomaticLookahead");cue=32-Mq});var pw,dw=Ye(()=>{kp();bt();xr();Gy();mf();pw=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ce(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:tr.dynamicTokensEnabled,this.maxLookahead=Ce(t,"maxLookahead")?t.maxLookahead:tr.maxLookahead,this.lookAheadFuncsCache=oP()?new Map:[],oP()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;ye(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=_V(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;ye(a,function(m){var h=m.idx===0?"":m.idx;n.TRACE_INIT(""+Pr(m)+h,function(){var E=WV(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=Hy(n.fullRuleNameToShort[i.name],$y,m.idx);n.setLaFuncCache(b,E)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,jp,Mt.REPETITION,m.maxLookahead,Pr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,By,Mt.OPTION,m.maxLookahead,Pr(m))}),ye(u,function(m){n.computeLookaheadFunc(i,m.idx,$p,Mt.REPETITION_MANDATORY,m.maxLookahead,Pr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,Tf,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Pr(m))}),ye(g,function(m){n.computeLookaheadFunc(i,m.idx,Bp,Mt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Pr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=KV(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=Hy(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return QV(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return XV(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return Hy(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e}()});function OP(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function RP(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function gw(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function mw(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var hw=Ye(()=>{o(OP,"setNodeLocationOnlyOffset");o(RP,"setNodeLocationFull");o(gw,"addTerminalToCst");o(mw,"addNoneTerminalToCst")});function Tw(e){return Hp(e.constructor)}function Hp(e){var t=e.name;return t||"anonymous"}function LP(e,t){var n=Object.getOwnPropertyDescriptor(e,yw);return Pi(n)||n.configurable?(Object.defineProperty(e,yw,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var yw,NP=Ye(()=>{bt();o(Tw,"classNameFromInstance");yw="name";o(Hp,"functionName");o(LP,"defineNameProp")});function kq(e,t){for(var n=Vi(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function vw(e,t){var n=o(function(){},"derivedConstructor");LP(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(li(r)&&(r=r[0]),!Pi(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=Uq(this,t);if(!rt(r)){var a=pe(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+Hp(this.constructor)+`>:
|
|
165
165
|
`+(""+a.join(`
|
|
166
166
|
|
|
167
167
|
`).replace(/\n/g,`
|
|
168
|
-
`)))}},"validateVisitor")};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function bw(e,t,n){var i=o(function(){},"derivedConstructor");LP(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return ye(t,function(a){r[a]=
|
|
168
|
+
`)))}},"validateVisitor")};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function bw(e,t,n){var i=o(function(){},"derivedConstructor");LP(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return ye(t,function(a){r[a]=kq}),i.prototype=r,i.prototype.constructor=i,i}function Uq(e,t){var n=jq(e,t),i=Bq(e,t);return n.concat(i)}function jq(e,t){var n=pe(t,function(i){if(!vo(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+Hp(e.constructor)+" CST Visitor.",type:Wy.MISSING_METHOD,methodName:i}});return _a(n)}function Bq(e,t){var n=[];for(var i in e)vo(e[i])&&!wt($q,i)&&!wt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+Hp(e.constructor)+` CST Visitor
|
|
169
169
|
There is no Grammar Rule corresponding to this method's name.
|
|
170
|
-
`,type:Wy.REDUNDANT_METHOD,methodName:i});return n}var Wy,jq,Ew=Ye(()=>{bt();NP();o(Mq,"defaultVisit");o(vw,"createBaseSemanticVisitorConstructor");o(bw,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Wy||(Wy={}));o(kq,"validateVisitor");o(Uq,"validateMissingCstMethods");jq=["constructor","visit","validateVisitor"];o($q,"validateRedundantMethods")});var Sw,Aw=Ye(()=>{hw();bt();Ew();xr();Sw=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Ce(t,"nodeLocationTracking")?t.nodeLocationTracking:tr.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=kn,this.cstFinallyStateUpdate=kn,this.cstPostTerminal=kn,this.cstPostNonTerminal=kn,this.cstPostRule=kn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=RP,this.setNodeLocationFromNode=RP,this.cstPostRule=kn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=kn,this.setNodeLocationFromNode=kn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=OP,this.setNodeLocationFromNode=OP,this.cstPostRule=kn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=kn,this.setNodeLocationFromNode=kn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=kn,this.setNodeLocationFromNode=kn,this.cstPostRule=kn,this.setInitialNodeLocation=kn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];gw(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];mw(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Pi(this.baseCstVisitorConstructor)){var t=vw(this.className,Vi(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Pi(this.baseCstVisitorWithDefaultsConstructor)){var t=bw(this.className,Vi(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e}()});var Pw,xw=Ye(()=>{xr();Pw=function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):vf},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?vf:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()});var Cw,Iw=Ye(()=>{bt();yf();xr();_p();AP();Mi();Cw=function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=bf),wt(this.definedRulesNames,t)){var r=Ds.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Gn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=bf);var r=[];r=r.concat(tw(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var a=this.defineRule(t,n,i);return this[t]=a,a},e.prototype.BACKTRACK=function(t,n){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return t.apply(this,n),!0}catch(r){if(Ma(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return xy(wn(this.gastProductionsCache))},e}()});var Ow,Rw=Ye(()=>{bt();Gy();yf();kp();Vp();xr();IP();Fs();uf();NP();Ow=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=Tw(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=ff,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Ce(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
170
|
+
`,type:Wy.REDUNDANT_METHOD,methodName:i});return n}var Wy,$q,Ew=Ye(()=>{bt();NP();o(kq,"defaultVisit");o(vw,"createBaseSemanticVisitorConstructor");o(bw,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Wy||(Wy={}));o(Uq,"validateVisitor");o(jq,"validateMissingCstMethods");$q=["constructor","visit","validateVisitor"];o(Bq,"validateRedundantMethods")});var Sw,Aw=Ye(()=>{hw();bt();Ew();xr();Sw=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Ce(t,"nodeLocationTracking")?t.nodeLocationTracking:tr.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=kn,this.cstFinallyStateUpdate=kn,this.cstPostTerminal=kn,this.cstPostNonTerminal=kn,this.cstPostRule=kn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=RP,this.setNodeLocationFromNode=RP,this.cstPostRule=kn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=kn,this.setNodeLocationFromNode=kn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=OP,this.setNodeLocationFromNode=OP,this.cstPostRule=kn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=kn,this.setNodeLocationFromNode=kn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=kn,this.setNodeLocationFromNode=kn,this.cstPostRule=kn,this.setInitialNodeLocation=kn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];gw(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];mw(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Pi(this.baseCstVisitorConstructor)){var t=vw(this.className,Vi(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Pi(this.baseCstVisitorWithDefaultsConstructor)){var t=bw(this.className,Vi(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e}()});var Pw,xw=Ye(()=>{xr();Pw=function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):vf},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?vf:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()});var Cw,Iw=Ye(()=>{bt();yf();xr();_p();AP();Mi();Cw=function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=bf),wt(this.definedRulesNames,t)){var r=Ds.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Gn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=bf);var r=[];r=r.concat(tw(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var a=this.defineRule(t,n,i);return this[t]=a,a},e.prototype.BACKTRACK=function(t,n){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return t.apply(this,n),!0}catch(r){if(Ma(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return xy(wn(this.gastProductionsCache))},e}()});var Ow,Rw=Ye(()=>{bt();Gy();yf();kp();Vp();xr();IP();Fs();uf();NP();Ow=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=Tw(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=ff,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Ce(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
171
171
|
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0
|
|
172
172
|
For Further details.`);if(li(t)){if(rt(t))throw Error(`A Token Vocabulary cannot be empty.
|
|
173
173
|
Note that the first argument for the parser constructor
|
|
174
174
|
is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
|
|
175
175
|
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0
|
|
176
176
|
For Further details.`)}if(li(t))this.tokensMap=pn(t,function(s,l){return s[l.name]=l,s},{});else if(Ce(t,"modes")&&fi(Rn(wn(t.modes)),bV)){var i=Rn(wn(t.modes)),r=xp(i);this.tokensMap=pn(r,function(s,l){return s[l.name]=l,s},{})}else if(fy(t))this.tokensMap=Rs(t);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Yr;var a=fi(wn(t),function(s){return rt(s.categoryMatches)});this.tokenMatcher=a?ff:Kc,Va(wn(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
|
|
177
|
-
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Ce(i,"resyncEnabled")?i.resyncEnabled:bf.resyncEnabled,a=Ce(i,"recoveryValueFunc")?i.recoveryValueFunc:bf.recoveryValueFunc,s=this.ruleShortNameIdx<<uw+zo;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(g){try{if(this.outputCst===!0){n.apply(this,g);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,g)}catch(h){return this.invokeRuleCatch(h,r,a)}finally{this.ruleFinallyStateUpdate()}}o(l,"invokeRuleWithTry");var u;u=o(function(g,m){return g===void 0&&(g=0),this.ruleInvocationStateUpdate(s,t,g),l.call(this,m)},"wrappedGrammarRule");var p="ruleName";return u[p]=t,u.originalGrammarAction=n,u},e.prototype.invokeRuleCatch=function(t,n,i){var r=this.RULE_STACK.length===1,a=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Ma(t)){var s=t;if(a){var l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return i();else{if(this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(r)return this.moveToTerminatedState(),i();throw s}}else throw t},e.prototype.optionInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(By,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(a.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead($p,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,Mt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,$p,t,$V)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Tf,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,vP],u,Tf,t,vP)}else throw this.raiseEarlyExitException(t,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(jp,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],a,jp,t,jV,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Bp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,TP],u,Bp,t,TP)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,Tf,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead($y,n),r=li(t)?t:t.DEF,a=this.getLaFuncFromCache(i),s=a.call(this,r);if(s!==void 0){var l=r[s];return l.ALT.call(this)}this.raiseNoAltException(n,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Uy(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var a=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,a),this.cstPostNonTerminal(r,i!==void 0&&i.LABEL!==void 0?i.LABEL:t.ruleName),r}catch(s){this.subruleInternalError(s,i,t.ruleName)}},e.prototype.subruleInternalError=function(t,n,i){throw Ma(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new hf(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===CP?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=En(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),Yr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var Lw,Nw=Ye(()=>{yf();bt();kp();xr();Lw=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ce(t,"errorMessageProvider")?t.errorMessageProvider:tr.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Ma(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:En(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:o(function(){return En(this._errors)},"get"),set:o(function(t){this._errors=t},"set"),enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),a=this.getGAstProductions()[r],s=Mp(t,a,n,this.maxLookahead),l=s[0],u=[],p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));var g=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new jy(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=wp(t,r,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var u=this.LA(0),p=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new ky(p,this.LA(1),u))},e}()});var Fw,Dw=Ye(()=>{Vp();bt();Fw=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Pi(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return Fy([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ai(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new UV(r,t).startWalking();return a},e}()});function Gp(e,t,n,i){i===void 0&&(i=!1),Ky(n);var r=Op(this.recordingProdStack),a=vo(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Ce(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),Xy}function Hq(e,t){var n=this;Ky(t);var i=Op(this.recordingProdStack),r=li(e)===!1,a=r===!1?e:e.DEF,s=new An({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ce(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=uy(a,function(u){return vo(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ye(a,function(u){var p=new Zt({definition:[]});s.definition.push(p),Ce(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Ce(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),Xy}function ww(e){return e===0?"":""+e}function Ky(e){if(e<0||e>Vw){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
-
`+("Idx value must be a none negative value smaller than "+(Vw+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var Xy,_w,Vw,Mw,kw,
|
|
179
|
-
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(kw);
|
|
177
|
+
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Ce(i,"resyncEnabled")?i.resyncEnabled:bf.resyncEnabled,a=Ce(i,"recoveryValueFunc")?i.recoveryValueFunc:bf.recoveryValueFunc,s=this.ruleShortNameIdx<<uw+zo;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(g){try{if(this.outputCst===!0){n.apply(this,g);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,g)}catch(h){return this.invokeRuleCatch(h,r,a)}finally{this.ruleFinallyStateUpdate()}}o(l,"invokeRuleWithTry");var u;u=o(function(g,m){return g===void 0&&(g=0),this.ruleInvocationStateUpdate(s,t,g),l.call(this,m)},"wrappedGrammarRule");var p="ruleName";return u[p]=t,u.originalGrammarAction=n,u},e.prototype.invokeRuleCatch=function(t,n,i){var r=this.RULE_STACK.length===1,a=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Ma(t)){var s=t;if(a){var l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return i();else{if(this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(r)return this.moveToTerminatedState(),i();throw s}}else throw t},e.prototype.optionInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(By,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(a.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead($p,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,Mt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,$p,t,$V)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Tf,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,vP],u,Tf,t,vP)}else throw this.raiseEarlyExitException(t,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(jp,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],a,jp,t,jV,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Bp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,TP],u,Bp,t,TP)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,Tf,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead($y,n),r=li(t)?t:t.DEF,a=this.getLaFuncFromCache(i),s=a.call(this,r);if(s!==void 0){var l=r[s];return l.ALT.call(this)}this.raiseNoAltException(n,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Uy(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var a=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,a),this.cstPostNonTerminal(r,i!==void 0&&i.LABEL!==void 0?i.LABEL:t.ruleName),r}catch(s){this.subruleInternalError(s,i,t.ruleName)}},e.prototype.subruleInternalError=function(t,n,i){throw Ma(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new hf(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===CP?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=En(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),Yr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var Lw,Nw=Ye(()=>{yf();bt();kp();xr();Lw=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ce(t,"errorMessageProvider")?t.errorMessageProvider:tr.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Ma(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:En(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:o(function(){return En(this._errors)},"get"),set:o(function(t){this._errors=t},"set"),enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),a=this.getGAstProductions()[r],s=Mp(t,a,n,this.maxLookahead),l=s[0],u=[],p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));var g=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new jy(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=wp(t,r,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var u=this.LA(0),p=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new ky(p,this.LA(1),u))},e}()});var Fw,Dw=Ye(()=>{Vp();bt();Fw=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Pi(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return Fy([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ai(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new UV(r,t).startWalking();return a},e}()});function Gp(e,t,n,i){i===void 0&&(i=!1),Ky(n);var r=Op(this.recordingProdStack),a=vo(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Ce(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),Xy}function Gq(e,t){var n=this;Ky(t);var i=Op(this.recordingProdStack),r=li(e)===!1,a=r===!1?e:e.DEF,s=new An({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ce(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=uy(a,function(u){return vo(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ye(a,function(u){var p=new Zt({definition:[]});s.definition.push(p),Ce(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Ce(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),Xy}function ww(e){return e===0?"":""+e}function Ky(e){if(e<0||e>Vw){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
+
`+("Idx value must be a none negative value smaller than "+(Vw+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var Xy,_w,Vw,Mw,kw,Hq,Uw,jw=Ye(()=>{bt();Mi();Lp();uf();Fs();xr();Gy();Xy={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(Xy);_w=!0,Vw=Math.pow(2,zo)-1,Mw=Fp({name:"RECORDING_PHASE_TOKEN",pattern:wi.NA});Va([Mw]);kw=Ns(Mw,`This IToken indicates the Parser is in Recording Phase
|
|
179
|
+
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(kw);Hq={name:`This CSTNode indicates the Parser is in Recording Phase
|
|
180
180
|
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,children:{}},Uw=function(){function e(){}return o(e,"GastRecorder"),e.prototype.initGastRecorder=function(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var t=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var n=o(function(r){var a=r>0?r:"";t["CONSUME"+a]=function(s,l){return this.consumeInternalRecord(s,r,l)},t["SUBRULE"+a]=function(s,l){return this.subruleInternalRecord(s,r,l)},t["OPTION"+a]=function(s){return this.optionInternalRecord(s,r)},t["OR"+a]=function(s){return this.orInternalRecord(s,r)},t["MANY"+a]=function(s){this.manyInternalRecord(r,s)},t["MANY_SEP"+a]=function(s){this.manySepFirstInternalRecord(r,s)},t["AT_LEAST_ONE"+a]=function(s){this.atLeastOneInternalRecord(r,s)},t["AT_LEAST_ONE_SEP"+a]=function(s){this.atLeastOneSepFirstInternalRecord(r,s)}},"_loop_1"),i=0;i<10;i++)n(i);t.consume=function(r,a,s){return this.consumeInternalRecord(a,r,s)},t.subrule=function(r,a,s){return this.subruleInternalRecord(a,r,s)},t.option=function(r,a){return this.optionInternalRecord(a,r)},t.or=function(r,a){return this.orInternalRecord(a,r)},t.many=function(r,a){this.manyInternalRecord(r,a)},t.atLeastOne=function(r,a){this.atLeastOneInternalRecord(r,a)},t.ACTION=t.ACTION_RECORD,t.BACKTRACK=t.BACKTRACK_RECORD,t.LA=t.LA_RECORD})},e.prototype.disableRecording=function(){var t=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var n=0;n<10;n++){var i=n>0?n:"";delete t["CONSUME"+i],delete t["SUBRULE"+i],delete t["OPTION"+i],delete t["OR"+i],delete t["MANY"+i],delete t["MANY_SEP"+i],delete t["AT_LEAST_ONE"+i],delete t["AT_LEAST_ONE_SEP"+i]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})},e.prototype.ACTION_RECORD=function(t){},e.prototype.BACKTRACK_RECORD=function(t,n){return function(){return!0}},e.prototype.LA_RECORD=function(t){return vf},e.prototype.topLevelRuleRecord=function(t,n){try{var i=new Ar({definition:[],name:t});return i.name=t,this.recordingProdStack.push(i),n.call(this),this.recordingProdStack.pop(),i}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
|
|
181
181
|
This error was thrown during the "grammar recording phase" For more info see:
|
|
182
|
-
https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return Gp.call(this,an,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){Gp.call(this,Ln,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){Gp.call(this,Nn,n,t,_w)},e.prototype.manyInternalRecord=function(t,n){Gp.call(this,Rt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){Gp.call(this,Sn,n,t,_w)},e.prototype.orInternalRecord=function(t,n){return
|
|
183
|
-
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Op(this.recordingProdStack),s=t.ruleName,l=new on({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?
|
|
184
|
-
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Op(this.recordingProdStack),s=new mt({idx:n,terminalType:t});return a.definition.push(s),kw},e}();o(Gp,"recordProd");o(
|
|
182
|
+
https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return Gp.call(this,an,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){Gp.call(this,Ln,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){Gp.call(this,Nn,n,t,_w)},e.prototype.manyInternalRecord=function(t,n){Gp.call(this,Rt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){Gp.call(this,Sn,n,t,_w)},e.prototype.orInternalRecord=function(t,n){return Gq.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(Ky(n),!t||Ce(t,"ruleName")===!1){var r=new Error("<SUBRULE"+ww(n)+"> argument is invalid"+(" expecting a Parser method reference but got: <"+JSON.stringify(t)+">")+(`
|
|
183
|
+
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Op(this.recordingProdStack),s=t.ruleName,l=new on({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?Hq:Xy},e.prototype.consumeInternalRecord=function(t,n,i){if(Ky(n),!pP(t)){var r=new Error("<CONSUME"+ww(n)+"> argument is invalid"+(" expecting a TokenType reference but got: <"+JSON.stringify(t)+">")+(`
|
|
184
|
+
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Op(this.recordingProdStack),s=new mt({idx:n,terminalType:t});return a.definition.push(s),kw},e}();o(Gp,"recordProd");o(Gq,"recordOrProd");o(ww,"getIdxSuffix");o(Ky,"assertMethodIdxIsValid")});var $w,Bw=Ye(()=>{bt();xr();$w=function(){function e(){}return o(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(Ce(t,"traceInitPerf")){var n=t.traceInitPerf,i=typeof n=="number";this.traceInitMaxIdent=i?n:1/0,this.traceInitPerf=i?n>0:n}else this.traceInitMaxIdent=0,this.traceInitPerf=tr.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=gy(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e}()});function Gw(e){return e===void 0&&(e=void 0),function(){return e}}var Hw,vf,tr,bf,Gn,FP,Ww,Kw,xr=Ye(()=>{bt();wV();Fs();_p();PP();IP();dw();Aw();xw();Iw();Rw();Nw();Dw();jw();Bw();Hw=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),vf=Ns(Yr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(vf);tr=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Dp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),bf=Object.freeze({recoveryValueFunc:o(function(){},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Gn||(Gn={}));o(Gw,"EMPTY_ALT");FP=function(){function e(t,n){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(n),i.initLexerAdapter(),i.initLooksAhead(n),i.initRecognizerEngine(t,n),i.initRecoverable(n),i.initTreeBuilder(n),i.initContentAssist(),i.initGastRecorder(n),i.initPerformanceTracer(n),Ce(n,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
|
|
185
185
|
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
|
|
186
186
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
|
|
187
187
|
For further details.`);this.skipValidations=Ce(n,"skipValidations")?n.skipValidations:tr.skipValidations}return o(e,"Parser"),e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var n;t.selfAnalysisDone=!0;var i=t.className;t.TRACE_INIT("toFastProps",function(){dy(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),ye(t.definedRulesNames,function(a){var s=t[a],l=s.originalGrammarAction,u=void 0;t.TRACE_INIT(a+" Rule",function(){u=t.topLevelRuleRecord(a,l)}),t.gastProductionsCache[a]=u})}finally{t.disableRecording()}});var r=[];if(t.TRACE_INIT("Grammar Resolving",function(){r=Vy({rules:wn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(rt(r)&&t.skipValidations===!1){var a=wy({rules:wn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:wn(t.tokensMap),errMsgProvider:Ds,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),rt(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=VV(wn(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(wn(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!rt(t.definitionErrors))throw n=pe(t.definitionErrors,function(a){return a.message}),new Error(`Parser Definition Errors detected:
|
|
@@ -249,7 +249,7 @@ function `+e.name+`(tokenVocabulary, config) {
|
|
|
249
249
|
|
|
250
250
|
const $ = this
|
|
251
251
|
|
|
252
|
-
`+
|
|
252
|
+
`+Wq(e.rules)+`
|
|
253
253
|
|
|
254
254
|
// very important to call this after all the rules have been defined.
|
|
255
255
|
// otherwise the parser may not work correctly as it will lack information
|
|
@@ -260,13 +260,13 @@ function `+e.name+`(tokenVocabulary, config) {
|
|
|
260
260
|
// inheritance as implemented in javascript in the previous decade... :(
|
|
261
261
|
`+e.name+`.prototype = Object.create(chevrotain.CstParser.prototype)
|
|
262
262
|
`+e.name+".prototype.constructor = "+e.name+`
|
|
263
|
-
`;return t}function
|
|
264
|
-
`)}function
|
|
265
|
-
`;o(Yw,"genUmdModule");o(zw,"genWrapperFunction");o(Jw,"genClass");o(
|
|
263
|
+
`;return t}function Wq(e){var t=pe(e,function(n){return Kq(n,1)});return t.join(`
|
|
264
|
+
`)}function Kq(e,t){var n=ki(t,'$.RULE("'+e.name+'", function() {')+ei;return n+=Qy(e.definition,t+1),n+=ki(t+1,"})")+ei,n}function Xq(e,t){var n=e.terminalType.name;return ki(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ei)}function Qq(e,t){return ki(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ei)}function qq(e,t){var n=ki(t,"$.OR"+e.idx+"([")+ei,i=pe(e.definition,function(r){return Yq(r,t+1)});return n+=i.join(","+ei),n+=ei+ki(t,"])"+ei),n}function Yq(e,t){var n=ki(t,"{")+ei;return n+=ki(t+1,"ALT: function() {")+ei,n+=Qy(e.definition,t+1),n+=ki(t+1,"}")+ei,n+=ki(t,"}"),n}function zq(e,t){if(e instanceof on)return Qq(e,t);if(e instanceof an)return Wp("OPTION",e,t);if(e instanceof Ln)return Wp("AT_LEAST_ONE",e,t);if(e instanceof Nn)return Wp("AT_LEAST_ONE_SEP",e,t);if(e instanceof Sn)return Wp("MANY_SEP",e,t);if(e instanceof Rt)return Wp("MANY",e,t);if(e instanceof An)return qq(e,t);if(e instanceof mt)return Xq(e,t);if(e instanceof Zt)return Qy(e.definition,t);throw Error("non exhaustive match")}function Wp(e,t,n){var i=ki(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ei,i+=ki(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ei,i+="DEF: "+qw(t.definition,n+2)+ei,i+=ki(n,"}")+ei):i+=qw(t.definition,n+1),i+=ki(n,")")+ei,i}function qw(e,t){var n="function() {"+ei;return n+=Qy(e,t),n+=ki(t,"}")+ei,n}function Qy(e,t){var n="";return ye(e,function(i){n+=zq(i,t+1)}),n}function ki(e,t){var n=Array(e*4+1).join(" ");return n+t}var ei,Zw=Ye(()=>{bt();Mi();ei=`
|
|
265
|
+
`;o(Yw,"genUmdModule");o(zw,"genWrapperFunction");o(Jw,"genClass");o(Wq,"genAllRules");o(Kq,"genRule");o(Xq,"genTerminal");o(Qq,"genNonTerminal");o(qq,"genAlternation");o(Yq,"genSingleAlt");o(zq,"genProd");o(Wp,"genDSLRule");o(qw,"genDefFunction");o(Qy,"genDefinition");o(ki,"indent")});function eM(e){var t=zw({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(Yy(),Ng(qy)))}}function tM(e){return Yw({name:e.name,rules:e.rules})}var nM=Ye(()=>{Zw();o(eM,"generateParserFactory");o(tM,"generateParserModule")});var qy={};sc(qy,{Alternation:()=>An,Alternative:()=>Zt,CstParser:()=>Ww,EMPTY_ALT:()=>Gw,EOF:()=>Yr,EarlyExitException:()=>jy,EmbeddedActionsParser:()=>Kw,GAstVisitor:()=>zr,Lexer:()=>wi,LexerDefinitionErrorType:()=>dn,MismatchedTokenException:()=>hf,NoViableAltException:()=>ky,NonTerminal:()=>on,NotAllInputParsedException:()=>Uy,Option:()=>an,Parser:()=>Zq,ParserDefinitionErrorType:()=>Gn,Repetition:()=>Rt,RepetitionMandatory:()=>Ln,RepetitionMandatoryWithSeparator:()=>Nn,RepetitionWithSeparator:()=>Sn,Rule:()=>Ar,Terminal:()=>mt,VERSION:()=>Pp,assignOccurrenceIndices:()=>iw,clearCache:()=>Jq,createSyntaxDiagramsCode:()=>Xw,createToken:()=>Fp,createTokenInstance:()=>Ns,defaultGrammarResolverErrorProvider:()=>Ry,defaultGrammarValidatorErrorProvider:()=>Ds,defaultLexerErrorProvider:()=>Py,defaultParserErrorProvider:()=>Dp,generateParserFactory:()=>eM,generateParserModule:()=>tM,isRecognitionException:()=>Ma,resolveGrammar:()=>Vy,serializeGrammar:()=>xy,serializeProduction:()=>pf,tokenLabel:()=>Yo,tokenMatcher:()=>LV,tokenName:()=>RV,validateGrammar:()=>wy});function Jq(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
|
|
266
266
|
It performs no action other than printing this message.
|
|
267
|
-
Please avoid using it as it will be completely removed in the future`)}var
|
|
268
|
-
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return o(e,"Parser"),e}()});var VP=ze((
|
|
269
|
-
`],lineTerminatorsPattern:/\n|\r\n/g});cM.exports={xmlLexer:EY,tokensDictionary:oM}});var fM=ze((dde,lM)=>{var{CstParser:SY,tokenMatcher:AY}=(Yy(),Ng(qy)),{tokensDictionary:xt}=VP(),MP=class MP extends SY{constructor(){super(xt,{maxLookahead:1,recoveryEnabled:!0,nodeLocationTracking:"full"}),this.deletionRecoveryEnabled=!0;let t=this;t.RULE("document",()=>{t.OPTION(()=>{t.SUBRULE(t.prolog)}),t.MANY(()=>{t.SUBRULE(t.misc)}),t.OPTION2(()=>{t.SUBRULE(t.docTypeDecl)}),t.MANY2(()=>{t.SUBRULE2(t.misc)}),t.SUBRULE(t.element),t.MANY3(()=>{t.SUBRULE3(t.misc)})}),t.RULE("prolog",()=>{t.CONSUME(xt.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(xt.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(xt.DocType),t.CONSUME(xt.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(xt.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:o(()=>t.SUBRULE(t.element),"ALT")},{ALT:o(()=>t.SUBRULE(t.chardata),"ALT")},{ALT:o(()=>t.SUBRULE(t.reference),"ALT")},{ALT:o(()=>t.CONSUME(xt.CData),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(xt.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(xt.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(xt.SLASH_OPEN),t.CONSUME2(xt.Name,{LABEL:"END_NAME"}),t.CONSUME2(xt.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(xt.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(xt.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(xt.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.EQUALS),t.CONSUME(xt.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),this.performSelfAnalysis()}canRecoverWithSingleTokenDeletion(t){return this.deletionRecoveryEnabled===!1?!1:super.canRecoverWithSingleTokenDeletion(t)}findReSyncTokenType(){let t=this.flattenFollowSet(),n=this.LA(1),i=2;for(;;){let r=t.find(a=>AY(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(MP,"Parser");var wP=MP,PY=new wP;lM.exports={xmlParser:PY}});var kP=ze((mde,uM)=>{var{xmlLexer:xY}=VP(),{xmlParser:zy}=fM();uM.exports={parse:o(function(t){let n=xY.tokenize(t);return zy.input=n.tokens,{cst:zy.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:zy.errors}},"parse"),BaseXmlCstVisitor:zy.getBaseCstVisitorConstructor()}});var Qp=ze((Sf,Xp)=>{(function(){var e,t="4.17.21",n=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",a="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",p=1,g=2,m=4,h=1,E=2,b=1,O=2,N=4,M=8,H=16,$=32,re=64,Z=128,oe=256,Ae=512,D=30,ut="...",ht=800,je=16,sn=1,Wn=2,tn=3,Lt=1/0,Ne=9007199254740991,Ci=17976931348623157e292,Ct=NaN,kt=4294967295,cn=kt-1,$i=kt>>>1,Fe=[["ary",Z],["bind",b],["bindKey",O],["curry",M],["curryRight",H],["flip",Ae],["partial",$],["partialRight",re],["rearg",oe]],Kn="[object Arguments]",Lr="[object Array]",ot="[object AsyncFunction]",I="[object Boolean]",A="[object Date]",Y="[object DOMException]",V="[object Error]",_e="[object Function]",Nt="[object GeneratorFunction]",qe="[object Map]",Ut="[object Number]",yn="[object Null]",ln="[object Object]",Ht="[object Promise]",ti="[object Proxy]",sr="[object RegExp]",gn="[object Set]",di="[object String]",Gt="[object Symbol]",ta="[object Undefined]",Bi="[object WeakMap]",Xf="[object WeakSet]",Ys="[object ArrayBuffer]",Nr="[object DataView]",Qf="[object Float32Array]",qf="[object Float64Array]",Yf="[object Int8Array]",zs="[object Int16Array]",U="[object Int32Array]",B="[object Uint8Array]",q="[object Uint8ClampedArray]",le="[object Uint16Array]",Le="[object Uint32Array]",mn=/\b__p \+= '';/g,xn=/\b(__p \+=) '' \+/g,et=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,Pe=RegExp(me.source),Ie=RegExp(Te.source),it=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,fn=/<%=([\s\S]+?)%>/g,cr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$d=/^\w*$/,UT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zf=/[\\^$.*+?()[\]{}|]/g,u2=RegExp(zf.source),jT=/^\s+/,p2=/\s/,d2=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,g2=/\{\n\/\* \[wrapped with (.+)\] \*/,m2=/,? & /,h2=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,y2=/[()=,{}\[\]\/\s]/,T2=/\\(\\)?/g,b2=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,LI=/\w*$/,E2=/^[-+]0x[0-9a-f]+$/i,S2=/^0b[01]+$/i,A2=/^\[object .+?Constructor\]$/,P2=/^0o[0-7]+$/i,x2=/^(?:0|[1-9]\d*)$/,C2=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bd=/($^)/,I2=/['\n\r\u2028\u2029\\]/g,Hd="\\ud800-\\udfff",O2="\\u0300-\\u036f",R2="\\ufe20-\\ufe2f",L2="\\u20d0-\\u20ff",NI=O2+R2+L2,FI="\\u2700-\\u27bf",DI="a-z\\xdf-\\xf6\\xf8-\\xff",N2="\\xac\\xb1\\xd7\\xf7",F2="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",D2="\\u2000-\\u206f",_2=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_I="A-Z\\xc0-\\xd6\\xd8-\\xde",VI="\\ufe0e\\ufe0f",wI=N2+F2+D2+_2,$T="['\u2019]",V2="["+Hd+"]",MI="["+wI+"]",Gd="["+NI+"]",kI="\\d+",w2="["+FI+"]",UI="["+DI+"]",jI="[^"+Hd+wI+kI+FI+DI+_I+"]",BT="\\ud83c[\\udffb-\\udfff]",M2="(?:"+Gd+"|"+BT+")",$I="[^"+Hd+"]",HT="(?:\\ud83c[\\udde6-\\uddff]){2}",GT="[\\ud800-\\udbff][\\udc00-\\udfff]",ol="["+_I+"]",BI="\\u200d",HI="(?:"+UI+"|"+jI+")",k2="(?:"+ol+"|"+jI+")",GI="(?:"+$T+"(?:d|ll|m|re|s|t|ve))?",WI="(?:"+$T+"(?:D|LL|M|RE|S|T|VE))?",KI=M2+"?",XI="["+VI+"]?",U2="(?:"+BI+"(?:"+[$I,HT,GT].join("|")+")"+XI+KI+")*",j2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$2="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",QI=XI+KI+U2,B2="(?:"+[w2,HT,GT].join("|")+")"+QI,H2="(?:"+[$I+Gd+"?",Gd,HT,GT,V2].join("|")+")",G2=RegExp($T,"g"),W2=RegExp(Gd,"g"),WT=RegExp(BT+"(?="+BT+")|"+H2+QI,"g"),K2=RegExp([ol+"?"+UI+"+"+GI+"(?="+[MI,ol,"$"].join("|")+")",k2+"+"+WI+"(?="+[MI,ol+HI,"$"].join("|")+")",ol+"?"+HI+"+"+GI,ol+"+"+WI,$2,j2,kI,B2].join("|"),"g"),X2=RegExp("["+BI+Hd+NI+VI+"]"),Q2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,q2=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Y2=-1,nn={};nn[Qf]=nn[qf]=nn[Yf]=nn[zs]=nn[U]=nn[B]=nn[q]=nn[le]=nn[Le]=!0,nn[Kn]=nn[Lr]=nn[Ys]=nn[I]=nn[Nr]=nn[A]=nn[V]=nn[_e]=nn[qe]=nn[Ut]=nn[ln]=nn[sr]=nn[gn]=nn[di]=nn[Bi]=!1;var Yt={};Yt[Kn]=Yt[Lr]=Yt[Ys]=Yt[Nr]=Yt[I]=Yt[A]=Yt[Qf]=Yt[qf]=Yt[Yf]=Yt[zs]=Yt[U]=Yt[qe]=Yt[Ut]=Yt[ln]=Yt[sr]=Yt[gn]=Yt[di]=Yt[Gt]=Yt[B]=Yt[q]=Yt[le]=Yt[Le]=!0,Yt[V]=Yt[_e]=Yt[Bi]=!1;var z2={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},J2={"&":"&","<":"<",">":">",'"':""","'":"'"},Z2={"&":"&","<":"<",">":">",""":'"',"'":"'"},eU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tU=parseFloat,nU=parseInt,qI=typeof global=="object"&&global&&global.Object===Object&&global,iU=typeof self=="object"&&self&&self.Object===Object&&self,Xn=qI||iU||Function("return this")(),KT=typeof Sf=="object"&&Sf&&!Sf.nodeType&&Sf,Js=KT&&typeof Xp=="object"&&Xp&&!Xp.nodeType&&Xp,YI=Js&&Js.exports===KT,XT=YI&&qI.process,Fr=function(){try{var w=Js&&Js.require&&Js.require("util").types;return w||XT&&XT.binding&&XT.binding("util")}catch{}}(),zI=Fr&&Fr.isArrayBuffer,JI=Fr&&Fr.isDate,ZI=Fr&&Fr.isMap,eO=Fr&&Fr.isRegExp,tO=Fr&&Fr.isSet,nO=Fr&&Fr.isTypedArray;function lr(w,X,K){switch(K.length){case 0:return w.call(X);case 1:return w.call(X,K[0]);case 2:return w.call(X,K[0],K[1]);case 3:return w.call(X,K[0],K[1],K[2])}return w.apply(X,K)}o(lr,"apply");function rU(w,X,K,Ee){for(var We=-1,St=w==null?0:w.length;++We<St;){var jn=w[We];X(Ee,jn,K(jn),w)}return Ee}o(rU,"arrayAggregator");function Dr(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee&&X(w[K],K,w)!==!1;);return w}o(Dr,"arrayEach");function oU(w,X){for(var K=w==null?0:w.length;K--&&X(w[K],K,w)!==!1;);return w}o(oU,"arrayEachRight");function iO(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee;)if(!X(w[K],K,w))return!1;return!0}o(iO,"arrayEvery");function Ga(w,X){for(var K=-1,Ee=w==null?0:w.length,We=0,St=[];++K<Ee;){var jn=w[K];X(jn,K,w)&&(St[We++]=jn)}return St}o(Ga,"arrayFilter");function Wd(w,X){var K=w==null?0:w.length;return!!K&&al(w,X,0)>-1}o(Wd,"arrayIncludes");function QT(w,X,K){for(var Ee=-1,We=w==null?0:w.length;++Ee<We;)if(K(X,w[Ee]))return!0;return!1}o(QT,"arrayIncludesWith");function un(w,X){for(var K=-1,Ee=w==null?0:w.length,We=Array(Ee);++K<Ee;)We[K]=X(w[K],K,w);return We}o(un,"arrayMap");function Wa(w,X){for(var K=-1,Ee=X.length,We=w.length;++K<Ee;)w[We+K]=X[K];return w}o(Wa,"arrayPush");function qT(w,X,K,Ee){var We=-1,St=w==null?0:w.length;for(Ee&&St&&(K=w[++We]);++We<St;)K=X(K,w[We],We,w);return K}o(qT,"arrayReduce");function aU(w,X,K,Ee){var We=w==null?0:w.length;for(Ee&&We&&(K=w[--We]);We--;)K=X(K,w[We],We,w);return K}o(aU,"arrayReduceRight");function YT(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee;)if(X(w[K],K,w))return!0;return!1}o(YT,"arraySome");var sU=zT("length");function cU(w){return w.split("")}o(cU,"asciiToArray");function lU(w){return w.match(h2)||[]}o(lU,"asciiWords");function rO(w,X,K){var Ee;return K(w,function(We,St,jn){if(X(We,St,jn))return Ee=St,!1}),Ee}o(rO,"baseFindKey");function Kd(w,X,K,Ee){for(var We=w.length,St=K+(Ee?1:-1);Ee?St--:++St<We;)if(X(w[St],St,w))return St;return-1}o(Kd,"baseFindIndex");function al(w,X,K){return X===X?EU(w,X,K):Kd(w,oO,K)}o(al,"baseIndexOf");function fU(w,X,K,Ee){for(var We=K-1,St=w.length;++We<St;)if(Ee(w[We],X))return We;return-1}o(fU,"baseIndexOfWith");function oO(w){return w!==w}o(oO,"baseIsNaN");function aO(w,X){var K=w==null?0:w.length;return K?ZT(w,X)/K:Ct}o(aO,"baseMean");function zT(w){return function(X){return X==null?e:X[w]}}o(zT,"baseProperty");function JT(w){return function(X){return w==null?e:w[X]}}o(JT,"basePropertyOf");function sO(w,X,K,Ee,We){return We(w,function(St,jn,Kt){K=Ee?(Ee=!1,St):X(K,St,jn,Kt)}),K}o(sO,"baseReduce");function uU(w,X){var K=w.length;for(w.sort(X);K--;)w[K]=w[K].value;return w}o(uU,"baseSortBy");function ZT(w,X){for(var K,Ee=-1,We=w.length;++Ee<We;){var St=X(w[Ee]);St!==e&&(K=K===e?St:K+St)}return K}o(ZT,"baseSum");function ev(w,X){for(var K=-1,Ee=Array(w);++K<w;)Ee[K]=X(K);return Ee}o(ev,"baseTimes");function pU(w,X){return un(X,function(K){return[K,w[K]]})}o(pU,"baseToPairs");function cO(w){return w&&w.slice(0,pO(w)+1).replace(jT,"")}o(cO,"baseTrim");function fr(w){return function(X){return w(X)}}o(fr,"baseUnary");function tv(w,X){return un(X,function(K){return w[K]})}o(tv,"baseValues");function Jf(w,X){return w.has(X)}o(Jf,"cacheHas");function lO(w,X){for(var K=-1,Ee=w.length;++K<Ee&&al(X,w[K],0)>-1;);return K}o(lO,"charsStartIndex");function fO(w,X){for(var K=w.length;K--&&al(X,w[K],0)>-1;);return K}o(fO,"charsEndIndex");function dU(w,X){for(var K=w.length,Ee=0;K--;)w[K]===X&&++Ee;return Ee}o(dU,"countHolders");var gU=JT(z2),mU=JT(J2);function hU(w){return"\\"+eU[w]}o(hU,"escapeStringChar");function yU(w,X){return w==null?e:w[X]}o(yU,"getValue");function sl(w){return X2.test(w)}o(sl,"hasUnicode");function TU(w){return Q2.test(w)}o(TU,"hasUnicodeWord");function vU(w){for(var X,K=[];!(X=w.next()).done;)K.push(X.value);return K}o(vU,"iteratorToArray");function nv(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee,We){K[++X]=[We,Ee]}),K}o(nv,"mapToArray");function uO(w,X){return function(K){return w(X(K))}}o(uO,"overArg");function Ka(w,X){for(var K=-1,Ee=w.length,We=0,St=[];++K<Ee;){var jn=w[K];(jn===X||jn===u)&&(w[K]=u,St[We++]=K)}return St}o(Ka,"replaceHolders");function Xd(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee){K[++X]=Ee}),K}o(Xd,"setToArray");function bU(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee){K[++X]=[Ee,Ee]}),K}o(bU,"setToPairs");function EU(w,X,K){for(var Ee=K-1,We=w.length;++Ee<We;)if(w[Ee]===X)return Ee;return-1}o(EU,"strictIndexOf");function SU(w,X,K){for(var Ee=K+1;Ee--;)if(w[Ee]===X)return Ee;return Ee}o(SU,"strictLastIndexOf");function cl(w){return sl(w)?PU(w):sU(w)}o(cl,"stringSize");function ro(w){return sl(w)?xU(w):cU(w)}o(ro,"stringToArray");function pO(w){for(var X=w.length;X--&&p2.test(w.charAt(X)););return X}o(pO,"trimmedEndIndex");var AU=JT(Z2);function PU(w){for(var X=WT.lastIndex=0;WT.test(w);)++X;return X}o(PU,"unicodeSize");function xU(w){return w.match(WT)||[]}o(xU,"unicodeToArray");function CU(w){return w.match(K2)||[]}o(CU,"unicodeWords");var IU=o(function w(X){X=X==null?Xn:Xa.defaults(Xn.Object(),X,Xa.pick(Xn,q2));var K=X.Array,Ee=X.Date,We=X.Error,St=X.Function,jn=X.Math,Kt=X.Object,iv=X.RegExp,OU=X.String,_r=X.TypeError,Qd=K.prototype,RU=St.prototype,ll=Kt.prototype,qd=X["__core-js_shared__"],Yd=RU.toString,Ft=ll.hasOwnProperty,LU=0,dO=function(){var c=/[^.]+$/.exec(qd&&qd.keys&&qd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),zd=ll.toString,NU=Yd.call(Kt),FU=Xn._,DU=iv("^"+Yd.call(Ft).replace(zf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jd=YI?X.Buffer:e,Qa=X.Symbol,Zd=X.Uint8Array,gO=Jd?Jd.allocUnsafe:e,eg=uO(Kt.getPrototypeOf,Kt),mO=Kt.create,hO=ll.propertyIsEnumerable,tg=Qd.splice,yO=Qa?Qa.isConcatSpreadable:e,Zf=Qa?Qa.iterator:e,Zs=Qa?Qa.toStringTag:e,ng=function(){try{var c=rc(Kt,"defineProperty");return c({},"",{}),c}catch{}}(),_U=X.clearTimeout!==Xn.clearTimeout&&X.clearTimeout,VU=Ee&&Ee.now!==Xn.Date.now&&Ee.now,wU=X.setTimeout!==Xn.setTimeout&&X.setTimeout,ig=jn.ceil,rg=jn.floor,rv=Kt.getOwnPropertySymbols,MU=Jd?Jd.isBuffer:e,TO=X.isFinite,kU=Qd.join,UU=uO(Kt.keys,Kt),$n=jn.max,gi=jn.min,jU=Ee.now,$U=X.parseInt,vO=jn.random,BU=Qd.reverse,ov=rc(X,"DataView"),eu=rc(X,"Map"),av=rc(X,"Promise"),fl=rc(X,"Set"),tu=rc(X,"WeakMap"),nu=rc(Kt,"create"),og=tu&&new tu,ul={},HU=oc(ov),GU=oc(eu),WU=oc(av),KU=oc(fl),XU=oc(tu),ag=Qa?Qa.prototype:e,iu=ag?ag.valueOf:e,bO=ag?ag.toString:e;function P(c){if(Tn(c)&&!Qe(c)&&!(c instanceof pt)){if(c instanceof Vr)return c;if(Ft.call(c,"__wrapped__"))return ER(c)}return new Vr(c)}o(P,"lodash");var pl=function(){function c(){}return o(c,"object"),function(f){if(!hn(f))return{};if(mO)return mO(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function sg(){}o(sg,"baseLodash");function Vr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Vr,"LodashWrapper"),P.templateSettings={escape:it,evaluate:Wt,interpolate:fn,variable:"",imports:{_:P}},P.prototype=sg.prototype,P.prototype.constructor=P,Vr.prototype=pl(sg.prototype),Vr.prototype.constructor=Vr;function pt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=kt,this.__views__=[]}o(pt,"LazyWrapper");function QU(){var c=new pt(this.__wrapped__);return c.__actions__=Hi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Hi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Hi(this.__views__),c}o(QU,"lazyClone");function qU(){if(this.__filtered__){var c=new pt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(qU,"lazyReverse");function YU(){var c=this.__wrapped__.value(),f=this.__dir__,d=Qe(c),T=f<0,S=d?c.length:0,C=c$(0,S,this.__views__),L=C.start,F=C.end,k=F-L,z=T?F:L-1,J=this.__iteratees__,ne=J.length,ge=0,Oe=gi(k,this.__takeCount__);if(!d||!T&&S==k&&Oe==k)return GO(c,this.__actions__);var Me=[];e:for(;k--&&ge<Oe;){z+=f;for(var Ze=-1,ke=c[z];++Ze<ne;){var at=J[Ze],dt=at.iteratee,dr=at.type,Ri=dt(ke);if(dr==Wn)ke=Ri;else if(!Ri){if(dr==sn)continue e;break e}}Me[ge++]=ke}return Me}o(YU,"lazyValue"),pt.prototype=pl(sg.prototype),pt.prototype.constructor=pt;function ec(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(ec,"Hash");function zU(){this.__data__=nu?nu(null):{},this.size=0}o(zU,"hashClear");function JU(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(JU,"hashDelete");function ZU(c){var f=this.__data__;if(nu){var d=f[c];return d===s?e:d}return Ft.call(f,c)?f[c]:e}o(ZU,"hashGet");function ej(c){var f=this.__data__;return nu?f[c]!==e:Ft.call(f,c)}o(ej,"hashHas");function tj(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=nu&&f===e?s:f,this}o(tj,"hashSet"),ec.prototype.clear=zU,ec.prototype.delete=JU,ec.prototype.get=ZU,ec.prototype.has=ej,ec.prototype.set=tj;function na(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(na,"ListCache");function nj(){this.__data__=[],this.size=0}o(nj,"listCacheClear");function ij(c){var f=this.__data__,d=cg(f,c);if(d<0)return!1;var T=f.length-1;return d==T?f.pop():tg.call(f,d,1),--this.size,!0}o(ij,"listCacheDelete");function rj(c){var f=this.__data__,d=cg(f,c);return d<0?e:f[d][1]}o(rj,"listCacheGet");function oj(c){return cg(this.__data__,c)>-1}o(oj,"listCacheHas");function aj(c,f){var d=this.__data__,T=cg(d,c);return T<0?(++this.size,d.push([c,f])):d[T][1]=f,this}o(aj,"listCacheSet"),na.prototype.clear=nj,na.prototype.delete=ij,na.prototype.get=rj,na.prototype.has=oj,na.prototype.set=aj;function ia(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(ia,"MapCache");function sj(){this.size=0,this.__data__={hash:new ec,map:new(eu||na),string:new ec}}o(sj,"mapCacheClear");function cj(c){var f=bg(this,c).delete(c);return this.size-=f?1:0,f}o(cj,"mapCacheDelete");function lj(c){return bg(this,c).get(c)}o(lj,"mapCacheGet");function fj(c){return bg(this,c).has(c)}o(fj,"mapCacheHas");function uj(c,f){var d=bg(this,c),T=d.size;return d.set(c,f),this.size+=d.size==T?0:1,this}o(uj,"mapCacheSet"),ia.prototype.clear=sj,ia.prototype.delete=cj,ia.prototype.get=lj,ia.prototype.has=fj,ia.prototype.set=uj;function tc(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new ia;++f<d;)this.add(c[f])}o(tc,"SetCache");function pj(c){return this.__data__.set(c,s),this}o(pj,"setCacheAdd");function dj(c){return this.__data__.has(c)}o(dj,"setCacheHas"),tc.prototype.add=tc.prototype.push=pj,tc.prototype.has=dj;function oo(c){var f=this.__data__=new na(c);this.size=f.size}o(oo,"Stack");function gj(){this.__data__=new na,this.size=0}o(gj,"stackClear");function mj(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(mj,"stackDelete");function hj(c){return this.__data__.get(c)}o(hj,"stackGet");function yj(c){return this.__data__.has(c)}o(yj,"stackHas");function Tj(c,f){var d=this.__data__;if(d instanceof na){var T=d.__data__;if(!eu||T.length<n-1)return T.push([c,f]),this.size=++d.size,this;d=this.__data__=new ia(T)}return d.set(c,f),this.size=d.size,this}o(Tj,"stackSet"),oo.prototype.clear=gj,oo.prototype.delete=mj,oo.prototype.get=hj,oo.prototype.has=yj,oo.prototype.set=Tj;function EO(c,f){var d=Qe(c),T=!d&&ac(c),S=!d&&!T&&Za(c),C=!d&&!T&&!S&&hl(c),L=d||T||S||C,F=L?ev(c.length,OU):[],k=F.length;for(var z in c)(f||Ft.call(c,z))&&!(L&&(z=="length"||S&&(z=="offset"||z=="parent")||C&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||sa(z,k)))&&F.push(z);return F}o(EO,"arrayLikeKeys");function SO(c){var f=c.length;return f?c[yv(0,f-1)]:e}o(SO,"arraySample");function vj(c,f){return Eg(Hi(c),nc(f,0,c.length))}o(vj,"arraySampleSize");function bj(c){return Eg(Hi(c))}o(bj,"arrayShuffle");function sv(c,f,d){(d!==e&&!ao(c[f],d)||d===e&&!(f in c))&&ra(c,f,d)}o(sv,"assignMergeValue");function ru(c,f,d){var T=c[f];(!(Ft.call(c,f)&&ao(T,d))||d===e&&!(f in c))&&ra(c,f,d)}o(ru,"assignValue");function cg(c,f){for(var d=c.length;d--;)if(ao(c[d][0],f))return d;return-1}o(cg,"assocIndexOf");function Ej(c,f,d,T){return qa(c,function(S,C,L){f(T,S,d(S),L)}),T}o(Ej,"baseAggregator");function AO(c,f){return c&&Lo(f,Qn(f),c)}o(AO,"baseAssign");function Sj(c,f){return c&&Lo(f,Wi(f),c)}o(Sj,"baseAssignIn");function ra(c,f,d){f=="__proto__"&&ng?ng(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(ra,"baseAssignValue");function cv(c,f){for(var d=-1,T=f.length,S=K(T),C=c==null;++d<T;)S[d]=C?e:Bv(c,f[d]);return S}o(cv,"baseAt");function nc(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(nc,"baseClamp");function wr(c,f,d,T,S,C){var L,F=f&p,k=f&g,z=f&m;if(d&&(L=S?d(c,T,S,C):d(c)),L!==e)return L;if(!hn(c))return c;var J=Qe(c);if(J){if(L=f$(c),!F)return Hi(c,L)}else{var ne=mi(c),ge=ne==_e||ne==Nt;if(Za(c))return XO(c,F);if(ne==ln||ne==Kn||ge&&!S){if(L=k||ge?{}:pR(c),!F)return k?Zj(c,Sj(L,c)):Jj(c,AO(L,c))}else{if(!Yt[ne])return S?c:{};L=u$(c,ne,F)}}C||(C=new oo);var Oe=C.get(c);if(Oe)return Oe;C.set(c,L),$R(c)?c.forEach(function(ke){L.add(wr(ke,f,d,ke,c,C))}):UR(c)&&c.forEach(function(ke,at){L.set(at,wr(ke,f,d,at,c,C))});var Me=z?k?Ov:Iv:k?Wi:Qn,Ze=J?e:Me(c);return Dr(Ze||c,function(ke,at){Ze&&(at=ke,ke=c[at]),ru(L,at,wr(ke,f,d,at,c,C))}),L}o(wr,"baseClone");function Aj(c){var f=Qn(c);return function(d){return PO(d,c,f)}}o(Aj,"baseConforms");function PO(c,f,d){var T=d.length;if(c==null)return!T;for(c=Kt(c);T--;){var S=d[T],C=f[S],L=c[S];if(L===e&&!(S in c)||!C(L))return!1}return!0}o(PO,"baseConformsTo");function xO(c,f,d){if(typeof c!="function")throw new _r(r);return uu(function(){c.apply(e,d)},f)}o(xO,"baseDelay");function ou(c,f,d,T){var S=-1,C=Wd,L=!0,F=c.length,k=[],z=f.length;if(!F)return k;d&&(f=un(f,fr(d))),T?(C=QT,L=!1):f.length>=n&&(C=Jf,L=!1,f=new tc(f));e:for(;++S<F;){var J=c[S],ne=d==null?J:d(J);if(J=T||J!==0?J:0,L&&ne===ne){for(var ge=z;ge--;)if(f[ge]===ne)continue e;k.push(J)}else C(f,ne,T)||k.push(J)}return k}o(ou,"baseDifference");var qa=JO(Ro),CO=JO(fv,!0);function Pj(c,f){var d=!0;return qa(c,function(T,S,C){return d=!!f(T,S,C),d}),d}o(Pj,"baseEvery");function lg(c,f,d){for(var T=-1,S=c.length;++T<S;){var C=c[T],L=f(C);if(L!=null&&(F===e?L===L&&!pr(L):d(L,F)))var F=L,k=C}return k}o(lg,"baseExtremum");function xj(c,f,d,T){var S=c.length;for(d=Je(d),d<0&&(d=-d>S?0:S+d),T=T===e||T>S?S:Je(T),T<0&&(T+=S),T=d>T?0:HR(T);d<T;)c[d++]=f;return c}o(xj,"baseFill");function IO(c,f){var d=[];return qa(c,function(T,S,C){f(T,S,C)&&d.push(T)}),d}o(IO,"baseFilter");function ni(c,f,d,T,S){var C=-1,L=c.length;for(d||(d=d$),S||(S=[]);++C<L;){var F=c[C];f>0&&d(F)?f>1?ni(F,f-1,d,T,S):Wa(S,F):T||(S[S.length]=F)}return S}o(ni,"baseFlatten");var lv=ZO(),OO=ZO(!0);function Ro(c,f){return c&&lv(c,f,Qn)}o(Ro,"baseForOwn");function fv(c,f){return c&&OO(c,f,Qn)}o(fv,"baseForOwnRight");function fg(c,f){return Ga(f,function(d){return ca(c[d])})}o(fg,"baseFunctions");function ic(c,f){f=za(f,c);for(var d=0,T=f.length;c!=null&&d<T;)c=c[No(f[d++])];return d&&d==T?c:e}o(ic,"baseGet");function RO(c,f,d){var T=f(c);return Qe(c)?T:Wa(T,d(c))}o(RO,"baseGetAllKeys");function Ii(c){return c==null?c===e?ta:yn:Zs&&Zs in Kt(c)?s$(c):b$(c)}o(Ii,"baseGetTag");function uv(c,f){return c>f}o(uv,"baseGt");function Cj(c,f){return c!=null&&Ft.call(c,f)}o(Cj,"baseHas");function Ij(c,f){return c!=null&&f in Kt(c)}o(Ij,"baseHasIn");function Oj(c,f,d){return c>=gi(f,d)&&c<$n(f,d)}o(Oj,"baseInRange");function pv(c,f,d){for(var T=d?QT:Wd,S=c[0].length,C=c.length,L=C,F=K(C),k=1/0,z=[];L--;){var J=c[L];L&&f&&(J=un(J,fr(f))),k=gi(J.length,k),F[L]=!d&&(f||S>=120&&J.length>=120)?new tc(L&&J):e}J=c[0];var ne=-1,ge=F[0];e:for(;++ne<S&&z.length<k;){var Oe=J[ne],Me=f?f(Oe):Oe;if(Oe=d||Oe!==0?Oe:0,!(ge?Jf(ge,Me):T(z,Me,d))){for(L=C;--L;){var Ze=F[L];if(!(Ze?Jf(Ze,Me):T(c[L],Me,d)))continue e}ge&&ge.push(Me),z.push(Oe)}}return z}o(pv,"baseIntersection");function Rj(c,f,d,T){return Ro(c,function(S,C,L){f(T,d(S),C,L)}),T}o(Rj,"baseInverter");function au(c,f,d){f=za(f,c),c=hR(c,f);var T=c==null?c:c[No(kr(f))];return T==null?e:lr(T,c,d)}o(au,"baseInvoke");function LO(c){return Tn(c)&&Ii(c)==Kn}o(LO,"baseIsArguments");function Lj(c){return Tn(c)&&Ii(c)==Ys}o(Lj,"baseIsArrayBuffer");function Nj(c){return Tn(c)&&Ii(c)==A}o(Nj,"baseIsDate");function su(c,f,d,T,S){return c===f?!0:c==null||f==null||!Tn(c)&&!Tn(f)?c!==c&&f!==f:Fj(c,f,d,T,su,S)}o(su,"baseIsEqual");function Fj(c,f,d,T,S,C){var L=Qe(c),F=Qe(f),k=L?Lr:mi(c),z=F?Lr:mi(f);k=k==Kn?ln:k,z=z==Kn?ln:z;var J=k==ln,ne=z==ln,ge=k==z;if(ge&&Za(c)){if(!Za(f))return!1;L=!0,J=!1}if(ge&&!J)return C||(C=new oo),L||hl(c)?lR(c,f,d,T,S,C):o$(c,f,k,d,T,S,C);if(!(d&h)){var Oe=J&&Ft.call(c,"__wrapped__"),Me=ne&&Ft.call(f,"__wrapped__");if(Oe||Me){var Ze=Oe?c.value():c,ke=Me?f.value():f;return C||(C=new oo),S(Ze,ke,d,T,C)}}return ge?(C||(C=new oo),a$(c,f,d,T,S,C)):!1}o(Fj,"baseIsEqualDeep");function Dj(c){return Tn(c)&&mi(c)==qe}o(Dj,"baseIsMap");function dv(c,f,d,T){var S=d.length,C=S,L=!T;if(c==null)return!C;for(c=Kt(c);S--;){var F=d[S];if(L&&F[2]?F[1]!==c[F[0]]:!(F[0]in c))return!1}for(;++S<C;){F=d[S];var k=F[0],z=c[k],J=F[1];if(L&&F[2]){if(z===e&&!(k in c))return!1}else{var ne=new oo;if(T)var ge=T(z,J,k,c,f,ne);if(!(ge===e?su(J,z,h|E,T,ne):ge))return!1}}return!0}o(dv,"baseIsMatch");function NO(c){if(!hn(c)||m$(c))return!1;var f=ca(c)?DU:A2;return f.test(oc(c))}o(NO,"baseIsNative");function _j(c){return Tn(c)&&Ii(c)==sr}o(_j,"baseIsRegExp");function Vj(c){return Tn(c)&&mi(c)==gn}o(Vj,"baseIsSet");function wj(c){return Tn(c)&&Ig(c.length)&&!!nn[Ii(c)]}o(wj,"baseIsTypedArray");function FO(c){return typeof c=="function"?c:c==null?Ki:typeof c=="object"?Qe(c)?VO(c[0],c[1]):_O(c):eL(c)}o(FO,"baseIteratee");function gv(c){if(!fu(c))return UU(c);var f=[];for(var d in Kt(c))Ft.call(c,d)&&d!="constructor"&&f.push(d);return f}o(gv,"baseKeys");function Mj(c){if(!hn(c))return v$(c);var f=fu(c),d=[];for(var T in c)T=="constructor"&&(f||!Ft.call(c,T))||d.push(T);return d}o(Mj,"baseKeysIn");function mv(c,f){return c<f}o(mv,"baseLt");function DO(c,f){var d=-1,T=Gi(c)?K(c.length):[];return qa(c,function(S,C,L){T[++d]=f(S,C,L)}),T}o(DO,"baseMap");function _O(c){var f=Lv(c);return f.length==1&&f[0][2]?gR(f[0][0],f[0][1]):function(d){return d===c||dv(d,c,f)}}o(_O,"baseMatches");function VO(c,f){return Fv(c)&&dR(f)?gR(No(c),f):function(d){var T=Bv(d,c);return T===e&&T===f?Hv(d,c):su(f,T,h|E)}}o(VO,"baseMatchesProperty");function ug(c,f,d,T,S){c!==f&&lv(f,function(C,L){if(S||(S=new oo),hn(C))kj(c,f,L,d,ug,T,S);else{var F=T?T(_v(c,L),C,L+"",c,f,S):e;F===e&&(F=C),sv(c,L,F)}},Wi)}o(ug,"baseMerge");function kj(c,f,d,T,S,C,L){var F=_v(c,d),k=_v(f,d),z=L.get(k);if(z){sv(c,d,z);return}var J=C?C(F,k,d+"",c,f,L):e,ne=J===e;if(ne){var ge=Qe(k),Oe=!ge&&Za(k),Me=!ge&&!Oe&&hl(k);J=k,ge||Oe||Me?Qe(F)?J=F:Cn(F)?J=Hi(F):Oe?(ne=!1,J=XO(k,!0)):Me?(ne=!1,J=QO(k,!0)):J=[]:pu(k)||ac(k)?(J=F,ac(F)?J=GR(F):(!hn(F)||ca(F))&&(J=pR(k))):ne=!1}ne&&(L.set(k,J),S(J,k,T,C,L),L.delete(k)),sv(c,d,J)}o(kj,"baseMergeDeep");function wO(c,f){var d=c.length;if(d)return f+=f<0?d:0,sa(f,d)?c[f]:e}o(wO,"baseNth");function MO(c,f,d){f.length?f=un(f,function(C){return Qe(C)?function(L){return ic(L,C.length===1?C[0]:C)}:C}):f=[Ki];var T=-1;f=un(f,fr(Ve()));var S=DO(c,function(C,L,F){var k=un(f,function(z){return z(C)});return{criteria:k,index:++T,value:C}});return uU(S,function(C,L){return zj(C,L,d)})}o(MO,"baseOrderBy");function Uj(c,f){return kO(c,f,function(d,T){return Hv(c,T)})}o(Uj,"basePick");function kO(c,f,d){for(var T=-1,S=f.length,C={};++T<S;){var L=f[T],F=ic(c,L);d(F,L)&&cu(C,za(L,c),F)}return C}o(kO,"basePickBy");function jj(c){return function(f){return ic(f,c)}}o(jj,"basePropertyDeep");function hv(c,f,d,T){var S=T?fU:al,C=-1,L=f.length,F=c;for(c===f&&(f=Hi(f)),d&&(F=un(c,fr(d)));++C<L;)for(var k=0,z=f[C],J=d?d(z):z;(k=S(F,J,k,T))>-1;)F!==c&&tg.call(F,k,1),tg.call(c,k,1);return c}o(hv,"basePullAll");function UO(c,f){for(var d=c?f.length:0,T=d-1;d--;){var S=f[d];if(d==T||S!==C){var C=S;sa(S)?tg.call(c,S,1):bv(c,S)}}return c}o(UO,"basePullAt");function yv(c,f){return c+rg(vO()*(f-c+1))}o(yv,"baseRandom");function $j(c,f,d,T){for(var S=-1,C=$n(ig((f-c)/(d||1)),0),L=K(C);C--;)L[T?C:++S]=c,c+=d;return L}o($j,"baseRange");function Tv(c,f){var d="";if(!c||f<1||f>Ne)return d;do f%2&&(d+=c),f=rg(f/2),f&&(c+=c);while(f);return d}o(Tv,"baseRepeat");function tt(c,f){return Vv(mR(c,f,Ki),c+"")}o(tt,"baseRest");function Bj(c){return SO(yl(c))}o(Bj,"baseSample");function Hj(c,f){var d=yl(c);return Eg(d,nc(f,0,d.length))}o(Hj,"baseSampleSize");function cu(c,f,d,T){if(!hn(c))return c;f=za(f,c);for(var S=-1,C=f.length,L=C-1,F=c;F!=null&&++S<C;){var k=No(f[S]),z=d;if(k==="__proto__"||k==="constructor"||k==="prototype")return c;if(S!=L){var J=F[k];z=T?T(J,k,F):e,z===e&&(z=hn(J)?J:sa(f[S+1])?[]:{})}ru(F,k,z),F=F[k]}return c}o(cu,"baseSet");var jO=og?function(c,f){return og.set(c,f),c}:Ki,Gj=ng?function(c,f){return ng(c,"toString",{configurable:!0,enumerable:!1,value:Wv(f),writable:!0})}:Ki;function Wj(c){return Eg(yl(c))}o(Wj,"baseShuffle");function Mr(c,f,d){var T=-1,S=c.length;f<0&&(f=-f>S?0:S+f),d=d>S?S:d,d<0&&(d+=S),S=f>d?0:d-f>>>0,f>>>=0;for(var C=K(S);++T<S;)C[T]=c[T+f];return C}o(Mr,"baseSlice");function Kj(c,f){var d;return qa(c,function(T,S,C){return d=f(T,S,C),!d}),!!d}o(Kj,"baseSome");function pg(c,f,d){var T=0,S=c==null?T:c.length;if(typeof f=="number"&&f===f&&S<=$i){for(;T<S;){var C=T+S>>>1,L=c[C];L!==null&&!pr(L)&&(d?L<=f:L<f)?T=C+1:S=C}return S}return vv(c,f,Ki,d)}o(pg,"baseSortedIndex");function vv(c,f,d,T){var S=0,C=c==null?0:c.length;if(C===0)return 0;f=d(f);for(var L=f!==f,F=f===null,k=pr(f),z=f===e;S<C;){var J=rg((S+C)/2),ne=d(c[J]),ge=ne!==e,Oe=ne===null,Me=ne===ne,Ze=pr(ne);if(L)var ke=T||Me;else z?ke=Me&&(T||ge):F?ke=Me&&ge&&(T||!Oe):k?ke=Me&&ge&&!Oe&&(T||!Ze):Oe||Ze?ke=!1:ke=T?ne<=f:ne<f;ke?S=J+1:C=J}return gi(C,cn)}o(vv,"baseSortedIndexBy");function $O(c,f){for(var d=-1,T=c.length,S=0,C=[];++d<T;){var L=c[d],F=f?f(L):L;if(!d||!ao(F,k)){var k=F;C[S++]=L===0?0:L}}return C}o($O,"baseSortedUniq");function BO(c){return typeof c=="number"?c:pr(c)?Ct:+c}o(BO,"baseToNumber");function ur(c){if(typeof c=="string")return c;if(Qe(c))return un(c,ur)+"";if(pr(c))return bO?bO.call(c):"";var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(ur,"baseToString");function Ya(c,f,d){var T=-1,S=Wd,C=c.length,L=!0,F=[],k=F;if(d)L=!1,S=QT;else if(C>=n){var z=f?null:i$(c);if(z)return Xd(z);L=!1,S=Jf,k=new tc}else k=f?[]:F;e:for(;++T<C;){var J=c[T],ne=f?f(J):J;if(J=d||J!==0?J:0,L&&ne===ne){for(var ge=k.length;ge--;)if(k[ge]===ne)continue e;f&&k.push(ne),F.push(J)}else S(k,ne,d)||(k!==F&&k.push(ne),F.push(J))}return F}o(Ya,"baseUniq");function bv(c,f){return f=za(f,c),c=hR(c,f),c==null||delete c[No(kr(f))]}o(bv,"baseUnset");function HO(c,f,d,T){return cu(c,f,d(ic(c,f)),T)}o(HO,"baseUpdate");function dg(c,f,d,T){for(var S=c.length,C=T?S:-1;(T?C--:++C<S)&&f(c[C],C,c););return d?Mr(c,T?0:C,T?C+1:S):Mr(c,T?C+1:0,T?S:C)}o(dg,"baseWhile");function GO(c,f){var d=c;return d instanceof pt&&(d=d.value()),qT(f,function(T,S){return S.func.apply(S.thisArg,Wa([T],S.args))},d)}o(GO,"baseWrapperValue");function Ev(c,f,d){var T=c.length;if(T<2)return T?Ya(c[0]):[];for(var S=-1,C=K(T);++S<T;)for(var L=c[S],F=-1;++F<T;)F!=S&&(C[S]=ou(C[S]||L,c[F],f,d));return Ya(ni(C,1),f,d)}o(Ev,"baseXor");function WO(c,f,d){for(var T=-1,S=c.length,C=f.length,L={};++T<S;){var F=T<C?f[T]:e;d(L,c[T],F)}return L}o(WO,"baseZipObject");function Sv(c){return Cn(c)?c:[]}o(Sv,"castArrayLikeObject");function Av(c){return typeof c=="function"?c:Ki}o(Av,"castFunction");function za(c,f){return Qe(c)?c:Fv(c,f)?[c]:bR(It(c))}o(za,"castPath");var Xj=tt;function Ja(c,f,d){var T=c.length;return d=d===e?T:d,!f&&d>=T?c:Mr(c,f,d)}o(Ja,"castSlice");var KO=_U||function(c){return Xn.clearTimeout(c)};function XO(c,f){if(f)return c.slice();var d=c.length,T=gO?gO(d):new c.constructor(d);return c.copy(T),T}o(XO,"cloneBuffer");function Pv(c){var f=new c.constructor(c.byteLength);return new Zd(f).set(new Zd(c)),f}o(Pv,"cloneArrayBuffer");function Qj(c,f){var d=f?Pv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(Qj,"cloneDataView");function qj(c){var f=new c.constructor(c.source,LI.exec(c));return f.lastIndex=c.lastIndex,f}o(qj,"cloneRegExp");function Yj(c){return iu?Kt(iu.call(c)):{}}o(Yj,"cloneSymbol");function QO(c,f){var d=f?Pv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(QO,"cloneTypedArray");function qO(c,f){if(c!==f){var d=c!==e,T=c===null,S=c===c,C=pr(c),L=f!==e,F=f===null,k=f===f,z=pr(f);if(!F&&!z&&!C&&c>f||C&&L&&k&&!F&&!z||T&&L&&k||!d&&k||!S)return 1;if(!T&&!C&&!z&&c<f||z&&d&&S&&!T&&!C||F&&d&&S||!L&&S||!k)return-1}return 0}o(qO,"compareAscending");function zj(c,f,d){for(var T=-1,S=c.criteria,C=f.criteria,L=S.length,F=d.length;++T<L;){var k=qO(S[T],C[T]);if(k){if(T>=F)return k;var z=d[T];return k*(z=="desc"?-1:1)}}return c.index-f.index}o(zj,"compareMultiple");function YO(c,f,d,T){for(var S=-1,C=c.length,L=d.length,F=-1,k=f.length,z=$n(C-L,0),J=K(k+z),ne=!T;++F<k;)J[F]=f[F];for(;++S<L;)(ne||S<C)&&(J[d[S]]=c[S]);for(;z--;)J[F++]=c[S++];return J}o(YO,"composeArgs");function zO(c,f,d,T){for(var S=-1,C=c.length,L=-1,F=d.length,k=-1,z=f.length,J=$n(C-F,0),ne=K(J+z),ge=!T;++S<J;)ne[S]=c[S];for(var Oe=S;++k<z;)ne[Oe+k]=f[k];for(;++L<F;)(ge||S<C)&&(ne[Oe+d[L]]=c[S++]);return ne}o(zO,"composeArgsRight");function Hi(c,f){var d=-1,T=c.length;for(f||(f=K(T));++d<T;)f[d]=c[d];return f}o(Hi,"copyArray");function Lo(c,f,d,T){var S=!d;d||(d={});for(var C=-1,L=f.length;++C<L;){var F=f[C],k=T?T(d[F],c[F],F,d,c):e;k===e&&(k=c[F]),S?ra(d,F,k):ru(d,F,k)}return d}o(Lo,"copyObject");function Jj(c,f){return Lo(c,Nv(c),f)}o(Jj,"copySymbols");function Zj(c,f){return Lo(c,fR(c),f)}o(Zj,"copySymbolsIn");function gg(c,f){return function(d,T){var S=Qe(d)?rU:Ej,C=f?f():{};return S(d,c,Ve(T,2),C)}}o(gg,"createAggregator");function dl(c){return tt(function(f,d){var T=-1,S=d.length,C=S>1?d[S-1]:e,L=S>2?d[2]:e;for(C=c.length>3&&typeof C=="function"?(S--,C):e,L&&Oi(d[0],d[1],L)&&(C=S<3?e:C,S=1),f=Kt(f);++T<S;){var F=d[T];F&&c(f,F,T,C)}return f})}o(dl,"createAssigner");function JO(c,f){return function(d,T){if(d==null)return d;if(!Gi(d))return c(d,T);for(var S=d.length,C=f?S:-1,L=Kt(d);(f?C--:++C<S)&&T(L[C],C,L)!==!1;);return d}}o(JO,"createBaseEach");function ZO(c){return function(f,d,T){for(var S=-1,C=Kt(f),L=T(f),F=L.length;F--;){var k=L[c?F:++S];if(d(C[k],k,C)===!1)break}return f}}o(ZO,"createBaseFor");function e$(c,f,d){var T=f&b,S=lu(c);function C(){var L=this&&this!==Xn&&this instanceof C?S:c;return L.apply(T?d:this,arguments)}return o(C,"wrapper"),C}o(e$,"createBind");function eR(c){return function(f){f=It(f);var d=sl(f)?ro(f):e,T=d?d[0]:f.charAt(0),S=d?Ja(d,1).join(""):f.slice(1);return T[c]()+S}}o(eR,"createCaseFirst");function gl(c){return function(f){return qT(JR(zR(f).replace(G2,"")),c,"")}}o(gl,"createCompounder");function lu(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=pl(c.prototype),T=c.apply(d,f);return hn(T)?T:d}}o(lu,"createCtor");function t$(c,f,d){var T=lu(c);function S(){for(var C=arguments.length,L=K(C),F=C,k=ml(S);F--;)L[F]=arguments[F];var z=C<3&&L[0]!==k&&L[C-1]!==k?[]:Ka(L,k);if(C-=z.length,C<d)return oR(c,f,mg,S.placeholder,e,L,z,e,e,d-C);var J=this&&this!==Xn&&this instanceof S?T:c;return lr(J,this,L)}return o(S,"wrapper"),S}o(t$,"createCurry");function tR(c){return function(f,d,T){var S=Kt(f);if(!Gi(f)){var C=Ve(d,3);f=Qn(f),d=o(function(F){return C(S[F],F,S)},"predicate")}var L=c(f,d,T);return L>-1?S[C?f[L]:L]:e}}o(tR,"createFind");function nR(c){return aa(function(f){var d=f.length,T=d,S=Vr.prototype.thru;for(c&&f.reverse();T--;){var C=f[T];if(typeof C!="function")throw new _r(r);if(S&&!L&&vg(C)=="wrapper")var L=new Vr([],!0)}for(T=L?T:d;++T<d;){C=f[T];var F=vg(C),k=F=="wrapper"?Rv(C):e;k&&Dv(k[0])&&k[1]==(Z|M|$|oe)&&!k[4].length&&k[9]==1?L=L[vg(k[0])].apply(L,k[3]):L=C.length==1&&Dv(C)?L[F]():L.thru(C)}return function(){var z=arguments,J=z[0];if(L&&z.length==1&&Qe(J))return L.plant(J).value();for(var ne=0,ge=d?f[ne].apply(this,z):J;++ne<d;)ge=f[ne].call(this,ge);return ge}})}o(nR,"createFlow");function mg(c,f,d,T,S,C,L,F,k,z){var J=f&Z,ne=f&b,ge=f&O,Oe=f&(M|H),Me=f&Ae,Ze=ge?e:lu(c);function ke(){for(var at=arguments.length,dt=K(at),dr=at;dr--;)dt[dr]=arguments[dr];if(Oe)var Ri=ml(ke),gr=dU(dt,Ri);if(T&&(dt=YO(dt,T,S,Oe)),C&&(dt=zO(dt,C,L,Oe)),at-=gr,Oe&&at<z){var In=Ka(dt,Ri);return oR(c,f,mg,ke.placeholder,d,dt,In,F,k,z-at)}var so=ne?d:this,fa=ge?so[c]:c;return at=dt.length,F?dt=E$(dt,F):Me&&at>1&&dt.reverse(),J&&k<at&&(dt.length=k),this&&this!==Xn&&this instanceof ke&&(fa=Ze||lu(fa)),fa.apply(so,dt)}return o(ke,"wrapper"),ke}o(mg,"createHybrid");function iR(c,f){return function(d,T){return Rj(d,c,f(T),{})}}o(iR,"createInverter");function hg(c,f){return function(d,T){var S;if(d===e&&T===e)return f;if(d!==e&&(S=d),T!==e){if(S===e)return T;typeof d=="string"||typeof T=="string"?(d=ur(d),T=ur(T)):(d=BO(d),T=BO(T)),S=c(d,T)}return S}}o(hg,"createMathOperation");function xv(c){return aa(function(f){return f=un(f,fr(Ve())),tt(function(d){var T=this;return c(f,function(S){return lr(S,T,d)})})})}o(xv,"createOver");function yg(c,f){f=f===e?" ":ur(f);var d=f.length;if(d<2)return d?Tv(f,c):f;var T=Tv(f,ig(c/cl(f)));return sl(f)?Ja(ro(T),0,c).join(""):T.slice(0,c)}o(yg,"createPadding");function n$(c,f,d,T){var S=f&b,C=lu(c);function L(){for(var F=-1,k=arguments.length,z=-1,J=T.length,ne=K(J+k),ge=this&&this!==Xn&&this instanceof L?C:c;++z<J;)ne[z]=T[z];for(;k--;)ne[z++]=arguments[++F];return lr(ge,S?d:this,ne)}return o(L,"wrapper"),L}o(n$,"createPartial");function rR(c){return function(f,d,T){return T&&typeof T!="number"&&Oi(f,d,T)&&(d=T=e),f=la(f),d===e?(d=f,f=0):d=la(d),T=T===e?f<d?1:-1:la(T),$j(f,d,T,c)}}o(rR,"createRange");function Tg(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Ur(f),d=Ur(d)),c(f,d)}}o(Tg,"createRelationalOperation");function oR(c,f,d,T,S,C,L,F,k,z){var J=f&M,ne=J?L:e,ge=J?e:L,Oe=J?C:e,Me=J?e:C;f|=J?$:re,f&=~(J?re:$),f&N||(f&=~(b|O));var Ze=[c,f,S,Oe,ne,Me,ge,F,k,z],ke=d.apply(e,Ze);return Dv(c)&&yR(ke,Ze),ke.placeholder=T,TR(ke,c,f)}o(oR,"createRecurry");function Cv(c){var f=jn[c];return function(d,T){if(d=Ur(d),T=T==null?0:gi(Je(T),292),T&&TO(d)){var S=(It(d)+"e").split("e"),C=f(S[0]+"e"+(+S[1]+T));return S=(It(C)+"e").split("e"),+(S[0]+"e"+(+S[1]-T))}return f(d)}}o(Cv,"createRound");var i$=fl&&1/Xd(new fl([,-0]))[1]==Lt?function(c){return new fl(c)}:Qv;function aR(c){return function(f){var d=mi(f);return d==qe?nv(f):d==gn?bU(f):pU(f,c(f))}}o(aR,"createToPairs");function oa(c,f,d,T,S,C,L,F){var k=f&O;if(!k&&typeof c!="function")throw new _r(r);var z=T?T.length:0;if(z||(f&=~($|re),T=S=e),L=L===e?L:$n(Je(L),0),F=F===e?F:Je(F),z-=S?S.length:0,f&re){var J=T,ne=S;T=S=e}var ge=k?e:Rv(c),Oe=[c,f,d,T,S,J,ne,C,L,F];if(ge&&T$(Oe,ge),c=Oe[0],f=Oe[1],d=Oe[2],T=Oe[3],S=Oe[4],F=Oe[9]=Oe[9]===e?k?0:c.length:$n(Oe[9]-z,0),!F&&f&(M|H)&&(f&=~(M|H)),!f||f==b)var Me=e$(c,f,d);else f==M||f==H?Me=t$(c,f,F):(f==$||f==(b|$))&&!S.length?Me=n$(c,f,d,T):Me=mg.apply(e,Oe);var Ze=ge?jO:yR;return TR(Ze(Me,Oe),c,f)}o(oa,"createWrap");function sR(c,f,d,T){return c===e||ao(c,ll[d])&&!Ft.call(T,d)?f:c}o(sR,"customDefaultsAssignIn");function cR(c,f,d,T,S,C){return hn(c)&&hn(f)&&(C.set(f,c),ug(c,f,e,cR,C),C.delete(f)),c}o(cR,"customDefaultsMerge");function r$(c){return pu(c)?e:c}o(r$,"customOmitClone");function lR(c,f,d,T,S,C){var L=d&h,F=c.length,k=f.length;if(F!=k&&!(L&&k>F))return!1;var z=C.get(c),J=C.get(f);if(z&&J)return z==f&&J==c;var ne=-1,ge=!0,Oe=d&E?new tc:e;for(C.set(c,f),C.set(f,c);++ne<F;){var Me=c[ne],Ze=f[ne];if(T)var ke=L?T(Ze,Me,ne,f,c,C):T(Me,Ze,ne,c,f,C);if(ke!==e){if(ke)continue;ge=!1;break}if(Oe){if(!YT(f,function(at,dt){if(!Jf(Oe,dt)&&(Me===at||S(Me,at,d,T,C)))return Oe.push(dt)})){ge=!1;break}}else if(!(Me===Ze||S(Me,Ze,d,T,C))){ge=!1;break}}return C.delete(c),C.delete(f),ge}o(lR,"equalArrays");function o$(c,f,d,T,S,C,L){switch(d){case Nr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Ys:return!(c.byteLength!=f.byteLength||!C(new Zd(c),new Zd(f)));case I:case A:case Ut:return ao(+c,+f);case V:return c.name==f.name&&c.message==f.message;case sr:case di:return c==f+"";case qe:var F=nv;case gn:var k=T&h;if(F||(F=Xd),c.size!=f.size&&!k)return!1;var z=L.get(c);if(z)return z==f;T|=E,L.set(c,f);var J=lR(F(c),F(f),T,S,C,L);return L.delete(c),J;case Gt:if(iu)return iu.call(c)==iu.call(f)}return!1}o(o$,"equalByTag");function a$(c,f,d,T,S,C){var L=d&h,F=Iv(c),k=F.length,z=Iv(f),J=z.length;if(k!=J&&!L)return!1;for(var ne=k;ne--;){var ge=F[ne];if(!(L?ge in f:Ft.call(f,ge)))return!1}var Oe=C.get(c),Me=C.get(f);if(Oe&&Me)return Oe==f&&Me==c;var Ze=!0;C.set(c,f),C.set(f,c);for(var ke=L;++ne<k;){ge=F[ne];var at=c[ge],dt=f[ge];if(T)var dr=L?T(dt,at,ge,f,c,C):T(at,dt,ge,c,f,C);if(!(dr===e?at===dt||S(at,dt,d,T,C):dr)){Ze=!1;break}ke||(ke=ge=="constructor")}if(Ze&&!ke){var Ri=c.constructor,gr=f.constructor;Ri!=gr&&"constructor"in c&&"constructor"in f&&!(typeof Ri=="function"&&Ri instanceof Ri&&typeof gr=="function"&&gr instanceof gr)&&(Ze=!1)}return C.delete(c),C.delete(f),Ze}o(a$,"equalObjects");function aa(c){return Vv(mR(c,e,PR),c+"")}o(aa,"flatRest");function Iv(c){return RO(c,Qn,Nv)}o(Iv,"getAllKeys");function Ov(c){return RO(c,Wi,fR)}o(Ov,"getAllKeysIn");var Rv=og?function(c){return og.get(c)}:Qv;function vg(c){for(var f=c.name+"",d=ul[f],T=Ft.call(ul,f)?d.length:0;T--;){var S=d[T],C=S.func;if(C==null||C==c)return S.name}return f}o(vg,"getFuncName");function ml(c){var f=Ft.call(P,"placeholder")?P:c;return f.placeholder}o(ml,"getHolder");function Ve(){var c=P.iteratee||Kv;return c=c===Kv?FO:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function bg(c,f){var d=c.__data__;return g$(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(bg,"getMapData");function Lv(c){for(var f=Qn(c),d=f.length;d--;){var T=f[d],S=c[T];f[d]=[T,S,dR(S)]}return f}o(Lv,"getMatchData");function rc(c,f){var d=yU(c,f);return NO(d)?d:e}o(rc,"getNative");function s$(c){var f=Ft.call(c,Zs),d=c[Zs];try{c[Zs]=e;var T=!0}catch{}var S=zd.call(c);return T&&(f?c[Zs]=d:delete c[Zs]),S}o(s$,"getRawTag");var Nv=rv?function(c){return c==null?[]:(c=Kt(c),Ga(rv(c),function(f){return hO.call(c,f)}))}:qv,fR=rv?function(c){for(var f=[];c;)Wa(f,Nv(c)),c=eg(c);return f}:qv,mi=Ii;(ov&&mi(new ov(new ArrayBuffer(1)))!=Nr||eu&&mi(new eu)!=qe||av&&mi(av.resolve())!=Ht||fl&&mi(new fl)!=gn||tu&&mi(new tu)!=Bi)&&(mi=o(function(c){var f=Ii(c),d=f==ln?c.constructor:e,T=d?oc(d):"";if(T)switch(T){case HU:return Nr;case GU:return qe;case WU:return Ht;case KU:return gn;case XU:return Bi}return f},"getTag"));function c$(c,f,d){for(var T=-1,S=d.length;++T<S;){var C=d[T],L=C.size;switch(C.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=gi(f,c+L);break;case"takeRight":c=$n(c,f-L);break}}return{start:c,end:f}}o(c$,"getView");function l$(c){var f=c.match(g2);return f?f[1].split(m2):[]}o(l$,"getWrapDetails");function uR(c,f,d){f=za(f,c);for(var T=-1,S=f.length,C=!1;++T<S;){var L=No(f[T]);if(!(C=c!=null&&d(c,L)))break;c=c[L]}return C||++T!=S?C:(S=c==null?0:c.length,!!S&&Ig(S)&&sa(L,S)&&(Qe(c)||ac(c)))}o(uR,"hasPath");function f$(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Ft.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(f$,"initCloneArray");function pR(c){return typeof c.constructor=="function"&&!fu(c)?pl(eg(c)):{}}o(pR,"initCloneObject");function u$(c,f,d){var T=c.constructor;switch(f){case Ys:return Pv(c);case I:case A:return new T(+c);case Nr:return Qj(c,d);case Qf:case qf:case Yf:case zs:case U:case B:case q:case le:case Le:return QO(c,d);case qe:return new T;case Ut:case di:return new T(c);case sr:return qj(c);case gn:return new T;case Gt:return Yj(c)}}o(u$,"initCloneByTag");function p$(c,f){var d=f.length;if(!d)return c;var T=d-1;return f[T]=(d>1?"& ":"")+f[T],f=f.join(d>2?", ":" "),c.replace(d2,`{
|
|
267
|
+
Please avoid using it as it will be completely removed in the future`)}var Zq,Yy=Ye(()=>{nP();xr();Lp();Fs();_p();yf();dP();Mi();Mi();df();PP();Qw();nM();o(Jq,"clearCache");Zq=function(){function e(){throw new Error(`The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.
|
|
268
|
+
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return o(e,"Parser"),e}()});var VP=ze((pde,cM)=>{var{createToken:eY,Lexer:DP}=(Yy(),Ng(qy)),rM={},Ef=rM;function _P(e,t){rM[e]=typeof t=="string"?t:t.source}o(_P,"FRAGMENT");function Kp(e,...t){let n="";for(let i=0;i<e.length;i++)if(n+=e[i],i<t.length){let r=t[i];n+=`(?:${r})`}return new RegExp(n)}o(Kp,"makePattern");var tY=[],oM={};function Pn(e){let t=eY(e);return tY.push(t),oM[e.name]=t,t}o(Pn,"createToken");_P("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");_P("NameChar",Kp`${Ef.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);_P("Name",Kp`${Ef.NameStartChar}(${Ef.NameChar})*`);var iM=Pn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),nY=Pn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),iY=Pn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),rY=Pn({name:"DTD",pattern:/<!.*?>/,group:DP.SKIPPED}),oY=Pn({name:"EntityRef",pattern:Kp`&${Ef.Name};`}),aY=Pn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),sY=Pn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),cY=Pn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),aM=Pn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),lY=Pn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[aM]}),fY=Pn({name:"PROCESSING_INSTRUCTION",pattern:Kp`<\\?${Ef.Name}.*\\?>`}),sM=Pn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),uY=Pn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[sM]}),pY=Pn({name:"TEXT",pattern:/[^<&]+/}),dY=Pn({name:"CLOSE",pattern:/>/,pop_mode:!0}),gY=Pn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),mY=Pn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),hY=Pn({name:"SLASH",pattern:/\//}),yY=Pn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),TY=Pn({name:"EQUALS",pattern:/=/}),vY=Pn({name:"Name",pattern:Kp`${Ef.Name}`}),bY=Pn({name:"S",pattern:/[ \t\r\n]/,group:DP.SKIPPED}),EY={defaultMode:"OUTSIDE",modes:{OUTSIDE:[iM,nY,iY,rY,oY,aY,sY,cY,aM,fY,sM,pY],INSIDE:[iM,lY,uY,dY,gY,mY,hY,TY,yY,vY,bY]}},SY=new DP(EY,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
|
|
269
|
+
`],lineTerminatorsPattern:/\n|\r\n/g});cM.exports={xmlLexer:SY,tokensDictionary:oM}});var fM=ze((gde,lM)=>{var{CstParser:AY,tokenMatcher:PY}=(Yy(),Ng(qy)),{tokensDictionary:xt}=VP(),MP=class MP extends AY{constructor(){super(xt,{maxLookahead:1,recoveryEnabled:!0,nodeLocationTracking:"full"}),this.deletionRecoveryEnabled=!0;let t=this;t.RULE("document",()=>{t.OPTION(()=>{t.SUBRULE(t.prolog)}),t.MANY(()=>{t.SUBRULE(t.misc)}),t.OPTION2(()=>{t.SUBRULE(t.docTypeDecl)}),t.MANY2(()=>{t.SUBRULE2(t.misc)}),t.SUBRULE(t.element),t.MANY3(()=>{t.SUBRULE3(t.misc)})}),t.RULE("prolog",()=>{t.CONSUME(xt.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(xt.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(xt.DocType),t.CONSUME(xt.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(xt.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:o(()=>t.SUBRULE(t.element),"ALT")},{ALT:o(()=>t.SUBRULE(t.chardata),"ALT")},{ALT:o(()=>t.SUBRULE(t.reference),"ALT")},{ALT:o(()=>t.CONSUME(xt.CData),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(xt.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(xt.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(xt.SLASH_OPEN),t.CONSUME2(xt.Name,{LABEL:"END_NAME"}),t.CONSUME2(xt.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(xt.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(xt.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(xt.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.EQUALS),t.CONSUME(xt.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),this.performSelfAnalysis()}canRecoverWithSingleTokenDeletion(t){return this.deletionRecoveryEnabled===!1?!1:super.canRecoverWithSingleTokenDeletion(t)}findReSyncTokenType(){let t=this.flattenFollowSet(),n=this.LA(1),i=2;for(;;){let r=t.find(a=>PY(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(MP,"Parser");var wP=MP,xY=new wP;lM.exports={xmlParser:xY}});var kP=ze((hde,uM)=>{var{xmlLexer:CY}=VP(),{xmlParser:zy}=fM();uM.exports={parse:o(function(t){let n=CY.tokenize(t);return zy.input=n.tokens,{cst:zy.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:zy.errors}},"parse"),BaseXmlCstVisitor:zy.getBaseCstVisitorConstructor()}});var Qp=ze((Sf,Xp)=>{(function(){var e,t="4.17.21",n=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",a="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",p=1,g=2,m=4,h=1,E=2,b=1,O=2,N=4,M=8,H=16,$=32,re=64,Z=128,oe=256,Ae=512,D=30,ut="...",ht=800,je=16,sn=1,Wn=2,tn=3,Lt=1/0,Ne=9007199254740991,Ci=17976931348623157e292,Ct=NaN,kt=4294967295,cn=kt-1,$i=kt>>>1,Fe=[["ary",Z],["bind",b],["bindKey",O],["curry",M],["curryRight",H],["flip",Ae],["partial",$],["partialRight",re],["rearg",oe]],Kn="[object Arguments]",Lr="[object Array]",ot="[object AsyncFunction]",I="[object Boolean]",A="[object Date]",Y="[object DOMException]",V="[object Error]",_e="[object Function]",Nt="[object GeneratorFunction]",qe="[object Map]",Ut="[object Number]",yn="[object Null]",ln="[object Object]",Ht="[object Promise]",ti="[object Proxy]",sr="[object RegExp]",gn="[object Set]",di="[object String]",Gt="[object Symbol]",ta="[object Undefined]",Bi="[object WeakMap]",Xf="[object WeakSet]",Ys="[object ArrayBuffer]",Nr="[object DataView]",Qf="[object Float32Array]",qf="[object Float64Array]",Yf="[object Int8Array]",zs="[object Int16Array]",U="[object Int32Array]",B="[object Uint8Array]",q="[object Uint8ClampedArray]",le="[object Uint16Array]",Le="[object Uint32Array]",mn=/\b__p \+= '';/g,xn=/\b(__p \+=) '' \+/g,et=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,Pe=RegExp(me.source),Ie=RegExp(Te.source),it=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,fn=/<%=([\s\S]+?)%>/g,cr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$d=/^\w*$/,UT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zf=/[\\^$.*+?()[\]{}|]/g,u2=RegExp(zf.source),jT=/^\s+/,p2=/\s/,d2=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,g2=/\{\n\/\* \[wrapped with (.+)\] \*/,m2=/,? & /,h2=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,y2=/[()=,{}\[\]\/\s]/,T2=/\\(\\)?/g,b2=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,LI=/\w*$/,E2=/^[-+]0x[0-9a-f]+$/i,S2=/^0b[01]+$/i,A2=/^\[object .+?Constructor\]$/,P2=/^0o[0-7]+$/i,x2=/^(?:0|[1-9]\d*)$/,C2=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bd=/($^)/,I2=/['\n\r\u2028\u2029\\]/g,Hd="\\ud800-\\udfff",O2="\\u0300-\\u036f",R2="\\ufe20-\\ufe2f",L2="\\u20d0-\\u20ff",NI=O2+R2+L2,FI="\\u2700-\\u27bf",DI="a-z\\xdf-\\xf6\\xf8-\\xff",N2="\\xac\\xb1\\xd7\\xf7",F2="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",D2="\\u2000-\\u206f",_2=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_I="A-Z\\xc0-\\xd6\\xd8-\\xde",VI="\\ufe0e\\ufe0f",wI=N2+F2+D2+_2,$T="['\u2019]",V2="["+Hd+"]",MI="["+wI+"]",Gd="["+NI+"]",kI="\\d+",w2="["+FI+"]",UI="["+DI+"]",jI="[^"+Hd+wI+kI+FI+DI+_I+"]",BT="\\ud83c[\\udffb-\\udfff]",M2="(?:"+Gd+"|"+BT+")",$I="[^"+Hd+"]",HT="(?:\\ud83c[\\udde6-\\uddff]){2}",GT="[\\ud800-\\udbff][\\udc00-\\udfff]",ol="["+_I+"]",BI="\\u200d",HI="(?:"+UI+"|"+jI+")",k2="(?:"+ol+"|"+jI+")",GI="(?:"+$T+"(?:d|ll|m|re|s|t|ve))?",WI="(?:"+$T+"(?:D|LL|M|RE|S|T|VE))?",KI=M2+"?",XI="["+VI+"]?",U2="(?:"+BI+"(?:"+[$I,HT,GT].join("|")+")"+XI+KI+")*",j2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$2="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",QI=XI+KI+U2,B2="(?:"+[w2,HT,GT].join("|")+")"+QI,H2="(?:"+[$I+Gd+"?",Gd,HT,GT,V2].join("|")+")",G2=RegExp($T,"g"),W2=RegExp(Gd,"g"),WT=RegExp(BT+"(?="+BT+")|"+H2+QI,"g"),K2=RegExp([ol+"?"+UI+"+"+GI+"(?="+[MI,ol,"$"].join("|")+")",k2+"+"+WI+"(?="+[MI,ol+HI,"$"].join("|")+")",ol+"?"+HI+"+"+GI,ol+"+"+WI,$2,j2,kI,B2].join("|"),"g"),X2=RegExp("["+BI+Hd+NI+VI+"]"),Q2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,q2=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Y2=-1,nn={};nn[Qf]=nn[qf]=nn[Yf]=nn[zs]=nn[U]=nn[B]=nn[q]=nn[le]=nn[Le]=!0,nn[Kn]=nn[Lr]=nn[Ys]=nn[I]=nn[Nr]=nn[A]=nn[V]=nn[_e]=nn[qe]=nn[Ut]=nn[ln]=nn[sr]=nn[gn]=nn[di]=nn[Bi]=!1;var Yt={};Yt[Kn]=Yt[Lr]=Yt[Ys]=Yt[Nr]=Yt[I]=Yt[A]=Yt[Qf]=Yt[qf]=Yt[Yf]=Yt[zs]=Yt[U]=Yt[qe]=Yt[Ut]=Yt[ln]=Yt[sr]=Yt[gn]=Yt[di]=Yt[Gt]=Yt[B]=Yt[q]=Yt[le]=Yt[Le]=!0,Yt[V]=Yt[_e]=Yt[Bi]=!1;var z2={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},J2={"&":"&","<":"<",">":">",'"':""","'":"'"},Z2={"&":"&","<":"<",">":">",""":'"',"'":"'"},eU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tU=parseFloat,nU=parseInt,qI=typeof global=="object"&&global&&global.Object===Object&&global,iU=typeof self=="object"&&self&&self.Object===Object&&self,Xn=qI||iU||Function("return this")(),KT=typeof Sf=="object"&&Sf&&!Sf.nodeType&&Sf,Js=KT&&typeof Xp=="object"&&Xp&&!Xp.nodeType&&Xp,YI=Js&&Js.exports===KT,XT=YI&&qI.process,Fr=function(){try{var w=Js&&Js.require&&Js.require("util").types;return w||XT&&XT.binding&&XT.binding("util")}catch{}}(),zI=Fr&&Fr.isArrayBuffer,JI=Fr&&Fr.isDate,ZI=Fr&&Fr.isMap,eO=Fr&&Fr.isRegExp,tO=Fr&&Fr.isSet,nO=Fr&&Fr.isTypedArray;function lr(w,X,K){switch(K.length){case 0:return w.call(X);case 1:return w.call(X,K[0]);case 2:return w.call(X,K[0],K[1]);case 3:return w.call(X,K[0],K[1],K[2])}return w.apply(X,K)}o(lr,"apply");function rU(w,X,K,Ee){for(var We=-1,St=w==null?0:w.length;++We<St;){var jn=w[We];X(Ee,jn,K(jn),w)}return Ee}o(rU,"arrayAggregator");function Dr(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee&&X(w[K],K,w)!==!1;);return w}o(Dr,"arrayEach");function oU(w,X){for(var K=w==null?0:w.length;K--&&X(w[K],K,w)!==!1;);return w}o(oU,"arrayEachRight");function iO(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee;)if(!X(w[K],K,w))return!1;return!0}o(iO,"arrayEvery");function Ga(w,X){for(var K=-1,Ee=w==null?0:w.length,We=0,St=[];++K<Ee;){var jn=w[K];X(jn,K,w)&&(St[We++]=jn)}return St}o(Ga,"arrayFilter");function Wd(w,X){var K=w==null?0:w.length;return!!K&&al(w,X,0)>-1}o(Wd,"arrayIncludes");function QT(w,X,K){for(var Ee=-1,We=w==null?0:w.length;++Ee<We;)if(K(X,w[Ee]))return!0;return!1}o(QT,"arrayIncludesWith");function un(w,X){for(var K=-1,Ee=w==null?0:w.length,We=Array(Ee);++K<Ee;)We[K]=X(w[K],K,w);return We}o(un,"arrayMap");function Wa(w,X){for(var K=-1,Ee=X.length,We=w.length;++K<Ee;)w[We+K]=X[K];return w}o(Wa,"arrayPush");function qT(w,X,K,Ee){var We=-1,St=w==null?0:w.length;for(Ee&&St&&(K=w[++We]);++We<St;)K=X(K,w[We],We,w);return K}o(qT,"arrayReduce");function aU(w,X,K,Ee){var We=w==null?0:w.length;for(Ee&&We&&(K=w[--We]);We--;)K=X(K,w[We],We,w);return K}o(aU,"arrayReduceRight");function YT(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee;)if(X(w[K],K,w))return!0;return!1}o(YT,"arraySome");var sU=zT("length");function cU(w){return w.split("")}o(cU,"asciiToArray");function lU(w){return w.match(h2)||[]}o(lU,"asciiWords");function rO(w,X,K){var Ee;return K(w,function(We,St,jn){if(X(We,St,jn))return Ee=St,!1}),Ee}o(rO,"baseFindKey");function Kd(w,X,K,Ee){for(var We=w.length,St=K+(Ee?1:-1);Ee?St--:++St<We;)if(X(w[St],St,w))return St;return-1}o(Kd,"baseFindIndex");function al(w,X,K){return X===X?EU(w,X,K):Kd(w,oO,K)}o(al,"baseIndexOf");function fU(w,X,K,Ee){for(var We=K-1,St=w.length;++We<St;)if(Ee(w[We],X))return We;return-1}o(fU,"baseIndexOfWith");function oO(w){return w!==w}o(oO,"baseIsNaN");function aO(w,X){var K=w==null?0:w.length;return K?ZT(w,X)/K:Ct}o(aO,"baseMean");function zT(w){return function(X){return X==null?e:X[w]}}o(zT,"baseProperty");function JT(w){return function(X){return w==null?e:w[X]}}o(JT,"basePropertyOf");function sO(w,X,K,Ee,We){return We(w,function(St,jn,Kt){K=Ee?(Ee=!1,St):X(K,St,jn,Kt)}),K}o(sO,"baseReduce");function uU(w,X){var K=w.length;for(w.sort(X);K--;)w[K]=w[K].value;return w}o(uU,"baseSortBy");function ZT(w,X){for(var K,Ee=-1,We=w.length;++Ee<We;){var St=X(w[Ee]);St!==e&&(K=K===e?St:K+St)}return K}o(ZT,"baseSum");function ev(w,X){for(var K=-1,Ee=Array(w);++K<w;)Ee[K]=X(K);return Ee}o(ev,"baseTimes");function pU(w,X){return un(X,function(K){return[K,w[K]]})}o(pU,"baseToPairs");function cO(w){return w&&w.slice(0,pO(w)+1).replace(jT,"")}o(cO,"baseTrim");function fr(w){return function(X){return w(X)}}o(fr,"baseUnary");function tv(w,X){return un(X,function(K){return w[K]})}o(tv,"baseValues");function Jf(w,X){return w.has(X)}o(Jf,"cacheHas");function lO(w,X){for(var K=-1,Ee=w.length;++K<Ee&&al(X,w[K],0)>-1;);return K}o(lO,"charsStartIndex");function fO(w,X){for(var K=w.length;K--&&al(X,w[K],0)>-1;);return K}o(fO,"charsEndIndex");function dU(w,X){for(var K=w.length,Ee=0;K--;)w[K]===X&&++Ee;return Ee}o(dU,"countHolders");var gU=JT(z2),mU=JT(J2);function hU(w){return"\\"+eU[w]}o(hU,"escapeStringChar");function yU(w,X){return w==null?e:w[X]}o(yU,"getValue");function sl(w){return X2.test(w)}o(sl,"hasUnicode");function TU(w){return Q2.test(w)}o(TU,"hasUnicodeWord");function vU(w){for(var X,K=[];!(X=w.next()).done;)K.push(X.value);return K}o(vU,"iteratorToArray");function nv(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee,We){K[++X]=[We,Ee]}),K}o(nv,"mapToArray");function uO(w,X){return function(K){return w(X(K))}}o(uO,"overArg");function Ka(w,X){for(var K=-1,Ee=w.length,We=0,St=[];++K<Ee;){var jn=w[K];(jn===X||jn===u)&&(w[K]=u,St[We++]=K)}return St}o(Ka,"replaceHolders");function Xd(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee){K[++X]=Ee}),K}o(Xd,"setToArray");function bU(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee){K[++X]=[Ee,Ee]}),K}o(bU,"setToPairs");function EU(w,X,K){for(var Ee=K-1,We=w.length;++Ee<We;)if(w[Ee]===X)return Ee;return-1}o(EU,"strictIndexOf");function SU(w,X,K){for(var Ee=K+1;Ee--;)if(w[Ee]===X)return Ee;return Ee}o(SU,"strictLastIndexOf");function cl(w){return sl(w)?PU(w):sU(w)}o(cl,"stringSize");function ro(w){return sl(w)?xU(w):cU(w)}o(ro,"stringToArray");function pO(w){for(var X=w.length;X--&&p2.test(w.charAt(X)););return X}o(pO,"trimmedEndIndex");var AU=JT(Z2);function PU(w){for(var X=WT.lastIndex=0;WT.test(w);)++X;return X}o(PU,"unicodeSize");function xU(w){return w.match(WT)||[]}o(xU,"unicodeToArray");function CU(w){return w.match(K2)||[]}o(CU,"unicodeWords");var IU=o(function w(X){X=X==null?Xn:Xa.defaults(Xn.Object(),X,Xa.pick(Xn,q2));var K=X.Array,Ee=X.Date,We=X.Error,St=X.Function,jn=X.Math,Kt=X.Object,iv=X.RegExp,OU=X.String,_r=X.TypeError,Qd=K.prototype,RU=St.prototype,ll=Kt.prototype,qd=X["__core-js_shared__"],Yd=RU.toString,Ft=ll.hasOwnProperty,LU=0,dO=function(){var c=/[^.]+$/.exec(qd&&qd.keys&&qd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),zd=ll.toString,NU=Yd.call(Kt),FU=Xn._,DU=iv("^"+Yd.call(Ft).replace(zf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jd=YI?X.Buffer:e,Qa=X.Symbol,Zd=X.Uint8Array,gO=Jd?Jd.allocUnsafe:e,eg=uO(Kt.getPrototypeOf,Kt),mO=Kt.create,hO=ll.propertyIsEnumerable,tg=Qd.splice,yO=Qa?Qa.isConcatSpreadable:e,Zf=Qa?Qa.iterator:e,Zs=Qa?Qa.toStringTag:e,ng=function(){try{var c=rc(Kt,"defineProperty");return c({},"",{}),c}catch{}}(),_U=X.clearTimeout!==Xn.clearTimeout&&X.clearTimeout,VU=Ee&&Ee.now!==Xn.Date.now&&Ee.now,wU=X.setTimeout!==Xn.setTimeout&&X.setTimeout,ig=jn.ceil,rg=jn.floor,rv=Kt.getOwnPropertySymbols,MU=Jd?Jd.isBuffer:e,TO=X.isFinite,kU=Qd.join,UU=uO(Kt.keys,Kt),$n=jn.max,gi=jn.min,jU=Ee.now,$U=X.parseInt,vO=jn.random,BU=Qd.reverse,ov=rc(X,"DataView"),eu=rc(X,"Map"),av=rc(X,"Promise"),fl=rc(X,"Set"),tu=rc(X,"WeakMap"),nu=rc(Kt,"create"),og=tu&&new tu,ul={},HU=oc(ov),GU=oc(eu),WU=oc(av),KU=oc(fl),XU=oc(tu),ag=Qa?Qa.prototype:e,iu=ag?ag.valueOf:e,bO=ag?ag.toString:e;function P(c){if(Tn(c)&&!Qe(c)&&!(c instanceof pt)){if(c instanceof Vr)return c;if(Ft.call(c,"__wrapped__"))return ER(c)}return new Vr(c)}o(P,"lodash");var pl=function(){function c(){}return o(c,"object"),function(f){if(!hn(f))return{};if(mO)return mO(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function sg(){}o(sg,"baseLodash");function Vr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Vr,"LodashWrapper"),P.templateSettings={escape:it,evaluate:Wt,interpolate:fn,variable:"",imports:{_:P}},P.prototype=sg.prototype,P.prototype.constructor=P,Vr.prototype=pl(sg.prototype),Vr.prototype.constructor=Vr;function pt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=kt,this.__views__=[]}o(pt,"LazyWrapper");function QU(){var c=new pt(this.__wrapped__);return c.__actions__=Hi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Hi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Hi(this.__views__),c}o(QU,"lazyClone");function qU(){if(this.__filtered__){var c=new pt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(qU,"lazyReverse");function YU(){var c=this.__wrapped__.value(),f=this.__dir__,d=Qe(c),T=f<0,S=d?c.length:0,C=c$(0,S,this.__views__),L=C.start,F=C.end,k=F-L,z=T?F:L-1,J=this.__iteratees__,ne=J.length,ge=0,Oe=gi(k,this.__takeCount__);if(!d||!T&&S==k&&Oe==k)return GO(c,this.__actions__);var Me=[];e:for(;k--&&ge<Oe;){z+=f;for(var Ze=-1,ke=c[z];++Ze<ne;){var at=J[Ze],dt=at.iteratee,dr=at.type,Ri=dt(ke);if(dr==Wn)ke=Ri;else if(!Ri){if(dr==sn)continue e;break e}}Me[ge++]=ke}return Me}o(YU,"lazyValue"),pt.prototype=pl(sg.prototype),pt.prototype.constructor=pt;function ec(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(ec,"Hash");function zU(){this.__data__=nu?nu(null):{},this.size=0}o(zU,"hashClear");function JU(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(JU,"hashDelete");function ZU(c){var f=this.__data__;if(nu){var d=f[c];return d===s?e:d}return Ft.call(f,c)?f[c]:e}o(ZU,"hashGet");function ej(c){var f=this.__data__;return nu?f[c]!==e:Ft.call(f,c)}o(ej,"hashHas");function tj(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=nu&&f===e?s:f,this}o(tj,"hashSet"),ec.prototype.clear=zU,ec.prototype.delete=JU,ec.prototype.get=ZU,ec.prototype.has=ej,ec.prototype.set=tj;function na(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(na,"ListCache");function nj(){this.__data__=[],this.size=0}o(nj,"listCacheClear");function ij(c){var f=this.__data__,d=cg(f,c);if(d<0)return!1;var T=f.length-1;return d==T?f.pop():tg.call(f,d,1),--this.size,!0}o(ij,"listCacheDelete");function rj(c){var f=this.__data__,d=cg(f,c);return d<0?e:f[d][1]}o(rj,"listCacheGet");function oj(c){return cg(this.__data__,c)>-1}o(oj,"listCacheHas");function aj(c,f){var d=this.__data__,T=cg(d,c);return T<0?(++this.size,d.push([c,f])):d[T][1]=f,this}o(aj,"listCacheSet"),na.prototype.clear=nj,na.prototype.delete=ij,na.prototype.get=rj,na.prototype.has=oj,na.prototype.set=aj;function ia(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(ia,"MapCache");function sj(){this.size=0,this.__data__={hash:new ec,map:new(eu||na),string:new ec}}o(sj,"mapCacheClear");function cj(c){var f=bg(this,c).delete(c);return this.size-=f?1:0,f}o(cj,"mapCacheDelete");function lj(c){return bg(this,c).get(c)}o(lj,"mapCacheGet");function fj(c){return bg(this,c).has(c)}o(fj,"mapCacheHas");function uj(c,f){var d=bg(this,c),T=d.size;return d.set(c,f),this.size+=d.size==T?0:1,this}o(uj,"mapCacheSet"),ia.prototype.clear=sj,ia.prototype.delete=cj,ia.prototype.get=lj,ia.prototype.has=fj,ia.prototype.set=uj;function tc(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new ia;++f<d;)this.add(c[f])}o(tc,"SetCache");function pj(c){return this.__data__.set(c,s),this}o(pj,"setCacheAdd");function dj(c){return this.__data__.has(c)}o(dj,"setCacheHas"),tc.prototype.add=tc.prototype.push=pj,tc.prototype.has=dj;function oo(c){var f=this.__data__=new na(c);this.size=f.size}o(oo,"Stack");function gj(){this.__data__=new na,this.size=0}o(gj,"stackClear");function mj(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(mj,"stackDelete");function hj(c){return this.__data__.get(c)}o(hj,"stackGet");function yj(c){return this.__data__.has(c)}o(yj,"stackHas");function Tj(c,f){var d=this.__data__;if(d instanceof na){var T=d.__data__;if(!eu||T.length<n-1)return T.push([c,f]),this.size=++d.size,this;d=this.__data__=new ia(T)}return d.set(c,f),this.size=d.size,this}o(Tj,"stackSet"),oo.prototype.clear=gj,oo.prototype.delete=mj,oo.prototype.get=hj,oo.prototype.has=yj,oo.prototype.set=Tj;function EO(c,f){var d=Qe(c),T=!d&&ac(c),S=!d&&!T&&Za(c),C=!d&&!T&&!S&&hl(c),L=d||T||S||C,F=L?ev(c.length,OU):[],k=F.length;for(var z in c)(f||Ft.call(c,z))&&!(L&&(z=="length"||S&&(z=="offset"||z=="parent")||C&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||sa(z,k)))&&F.push(z);return F}o(EO,"arrayLikeKeys");function SO(c){var f=c.length;return f?c[yv(0,f-1)]:e}o(SO,"arraySample");function vj(c,f){return Eg(Hi(c),nc(f,0,c.length))}o(vj,"arraySampleSize");function bj(c){return Eg(Hi(c))}o(bj,"arrayShuffle");function sv(c,f,d){(d!==e&&!ao(c[f],d)||d===e&&!(f in c))&&ra(c,f,d)}o(sv,"assignMergeValue");function ru(c,f,d){var T=c[f];(!(Ft.call(c,f)&&ao(T,d))||d===e&&!(f in c))&&ra(c,f,d)}o(ru,"assignValue");function cg(c,f){for(var d=c.length;d--;)if(ao(c[d][0],f))return d;return-1}o(cg,"assocIndexOf");function Ej(c,f,d,T){return qa(c,function(S,C,L){f(T,S,d(S),L)}),T}o(Ej,"baseAggregator");function AO(c,f){return c&&Lo(f,Qn(f),c)}o(AO,"baseAssign");function Sj(c,f){return c&&Lo(f,Wi(f),c)}o(Sj,"baseAssignIn");function ra(c,f,d){f=="__proto__"&&ng?ng(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(ra,"baseAssignValue");function cv(c,f){for(var d=-1,T=f.length,S=K(T),C=c==null;++d<T;)S[d]=C?e:Bv(c,f[d]);return S}o(cv,"baseAt");function nc(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(nc,"baseClamp");function wr(c,f,d,T,S,C){var L,F=f&p,k=f&g,z=f&m;if(d&&(L=S?d(c,T,S,C):d(c)),L!==e)return L;if(!hn(c))return c;var J=Qe(c);if(J){if(L=f$(c),!F)return Hi(c,L)}else{var ne=mi(c),ge=ne==_e||ne==Nt;if(Za(c))return XO(c,F);if(ne==ln||ne==Kn||ge&&!S){if(L=k||ge?{}:pR(c),!F)return k?Zj(c,Sj(L,c)):Jj(c,AO(L,c))}else{if(!Yt[ne])return S?c:{};L=u$(c,ne,F)}}C||(C=new oo);var Oe=C.get(c);if(Oe)return Oe;C.set(c,L),$R(c)?c.forEach(function(ke){L.add(wr(ke,f,d,ke,c,C))}):UR(c)&&c.forEach(function(ke,at){L.set(at,wr(ke,f,d,at,c,C))});var Me=z?k?Ov:Iv:k?Wi:Qn,Ze=J?e:Me(c);return Dr(Ze||c,function(ke,at){Ze&&(at=ke,ke=c[at]),ru(L,at,wr(ke,f,d,at,c,C))}),L}o(wr,"baseClone");function Aj(c){var f=Qn(c);return function(d){return PO(d,c,f)}}o(Aj,"baseConforms");function PO(c,f,d){var T=d.length;if(c==null)return!T;for(c=Kt(c);T--;){var S=d[T],C=f[S],L=c[S];if(L===e&&!(S in c)||!C(L))return!1}return!0}o(PO,"baseConformsTo");function xO(c,f,d){if(typeof c!="function")throw new _r(r);return uu(function(){c.apply(e,d)},f)}o(xO,"baseDelay");function ou(c,f,d,T){var S=-1,C=Wd,L=!0,F=c.length,k=[],z=f.length;if(!F)return k;d&&(f=un(f,fr(d))),T?(C=QT,L=!1):f.length>=n&&(C=Jf,L=!1,f=new tc(f));e:for(;++S<F;){var J=c[S],ne=d==null?J:d(J);if(J=T||J!==0?J:0,L&&ne===ne){for(var ge=z;ge--;)if(f[ge]===ne)continue e;k.push(J)}else C(f,ne,T)||k.push(J)}return k}o(ou,"baseDifference");var qa=JO(Ro),CO=JO(fv,!0);function Pj(c,f){var d=!0;return qa(c,function(T,S,C){return d=!!f(T,S,C),d}),d}o(Pj,"baseEvery");function lg(c,f,d){for(var T=-1,S=c.length;++T<S;){var C=c[T],L=f(C);if(L!=null&&(F===e?L===L&&!pr(L):d(L,F)))var F=L,k=C}return k}o(lg,"baseExtremum");function xj(c,f,d,T){var S=c.length;for(d=Je(d),d<0&&(d=-d>S?0:S+d),T=T===e||T>S?S:Je(T),T<0&&(T+=S),T=d>T?0:HR(T);d<T;)c[d++]=f;return c}o(xj,"baseFill");function IO(c,f){var d=[];return qa(c,function(T,S,C){f(T,S,C)&&d.push(T)}),d}o(IO,"baseFilter");function ni(c,f,d,T,S){var C=-1,L=c.length;for(d||(d=d$),S||(S=[]);++C<L;){var F=c[C];f>0&&d(F)?f>1?ni(F,f-1,d,T,S):Wa(S,F):T||(S[S.length]=F)}return S}o(ni,"baseFlatten");var lv=ZO(),OO=ZO(!0);function Ro(c,f){return c&&lv(c,f,Qn)}o(Ro,"baseForOwn");function fv(c,f){return c&&OO(c,f,Qn)}o(fv,"baseForOwnRight");function fg(c,f){return Ga(f,function(d){return ca(c[d])})}o(fg,"baseFunctions");function ic(c,f){f=za(f,c);for(var d=0,T=f.length;c!=null&&d<T;)c=c[No(f[d++])];return d&&d==T?c:e}o(ic,"baseGet");function RO(c,f,d){var T=f(c);return Qe(c)?T:Wa(T,d(c))}o(RO,"baseGetAllKeys");function Ii(c){return c==null?c===e?ta:yn:Zs&&Zs in Kt(c)?s$(c):b$(c)}o(Ii,"baseGetTag");function uv(c,f){return c>f}o(uv,"baseGt");function Cj(c,f){return c!=null&&Ft.call(c,f)}o(Cj,"baseHas");function Ij(c,f){return c!=null&&f in Kt(c)}o(Ij,"baseHasIn");function Oj(c,f,d){return c>=gi(f,d)&&c<$n(f,d)}o(Oj,"baseInRange");function pv(c,f,d){for(var T=d?QT:Wd,S=c[0].length,C=c.length,L=C,F=K(C),k=1/0,z=[];L--;){var J=c[L];L&&f&&(J=un(J,fr(f))),k=gi(J.length,k),F[L]=!d&&(f||S>=120&&J.length>=120)?new tc(L&&J):e}J=c[0];var ne=-1,ge=F[0];e:for(;++ne<S&&z.length<k;){var Oe=J[ne],Me=f?f(Oe):Oe;if(Oe=d||Oe!==0?Oe:0,!(ge?Jf(ge,Me):T(z,Me,d))){for(L=C;--L;){var Ze=F[L];if(!(Ze?Jf(Ze,Me):T(c[L],Me,d)))continue e}ge&&ge.push(Me),z.push(Oe)}}return z}o(pv,"baseIntersection");function Rj(c,f,d,T){return Ro(c,function(S,C,L){f(T,d(S),C,L)}),T}o(Rj,"baseInverter");function au(c,f,d){f=za(f,c),c=hR(c,f);var T=c==null?c:c[No(kr(f))];return T==null?e:lr(T,c,d)}o(au,"baseInvoke");function LO(c){return Tn(c)&&Ii(c)==Kn}o(LO,"baseIsArguments");function Lj(c){return Tn(c)&&Ii(c)==Ys}o(Lj,"baseIsArrayBuffer");function Nj(c){return Tn(c)&&Ii(c)==A}o(Nj,"baseIsDate");function su(c,f,d,T,S){return c===f?!0:c==null||f==null||!Tn(c)&&!Tn(f)?c!==c&&f!==f:Fj(c,f,d,T,su,S)}o(su,"baseIsEqual");function Fj(c,f,d,T,S,C){var L=Qe(c),F=Qe(f),k=L?Lr:mi(c),z=F?Lr:mi(f);k=k==Kn?ln:k,z=z==Kn?ln:z;var J=k==ln,ne=z==ln,ge=k==z;if(ge&&Za(c)){if(!Za(f))return!1;L=!0,J=!1}if(ge&&!J)return C||(C=new oo),L||hl(c)?lR(c,f,d,T,S,C):o$(c,f,k,d,T,S,C);if(!(d&h)){var Oe=J&&Ft.call(c,"__wrapped__"),Me=ne&&Ft.call(f,"__wrapped__");if(Oe||Me){var Ze=Oe?c.value():c,ke=Me?f.value():f;return C||(C=new oo),S(Ze,ke,d,T,C)}}return ge?(C||(C=new oo),a$(c,f,d,T,S,C)):!1}o(Fj,"baseIsEqualDeep");function Dj(c){return Tn(c)&&mi(c)==qe}o(Dj,"baseIsMap");function dv(c,f,d,T){var S=d.length,C=S,L=!T;if(c==null)return!C;for(c=Kt(c);S--;){var F=d[S];if(L&&F[2]?F[1]!==c[F[0]]:!(F[0]in c))return!1}for(;++S<C;){F=d[S];var k=F[0],z=c[k],J=F[1];if(L&&F[2]){if(z===e&&!(k in c))return!1}else{var ne=new oo;if(T)var ge=T(z,J,k,c,f,ne);if(!(ge===e?su(J,z,h|E,T,ne):ge))return!1}}return!0}o(dv,"baseIsMatch");function NO(c){if(!hn(c)||m$(c))return!1;var f=ca(c)?DU:A2;return f.test(oc(c))}o(NO,"baseIsNative");function _j(c){return Tn(c)&&Ii(c)==sr}o(_j,"baseIsRegExp");function Vj(c){return Tn(c)&&mi(c)==gn}o(Vj,"baseIsSet");function wj(c){return Tn(c)&&Ig(c.length)&&!!nn[Ii(c)]}o(wj,"baseIsTypedArray");function FO(c){return typeof c=="function"?c:c==null?Ki:typeof c=="object"?Qe(c)?VO(c[0],c[1]):_O(c):eL(c)}o(FO,"baseIteratee");function gv(c){if(!fu(c))return UU(c);var f=[];for(var d in Kt(c))Ft.call(c,d)&&d!="constructor"&&f.push(d);return f}o(gv,"baseKeys");function Mj(c){if(!hn(c))return v$(c);var f=fu(c),d=[];for(var T in c)T=="constructor"&&(f||!Ft.call(c,T))||d.push(T);return d}o(Mj,"baseKeysIn");function mv(c,f){return c<f}o(mv,"baseLt");function DO(c,f){var d=-1,T=Gi(c)?K(c.length):[];return qa(c,function(S,C,L){T[++d]=f(S,C,L)}),T}o(DO,"baseMap");function _O(c){var f=Lv(c);return f.length==1&&f[0][2]?gR(f[0][0],f[0][1]):function(d){return d===c||dv(d,c,f)}}o(_O,"baseMatches");function VO(c,f){return Fv(c)&&dR(f)?gR(No(c),f):function(d){var T=Bv(d,c);return T===e&&T===f?Hv(d,c):su(f,T,h|E)}}o(VO,"baseMatchesProperty");function ug(c,f,d,T,S){c!==f&&lv(f,function(C,L){if(S||(S=new oo),hn(C))kj(c,f,L,d,ug,T,S);else{var F=T?T(_v(c,L),C,L+"",c,f,S):e;F===e&&(F=C),sv(c,L,F)}},Wi)}o(ug,"baseMerge");function kj(c,f,d,T,S,C,L){var F=_v(c,d),k=_v(f,d),z=L.get(k);if(z){sv(c,d,z);return}var J=C?C(F,k,d+"",c,f,L):e,ne=J===e;if(ne){var ge=Qe(k),Oe=!ge&&Za(k),Me=!ge&&!Oe&&hl(k);J=k,ge||Oe||Me?Qe(F)?J=F:Cn(F)?J=Hi(F):Oe?(ne=!1,J=XO(k,!0)):Me?(ne=!1,J=QO(k,!0)):J=[]:pu(k)||ac(k)?(J=F,ac(F)?J=GR(F):(!hn(F)||ca(F))&&(J=pR(k))):ne=!1}ne&&(L.set(k,J),S(J,k,T,C,L),L.delete(k)),sv(c,d,J)}o(kj,"baseMergeDeep");function wO(c,f){var d=c.length;if(d)return f+=f<0?d:0,sa(f,d)?c[f]:e}o(wO,"baseNth");function MO(c,f,d){f.length?f=un(f,function(C){return Qe(C)?function(L){return ic(L,C.length===1?C[0]:C)}:C}):f=[Ki];var T=-1;f=un(f,fr(Ve()));var S=DO(c,function(C,L,F){var k=un(f,function(z){return z(C)});return{criteria:k,index:++T,value:C}});return uU(S,function(C,L){return zj(C,L,d)})}o(MO,"baseOrderBy");function Uj(c,f){return kO(c,f,function(d,T){return Hv(c,T)})}o(Uj,"basePick");function kO(c,f,d){for(var T=-1,S=f.length,C={};++T<S;){var L=f[T],F=ic(c,L);d(F,L)&&cu(C,za(L,c),F)}return C}o(kO,"basePickBy");function jj(c){return function(f){return ic(f,c)}}o(jj,"basePropertyDeep");function hv(c,f,d,T){var S=T?fU:al,C=-1,L=f.length,F=c;for(c===f&&(f=Hi(f)),d&&(F=un(c,fr(d)));++C<L;)for(var k=0,z=f[C],J=d?d(z):z;(k=S(F,J,k,T))>-1;)F!==c&&tg.call(F,k,1),tg.call(c,k,1);return c}o(hv,"basePullAll");function UO(c,f){for(var d=c?f.length:0,T=d-1;d--;){var S=f[d];if(d==T||S!==C){var C=S;sa(S)?tg.call(c,S,1):bv(c,S)}}return c}o(UO,"basePullAt");function yv(c,f){return c+rg(vO()*(f-c+1))}o(yv,"baseRandom");function $j(c,f,d,T){for(var S=-1,C=$n(ig((f-c)/(d||1)),0),L=K(C);C--;)L[T?C:++S]=c,c+=d;return L}o($j,"baseRange");function Tv(c,f){var d="";if(!c||f<1||f>Ne)return d;do f%2&&(d+=c),f=rg(f/2),f&&(c+=c);while(f);return d}o(Tv,"baseRepeat");function tt(c,f){return Vv(mR(c,f,Ki),c+"")}o(tt,"baseRest");function Bj(c){return SO(yl(c))}o(Bj,"baseSample");function Hj(c,f){var d=yl(c);return Eg(d,nc(f,0,d.length))}o(Hj,"baseSampleSize");function cu(c,f,d,T){if(!hn(c))return c;f=za(f,c);for(var S=-1,C=f.length,L=C-1,F=c;F!=null&&++S<C;){var k=No(f[S]),z=d;if(k==="__proto__"||k==="constructor"||k==="prototype")return c;if(S!=L){var J=F[k];z=T?T(J,k,F):e,z===e&&(z=hn(J)?J:sa(f[S+1])?[]:{})}ru(F,k,z),F=F[k]}return c}o(cu,"baseSet");var jO=og?function(c,f){return og.set(c,f),c}:Ki,Gj=ng?function(c,f){return ng(c,"toString",{configurable:!0,enumerable:!1,value:Wv(f),writable:!0})}:Ki;function Wj(c){return Eg(yl(c))}o(Wj,"baseShuffle");function Mr(c,f,d){var T=-1,S=c.length;f<0&&(f=-f>S?0:S+f),d=d>S?S:d,d<0&&(d+=S),S=f>d?0:d-f>>>0,f>>>=0;for(var C=K(S);++T<S;)C[T]=c[T+f];return C}o(Mr,"baseSlice");function Kj(c,f){var d;return qa(c,function(T,S,C){return d=f(T,S,C),!d}),!!d}o(Kj,"baseSome");function pg(c,f,d){var T=0,S=c==null?T:c.length;if(typeof f=="number"&&f===f&&S<=$i){for(;T<S;){var C=T+S>>>1,L=c[C];L!==null&&!pr(L)&&(d?L<=f:L<f)?T=C+1:S=C}return S}return vv(c,f,Ki,d)}o(pg,"baseSortedIndex");function vv(c,f,d,T){var S=0,C=c==null?0:c.length;if(C===0)return 0;f=d(f);for(var L=f!==f,F=f===null,k=pr(f),z=f===e;S<C;){var J=rg((S+C)/2),ne=d(c[J]),ge=ne!==e,Oe=ne===null,Me=ne===ne,Ze=pr(ne);if(L)var ke=T||Me;else z?ke=Me&&(T||ge):F?ke=Me&&ge&&(T||!Oe):k?ke=Me&&ge&&!Oe&&(T||!Ze):Oe||Ze?ke=!1:ke=T?ne<=f:ne<f;ke?S=J+1:C=J}return gi(C,cn)}o(vv,"baseSortedIndexBy");function $O(c,f){for(var d=-1,T=c.length,S=0,C=[];++d<T;){var L=c[d],F=f?f(L):L;if(!d||!ao(F,k)){var k=F;C[S++]=L===0?0:L}}return C}o($O,"baseSortedUniq");function BO(c){return typeof c=="number"?c:pr(c)?Ct:+c}o(BO,"baseToNumber");function ur(c){if(typeof c=="string")return c;if(Qe(c))return un(c,ur)+"";if(pr(c))return bO?bO.call(c):"";var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(ur,"baseToString");function Ya(c,f,d){var T=-1,S=Wd,C=c.length,L=!0,F=[],k=F;if(d)L=!1,S=QT;else if(C>=n){var z=f?null:i$(c);if(z)return Xd(z);L=!1,S=Jf,k=new tc}else k=f?[]:F;e:for(;++T<C;){var J=c[T],ne=f?f(J):J;if(J=d||J!==0?J:0,L&&ne===ne){for(var ge=k.length;ge--;)if(k[ge]===ne)continue e;f&&k.push(ne),F.push(J)}else S(k,ne,d)||(k!==F&&k.push(ne),F.push(J))}return F}o(Ya,"baseUniq");function bv(c,f){return f=za(f,c),c=hR(c,f),c==null||delete c[No(kr(f))]}o(bv,"baseUnset");function HO(c,f,d,T){return cu(c,f,d(ic(c,f)),T)}o(HO,"baseUpdate");function dg(c,f,d,T){for(var S=c.length,C=T?S:-1;(T?C--:++C<S)&&f(c[C],C,c););return d?Mr(c,T?0:C,T?C+1:S):Mr(c,T?C+1:0,T?S:C)}o(dg,"baseWhile");function GO(c,f){var d=c;return d instanceof pt&&(d=d.value()),qT(f,function(T,S){return S.func.apply(S.thisArg,Wa([T],S.args))},d)}o(GO,"baseWrapperValue");function Ev(c,f,d){var T=c.length;if(T<2)return T?Ya(c[0]):[];for(var S=-1,C=K(T);++S<T;)for(var L=c[S],F=-1;++F<T;)F!=S&&(C[S]=ou(C[S]||L,c[F],f,d));return Ya(ni(C,1),f,d)}o(Ev,"baseXor");function WO(c,f,d){for(var T=-1,S=c.length,C=f.length,L={};++T<S;){var F=T<C?f[T]:e;d(L,c[T],F)}return L}o(WO,"baseZipObject");function Sv(c){return Cn(c)?c:[]}o(Sv,"castArrayLikeObject");function Av(c){return typeof c=="function"?c:Ki}o(Av,"castFunction");function za(c,f){return Qe(c)?c:Fv(c,f)?[c]:bR(It(c))}o(za,"castPath");var Xj=tt;function Ja(c,f,d){var T=c.length;return d=d===e?T:d,!f&&d>=T?c:Mr(c,f,d)}o(Ja,"castSlice");var KO=_U||function(c){return Xn.clearTimeout(c)};function XO(c,f){if(f)return c.slice();var d=c.length,T=gO?gO(d):new c.constructor(d);return c.copy(T),T}o(XO,"cloneBuffer");function Pv(c){var f=new c.constructor(c.byteLength);return new Zd(f).set(new Zd(c)),f}o(Pv,"cloneArrayBuffer");function Qj(c,f){var d=f?Pv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(Qj,"cloneDataView");function qj(c){var f=new c.constructor(c.source,LI.exec(c));return f.lastIndex=c.lastIndex,f}o(qj,"cloneRegExp");function Yj(c){return iu?Kt(iu.call(c)):{}}o(Yj,"cloneSymbol");function QO(c,f){var d=f?Pv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(QO,"cloneTypedArray");function qO(c,f){if(c!==f){var d=c!==e,T=c===null,S=c===c,C=pr(c),L=f!==e,F=f===null,k=f===f,z=pr(f);if(!F&&!z&&!C&&c>f||C&&L&&k&&!F&&!z||T&&L&&k||!d&&k||!S)return 1;if(!T&&!C&&!z&&c<f||z&&d&&S&&!T&&!C||F&&d&&S||!L&&S||!k)return-1}return 0}o(qO,"compareAscending");function zj(c,f,d){for(var T=-1,S=c.criteria,C=f.criteria,L=S.length,F=d.length;++T<L;){var k=qO(S[T],C[T]);if(k){if(T>=F)return k;var z=d[T];return k*(z=="desc"?-1:1)}}return c.index-f.index}o(zj,"compareMultiple");function YO(c,f,d,T){for(var S=-1,C=c.length,L=d.length,F=-1,k=f.length,z=$n(C-L,0),J=K(k+z),ne=!T;++F<k;)J[F]=f[F];for(;++S<L;)(ne||S<C)&&(J[d[S]]=c[S]);for(;z--;)J[F++]=c[S++];return J}o(YO,"composeArgs");function zO(c,f,d,T){for(var S=-1,C=c.length,L=-1,F=d.length,k=-1,z=f.length,J=$n(C-F,0),ne=K(J+z),ge=!T;++S<J;)ne[S]=c[S];for(var Oe=S;++k<z;)ne[Oe+k]=f[k];for(;++L<F;)(ge||S<C)&&(ne[Oe+d[L]]=c[S++]);return ne}o(zO,"composeArgsRight");function Hi(c,f){var d=-1,T=c.length;for(f||(f=K(T));++d<T;)f[d]=c[d];return f}o(Hi,"copyArray");function Lo(c,f,d,T){var S=!d;d||(d={});for(var C=-1,L=f.length;++C<L;){var F=f[C],k=T?T(d[F],c[F],F,d,c):e;k===e&&(k=c[F]),S?ra(d,F,k):ru(d,F,k)}return d}o(Lo,"copyObject");function Jj(c,f){return Lo(c,Nv(c),f)}o(Jj,"copySymbols");function Zj(c,f){return Lo(c,fR(c),f)}o(Zj,"copySymbolsIn");function gg(c,f){return function(d,T){var S=Qe(d)?rU:Ej,C=f?f():{};return S(d,c,Ve(T,2),C)}}o(gg,"createAggregator");function dl(c){return tt(function(f,d){var T=-1,S=d.length,C=S>1?d[S-1]:e,L=S>2?d[2]:e;for(C=c.length>3&&typeof C=="function"?(S--,C):e,L&&Oi(d[0],d[1],L)&&(C=S<3?e:C,S=1),f=Kt(f);++T<S;){var F=d[T];F&&c(f,F,T,C)}return f})}o(dl,"createAssigner");function JO(c,f){return function(d,T){if(d==null)return d;if(!Gi(d))return c(d,T);for(var S=d.length,C=f?S:-1,L=Kt(d);(f?C--:++C<S)&&T(L[C],C,L)!==!1;);return d}}o(JO,"createBaseEach");function ZO(c){return function(f,d,T){for(var S=-1,C=Kt(f),L=T(f),F=L.length;F--;){var k=L[c?F:++S];if(d(C[k],k,C)===!1)break}return f}}o(ZO,"createBaseFor");function e$(c,f,d){var T=f&b,S=lu(c);function C(){var L=this&&this!==Xn&&this instanceof C?S:c;return L.apply(T?d:this,arguments)}return o(C,"wrapper"),C}o(e$,"createBind");function eR(c){return function(f){f=It(f);var d=sl(f)?ro(f):e,T=d?d[0]:f.charAt(0),S=d?Ja(d,1).join(""):f.slice(1);return T[c]()+S}}o(eR,"createCaseFirst");function gl(c){return function(f){return qT(JR(zR(f).replace(G2,"")),c,"")}}o(gl,"createCompounder");function lu(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=pl(c.prototype),T=c.apply(d,f);return hn(T)?T:d}}o(lu,"createCtor");function t$(c,f,d){var T=lu(c);function S(){for(var C=arguments.length,L=K(C),F=C,k=ml(S);F--;)L[F]=arguments[F];var z=C<3&&L[0]!==k&&L[C-1]!==k?[]:Ka(L,k);if(C-=z.length,C<d)return oR(c,f,mg,S.placeholder,e,L,z,e,e,d-C);var J=this&&this!==Xn&&this instanceof S?T:c;return lr(J,this,L)}return o(S,"wrapper"),S}o(t$,"createCurry");function tR(c){return function(f,d,T){var S=Kt(f);if(!Gi(f)){var C=Ve(d,3);f=Qn(f),d=o(function(F){return C(S[F],F,S)},"predicate")}var L=c(f,d,T);return L>-1?S[C?f[L]:L]:e}}o(tR,"createFind");function nR(c){return aa(function(f){var d=f.length,T=d,S=Vr.prototype.thru;for(c&&f.reverse();T--;){var C=f[T];if(typeof C!="function")throw new _r(r);if(S&&!L&&vg(C)=="wrapper")var L=new Vr([],!0)}for(T=L?T:d;++T<d;){C=f[T];var F=vg(C),k=F=="wrapper"?Rv(C):e;k&&Dv(k[0])&&k[1]==(Z|M|$|oe)&&!k[4].length&&k[9]==1?L=L[vg(k[0])].apply(L,k[3]):L=C.length==1&&Dv(C)?L[F]():L.thru(C)}return function(){var z=arguments,J=z[0];if(L&&z.length==1&&Qe(J))return L.plant(J).value();for(var ne=0,ge=d?f[ne].apply(this,z):J;++ne<d;)ge=f[ne].call(this,ge);return ge}})}o(nR,"createFlow");function mg(c,f,d,T,S,C,L,F,k,z){var J=f&Z,ne=f&b,ge=f&O,Oe=f&(M|H),Me=f&Ae,Ze=ge?e:lu(c);function ke(){for(var at=arguments.length,dt=K(at),dr=at;dr--;)dt[dr]=arguments[dr];if(Oe)var Ri=ml(ke),gr=dU(dt,Ri);if(T&&(dt=YO(dt,T,S,Oe)),C&&(dt=zO(dt,C,L,Oe)),at-=gr,Oe&&at<z){var In=Ka(dt,Ri);return oR(c,f,mg,ke.placeholder,d,dt,In,F,k,z-at)}var so=ne?d:this,fa=ge?so[c]:c;return at=dt.length,F?dt=E$(dt,F):Me&&at>1&&dt.reverse(),J&&k<at&&(dt.length=k),this&&this!==Xn&&this instanceof ke&&(fa=Ze||lu(fa)),fa.apply(so,dt)}return o(ke,"wrapper"),ke}o(mg,"createHybrid");function iR(c,f){return function(d,T){return Rj(d,c,f(T),{})}}o(iR,"createInverter");function hg(c,f){return function(d,T){var S;if(d===e&&T===e)return f;if(d!==e&&(S=d),T!==e){if(S===e)return T;typeof d=="string"||typeof T=="string"?(d=ur(d),T=ur(T)):(d=BO(d),T=BO(T)),S=c(d,T)}return S}}o(hg,"createMathOperation");function xv(c){return aa(function(f){return f=un(f,fr(Ve())),tt(function(d){var T=this;return c(f,function(S){return lr(S,T,d)})})})}o(xv,"createOver");function yg(c,f){f=f===e?" ":ur(f);var d=f.length;if(d<2)return d?Tv(f,c):f;var T=Tv(f,ig(c/cl(f)));return sl(f)?Ja(ro(T),0,c).join(""):T.slice(0,c)}o(yg,"createPadding");function n$(c,f,d,T){var S=f&b,C=lu(c);function L(){for(var F=-1,k=arguments.length,z=-1,J=T.length,ne=K(J+k),ge=this&&this!==Xn&&this instanceof L?C:c;++z<J;)ne[z]=T[z];for(;k--;)ne[z++]=arguments[++F];return lr(ge,S?d:this,ne)}return o(L,"wrapper"),L}o(n$,"createPartial");function rR(c){return function(f,d,T){return T&&typeof T!="number"&&Oi(f,d,T)&&(d=T=e),f=la(f),d===e?(d=f,f=0):d=la(d),T=T===e?f<d?1:-1:la(T),$j(f,d,T,c)}}o(rR,"createRange");function Tg(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Ur(f),d=Ur(d)),c(f,d)}}o(Tg,"createRelationalOperation");function oR(c,f,d,T,S,C,L,F,k,z){var J=f&M,ne=J?L:e,ge=J?e:L,Oe=J?C:e,Me=J?e:C;f|=J?$:re,f&=~(J?re:$),f&N||(f&=~(b|O));var Ze=[c,f,S,Oe,ne,Me,ge,F,k,z],ke=d.apply(e,Ze);return Dv(c)&&yR(ke,Ze),ke.placeholder=T,TR(ke,c,f)}o(oR,"createRecurry");function Cv(c){var f=jn[c];return function(d,T){if(d=Ur(d),T=T==null?0:gi(Je(T),292),T&&TO(d)){var S=(It(d)+"e").split("e"),C=f(S[0]+"e"+(+S[1]+T));return S=(It(C)+"e").split("e"),+(S[0]+"e"+(+S[1]-T))}return f(d)}}o(Cv,"createRound");var i$=fl&&1/Xd(new fl([,-0]))[1]==Lt?function(c){return new fl(c)}:Qv;function aR(c){return function(f){var d=mi(f);return d==qe?nv(f):d==gn?bU(f):pU(f,c(f))}}o(aR,"createToPairs");function oa(c,f,d,T,S,C,L,F){var k=f&O;if(!k&&typeof c!="function")throw new _r(r);var z=T?T.length:0;if(z||(f&=~($|re),T=S=e),L=L===e?L:$n(Je(L),0),F=F===e?F:Je(F),z-=S?S.length:0,f&re){var J=T,ne=S;T=S=e}var ge=k?e:Rv(c),Oe=[c,f,d,T,S,J,ne,C,L,F];if(ge&&T$(Oe,ge),c=Oe[0],f=Oe[1],d=Oe[2],T=Oe[3],S=Oe[4],F=Oe[9]=Oe[9]===e?k?0:c.length:$n(Oe[9]-z,0),!F&&f&(M|H)&&(f&=~(M|H)),!f||f==b)var Me=e$(c,f,d);else f==M||f==H?Me=t$(c,f,F):(f==$||f==(b|$))&&!S.length?Me=n$(c,f,d,T):Me=mg.apply(e,Oe);var Ze=ge?jO:yR;return TR(Ze(Me,Oe),c,f)}o(oa,"createWrap");function sR(c,f,d,T){return c===e||ao(c,ll[d])&&!Ft.call(T,d)?f:c}o(sR,"customDefaultsAssignIn");function cR(c,f,d,T,S,C){return hn(c)&&hn(f)&&(C.set(f,c),ug(c,f,e,cR,C),C.delete(f)),c}o(cR,"customDefaultsMerge");function r$(c){return pu(c)?e:c}o(r$,"customOmitClone");function lR(c,f,d,T,S,C){var L=d&h,F=c.length,k=f.length;if(F!=k&&!(L&&k>F))return!1;var z=C.get(c),J=C.get(f);if(z&&J)return z==f&&J==c;var ne=-1,ge=!0,Oe=d&E?new tc:e;for(C.set(c,f),C.set(f,c);++ne<F;){var Me=c[ne],Ze=f[ne];if(T)var ke=L?T(Ze,Me,ne,f,c,C):T(Me,Ze,ne,c,f,C);if(ke!==e){if(ke)continue;ge=!1;break}if(Oe){if(!YT(f,function(at,dt){if(!Jf(Oe,dt)&&(Me===at||S(Me,at,d,T,C)))return Oe.push(dt)})){ge=!1;break}}else if(!(Me===Ze||S(Me,Ze,d,T,C))){ge=!1;break}}return C.delete(c),C.delete(f),ge}o(lR,"equalArrays");function o$(c,f,d,T,S,C,L){switch(d){case Nr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Ys:return!(c.byteLength!=f.byteLength||!C(new Zd(c),new Zd(f)));case I:case A:case Ut:return ao(+c,+f);case V:return c.name==f.name&&c.message==f.message;case sr:case di:return c==f+"";case qe:var F=nv;case gn:var k=T&h;if(F||(F=Xd),c.size!=f.size&&!k)return!1;var z=L.get(c);if(z)return z==f;T|=E,L.set(c,f);var J=lR(F(c),F(f),T,S,C,L);return L.delete(c),J;case Gt:if(iu)return iu.call(c)==iu.call(f)}return!1}o(o$,"equalByTag");function a$(c,f,d,T,S,C){var L=d&h,F=Iv(c),k=F.length,z=Iv(f),J=z.length;if(k!=J&&!L)return!1;for(var ne=k;ne--;){var ge=F[ne];if(!(L?ge in f:Ft.call(f,ge)))return!1}var Oe=C.get(c),Me=C.get(f);if(Oe&&Me)return Oe==f&&Me==c;var Ze=!0;C.set(c,f),C.set(f,c);for(var ke=L;++ne<k;){ge=F[ne];var at=c[ge],dt=f[ge];if(T)var dr=L?T(dt,at,ge,f,c,C):T(at,dt,ge,c,f,C);if(!(dr===e?at===dt||S(at,dt,d,T,C):dr)){Ze=!1;break}ke||(ke=ge=="constructor")}if(Ze&&!ke){var Ri=c.constructor,gr=f.constructor;Ri!=gr&&"constructor"in c&&"constructor"in f&&!(typeof Ri=="function"&&Ri instanceof Ri&&typeof gr=="function"&&gr instanceof gr)&&(Ze=!1)}return C.delete(c),C.delete(f),Ze}o(a$,"equalObjects");function aa(c){return Vv(mR(c,e,PR),c+"")}o(aa,"flatRest");function Iv(c){return RO(c,Qn,Nv)}o(Iv,"getAllKeys");function Ov(c){return RO(c,Wi,fR)}o(Ov,"getAllKeysIn");var Rv=og?function(c){return og.get(c)}:Qv;function vg(c){for(var f=c.name+"",d=ul[f],T=Ft.call(ul,f)?d.length:0;T--;){var S=d[T],C=S.func;if(C==null||C==c)return S.name}return f}o(vg,"getFuncName");function ml(c){var f=Ft.call(P,"placeholder")?P:c;return f.placeholder}o(ml,"getHolder");function Ve(){var c=P.iteratee||Kv;return c=c===Kv?FO:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function bg(c,f){var d=c.__data__;return g$(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(bg,"getMapData");function Lv(c){for(var f=Qn(c),d=f.length;d--;){var T=f[d],S=c[T];f[d]=[T,S,dR(S)]}return f}o(Lv,"getMatchData");function rc(c,f){var d=yU(c,f);return NO(d)?d:e}o(rc,"getNative");function s$(c){var f=Ft.call(c,Zs),d=c[Zs];try{c[Zs]=e;var T=!0}catch{}var S=zd.call(c);return T&&(f?c[Zs]=d:delete c[Zs]),S}o(s$,"getRawTag");var Nv=rv?function(c){return c==null?[]:(c=Kt(c),Ga(rv(c),function(f){return hO.call(c,f)}))}:qv,fR=rv?function(c){for(var f=[];c;)Wa(f,Nv(c)),c=eg(c);return f}:qv,mi=Ii;(ov&&mi(new ov(new ArrayBuffer(1)))!=Nr||eu&&mi(new eu)!=qe||av&&mi(av.resolve())!=Ht||fl&&mi(new fl)!=gn||tu&&mi(new tu)!=Bi)&&(mi=o(function(c){var f=Ii(c),d=f==ln?c.constructor:e,T=d?oc(d):"";if(T)switch(T){case HU:return Nr;case GU:return qe;case WU:return Ht;case KU:return gn;case XU:return Bi}return f},"getTag"));function c$(c,f,d){for(var T=-1,S=d.length;++T<S;){var C=d[T],L=C.size;switch(C.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=gi(f,c+L);break;case"takeRight":c=$n(c,f-L);break}}return{start:c,end:f}}o(c$,"getView");function l$(c){var f=c.match(g2);return f?f[1].split(m2):[]}o(l$,"getWrapDetails");function uR(c,f,d){f=za(f,c);for(var T=-1,S=f.length,C=!1;++T<S;){var L=No(f[T]);if(!(C=c!=null&&d(c,L)))break;c=c[L]}return C||++T!=S?C:(S=c==null?0:c.length,!!S&&Ig(S)&&sa(L,S)&&(Qe(c)||ac(c)))}o(uR,"hasPath");function f$(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Ft.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(f$,"initCloneArray");function pR(c){return typeof c.constructor=="function"&&!fu(c)?pl(eg(c)):{}}o(pR,"initCloneObject");function u$(c,f,d){var T=c.constructor;switch(f){case Ys:return Pv(c);case I:case A:return new T(+c);case Nr:return Qj(c,d);case Qf:case qf:case Yf:case zs:case U:case B:case q:case le:case Le:return QO(c,d);case qe:return new T;case Ut:case di:return new T(c);case sr:return qj(c);case gn:return new T;case Gt:return Yj(c)}}o(u$,"initCloneByTag");function p$(c,f){var d=f.length;if(!d)return c;var T=d-1;return f[T]=(d>1?"& ":"")+f[T],f=f.join(d>2?", ":" "),c.replace(d2,`{
|
|
270
270
|
/* [wrapped with `+f+`] */
|
|
271
271
|
`)}o(p$,"insertWrapDetails");function d$(c){return Qe(c)||ac(c)||!!(yO&&c&&c[yO])}o(d$,"isFlattenable");function sa(c,f){var d=typeof c;return f=f??Ne,!!f&&(d=="number"||d!="symbol"&&x2.test(c))&&c>-1&&c%1==0&&c<f}o(sa,"isIndex");function Oi(c,f,d){if(!hn(d))return!1;var T=typeof f;return(T=="number"?Gi(d)&&sa(f,d.length):T=="string"&&f in d)?ao(d[f],c):!1}o(Oi,"isIterateeCall");function Fv(c,f){if(Qe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||pr(c)?!0:$d.test(c)||!cr.test(c)||f!=null&&c in Kt(f)}o(Fv,"isKey");function g$(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(g$,"isKeyable");function Dv(c){var f=vg(c),d=P[f];if(typeof d!="function"||!(f in pt.prototype))return!1;if(c===d)return!0;var T=Rv(d);return!!T&&c===T[0]}o(Dv,"isLaziable");function m$(c){return!!dO&&dO in c}o(m$,"isMasked");var h$=qd?ca:Yv;function fu(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||ll;return c===d}o(fu,"isPrototype");function dR(c){return c===c&&!hn(c)}o(dR,"isStrictComparable");function gR(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Kt(d))}}o(gR,"matchesStrictComparable");function y$(c){var f=xg(c,function(T){return d.size===l&&d.clear(),T}),d=f.cache;return f}o(y$,"memoizeCapped");function T$(c,f){var d=c[1],T=f[1],S=d|T,C=S<(b|O|Z),L=T==Z&&d==M||T==Z&&d==oe&&c[7].length<=f[8]||T==(Z|oe)&&f[7].length<=f[8]&&d==M;if(!(C||L))return c;T&b&&(c[2]=f[2],S|=d&b?0:N);var F=f[3];if(F){var k=c[3];c[3]=k?YO(k,F,f[4]):F,c[4]=k?Ka(c[3],u):f[4]}return F=f[5],F&&(k=c[5],c[5]=k?zO(k,F,f[6]):F,c[6]=k?Ka(c[5],u):f[6]),F=f[7],F&&(c[7]=F),T&Z&&(c[8]=c[8]==null?f[8]:gi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=S,c}o(T$,"mergeData");function v$(c){var f=[];if(c!=null)for(var d in Kt(c))f.push(d);return f}o(v$,"nativeKeysIn");function b$(c){return zd.call(c)}o(b$,"objectToString");function mR(c,f,d){return f=$n(f===e?c.length-1:f,0),function(){for(var T=arguments,S=-1,C=$n(T.length-f,0),L=K(C);++S<C;)L[S]=T[f+S];S=-1;for(var F=K(f+1);++S<f;)F[S]=T[S];return F[f]=d(L),lr(c,this,F)}}o(mR,"overRest");function hR(c,f){return f.length<2?c:ic(c,Mr(f,0,-1))}o(hR,"parent");function E$(c,f){for(var d=c.length,T=gi(f.length,d),S=Hi(c);T--;){var C=f[T];c[T]=sa(C,d)?S[C]:e}return c}o(E$,"reorder");function _v(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(_v,"safeGet");var yR=vR(jO),uu=wU||function(c,f){return Xn.setTimeout(c,f)},Vv=vR(Gj);function TR(c,f,d){var T=f+"";return Vv(c,p$(T,S$(l$(T),d)))}o(TR,"setWrapToString");function vR(c){var f=0,d=0;return function(){var T=jU(),S=je-(T-d);if(d=T,S>0){if(++f>=ht)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(vR,"shortOut");function Eg(c,f){var d=-1,T=c.length,S=T-1;for(f=f===e?T:f;++d<f;){var C=yv(d,S),L=c[C];c[C]=c[d],c[d]=L}return c.length=f,c}o(Eg,"shuffleSelf");var bR=y$(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(UT,function(d,T,S,C){f.push(S?C.replace(T2,"$1"):T||d)}),f});function No(c){if(typeof c=="string"||pr(c))return c;var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(No,"toKey");function oc(c){if(c!=null){try{return Yd.call(c)}catch{}try{return c+""}catch{}}return""}o(oc,"toSource");function S$(c,f){return Dr(Fe,function(d){var T="_."+d[0];f&d[1]&&!Wd(c,T)&&c.push(T)}),c.sort()}o(S$,"updateWrapDetails");function ER(c){if(c instanceof pt)return c.clone();var f=new Vr(c.__wrapped__,c.__chain__);return f.__actions__=Hi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(ER,"wrapperClone");function A$(c,f,d){(d?Oi(c,f,d):f===e)?f=1:f=$n(Je(f),0);var T=c==null?0:c.length;if(!T||f<1)return[];for(var S=0,C=0,L=K(ig(T/f));S<T;)L[C++]=Mr(c,S,S+=f);return L}o(A$,"chunk");function P$(c){for(var f=-1,d=c==null?0:c.length,T=0,S=[];++f<d;){var C=c[f];C&&(S[T++]=C)}return S}o(P$,"compact");function x$(){var c=arguments.length;if(!c)return[];for(var f=K(c-1),d=arguments[0],T=c;T--;)f[T-1]=arguments[T];return Wa(Qe(d)?Hi(d):[d],ni(f,1))}o(x$,"concat");var C$=tt(function(c,f){return Cn(c)?ou(c,ni(f,1,Cn,!0)):[]}),I$=tt(function(c,f){var d=kr(f);return Cn(d)&&(d=e),Cn(c)?ou(c,ni(f,1,Cn,!0),Ve(d,2)):[]}),O$=tt(function(c,f){var d=kr(f);return Cn(d)&&(d=e),Cn(c)?ou(c,ni(f,1,Cn,!0),e,d):[]});function R$(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Je(f),Mr(c,f<0?0:f,T)):[]}o(R$,"drop");function L$(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Je(f),f=T-f,Mr(c,0,f<0?0:f)):[]}o(L$,"dropRight");function N$(c,f){return c&&c.length?dg(c,Ve(f,3),!0,!0):[]}o(N$,"dropRightWhile");function F$(c,f){return c&&c.length?dg(c,Ve(f,3),!0):[]}o(F$,"dropWhile");function D$(c,f,d,T){var S=c==null?0:c.length;return S?(d&&typeof d!="number"&&Oi(c,f,d)&&(d=0,T=S),xj(c,f,d,T)):[]}o(D$,"fill");function SR(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var S=d==null?0:Je(d);return S<0&&(S=$n(T+S,0)),Kd(c,Ve(f,3),S)}o(SR,"findIndex");function AR(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var S=T-1;return d!==e&&(S=Je(d),S=d<0?$n(T+S,0):gi(S,T-1)),Kd(c,Ve(f,3),S,!0)}o(AR,"findLastIndex");function PR(c){var f=c==null?0:c.length;return f?ni(c,1):[]}o(PR,"flatten");function _$(c){var f=c==null?0:c.length;return f?ni(c,Lt):[]}o(_$,"flattenDeep");function V$(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Je(f),ni(c,f)):[]}o(V$,"flattenDepth");function w$(c){for(var f=-1,d=c==null?0:c.length,T={};++f<d;){var S=c[f];T[S[0]]=S[1]}return T}o(w$,"fromPairs");function xR(c){return c&&c.length?c[0]:e}o(xR,"head");function M$(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var S=d==null?0:Je(d);return S<0&&(S=$n(T+S,0)),al(c,f,S)}o(M$,"indexOf");function k$(c){var f=c==null?0:c.length;return f?Mr(c,0,-1):[]}o(k$,"initial");var U$=tt(function(c){var f=un(c,Sv);return f.length&&f[0]===c[0]?pv(f):[]}),j$=tt(function(c){var f=kr(c),d=un(c,Sv);return f===kr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?pv(d,Ve(f,2)):[]}),$$=tt(function(c){var f=kr(c),d=un(c,Sv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?pv(d,e,f):[]});function B$(c,f){return c==null?"":kU.call(c,f)}o(B$,"join");function kr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(kr,"last");function H$(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var S=T;return d!==e&&(S=Je(d),S=S<0?$n(T+S,0):gi(S,T-1)),f===f?SU(c,f,S):Kd(c,oO,S,!0)}o(H$,"lastIndexOf");function G$(c,f){return c&&c.length?wO(c,Je(f)):e}o(G$,"nth");var W$=tt(CR);function CR(c,f){return c&&c.length&&f&&f.length?hv(c,f):c}o(CR,"pullAll");function K$(c,f,d){return c&&c.length&&f&&f.length?hv(c,f,Ve(d,2)):c}o(K$,"pullAllBy");function X$(c,f,d){return c&&c.length&&f&&f.length?hv(c,f,e,d):c}o(X$,"pullAllWith");var Q$=aa(function(c,f){var d=c==null?0:c.length,T=cv(c,f);return UO(c,un(f,function(S){return sa(S,d)?+S:S}).sort(qO)),T});function q$(c,f){var d=[];if(!(c&&c.length))return d;var T=-1,S=[],C=c.length;for(f=Ve(f,3);++T<C;){var L=c[T];f(L,T,c)&&(d.push(L),S.push(T))}return UO(c,S),d}o(q$,"remove");function wv(c){return c==null?c:BU.call(c)}o(wv,"reverse");function Y$(c,f,d){var T=c==null?0:c.length;return T?(d&&typeof d!="number"&&Oi(c,f,d)?(f=0,d=T):(f=f==null?0:Je(f),d=d===e?T:Je(d)),Mr(c,f,d)):[]}o(Y$,"slice");function z$(c,f){return pg(c,f)}o(z$,"sortedIndex");function J$(c,f,d){return vv(c,f,Ve(d,2))}o(J$,"sortedIndexBy");function Z$(c,f){var d=c==null?0:c.length;if(d){var T=pg(c,f);if(T<d&&ao(c[T],f))return T}return-1}o(Z$,"sortedIndexOf");function e4(c,f){return pg(c,f,!0)}o(e4,"sortedLastIndex");function t4(c,f,d){return vv(c,f,Ve(d,2),!0)}o(t4,"sortedLastIndexBy");function n4(c,f){var d=c==null?0:c.length;if(d){var T=pg(c,f,!0)-1;if(ao(c[T],f))return T}return-1}o(n4,"sortedLastIndexOf");function i4(c){return c&&c.length?$O(c):[]}o(i4,"sortedUniq");function r4(c,f){return c&&c.length?$O(c,Ve(f,2)):[]}o(r4,"sortedUniqBy");function o4(c){var f=c==null?0:c.length;return f?Mr(c,1,f):[]}o(o4,"tail");function a4(c,f,d){return c&&c.length?(f=d||f===e?1:Je(f),Mr(c,0,f<0?0:f)):[]}o(a4,"take");function s4(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Je(f),f=T-f,Mr(c,f<0?0:f,T)):[]}o(s4,"takeRight");function c4(c,f){return c&&c.length?dg(c,Ve(f,3),!1,!0):[]}o(c4,"takeRightWhile");function l4(c,f){return c&&c.length?dg(c,Ve(f,3)):[]}o(l4,"takeWhile");var f4=tt(function(c){return Ya(ni(c,1,Cn,!0))}),u4=tt(function(c){var f=kr(c);return Cn(f)&&(f=e),Ya(ni(c,1,Cn,!0),Ve(f,2))}),p4=tt(function(c){var f=kr(c);return f=typeof f=="function"?f:e,Ya(ni(c,1,Cn,!0),e,f)});function d4(c){return c&&c.length?Ya(c):[]}o(d4,"uniq");function g4(c,f){return c&&c.length?Ya(c,Ve(f,2)):[]}o(g4,"uniqBy");function m4(c,f){return f=typeof f=="function"?f:e,c&&c.length?Ya(c,e,f):[]}o(m4,"uniqWith");function Mv(c){if(!(c&&c.length))return[];var f=0;return c=Ga(c,function(d){if(Cn(d))return f=$n(d.length,f),!0}),ev(f,function(d){return un(c,zT(d))})}o(Mv,"unzip");function IR(c,f){if(!(c&&c.length))return[];var d=Mv(c);return f==null?d:un(d,function(T){return lr(f,e,T)})}o(IR,"unzipWith");var h4=tt(function(c,f){return Cn(c)?ou(c,f):[]}),y4=tt(function(c){return Ev(Ga(c,Cn))}),T4=tt(function(c){var f=kr(c);return Cn(f)&&(f=e),Ev(Ga(c,Cn),Ve(f,2))}),b4=tt(function(c){var f=kr(c);return f=typeof f=="function"?f:e,Ev(Ga(c,Cn),e,f)}),E4=tt(Mv);function S4(c,f){return WO(c||[],f||[],ru)}o(S4,"zipObject");function A4(c,f){return WO(c||[],f||[],cu)}o(A4,"zipObjectDeep");var P4=tt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,IR(c,d)});function OR(c){var f=P(c);return f.__chain__=!0,f}o(OR,"chain");function x4(c,f){return f(c),c}o(x4,"tap");function Sg(c,f){return f(c)}o(Sg,"thru");var C4=aa(function(c){var f=c.length,d=f?c[0]:0,T=this.__wrapped__,S=o(function(C){return cv(C,c)},"interceptor");return f>1||this.__actions__.length||!(T instanceof pt)||!sa(d)?this.thru(S):(T=T.slice(d,+d+(f?1:0)),T.__actions__.push({func:Sg,args:[S],thisArg:e}),new Vr(T,this.__chain__).thru(function(C){return f&&!C.length&&C.push(e),C}))});function I4(){return OR(this)}o(I4,"wrapperChain");function O4(){return new Vr(this.value(),this.__chain__)}o(O4,"wrapperCommit");function R4(){this.__values__===e&&(this.__values__=BR(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(R4,"wrapperNext");function L4(){return this}o(L4,"wrapperToIterator");function N4(c){for(var f,d=this;d instanceof sg;){var T=ER(d);T.__index__=0,T.__values__=e,f?S.__wrapped__=T:f=T;var S=T;d=d.__wrapped__}return S.__wrapped__=c,f}o(N4,"wrapperPlant");function F4(){var c=this.__wrapped__;if(c instanceof pt){var f=c;return this.__actions__.length&&(f=new pt(this)),f=f.reverse(),f.__actions__.push({func:Sg,args:[wv],thisArg:e}),new Vr(f,this.__chain__)}return this.thru(wv)}o(F4,"wrapperReverse");function D4(){return GO(this.__wrapped__,this.__actions__)}o(D4,"wrapperValue");var _4=gg(function(c,f,d){Ft.call(c,d)?++c[d]:ra(c,d,1)});function V4(c,f,d){var T=Qe(c)?iO:Pj;return d&&Oi(c,f,d)&&(f=e),T(c,Ve(f,3))}o(V4,"every");function w4(c,f){var d=Qe(c)?Ga:IO;return d(c,Ve(f,3))}o(w4,"filter");var M4=tR(SR),k4=tR(AR);function U4(c,f){return ni(Ag(c,f),1)}o(U4,"flatMap");function j4(c,f){return ni(Ag(c,f),Lt)}o(j4,"flatMapDeep");function $4(c,f,d){return d=d===e?1:Je(d),ni(Ag(c,f),d)}o($4,"flatMapDepth");function RR(c,f){var d=Qe(c)?Dr:qa;return d(c,Ve(f,3))}o(RR,"forEach");function LR(c,f){var d=Qe(c)?oU:CO;return d(c,Ve(f,3))}o(LR,"forEachRight");var B4=gg(function(c,f,d){Ft.call(c,d)?c[d].push(f):ra(c,d,[f])});function H4(c,f,d,T){c=Gi(c)?c:yl(c),d=d&&!T?Je(d):0;var S=c.length;return d<0&&(d=$n(S+d,0)),Og(c)?d<=S&&c.indexOf(f,d)>-1:!!S&&al(c,f,d)>-1}o(H4,"includes");var G4=tt(function(c,f,d){var T=-1,S=typeof f=="function",C=Gi(c)?K(c.length):[];return qa(c,function(L){C[++T]=S?lr(f,L,d):au(L,f,d)}),C}),W4=gg(function(c,f,d){ra(c,d,f)});function Ag(c,f){var d=Qe(c)?un:DO;return d(c,Ve(f,3))}o(Ag,"map");function K4(c,f,d,T){return c==null?[]:(Qe(f)||(f=f==null?[]:[f]),d=T?e:d,Qe(d)||(d=d==null?[]:[d]),MO(c,f,d))}o(K4,"orderBy");var X4=gg(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function Q4(c,f,d){var T=Qe(c)?qT:sO,S=arguments.length<3;return T(c,Ve(f,4),d,S,qa)}o(Q4,"reduce");function q4(c,f,d){var T=Qe(c)?aU:sO,S=arguments.length<3;return T(c,Ve(f,4),d,S,CO)}o(q4,"reduceRight");function Y4(c,f){var d=Qe(c)?Ga:IO;return d(c,Cg(Ve(f,3)))}o(Y4,"reject");function z4(c){var f=Qe(c)?SO:Bj;return f(c)}o(z4,"sample");function J4(c,f,d){(d?Oi(c,f,d):f===e)?f=1:f=Je(f);var T=Qe(c)?vj:Hj;return T(c,f)}o(J4,"sampleSize");function Z4(c){var f=Qe(c)?bj:Wj;return f(c)}o(Z4,"shuffle");function eB(c){if(c==null)return 0;if(Gi(c))return Og(c)?cl(c):c.length;var f=mi(c);return f==qe||f==gn?c.size:gv(c).length}o(eB,"size");function tB(c,f,d){var T=Qe(c)?YT:Kj;return d&&Oi(c,f,d)&&(f=e),T(c,Ve(f,3))}o(tB,"some");var nB=tt(function(c,f){if(c==null)return[];var d=f.length;return d>1&&Oi(c,f[0],f[1])?f=[]:d>2&&Oi(f[0],f[1],f[2])&&(f=[f[0]]),MO(c,ni(f,1),[])}),Pg=VU||function(){return Xn.Date.now()};function iB(c,f){if(typeof f!="function")throw new _r(r);return c=Je(c),function(){if(--c<1)return f.apply(this,arguments)}}o(iB,"after");function NR(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,oa(c,Z,e,e,e,e,f)}o(NR,"ary");function FR(c,f){var d;if(typeof f!="function")throw new _r(r);return c=Je(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(FR,"before");var kv=tt(function(c,f,d){var T=b;if(d.length){var S=Ka(d,ml(kv));T|=$}return oa(c,T,f,d,S)}),DR=tt(function(c,f,d){var T=b|O;if(d.length){var S=Ka(d,ml(DR));T|=$}return oa(f,T,c,d,S)});function _R(c,f,d){f=d?e:f;var T=oa(c,M,e,e,e,e,e,f);return T.placeholder=_R.placeholder,T}o(_R,"curry");function VR(c,f,d){f=d?e:f;var T=oa(c,H,e,e,e,e,e,f);return T.placeholder=VR.placeholder,T}o(VR,"curryRight");function wR(c,f,d){var T,S,C,L,F,k,z=0,J=!1,ne=!1,ge=!0;if(typeof c!="function")throw new _r(r);f=Ur(f)||0,hn(d)&&(J=!!d.leading,ne="maxWait"in d,C=ne?$n(Ur(d.maxWait)||0,f):C,ge="trailing"in d?!!d.trailing:ge);function Oe(In){var so=T,fa=S;return T=S=e,z=In,L=c.apply(fa,so),L}o(Oe,"invokeFunc");function Me(In){return z=In,F=uu(at,f),J?Oe(In):L}o(Me,"leadingEdge");function Ze(In){var so=In-k,fa=In-z,tL=f-so;return ne?gi(tL,C-fa):tL}o(Ze,"remainingWait");function ke(In){var so=In-k,fa=In-z;return k===e||so>=f||so<0||ne&&fa>=C}o(ke,"shouldInvoke");function at(){var In=Pg();if(ke(In))return dt(In);F=uu(at,Ze(In))}o(at,"timerExpired");function dt(In){return F=e,ge&&T?Oe(In):(T=S=e,L)}o(dt,"trailingEdge");function dr(){F!==e&&KO(F),z=0,T=k=S=F=e}o(dr,"cancel");function Ri(){return F===e?L:dt(Pg())}o(Ri,"flush");function gr(){var In=Pg(),so=ke(In);if(T=arguments,S=this,k=In,so){if(F===e)return Me(k);if(ne)return KO(F),F=uu(at,f),Oe(k)}return F===e&&(F=uu(at,f)),L}return o(gr,"debounced"),gr.cancel=dr,gr.flush=Ri,gr}o(wR,"debounce");var rB=tt(function(c,f){return xO(c,1,f)}),oB=tt(function(c,f,d){return xO(c,Ur(f)||0,d)});function aB(c){return oa(c,Ae)}o(aB,"flip");function xg(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new _r(r);var d=o(function(){var T=arguments,S=f?f.apply(this,T):T[0],C=d.cache;if(C.has(S))return C.get(S);var L=c.apply(this,T);return d.cache=C.set(S,L)||C,L},"memoized");return d.cache=new(xg.Cache||ia),d}o(xg,"memoize"),xg.Cache=ia;function Cg(c){if(typeof c!="function")throw new _r(r);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}o(Cg,"negate");function sB(c){return FR(2,c)}o(sB,"once");var cB=Xj(function(c,f){f=f.length==1&&Qe(f[0])?un(f[0],fr(Ve())):un(ni(f,1),fr(Ve()));var d=f.length;return tt(function(T){for(var S=-1,C=gi(T.length,d);++S<C;)T[S]=f[S].call(this,T[S]);return lr(c,this,T)})}),Uv=tt(function(c,f){var d=Ka(f,ml(Uv));return oa(c,$,e,f,d)}),MR=tt(function(c,f){var d=Ka(f,ml(MR));return oa(c,re,e,f,d)}),lB=aa(function(c,f){return oa(c,oe,e,e,e,f)});function fB(c,f){if(typeof c!="function")throw new _r(r);return f=f===e?f:Je(f),tt(c,f)}o(fB,"rest");function uB(c,f){if(typeof c!="function")throw new _r(r);return f=f==null?0:$n(Je(f),0),tt(function(d){var T=d[f],S=Ja(d,0,f);return T&&Wa(S,T),lr(c,this,S)})}o(uB,"spread");function pB(c,f,d){var T=!0,S=!0;if(typeof c!="function")throw new _r(r);return hn(d)&&(T="leading"in d?!!d.leading:T,S="trailing"in d?!!d.trailing:S),wR(c,f,{leading:T,maxWait:f,trailing:S})}o(pB,"throttle");function dB(c){return NR(c,1)}o(dB,"unary");function gB(c,f){return Uv(Av(f),c)}o(gB,"wrap");function mB(){if(!arguments.length)return[];var c=arguments[0];return Qe(c)?c:[c]}o(mB,"castArray");function hB(c){return wr(c,m)}o(hB,"clone");function yB(c,f){return f=typeof f=="function"?f:e,wr(c,m,f)}o(yB,"cloneWith");function TB(c){return wr(c,p|m)}o(TB,"cloneDeep");function vB(c,f){return f=typeof f=="function"?f:e,wr(c,p|m,f)}o(vB,"cloneDeepWith");function bB(c,f){return f==null||PO(c,f,Qn(f))}o(bB,"conformsTo");function ao(c,f){return c===f||c!==c&&f!==f}o(ao,"eq");var EB=Tg(uv),SB=Tg(function(c,f){return c>=f}),ac=LO(function(){return arguments}())?LO:function(c){return Tn(c)&&Ft.call(c,"callee")&&!hO.call(c,"callee")},Qe=K.isArray,AB=zI?fr(zI):Lj;function Gi(c){return c!=null&&Ig(c.length)&&!ca(c)}o(Gi,"isArrayLike");function Cn(c){return Tn(c)&&Gi(c)}o(Cn,"isArrayLikeObject");function PB(c){return c===!0||c===!1||Tn(c)&&Ii(c)==I}o(PB,"isBoolean");var Za=MU||Yv,xB=JI?fr(JI):Nj;function CB(c){return Tn(c)&&c.nodeType===1&&!pu(c)}o(CB,"isElement");function IB(c){if(c==null)return!0;if(Gi(c)&&(Qe(c)||typeof c=="string"||typeof c.splice=="function"||Za(c)||hl(c)||ac(c)))return!c.length;var f=mi(c);if(f==qe||f==gn)return!c.size;if(fu(c))return!gv(c).length;for(var d in c)if(Ft.call(c,d))return!1;return!0}o(IB,"isEmpty");function OB(c,f){return su(c,f)}o(OB,"isEqual");function RB(c,f,d){d=typeof d=="function"?d:e;var T=d?d(c,f):e;return T===e?su(c,f,e,d):!!T}o(RB,"isEqualWith");function jv(c){if(!Tn(c))return!1;var f=Ii(c);return f==V||f==Y||typeof c.message=="string"&&typeof c.name=="string"&&!pu(c)}o(jv,"isError");function LB(c){return typeof c=="number"&&TO(c)}o(LB,"isFinite");function ca(c){if(!hn(c))return!1;var f=Ii(c);return f==_e||f==Nt||f==ot||f==ti}o(ca,"isFunction");function kR(c){return typeof c=="number"&&c==Je(c)}o(kR,"isInteger");function Ig(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Ne}o(Ig,"isLength");function hn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(hn,"isObject");function Tn(c){return c!=null&&typeof c=="object"}o(Tn,"isObjectLike");var UR=ZI?fr(ZI):Dj;function NB(c,f){return c===f||dv(c,f,Lv(f))}o(NB,"isMatch");function FB(c,f,d){return d=typeof d=="function"?d:e,dv(c,f,Lv(f),d)}o(FB,"isMatchWith");function DB(c){return jR(c)&&c!=+c}o(DB,"isNaN");function _B(c){if(h$(c))throw new We(i);return NO(c)}o(_B,"isNative");function VB(c){return c===null}o(VB,"isNull");function wB(c){return c==null}o(wB,"isNil");function jR(c){return typeof c=="number"||Tn(c)&&Ii(c)==Ut}o(jR,"isNumber");function pu(c){if(!Tn(c)||Ii(c)!=ln)return!1;var f=eg(c);if(f===null)return!0;var d=Ft.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&Yd.call(d)==NU}o(pu,"isPlainObject");var $v=eO?fr(eO):_j;function MB(c){return kR(c)&&c>=-Ne&&c<=Ne}o(MB,"isSafeInteger");var $R=tO?fr(tO):Vj;function Og(c){return typeof c=="string"||!Qe(c)&&Tn(c)&&Ii(c)==di}o(Og,"isString");function pr(c){return typeof c=="symbol"||Tn(c)&&Ii(c)==Gt}o(pr,"isSymbol");var hl=nO?fr(nO):wj;function kB(c){return c===e}o(kB,"isUndefined");function UB(c){return Tn(c)&&mi(c)==Bi}o(UB,"isWeakMap");function jB(c){return Tn(c)&&Ii(c)==Xf}o(jB,"isWeakSet");var $B=Tg(mv),BB=Tg(function(c,f){return c<=f});function BR(c){if(!c)return[];if(Gi(c))return Og(c)?ro(c):Hi(c);if(Zf&&c[Zf])return vU(c[Zf]());var f=mi(c),d=f==qe?nv:f==gn?Xd:yl;return d(c)}o(BR,"toArray");function la(c){if(!c)return c===0?c:0;if(c=Ur(c),c===Lt||c===-Lt){var f=c<0?-1:1;return f*Ci}return c===c?c:0}o(la,"toFinite");function Je(c){var f=la(c),d=f%1;return f===f?d?f-d:f:0}o(Je,"toInteger");function HR(c){return c?nc(Je(c),0,kt):0}o(HR,"toLength");function Ur(c){if(typeof c=="number")return c;if(pr(c))return Ct;if(hn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=hn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=cO(c);var d=S2.test(c);return d||P2.test(c)?nU(c.slice(2),d?2:8):E2.test(c)?Ct:+c}o(Ur,"toNumber");function GR(c){return Lo(c,Wi(c))}o(GR,"toPlainObject");function HB(c){return c?nc(Je(c),-Ne,Ne):c===0?c:0}o(HB,"toSafeInteger");function It(c){return c==null?"":ur(c)}o(It,"toString");var GB=dl(function(c,f){if(fu(f)||Gi(f)){Lo(f,Qn(f),c);return}for(var d in f)Ft.call(f,d)&&ru(c,d,f[d])}),WR=dl(function(c,f){Lo(f,Wi(f),c)}),Rg=dl(function(c,f,d,T){Lo(f,Wi(f),c,T)}),WB=dl(function(c,f,d,T){Lo(f,Qn(f),c,T)}),KB=aa(cv);function XB(c,f){var d=pl(c);return f==null?d:AO(d,f)}o(XB,"create");var QB=tt(function(c,f){c=Kt(c);var d=-1,T=f.length,S=T>2?f[2]:e;for(S&&Oi(f[0],f[1],S)&&(T=1);++d<T;)for(var C=f[d],L=Wi(C),F=-1,k=L.length;++F<k;){var z=L[F],J=c[z];(J===e||ao(J,ll[z])&&!Ft.call(c,z))&&(c[z]=C[z])}return c}),qB=tt(function(c){return c.push(e,cR),lr(KR,e,c)});function YB(c,f){return rO(c,Ve(f,3),Ro)}o(YB,"findKey");function zB(c,f){return rO(c,Ve(f,3),fv)}o(zB,"findLastKey");function JB(c,f){return c==null?c:lv(c,Ve(f,3),Wi)}o(JB,"forIn");function ZB(c,f){return c==null?c:OO(c,Ve(f,3),Wi)}o(ZB,"forInRight");function eH(c,f){return c&&Ro(c,Ve(f,3))}o(eH,"forOwn");function tH(c,f){return c&&fv(c,Ve(f,3))}o(tH,"forOwnRight");function nH(c){return c==null?[]:fg(c,Qn(c))}o(nH,"functions");function iH(c){return c==null?[]:fg(c,Wi(c))}o(iH,"functionsIn");function Bv(c,f,d){var T=c==null?e:ic(c,f);return T===e?d:T}o(Bv,"get");function rH(c,f){return c!=null&&uR(c,f,Cj)}o(rH,"has");function Hv(c,f){return c!=null&&uR(c,f,Ij)}o(Hv,"hasIn");var oH=iR(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=zd.call(f)),c[f]=d},Wv(Ki)),aH=iR(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=zd.call(f)),Ft.call(c,f)?c[f].push(d):c[f]=[d]},Ve),sH=tt(au);function Qn(c){return Gi(c)?EO(c):gv(c)}o(Qn,"keys");function Wi(c){return Gi(c)?EO(c,!0):Mj(c)}o(Wi,"keysIn");function cH(c,f){var d={};return f=Ve(f,3),Ro(c,function(T,S,C){ra(d,f(T,S,C),T)}),d}o(cH,"mapKeys");function lH(c,f){var d={};return f=Ve(f,3),Ro(c,function(T,S,C){ra(d,S,f(T,S,C))}),d}o(lH,"mapValues");var fH=dl(function(c,f,d){ug(c,f,d)}),KR=dl(function(c,f,d,T){ug(c,f,d,T)}),uH=aa(function(c,f){var d={};if(c==null)return d;var T=!1;f=un(f,function(C){return C=za(C,c),T||(T=C.length>1),C}),Lo(c,Ov(c),d),T&&(d=wr(d,p|g|m,r$));for(var S=f.length;S--;)bv(d,f[S]);return d});function pH(c,f){return XR(c,Cg(Ve(f)))}o(pH,"omitBy");var dH=aa(function(c,f){return c==null?{}:Uj(c,f)});function XR(c,f){if(c==null)return{};var d=un(Ov(c),function(T){return[T]});return f=Ve(f),kO(c,d,function(T,S){return f(T,S[0])})}o(XR,"pickBy");function gH(c,f,d){f=za(f,c);var T=-1,S=f.length;for(S||(S=1,c=e);++T<S;){var C=c==null?e:c[No(f[T])];C===e&&(T=S,C=d),c=ca(C)?C.call(c):C}return c}o(gH,"result");function mH(c,f,d){return c==null?c:cu(c,f,d)}o(mH,"set");function hH(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:cu(c,f,d,T)}o(hH,"setWith");var QR=aR(Qn),qR=aR(Wi);function yH(c,f,d){var T=Qe(c),S=T||Za(c)||hl(c);if(f=Ve(f,4),d==null){var C=c&&c.constructor;S?d=T?new C:[]:hn(c)?d=ca(C)?pl(eg(c)):{}:d={}}return(S?Dr:Ro)(c,function(L,F,k){return f(d,L,F,k)}),d}o(yH,"transform");function TH(c,f){return c==null?!0:bv(c,f)}o(TH,"unset");function vH(c,f,d){return c==null?c:HO(c,f,Av(d))}o(vH,"update");function bH(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:HO(c,f,Av(d),T)}o(bH,"updateWith");function yl(c){return c==null?[]:tv(c,Qn(c))}o(yl,"values");function EH(c){return c==null?[]:tv(c,Wi(c))}o(EH,"valuesIn");function SH(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=Ur(d),d=d===d?d:0),f!==e&&(f=Ur(f),f=f===f?f:0),nc(Ur(c),f,d)}o(SH,"clamp");function AH(c,f,d){return f=la(f),d===e?(d=f,f=0):d=la(d),c=Ur(c),Oj(c,f,d)}o(AH,"inRange");function PH(c,f,d){if(d&&typeof d!="boolean"&&Oi(c,f,d)&&(f=d=e),d===e&&(typeof f=="boolean"?(d=f,f=e):typeof c=="boolean"&&(d=c,c=e)),c===e&&f===e?(c=0,f=1):(c=la(c),f===e?(f=c,c=0):f=la(f)),c>f){var T=c;c=f,f=T}if(d||c%1||f%1){var S=vO();return gi(c+S*(f-c+tU("1e-"+((S+"").length-1))),f)}return yv(c,f)}o(PH,"random");var xH=gl(function(c,f,d){return f=f.toLowerCase(),c+(d?YR(f):f)});function YR(c){return Gv(It(c).toLowerCase())}o(YR,"capitalize");function zR(c){return c=It(c),c&&c.replace(C2,gU).replace(W2,"")}o(zR,"deburr");function CH(c,f,d){c=It(c),f=ur(f);var T=c.length;d=d===e?T:nc(Je(d),0,T);var S=d;return d-=f.length,d>=0&&c.slice(d,S)==f}o(CH,"endsWith");function IH(c){return c=It(c),c&&Ie.test(c)?c.replace(Te,mU):c}o(IH,"escape");function OH(c){return c=It(c),c&&u2.test(c)?c.replace(zf,"\\$&"):c}o(OH,"escapeRegExp");var RH=gl(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),LH=gl(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),NH=eR("toLowerCase");function FH(c,f,d){c=It(c),f=Je(f);var T=f?cl(c):0;if(!f||T>=f)return c;var S=(f-T)/2;return yg(rg(S),d)+c+yg(ig(S),d)}o(FH,"pad");function DH(c,f,d){c=It(c),f=Je(f);var T=f?cl(c):0;return f&&T<f?c+yg(f-T,d):c}o(DH,"padEnd");function _H(c,f,d){c=It(c),f=Je(f);var T=f?cl(c):0;return f&&T<f?yg(f-T,d)+c:c}o(_H,"padStart");function VH(c,f,d){return d||f==null?f=0:f&&(f=+f),$U(It(c).replace(jT,""),f||0)}o(VH,"parseInt");function wH(c,f,d){return(d?Oi(c,f,d):f===e)?f=1:f=Je(f),Tv(It(c),f)}o(wH,"repeat");function MH(){var c=arguments,f=It(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(MH,"replace");var kH=gl(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function UH(c,f,d){return d&&typeof d!="number"&&Oi(c,f,d)&&(f=d=e),d=d===e?kt:d>>>0,d?(c=It(c),c&&(typeof f=="string"||f!=null&&!$v(f))&&(f=ur(f),!f&&sl(c))?Ja(ro(c),0,d):c.split(f,d)):[]}o(UH,"split");var jH=gl(function(c,f,d){return c+(d?" ":"")+Gv(f)});function $H(c,f,d){return c=It(c),d=d==null?0:nc(Je(d),0,c.length),f=ur(f),c.slice(d,d+f.length)==f}o($H,"startsWith");function BH(c,f,d){var T=P.templateSettings;d&&Oi(c,f,d)&&(f=e),c=It(c),f=Rg({},f,T,sR);var S=Rg({},f.imports,T.imports,sR),C=Qn(S),L=tv(S,C),F,k,z=0,J=f.interpolate||Bd,ne="__p += '",ge=iv((f.escape||Bd).source+"|"+J.source+"|"+(J===fn?b2:Bd).source+"|"+(f.evaluate||Bd).source+"|$","g"),Oe="//# sourceURL="+(Ft.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Y2+"]")+`
|
|
272
272
|
`;c.replace(ge,function(ke,at,dt,dr,Ri,gr){return dt||(dt=dr),ne+=c.slice(z,gr).replace(I2,hU),at&&(F=!0,ne+=`' +
|
|
@@ -285,13 +285,13 @@ __p += '`),dt&&(ne+=`' +
|
|
|
285
285
|
function print() { __p += __j.call(arguments, '') }
|
|
286
286
|
`:`;
|
|
287
287
|
`)+ne+`return __p
|
|
288
|
-
}`;var Ze=ZR(function(){return St(C,Oe+"return "+ne).apply(e,L)});if(Ze.source=ne,jv(Ze))throw Ze;return Ze}o(BH,"template");function HH(c){return It(c).toLowerCase()}o(HH,"toLower");function GH(c){return It(c).toUpperCase()}o(GH,"toUpper");function WH(c,f,d){if(c=It(c),c&&(d||f===e))return cO(c);if(!c||!(f=ur(f)))return c;var T=ro(c),S=ro(f),C=lO(T,S),L=fO(T,S)+1;return Ja(T,C,L).join("")}o(WH,"trim");function KH(c,f,d){if(c=It(c),c&&(d||f===e))return c.slice(0,pO(c)+1);if(!c||!(f=ur(f)))return c;var T=ro(c),S=fO(T,ro(f))+1;return Ja(T,0,S).join("")}o(KH,"trimEnd");function XH(c,f,d){if(c=It(c),c&&(d||f===e))return c.replace(jT,"");if(!c||!(f=ur(f)))return c;var T=ro(c),S=lO(T,ro(f));return Ja(T,S).join("")}o(XH,"trimStart");function QH(c,f){var d=D,T=ut;if(hn(f)){var S="separator"in f?f.separator:S;d="length"in f?Je(f.length):d,T="omission"in f?ur(f.omission):T}c=It(c);var C=c.length;if(sl(c)){var L=ro(c);C=L.length}if(d>=C)return c;var F=d-cl(T);if(F<1)return T;var k=L?Ja(L,0,F).join(""):c.slice(0,F);if(S===e)return k+T;if(L&&(F+=k.length-F),$v(S)){if(c.slice(F).search(S)){var z,J=k;for(S.global||(S=iv(S.source,It(LI.exec(S))+"g")),S.lastIndex=0;z=S.exec(J);)var ne=z.index;k=k.slice(0,ne===e?F:ne)}}else if(c.indexOf(ur(S),F)!=F){var ge=k.lastIndexOf(S);ge>-1&&(k=k.slice(0,ge))}return k+T}o(QH,"truncate");function qH(c){return c=It(c),c&&Pe.test(c)?c.replace(me,AU):c}o(qH,"unescape");var YH=gl(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),Gv=eR("toUpperCase");function JR(c,f,d){return c=It(c),f=d?e:f,f===e?TU(c)?CU(c):lU(c):c.match(f)||[]}o(JR,"words");var ZR=tt(function(c,f){try{return lr(c,e,f)}catch(d){return jv(d)?d:new We(d)}}),zH=aa(function(c,f){return Dr(f,function(d){d=No(d),ra(c,d,kv(c[d],c))}),c});function JH(c){var f=c==null?0:c.length,d=Ve();return c=f?un(c,function(T){if(typeof T[1]!="function")throw new _r(r);return[d(T[0]),T[1]]}):[],tt(function(T){for(var S=-1;++S<f;){var C=c[S];if(lr(C[0],this,T))return lr(C[1],this,T)}})}o(JH,"cond");function ZH(c){return Aj(wr(c,p))}o(ZH,"conforms");function Wv(c){return function(){return c}}o(Wv,"constant");function eG(c,f){return c==null||c!==c?f:c}o(eG,"defaultTo");var tG=nR(),nG=nR(!0);function Ki(c){return c}o(Ki,"identity");function Kv(c){return FO(typeof c=="function"?c:wr(c,p))}o(Kv,"iteratee");function iG(c){return _O(wr(c,p))}o(iG,"matches");function rG(c,f){return VO(c,wr(f,p))}o(rG,"matchesProperty");var oG=tt(function(c,f){return function(d){return au(d,c,f)}}),aG=tt(function(c,f){return function(d){return au(c,d,f)}});function Xv(c,f,d){var T=Qn(f),S=fg(f,T);d==null&&!(hn(f)&&(S.length||!T.length))&&(d=f,f=c,c=this,S=fg(f,Qn(f)));var C=!(hn(d)&&"chain"in d)||!!d.chain,L=ca(c);return Dr(S,function(F){var k=f[F];c[F]=k,L&&(c.prototype[F]=function(){var z=this.__chain__;if(C||z){var J=c(this.__wrapped__),ne=J.__actions__=Hi(this.__actions__);return ne.push({func:k,args:arguments,thisArg:c}),J.__chain__=z,J}return k.apply(c,Wa([this.value()],arguments))})}),c}o(Xv,"mixin");function sG(){return Xn._===this&&(Xn._=FU),this}o(sG,"noConflict");function Qv(){}o(Qv,"noop");function cG(c){return c=Je(c),tt(function(f){return wO(f,c)})}o(cG,"nthArg");var lG=xv(un),fG=xv(iO),uG=xv(YT);function eL(c){return Fv(c)?zT(No(c)):jj(c)}o(eL,"property");function pG(c){return function(f){return c==null?e:ic(c,f)}}o(pG,"propertyOf");var dG=rR(),gG=rR(!0);function qv(){return[]}o(qv,"stubArray");function Yv(){return!1}o(Yv,"stubFalse");function mG(){return{}}o(mG,"stubObject");function hG(){return""}o(hG,"stubString");function yG(){return!0}o(yG,"stubTrue");function TG(c,f){if(c=Je(c),c<1||c>Ne)return[];var d=kt,T=gi(c,kt);f=Ve(f),c-=kt;for(var S=ev(T,f);++d<c;)f(d);return S}o(TG,"times");function vG(c){return Qe(c)?un(c,No):pr(c)?[c]:Hi(bR(It(c)))}o(vG,"toPath");function bG(c){var f=++LU;return It(c)+f}o(bG,"uniqueId");var EG=hg(function(c,f){return c+f},0),SG=Cv("ceil"),AG=hg(function(c,f){return c/f},1),PG=Cv("floor");function xG(c){return c&&c.length?lg(c,Ki,uv):e}o(xG,"max");function CG(c,f){return c&&c.length?lg(c,Ve(f,2),uv):e}o(CG,"maxBy");function IG(c){return aO(c,Ki)}o(IG,"mean");function OG(c,f){return aO(c,Ve(f,2))}o(OG,"meanBy");function RG(c){return c&&c.length?lg(c,Ki,mv):e}o(RG,"min");function LG(c,f){return c&&c.length?lg(c,Ve(f,2),mv):e}o(LG,"minBy");var NG=hg(function(c,f){return c*f},1),FG=Cv("round"),DG=hg(function(c,f){return c-f},0);function _G(c){return c&&c.length?ZT(c,Ki):0}o(_G,"sum");function VG(c,f){return c&&c.length?ZT(c,Ve(f,2)):0}return o(VG,"sumBy"),P.after=iB,P.ary=NR,P.assign=GB,P.assignIn=WR,P.assignInWith=Rg,P.assignWith=WB,P.at=KB,P.before=FR,P.bind=kv,P.bindAll=zH,P.bindKey=DR,P.castArray=mB,P.chain=OR,P.chunk=A$,P.compact=P$,P.concat=x$,P.cond=JH,P.conforms=ZH,P.constant=Wv,P.countBy=_4,P.create=XB,P.curry=_R,P.curryRight=VR,P.debounce=wR,P.defaults=QB,P.defaultsDeep=qB,P.defer=rB,P.delay=oB,P.difference=C$,P.differenceBy=I$,P.differenceWith=O$,P.drop=R$,P.dropRight=L$,P.dropRightWhile=N$,P.dropWhile=F$,P.fill=D$,P.filter=w4,P.flatMap=U4,P.flatMapDeep=j4,P.flatMapDepth=$4,P.flatten=PR,P.flattenDeep=_$,P.flattenDepth=V$,P.flip=aB,P.flow=tG,P.flowRight=nG,P.fromPairs=w$,P.functions=nH,P.functionsIn=iH,P.groupBy=B4,P.initial=k$,P.intersection=U$,P.intersectionBy=j$,P.intersectionWith=$$,P.invert=oH,P.invertBy=aH,P.invokeMap=G4,P.iteratee=Kv,P.keyBy=W4,P.keys=Qn,P.keysIn=Wi,P.map=Ag,P.mapKeys=cH,P.mapValues=lH,P.matches=iG,P.matchesProperty=rG,P.memoize=xg,P.merge=fH,P.mergeWith=KR,P.method=oG,P.methodOf=aG,P.mixin=Xv,P.negate=Cg,P.nthArg=cG,P.omit=uH,P.omitBy=pH,P.once=sB,P.orderBy=K4,P.over=lG,P.overArgs=cB,P.overEvery=fG,P.overSome=uG,P.partial=Uv,P.partialRight=MR,P.partition=X4,P.pick=dH,P.pickBy=XR,P.property=eL,P.propertyOf=pG,P.pull=W$,P.pullAll=CR,P.pullAllBy=K$,P.pullAllWith=X$,P.pullAt=Q$,P.range=dG,P.rangeRight=gG,P.rearg=lB,P.reject=Y4,P.remove=q$,P.rest=fB,P.reverse=wv,P.sampleSize=J4,P.set=mH,P.setWith=hH,P.shuffle=Z4,P.slice=Y$,P.sortBy=nB,P.sortedUniq=i4,P.sortedUniqBy=r4,P.split=UH,P.spread=uB,P.tail=o4,P.take=a4,P.takeRight=s4,P.takeRightWhile=c4,P.takeWhile=l4,P.tap=x4,P.throttle=pB,P.thru=Sg,P.toArray=BR,P.toPairs=QR,P.toPairsIn=qR,P.toPath=vG,P.toPlainObject=GR,P.transform=yH,P.unary=dB,P.union=f4,P.unionBy=u4,P.unionWith=p4,P.uniq=d4,P.uniqBy=g4,P.uniqWith=m4,P.unset=TH,P.unzip=Mv,P.unzipWith=IR,P.update=vH,P.updateWith=bH,P.values=yl,P.valuesIn=EH,P.without=h4,P.words=JR,P.wrap=gB,P.xor=y4,P.xorBy=T4,P.xorWith=b4,P.zip=E4,P.zipObject=S4,P.zipObjectDeep=A4,P.zipWith=P4,P.entries=QR,P.entriesIn=qR,P.extend=WR,P.extendWith=Rg,Xv(P,P),P.add=EG,P.attempt=ZR,P.camelCase=xH,P.capitalize=YR,P.ceil=SG,P.clamp=SH,P.clone=hB,P.cloneDeep=TB,P.cloneDeepWith=vB,P.cloneWith=yB,P.conformsTo=bB,P.deburr=zR,P.defaultTo=eG,P.divide=AG,P.endsWith=CH,P.eq=ao,P.escape=IH,P.escapeRegExp=OH,P.every=V4,P.find=M4,P.findIndex=SR,P.findKey=YB,P.findLast=k4,P.findLastIndex=AR,P.findLastKey=zB,P.floor=PG,P.forEach=RR,P.forEachRight=LR,P.forIn=JB,P.forInRight=ZB,P.forOwn=eH,P.forOwnRight=tH,P.get=Bv,P.gt=EB,P.gte=SB,P.has=rH,P.hasIn=Hv,P.head=xR,P.identity=Ki,P.includes=H4,P.indexOf=M$,P.inRange=AH,P.invoke=sH,P.isArguments=ac,P.isArray=Qe,P.isArrayBuffer=AB,P.isArrayLike=Gi,P.isArrayLikeObject=Cn,P.isBoolean=PB,P.isBuffer=Za,P.isDate=xB,P.isElement=CB,P.isEmpty=IB,P.isEqual=OB,P.isEqualWith=RB,P.isError=jv,P.isFinite=LB,P.isFunction=ca,P.isInteger=kR,P.isLength=Ig,P.isMap=UR,P.isMatch=NB,P.isMatchWith=FB,P.isNaN=DB,P.isNative=_B,P.isNil=wB,P.isNull=VB,P.isNumber=jR,P.isObject=hn,P.isObjectLike=Tn,P.isPlainObject=pu,P.isRegExp=$v,P.isSafeInteger=MB,P.isSet=$R,P.isString=Og,P.isSymbol=pr,P.isTypedArray=hl,P.isUndefined=kB,P.isWeakMap=UB,P.isWeakSet=jB,P.join=B$,P.kebabCase=RH,P.last=kr,P.lastIndexOf=H$,P.lowerCase=LH,P.lowerFirst=NH,P.lt=$B,P.lte=BB,P.max=xG,P.maxBy=CG,P.mean=IG,P.meanBy=OG,P.min=RG,P.minBy=LG,P.stubArray=qv,P.stubFalse=Yv,P.stubObject=mG,P.stubString=hG,P.stubTrue=yG,P.multiply=NG,P.nth=G$,P.noConflict=sG,P.noop=Qv,P.now=Pg,P.pad=FH,P.padEnd=DH,P.padStart=_H,P.parseInt=VH,P.random=PH,P.reduce=Q4,P.reduceRight=q4,P.repeat=wH,P.replace=MH,P.result=gH,P.round=FG,P.runInContext=w,P.sample=z4,P.size=eB,P.snakeCase=kH,P.some=tB,P.sortedIndex=z$,P.sortedIndexBy=J$,P.sortedIndexOf=Z$,P.sortedLastIndex=e4,P.sortedLastIndexBy=t4,P.sortedLastIndexOf=n4,P.startCase=jH,P.startsWith=$H,P.subtract=DG,P.sum=_G,P.sumBy=VG,P.template=BH,P.times=TG,P.toFinite=la,P.toInteger=Je,P.toLength=HR,P.toLower=HH,P.toNumber=Ur,P.toSafeInteger=HB,P.toString=It,P.toUpper=GH,P.trim=WH,P.trimEnd=KH,P.trimStart=XH,P.truncate=QH,P.unescape=qH,P.uniqueId=bG,P.upperCase=YH,P.upperFirst=Gv,P.each=RR,P.eachRight=LR,P.first=xR,Xv(P,function(){var c={};return Ro(P,function(f,d){Ft.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Dr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Dr(["drop","take"],function(c,f){pt.prototype[c]=function(d){d=d===e?1:$n(Je(d),0);var T=this.__filtered__&&!f?new pt(this):this.clone();return T.__filtered__?T.__takeCount__=gi(d,T.__takeCount__):T.__views__.push({size:gi(d,kt),type:c+(T.__dir__<0?"Right":"")}),T},pt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Dr(["filter","map","takeWhile"],function(c,f){var d=f+1,T=d==sn||d==tn;pt.prototype[c]=function(S){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(S,3),type:d}),C.__filtered__=C.__filtered__||T,C}}),Dr(["head","last"],function(c,f){var d="take"+(f?"Right":"");pt.prototype[c]=function(){return this[d](1).value()[0]}}),Dr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");pt.prototype[c]=function(){return this.__filtered__?new pt(this):this[d](1)}}),pt.prototype.compact=function(){return this.filter(Ki)},pt.prototype.find=function(c){return this.filter(c).head()},pt.prototype.findLast=function(c){return this.reverse().find(c)},pt.prototype.invokeMap=tt(function(c,f){return typeof c=="function"?new pt(this):this.map(function(d){return au(d,c,f)})}),pt.prototype.reject=function(c){return this.filter(Cg(Ve(c)))},pt.prototype.slice=function(c,f){c=Je(c);var d=this;return d.__filtered__&&(c>0||f<0)?new pt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Je(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},pt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},pt.prototype.toArray=function(){return this.take(kt)},Ro(pt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),T=/^(?:head|last)$/.test(f),S=P[T?"take"+(f=="last"?"Right":""):f],C=T||/^find/.test(f);S&&(P.prototype[f]=function(){var L=this.__wrapped__,F=T?[1]:arguments,k=L instanceof pt,z=F[0],J=k||Qe(L),ne=o(function(at){var dt=S.apply(P,Wa([at],F));return T&&ge?dt[0]:dt},"interceptor");J&&d&&typeof z=="function"&&z.length!=1&&(k=J=!1);var ge=this.__chain__,Oe=!!this.__actions__.length,Me=C&&!ge,Ze=k&&!Oe;if(!C&&J){L=Ze?L:new pt(this);var ke=c.apply(L,F);return ke.__actions__.push({func:Sg,args:[ne],thisArg:e}),new Vr(ke,ge)}return Me&&Ze?c.apply(this,F):(ke=this.thru(ne),Me?T?ke.value()[0]:ke.value():ke)})}),Dr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Qd[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",T=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var S=arguments;if(T&&!this.__chain__){var C=this.value();return f.apply(Qe(C)?C:[],S)}return this[d](function(L){return f.apply(Qe(L)?L:[],S)})}}),Ro(pt.prototype,function(c,f){var d=P[f];if(d){var T=d.name+"";Ft.call(ul,T)||(ul[T]=[]),ul[T].push({name:f,func:d})}}),ul[mg(e,O).name]=[{name:"wrapper",func:e}],pt.prototype.clone=QU,pt.prototype.reverse=qU,pt.prototype.value=YU,P.prototype.at=C4,P.prototype.chain=I4,P.prototype.commit=O4,P.prototype.next=R4,P.prototype.plant=N4,P.prototype.reverse=F4,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=D4,P.prototype.first=P.prototype.head,Zf&&(P.prototype[Zf]=L4),P},"runInContext"),Xa=IU();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Xn._=Xa,define(function(){return Xa})):Js?((Js.exports=Xa)._=Xa,KT._=Xa):Xn._=Xa}).call(Sf)});var dM=ze((Tde,pM)=>{var{findIndex:CY}=Qp();function IY(e,t){let i=CY(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o(IY,"findNextTextualToken");pM.exports={findNextTextualToken:IY}});var hM=ze((bde,mM)=>{var gM=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function OY({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(gM);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(OY,"isXMLNamespaceKey");function RY(e){if(typeof e!="string")return;let t=e.match(gM);if(t!==null)return t.groups&&t.groups.prefix||""}o(RY,"getXMLNamespaceKeyPrefix");mM.exports={isXMLNamespaceKey:OY,getXMLNamespaceKeyPrefix:RY}});var TM=ze((Sde,yM)=>{var{findNextTextualToken:LY}=dM(),{isXMLNamespaceKey:NY,getXMLNamespaceKeyPrefix:FY}=hM();yM.exports={findNextTextualToken:LY,isXMLNamespaceKey:NY,getXMLNamespaceKeyPrefix:FY}});var UP=ze((Ade,bM)=>{var{reduce:DY,has:vM,isArray:_Y}=Qp();function VY(e){return DY(e,(n,i,r)=>(r==="parent"||(vM(i,"type")?n.push(i):_Y(i)&&i.length>0&&vM(i[0],"type")&&(n=n.concat(i))),n),[])}o(VY,"getAstChildrenReflective");bM.exports={getAstChildrenReflective:VY}});var jP=ze((xde,EM)=>{EM.exports={DEFAULT_NS:"::DEFAULT"}});var RM=ze((Cde,OM)=>{var{BaseXmlCstVisitor:wY}=kP(),{last:MY,forEach:xM,reduce:kY,map:qp,pick:BP,sortBy:UY,isEmpty:jY,isArray:CM,assign:$Y}=Qp(),{findNextTextualToken:BY,isXMLNamespaceKey:HY,getXMLNamespaceKeyPrefix:GY}=TM(),{getAstChildrenReflective:WY}=UP(),{DEFAULT_NS:KY}=jP();function XY(e,t){SM.setState({tokenVector:t});let n=SM.visit(e);return n.rootElement!==Yc&&IM(n.rootElement),n}o(XY,"buildAst");var HP=class HP extends wY{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:Yc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&jY(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),Jy(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=qp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),Jy(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=qp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=qp(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Yc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=qp(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return YY(i,t),zY(i,t),JY(i,t,this.tokenVector),Jy(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Yc,value:Yc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=Zy(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=QY(a.image),r.syntax.value=Zy(a)}return Jy(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Yc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=UY(r,["startOffset"]),s=qp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(HP,"CstToAstVisitor");var $P=HP,SM=new $P;function Jy(e){let t=WY(e);xM(t,n=>n.parent=e)}o(Jy,"setChildrenParent");function IM(e,t=[]){let n=kY(e.attributes,(r,a)=>{if(a.key!==Yc&&HY({key:a.key,includeEmptyPrefix:!1})===!0){let s=GY(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[KY]=l}}return r},{}),i=Object.create(null);e.namespaces=$Y(i,t,n),xM(e.subElements,r=>IM(r,e.namespaces))}o(IM,"updateNamespaces");function Zy(e){return BP(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Zy,"toXMLToken");function AM(e){return BP(e,["startOffset","startLine","startColumn"])}o(AM,"startOfXMLToken");function PM(e){return BP(e,["endOffset","endLine","endColumn"])}o(PM,"endOfXMLToken");function ka(e){return CM(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(ka,"exists");function QY(e){return e.substring(1,e.length-1)}o(QY,"stripQuotes");function qY(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(qY,"nsToParts");var Yc=null;function YY(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Zy(n);let i=qY(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=Zy(t.END_NAME[0]))}o(YY,"handleElementOpenCloseNameRanges");function zY(e,t){if(ka(t.OPEN)){let n;ka(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):ka(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...AM(t.OPEN[0]),...PM(n)}),ka(t.SLASH_OPEN)&&ka(t.END)&&(e.syntax.closeBody={...AM(t.SLASH_OPEN[0]),...PM(t.END[0])})}}o(zY,"handleElementOpenCloseBodyRanges");function JY(e,t,n){if(ka(t.Name)){let i=t.Name[0].endOffset+2;if(ka(t.START_CLOSE)||ka(t.SLASH_CLOSE)){let r=(ka(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=CM(t.attribute)?MY(t.attribute).location.endOffset:t.Name[0].endOffset,s=BY(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(JY,"handleElementAttributeRanges");OM.exports={buildAst:XY}});var FM=ze((Ode,NM)=>{var{forEach:ZY,isFunction:Af}=Qp(),{getAstChildrenReflective:ez}=UP();function LM(e,t){switch(e.type){case"XMLDocument":{Af(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{Af(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{Af(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{Af(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{Af(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{Af(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=ez(e);ZY(n,i=>{LM(i,t)})}o(LM,"accept");NM.exports={accept:LM}});var _M=ze((Lde,DM)=>{var{buildAst:tz}=RM(),{accept:nz}=FM(),{DEFAULT_NS:iz}=jP();DM.exports={buildAst:tz,accept:nz,DEFAULT_NS:iz}});var Li={};sc(Li,{deleteConfigEntityByPath:()=>TZ,exportConfig:()=>hZ,exportConfigEntityByPath:()=>yZ,generateCustomExtension:()=>PI,generateSchema:()=>mZ,getApiVersion:()=>SZ,getChanges:()=>f2,getGenericSchema:()=>_T,getPathToGenericSchema:()=>Rk,getProject:()=>IZ,importConfig:()=>vZ,importProject:()=>bZ,importProjectSchema:()=>EZ,isDirectory:()=>PZ,log:()=>ae,prompts:()=>gZ,readDirectory:()=>RI});module.exports=Ng(Li);var de=te(ce());var W=te(ce());var Be=o(e=>typeof e=="string","isString"),du=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),kF=o(e=>e==null?"":""+e,"makeString"),hW=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),yW=/###/g,UF=o(e=>e&&e.indexOf("###")>-1?e.replace(yW,"."):e,"cleanKey"),jF=o(e=>!e||Be(e),"canNotTraverseDeeper"),gu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(jF(e))return{};let a=UF(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return jF(e)?{}:{obj:e,k:UF(i[r])}},"getLastOfPath"),$F=o((e,t,n)=>{let{obj:i,k:r}=gu(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=gu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=gu(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),TW=o((e,t,n,i)=>{let{obj:r,k:a}=gu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),Dg=o((e,t)=>{let{obj:n,k:i}=gu(e,t);if(n)return n[i]},"getPath"),vW=o((e,t,n)=>{let i=Dg(e,n);return i!==void 0?i:Dg(t,n)},"getPathWithDefaults"),XF=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):XF(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),vl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),bW={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},EW=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>bW[t]):e,"escape"),pb=class pb{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(pb,"RegExpCache");var ob=pb,SW=[" ",",","?","!",";"],AW=new ob(20),PW=o((e,t,n)=>{t=t||"",n=n||"";let i=SW.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=AW.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),ab=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),_g=o(e=>e&&e.replace("_","-"),"getCleanedCode"),xW={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)}},mu=class mu{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||xW,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new mu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new mu(this.logger,t)}};o(mu,"Logger");var sb=mu,Fo=new sb,db=class db{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l.apply(l,[t,...i])})}};o(db,"EventEmitter");var El=db,gb=class gb extends El{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let u=Dg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||!Be(i)?u:ab(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),$F(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=Dg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?XF(u,i,a):u={...u,...i},$F(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(gb,"ResourceStore");var Vg=gb,QF={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},BF={},Ug=class Ug extends El{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),hW(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Fo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!PW(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let re=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${re}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${re}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),h=m&&m.res,E=m&&m.usedKey||s,b=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(h),N=["[object Number]","[object Function]","[object RegExp]"],M=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,H=!this.i18nFormat||this.i18nFormat.handleAsObject,$=!Be(h)&&typeof h!="boolean"&&typeof h!="number";if(H&&h&&$&&N.indexOf(O)<0&&!(Be(M)&&Array.isArray(h))){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(E,h,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=re,m.usedParams=this.getUsedParamsDetails(n),m):re}if(a){let re=Array.isArray(h),Z=re?[]:{},oe=re?b:E;for(let Ae in h)if(Object.prototype.hasOwnProperty.call(h,Ae)){let D=`${oe}${a}${Ae}`;Z[Ae]=this.translate(D,{...n,joinArrays:!1,ns:l}),Z[Ae]===D&&(Z[Ae]=h[Ae])}h=Z}}else if(H&&Be(M)&&Array.isArray(h))h=h.join(M),h&&(h=this.extendTranslation(h,t,n,i));else{let re=!1,Z=!1,oe=n.count!==void 0&&!Be(n.count),Ae=Ug.hasDefaultValue(n),D=oe?this.pluralResolver.getSuffix(p,n.count,n):"",ut=n.ordinal&&oe?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",ht=oe&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),je=ht&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${ut}`]||n.defaultValue;!this.isValidLookup(h)&&Ae&&(re=!0,h=je),this.isValidLookup(h)||(Z=!0,h=s);let Wn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:h,tn=Ae&&je!==h&&this.options.updateMissing;if(Z||re||tn){if(this.logger.log(tn?"updateKey":"missingKey",p,u,s,tn?je:h),a){let Ct=this.resolve(s,{...n,keySeparator:!1});Ct&&Ct.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Lt=[],Ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ne&&Ne[0])for(let Ct=0;Ct<Ne.length;Ct++)Lt.push(Ne[Ct]);else this.options.saveMissingTo==="all"?Lt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Lt.push(n.lng||this.language);let Ci=o((Ct,kt,cn)=>{let $i=Ae&&cn!==h?cn:Wn;this.options.missingKeyHandler?this.options.missingKeyHandler(Ct,u,kt,$i,tn,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ct,u,kt,$i,tn,n),this.emit("missingKey",Ct,u,kt,h)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&oe?Lt.forEach(Ct=>{let kt=this.pluralResolver.getSuffixes(Ct,n);ht&&n[`defaultValue${this.options.pluralSeparator}zero`]&&kt.indexOf(`${this.options.pluralSeparator}zero`)<0&&kt.push(`${this.options.pluralSeparator}zero`),kt.forEach(cn=>{Ci([Ct],s+cn,n[`defaultValue${cn}`]||je)})}):Ci(Lt,s,je))}h=this.extendTranslation(h,t,n,m,i),Z&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${u}:${s}`),(Z||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,re?h:void 0):h=this.options.parseMissingKeyHandler(h))}return r?(m.res=h,m.usedParams=this.getUsedParamsDetails(n),m):h}extendTranslation(t,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=Be(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(p){let h=t.match(this.interpolator.nestingRegexp);g=h&&h.length}let m=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||r.usedLng,i),p){let h=t.match(this.interpolator.nestingRegexp),E=h&&h.length;g<E&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,E=new Array(h),b=0;b<h;b++)E[b]=arguments[b];return a&&a[0]===E[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${E[0]} in key: ${n[0]}`),null):s.translate(...E,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,u=Be(l)?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=QF.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return Be(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(u,n),g=p.key;r=g;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let h=n.count!==void 0&&!Be(n.count),E=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(N=>{this.isValidLookup(i)||(l=N,!BF[`${O[0]}-${N}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(BF[`${O[0]}-${N}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(M=>{if(this.isValidLookup(i))return;s=M;let H=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(H,g,M,N,n);else{let re;h&&(re=this.pluralResolver.getSuffix(M,n.count,n));let Z=`${this.options.pluralSeparator}zero`,oe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(H.push(g+re),n.ordinal&&re.indexOf(oe)===0&&H.push(g+re.replace(oe,this.options.pluralSeparator)),E&&H.push(g+Z)),b){let Ae=`${g}${this.options.contextSeparator}${n.context}`;H.push(Ae),h&&(H.push(Ae+re),n.ordinal&&re.indexOf(oe)===0&&H.push(Ae+re.replace(oe,this.options.pluralSeparator)),E&&H.push(Ae+Z))}}let $;for(;$=H.pop();)this.isValidLookup(i)||(a=$,i=this.getResource(M,N,$,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(Ug,"Translator");var wg=Ug,ib=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),mb=class mb{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fo.create("languageUtils")}getScriptPartFromCode(t){if(t=_g(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=_g(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=ib(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]=ib(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=ib(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(mb,"LanguageUtil");var Mg=mb,CW=[{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}],IW={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},OW=["v1","v2","v3"],RW=["v4"],HF={zero:0,one:1,two:2,few:3,many:4,other:5},LW=o(()=>{let e={};return CW.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:IW[t.fc]}})}),e},"createRules"),hb=class hb{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Fo.create("pluralResolver"),(!this.options.compatibilityJSON||RW.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=LW(),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=_g(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!t.match(/-|_/))return;let u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[a]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>HF[r]-HF[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let a=o(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!OW.includes(this.options.compatibilityJSON)}};o(hb,"PluralResolver");var cb=hb,GF=o(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=vW(e,t,n);return!a&&r&&Be(n)&&(a=ab(e,n,i),a===void 0&&(a=ab(t,n,i))),a},"deepFindWithDefaults"),rb=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),yb=class yb{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Fo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:h,nestingPrefixEscaped:E,nestingSuffix:b,nestingSuffixEscaped:O,nestingOptionsSeparator:N,maxReplaces:M,alwaysFormat:H}=t.interpolation;this.escape=n!==void 0?n:EW,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?vl(a):s||"{{",this.suffix=l?vl(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=h?vl(h):E||vl("$t("),this.nestingSuffix=b?vl(b):O||vl(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=M||1e3,this.alwaysFormat=H!==void 0?H:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(E=>{if(E.indexOf(this.formatSeparator)<0){let M=GF(n,u,E,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(M,void 0,i,{...r,...n,interpolationkey:E}):M}let b=E.split(this.formatSeparator),O=b.shift().trim(),N=b.join(this.formatSeparator).trim();return this.format(GF(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),N,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(E=>rb(E),"safeValue")},{regex:this.regexp,safeValue:o(E=>this.escapeValue?rb(this.escape(E)):rb(E),"safeValue")}].forEach(E=>{for(l=0;a=E.regex.exec(t);){let b=a[1].trim();if(s=p(b),s===void 0)if(typeof g=="function"){let N=g(t,a,r);s=Be(N)?N:""}else if(r&&Object.prototype.hasOwnProperty.call(r,b))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=kF(s));let O=E.safeValue(s);if(t=t.replace(a[0],O),m?(E.regex.lastIndex+=s.length,E.regex.lastIndex-=a[0].length):E.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),h=`{${m[1]}`;u=m[0],h=this.interpolate(h,s);let E=h.match(/'/g),b=h.match(/"/g);(E&&E.length%2===0&&!b||b.length%2!==0)&&(h=h.replace(/'/g,'"'));try{s=JSON.parse(h),p&&(s={...p,...s})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,O),`${u}${g}${h}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let g=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=g.shift(),u=g,p=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=kF(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),p&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(yb,"Interpolator");var lb=yb,NW=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...u]=s.split(":"),p=u.join(":").trim().replace(/^'+|'+$/g,""),g=l.trim();n[g]||(n[g]=p),p==="false"&&(n[g]=!1),p==="true"&&(n[g]=!0),isNaN(p)||(n[g]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),bl=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(_g(i),r),t[s]=l),l(n)}},"createCachedFormatter"),Tb=class Tb{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Fo.create("formatter"),this.options=t,this.formats={number:bl((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:bl((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:bl((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:bl((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:bl((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=bl(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=NW(u);if(this.formats[p]){let m=l;try{let h=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},E=h.locale||h.lng||r.locale||r.lng||i;m=this.formats[p](l,E,{...g,...r,...h})}catch(h){this.logger.warn(h)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(Tb,"Formatter");var fb=Tb,FW=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),vb=class vb extends El{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Fo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let h=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?s[h]===void 0&&(s[h]=!0):(this.state[h]=1,g=!1,s[h]===void 0&&(s[h]=!0),a[h]===void 0&&(a[h]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{TW(u.loaded,[a],s),FW(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let u={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,n,i,r,u):g=p(t,n,i,r),g&&typeof g.then=="function"?g.then(m=>l(null,m)).catch(l):l(null,g)}catch(g){l(g)}else p(t,n,i,r,l,u)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(vb,"Connector");var ub=vb,WF=o(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),KF=o(e=>(Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),Fg=o(()=>{},"noop"),DW=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),hu=class hu extends El{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=KF(t),this.services={},this.logger=Fo,this.modules={external:[]},DW(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Be(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=WF();this.options={...r,...this.options,...KF(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=o(g=>g?typeof g=="function"?new g:g:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Fo.init(a(this.modules.logger),this.options):Fo.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=fb);let m=new Mg(this.options);this.store=new Vg(this.options.resources,this.options);let h=this.services;h.logger=Fo,h.resourceStore=this.store,h.languageUtils=m,h.pluralResolver=new cb(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(h.formatter=a(g),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new lb(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new ub(a(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(E){for(var b=arguments.length,O=new Array(b>1?b-1:0),N=1;N<b;N++)O[N-1]=arguments[N];t.emit(E,...O)}),this.modules.languageDetector&&(h.languageDetector=a(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=a(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new wg(this.services,this.options),this.translator.on("*",function(E){for(var b=arguments.length,O=new Array(b>1?b-1:0),N=1;N<b;N++)O[N-1]=arguments[N];t.emit(E,...O)}),this.modules.external.forEach(E=>{E.init&&E.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Fg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});let u=du(),p=o(()=>{let g=o((m,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(h),i(m,h)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fg,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=du();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=Fg),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&QF.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=du();this.emit("languageChanging",t);let a=o(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=o((u,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(u,function(){return i.t(...arguments)})},"done"),l=o(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=Be(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{s(g,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let u;if(typeof l!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),m=2;m<p;m++)g[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([s,l].concat(g))}else u={...l};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||a.keyPrefix);let h=r.options.keySeparator||".",E;return u.keyPrefix&&Array.isArray(s)?E=s.map(b=>`${u.keyPrefix}${h}${b}`):E=u.keyPrefix?`${u.keyPrefix}${h}${s}`:s,r.t(E,u)},"fixedT");return Be(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=du();return this.options.ns?(Be(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=du();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new Mg(WF());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 hu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new hu(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new Vg(this.store.data,r),a.services.resourceStore=a.store),a.translator=new wg(a.services,r),a.translator.on("*",function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];a.emit(l,...p)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(hu,"I18n");var kg=hu,Q=kg.createInstance();Q.createInstance=kg.createInstance;var kZ=Q.createInstance,UZ=Q.dir,jZ=Q.init,$Z=Q.loadResources,BZ=Q.reloadResources,HZ=Q.use,GZ=Q.changeLanguage,WZ=Q.getFixedT,KZ=Q.t,XZ=Q.exists,QZ=Q.setDefaultNamespace,qZ=Q.hasLoadedNamespace,YZ=Q.loadNamespaces,zZ=Q.loadLanguages;var cD=te(bb()),lD=te(E0()),am=te(sD()),Tt=require("@sap-ux/vocabularies-types/vocabularies/UI"),Eu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var rm=te(ce());var ae=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${rm.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${rm.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${rm.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var j="#/definitions/",pK=[W.v4.FE_TEMPLATE_V4_LIST_REPORT,W.v4.FE_TEMPLATE_V4_ALP,W.v4.FE_TEMPLATE_V4_OBJECT_PAGE,W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],dK=["sap.fe.core","sap.fe.templates"],Il=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),hr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function jr(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,am.parse)(r.fileContent,r.dataSourceUri))}catch(a){return ae(t,{severity:W.LogSeverity.Error,message:Q.t("ANNOERR"),location:{path:Q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,am.merge)(...n);i=(0,lD.convert)(r)}return i}o(jr,"parseAndMergeAndConvert");var Cl=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function jb(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(jb,"evaluateCommonLabel");function sm(e,t){let n=e.value;return e.$target&&(n=jb(e.$target.annotations,t,n)),n}o(sm,"getLabelForPropertyPath");function Su(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=jb(i.annotations,t,n)),n}o(Su,"getLabelForDataField");function ha(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return jb(a.annotations,t,s)}}}else return}o(ha,"getLabel");function cm(e,t){var r;let n=e,i=typeof n.Action=="string"?n.Action:(r=n.Action)==null?void 0:r.path;return t&&typeof t=="string"?t:i}o(cm,"getDescriptionForActionBasedDataFields");function $b(e,t,n){let i=Su(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o($b,"getTitleForDataField");function ct(e){return e.replace("#","::").replace(/\//g,":2f")}o(ct,"prepareRef");function ma(e){if(e){let t=`${W.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(ma,"getPageTypeV2");function Bb(e){let t="name"in e&&typeof e.name=="string"?om(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return W.PageTypeV4.CustomPage}o(Bb,"getPageTypeV4");function gK(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(gK,"getTargetAnnotationName");function ii(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(ii,"findAlias");function mK(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(mK,"getAnnotationFromMetaPath");function hK(e,t,n){var s,l;let i=e[e.length-1],r=mK(i),a=ii(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(hK,"determineTargetAnnotation");function yK(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Tt.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${W.UIVOCABULARY}`);return e}o(yK,"adjustKey");function TK(e,t,n,i,r=W.FioriElementsVersion.v2,a=!1){var m,h;let s=!1,l,u=i.split("/"),p=u.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=yK(t,u,a);let g=hK(u,n,e);if(g){let E=r===W.FioriElementsVersion.v2?"::":"#";t=gK(g,a).replace("#",E),l=(h=g.fullyQualifiedName)==null?void 0:h.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let E=r===W.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(E)}${E}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(TK,"getKeyAndEntityTypeOfReferenceFacet");function fD(e,t,n,i,r=W.FioriElementsVersion.v2,a=!1){var g,m,h;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((g=e.fullyQualifiedName)==null?void 0:g.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(h=e.fullyQualifiedName)==null?void 0:h.split("@")[0],p=t;if(e.$Type!==Tt.UIAnnotationTypes.CollectionFacet&&"Target"in e){let E=Cl(e.Target);if(!E){ae(i,{severity:W.LogSeverity.Error,message:Q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:O,stopProcessing:N,namespace:M}=TK(n,l,p,E,r,a);if(N)return;l=b,p=O,u=M}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}o(fD,"getSectionFacet");function vK(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(vK,"getDecodedPathElement");var Hb=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),uD=o((e,t,n,i,r,a=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let u=0;u<l.length;u++){let p=l[u];if(p==="[]")continue;let g=vK(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=Hb(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Vo=o((e,t,n,i,r=!1)=>uD(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),pD=o((e,t,n,i,r)=>{uD(e,t,i,r,n)},"setManifestSectionByPathV4");function Gb(e){let t,n,i;switch(e.$Type){case Tt.UIAnnotationTypes.DataField:t=Cl(e.Value);break;case Tt.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Cl(e.Value);break;case Tt.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${W.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Tt.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ct(e.Action)}`);break;case Tt.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Cl(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Tt.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ct(e.Action)}`);break;case Tt.UIAnnotationTypes.DataFieldWithNavigationPath:i=Cl(e.Value),n=Cl(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(Gb,"getSchemaKeyOfLineItemRecord");function bK(e,t,n){return e.includes(Tt.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Tt.UIAnnotationTerms.Chart:e.includes(Tt.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Tt.UIAnnotationTerms.Identification:n&&e.includes(Tt.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Tt.UIAnnotationTerms.LineItem:e.includes(Tt.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Tt.UIAnnotationTerms.FieldGroup:e.includes(Tt.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Tt.UIAnnotationTerms.DataPoint:e.includes(Tt.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Tt.UIAnnotationTerms.PresentationVariant:void 0}o(bK,"getUIAnnotationTerm");function EK(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Eu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Eu.CommunicationAnnotationTerms.Address:void 0}o(EK,"getCommunicationAnnotationTerm");function SK(e,t,n){return bK(e,t,n)||EK(e,t)}o(SK,"getAnnotationTerm");function AK(e,t,n,i,r){var p,g,m,h,E,b,O,N,M;let a=ii(W.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(SK(s,a,i)){case Tt.UIAnnotationTerms.Chart:{n[s]={base:W.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 Tt.UIAnnotationTerms.Identification:{n[s]={base:W.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.LineItem:{if(!s.includes(Tt.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let H=s.split("::");H[H.length-1]=`@${Tt.UIAnnotationTerms.LineItem}`,s=H.join("::")}n[s]={base:W.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.FieldGroup:{n[s]={base:W.FacetBase.Form},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}case Tt.UIAnnotationTerms.DataPoint:{n[s]={base:W.FacetBase.DataPoint},n[s].Label=(E=t==null?void 0:t.Target)==null?void 0:E.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.PresentationVariant:{n[s]={base:W.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Eu.CommunicationAnnotationTerms.Contact:{n[s]={base:W.FacetBase.Contact},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 Eu.CommunicationAnnotationTerms.Address:{n[s]={base:W.FacetBase.Address},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}default:n[s]={base:W.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",W.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(AK,"evaluateTargetAnnotation");function Wb(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(Wb,"getAnnotationPathUsingFullyQualifiedName");function Kb(e,t,n,i,r,a=W.FioriElementsVersion.v2,s){var u;let l=fD(e,i,t,s,a,!1);if(l)switch(e.$Type){case Tt.UIAnnotationTypes.ReferenceFacet:{AK(l,e,r,i,t);break}case Tt.UIAnnotationTypes.CollectionFacet:{let p=Wb(i,e.fullyQualifiedName),g=r[l.key]={base:W.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===W.FioriElementsVersion.v4&&ae(s,{severity:W.LogSeverity.Error,message:Q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{Kb(m,t,n,i,g.facets,a,s)});break}}}o(Kb,"addFacetToConfig");function lm(e,t,n=W.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ii(W.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{Kb(m,t,g,e,r,n,i)})}return r}o(lm,"getObjectPageHeaderFacets");function fm(e,t,n=W.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ii(W.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{Kb(g,t,p,e,r,n,i)})}return r}o(fm,"getObjectPageFacets");function Xb(e){var t,n,i,r;if(e[W.ManifestSection.generic]&&Object.keys(e[W.ManifestSection.generic]).length>0||e[W.ManifestSection.ovp]&&Object.keys(e[W.ManifestSection.ovp]).length>0)return W.FioriElementsVersion.v2;{let a=(n=(t=e[W.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[W.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>{let u=typeof a[l].name=="string"?a[l].name:"";return pK.indexOf(u)>-1||om(u)})||s&&Object.keys(s).find(l=>dK.indexOf(l)>-1)?W.FioriElementsVersion.v4:void 0}}o(Xb,"getFEVersionFromManifest");function PK(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[W.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[W.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[W.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[W.ManifestSection.ui5].models[t].dataSource:void 0}o(PK,"getMainService");function dD(e){var i,r;let t=PK(e);if(!t)return W.OdataVersion.v2;let n=(i=e[W.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?W.OdataVersion.v4:W.OdataVersion.v2}o(dD,"getODataVersionFromManifest");function xK(e,t){var i,r;let n;if(e[W.ManifestSection.generic]){let a=e[W.ManifestSection.generic].pages;if(!a){ae(t,{severity:W.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(ma((i=l.component)==null?void 0:i.name)===W.PageTypeV2.AnalyticalListPage){n=W.TemplateType.AnalyticalListPageV2;break}else if(ma((r=l.component)==null?void 0:r.name)===W.PageTypeV2.ListReport){n=W.TemplateType.ListReportObjectPageV2;break}}}else n||ae(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.generic}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return n}o(xK,"determineV2Template");function Au(e){var i,r,a,s;let t,n=Bb(e);if(n===W.PageTypeV4.AnalyticalListPage)t=W.TemplateType.AnalyticalListPageV4;else if(n===W.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[W.ALPViewType.Primary]||l[W.ALPViewType.Secondary])?t=W.TemplateType.AnalyticalListPageV4:t=W.TemplateType.ListReportObjectPageV4}else n===W.PageTypeV4.ObjectPage?t=W.TemplateType.ListReportObjectPageV4:[W.PageTypeV4.CustomPage,W.PageTypeV4.FPMCustomPage].includes(n)&&(t=W.TemplateType.FreestylePageV4);return t}o(Au,"determineV4PageTemplateType");function CK(e){let t;for(let n in e){let i=e[n];if(t=Au(i),t)break}return t}o(CK,"determineV4TemplateFromPages");function IK(e,t){let n=e[W.ManifestSection.ui5].routing&&e[W.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return ae(t,{severity:W.LogSeverity.Info,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing"]}}),W.TemplateType.ListReportObjectPageV4;let i=CK(n);return i||ae(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.ui5}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing","targets"]}}),i}o(IK,"determineV4Template");function uc(e,t,n){let i;return e[W.ManifestSection.ovp]?i=W.TemplateType.OverviewPageV2:t===W.FioriElementsVersion.v2?i=xK(e,n):t===W.FioriElementsVersion.v4&&(i=IK(e,n)),i}o(uc,"getTemplateTypeFromManifest");function ya(e,t,n){e!=null&&e.ID?(t.title=W.FACETTITLEPREFIX+e.ID,t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:n.replace(W.UIVOCABULARYALPHADOT,"")}])}o(ya,"addSectionTitle");function ts(e,t,n){e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(ts,"addSectionDescription");function Ol(e,t,n){var i,r;ya(e,t,n),ts(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(Ol,"addTargetTitleAndSectionDescription");function gD(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(gD,"addChartFacetID");function wo(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[W.SchemaTag.isViewNode]=!0,i[W.SchemaTag.annotationPath]=t.annotationPath,Ol(t,i,n),i}o(wo,"createDefaultSection");function mD(e,t,n,i=W.FioriElementsVersion.v2,r=!1){var l,u;let a=ii(W.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let h=fD(m,e,t,n,i,!0);return h&&g.push(h),g},s)),s}}o(mD,"getObjectPageFacetSection");var ns=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(u){let p=a&&a===u?r:u.replace(/\?\?/g,"/");if(!(!s[p]&&(a===u&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),ns(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),Ub=o(e=>e===W.SchemaType.FreestylePage?W.PageTypeV2.CustomPage:e===W.SchemaType.FPMCustomPage?W.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Dt=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case W.SchemaType.Application:{i.filename="App",i.path=`./${W.DirName.Schemas}/${i.filename}`;break}case W.SchemaType.ListReport:case W.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:Ub(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}case W.PageTypeV4.FPMCustomPage:case W.SchemaType.FPMCustomPage:{i.filename=n?`${W.SchemaType.FPMCustomPage}_${n}`:Ub(W.SchemaType.FPMCustomPage),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}default:{i.filename=Ub(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function um(e,t,n,i){if(e===W.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(um,"generatePageId");function Qb(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split(j)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u]!==void 0)&&a.push(s)}return a}o(Qb,"findMatchingKeysByAdditionalProperties");function OK(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split(j)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=Qb(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(OK,"fillArrayFromAnyOfReference");function RK(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(j)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{OK(r,n,t,i)}),i.length===0))return;return i}o(RK,"fillArrayFromPropertyDefinition");function LK(e,t,n,i,r,a,s,l){var p,g,m,h,E;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(u.targetDefinition=t.definitions[b],!((p=u==null?void 0:u.targetDefinition)!=null&&p.properties)&&((g=u==null?void 0:u.targetDefinition)!=null&&g.$ref)||((m=u==null?void 0:u.targetDefinition)==null?void 0:m.type)==="array")return u=Mo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(M=>{M!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[M].properties})}),u.title=(h=u==null?void 0:u.targetDefinition)!=null&&h.title?u.targetDefinition.title:n;let O=b==null?void 0:b.split("<")[0],N=i||{};u.configObject=a.createInstance(s,O,N,(E=u==null?void 0:u.targetDefinition)==null?void 0:E.controlProperty)}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(LK,"determineNextDefinitionFromDefinitionArray");function Mo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Mo(e,t,n,i.items,r,a,s),l;let u=RK(i,n,e);if(u)return l=LK(u,e,t,n,r,a,s,i),l}o(Mo,"getNextTargetDefinition");var qb=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,cD.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function pm(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(pm,"convertEnumToCSV");function qi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(qi,"convertActionKeyToStableId");function rn(e){return e==null?void 0:e.split(j)[1]}o(rn,"getDefinitionKey");function dm(e){return`#/definitions/${e}`}o(dm,"getDefinitionsRef");function gm(e){return e instanceof Error?e.message:String(e)}o(gm,"getErrorMessage");function pc(e,t){return e==null?void 0:e.includes(t)}o(pc,"isFeatureSupported");function ko(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(ko,"updatePropertyIndices");function mm(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(mm,"getJSONPropertyByPath");function hD(e){return e=e.replace(W.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(hD,"removeNamespaces");function Rl(e){return e=e.replace(W.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(Rl,"replaceNamespaces");function Ta(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith(j))return t.substring(j.length)}o(Ta,"getRefType");function om(e){if(e===W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return W.PageTypeV4.FPMCustomPage;if(e!=null&&e.startsWith(`${W.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in W.PageTypeV4)return W.PageTypeV4[n]}}o(om,"convertTemplateNameToPageTypeV4");function hm(e,t){if(e===t)return!0;let n=om(e);return n?n===om(t):!1}o(hm,"compareTemplateNames");var Oo=require("@sap-ux/vocabularies-types/vocabularies/UI"),se=te(ce());var Yi=te(ce());var zt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),ym=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),qn=o((e,t)=>{let n,i=Yi.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 NK(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(NK,"escapeId");var yD=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(yD||{}),TD=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(TD||{});function FK(e,t,n){let i;return e=e.map(function(r){if(r===Yi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Yi.PropertyName.sections)return i=t[a+1],t[a+1]=qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(FK,"mapBreadcrumbs");var Yb=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=FK(t,s,r)),s[0]===Yi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Yi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Yi.VOCWITHSLASH):t[0]===Yi.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,Yi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Yi.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,g=u.indexOf(":::");return u.startsWith("DataField")&&g>-1?(u=u.replace("/",":2f"),p=`${e}template:::TableColumn:::${u.substring(0,g)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${u.substring(g+3)}`):(u=u.replace("/","_"),p=`${e}${t.join("::")}-${u}`),NK(p)},"buildColumnControlId"),zi=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function DK(e){let t=Yi.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(DK,"determinePattern");var zb=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split(j)[1]]:a,u=a.description?a.description:l.description,p=DK(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(g=>{s.enum.indexOf(g)===-1&&s.enum.push(g)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete a.description)},"addPatternForBindingChangeOfEnum"),Yn=o((e,t,n)=>{zb(e,t,n)},"addPatternForBindingChangeOfEnumLR"),gt=o((e,t,n)=>{let i=Object.values(yD);zb(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ri=o((e,t,n)=>{let i=Object.values(TD);zb(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function dc(){}o(dc,"doNotDelete");var Kee=te(bD());var Jb=Symbol("specificationMetadataKey"),v=o(e=>Reflect.metadata(Jb,e),"syncRule");function Dn(e,t){let n;return e&&(n=Reflect.getMetadata(Jb,e,t)),n}o(Dn,"getReflectMetadata");function ED(e){let t;return e&&(t=Reflect.getMetadata(Jb,e)),t}o(ED,"getReflectTypeMetadata");var Ji=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),SD=Symbol("childId"),jt=o(e=>Reflect.metadata(SD,e),"childId"),Tm=o((e,t)=>Reflect.getMetadata(SD,e,t),"getChildId"),vm=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),_K=Symbol("descriptionSrcURL"),Re=o(e=>Reflect.metadata(_K,e),"descriptionSrcURL");var VK=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(VK,e),"validity");function Ll(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Ll,"getTextForDeprecated");var LD=te(OD()),ND=te(ce());var FD=LD.default.change,RD={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function DD(e,t){let n="";try{for(let i in RD)e[i]===void 0&&(e[i]=RD[i]);n=FD.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(DD,"createChangeString");function yr(e){try{return FD.parse(e)}catch{return!1}}o(yr,"parseChangeString");function _D(e,t,n,i,r){let a=n.layer?n.layer===ND.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(_D,"fillFlexChangeContent");function bm(e,t){return DD(e,t)}o(bm,"exportToFlexChange");var gc=te(ce());function Nl(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,a);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}o(Nl,"importProperty");function Em(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(ae(i,{severity:gc.LogSeverity.Warning,message:Ll(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Em,"checkDeprecatedProperties");function Zb(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(j)[1]];return Zb(n,t)}else return e.title?e.title.startsWith(gc.FACETTITLEPREFIX)?e.title.split(gc.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(Zb,"getSectionTitle");function Sm(e){let t=e.split(`${gc.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Sm,"getTargetFromCustomColumnRef");function $r(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o($r,"removeEmptyStructure");var _t=require("@sap-ux/vocabularies-types/vocabularies/UI");var jo=require("@sap-ux/vocabularies-types/vocabularies/UI");var ba=require("@sap-ux/vocabularies-types/vocabularies/UI");var VD=te(ce()),ee=te(ce()),wD=require("path");function Ot(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=Dn(e,g);if(m!=null&&m.manifest){let h=m.manifest.path([i],t,p,...r);l=Vo(t,h,a,p,!0),l&&Object.keys(l).length>0&&(Nl(m,l,g,e,a,r),Em(u,l,h,s))}}}o(Ot,"importSettingsOfObject");var iE="DataFieldForActionGroup";function BK(){return([e,t],[n,i])=>t[ee.SchemaTag.propertyIndex]-i[ee.SchemaTag.propertyIndex]}o(BK,"sortByPropertyIndex");function Pu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(BK())}o(Pu,"sortPropertiesRecords");function HK(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}o(HK,"getExtensionText");function eE(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||ee.v4.Placement.After)===ee.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(eE,"addExtensionToSortedArray");function GK(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var u,p,g;return((u=l.position)==null?void 0:u.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((g=n.position)==null?void 0:g.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}o(GK,"addRemainingTargetByBefore");function MD(e,t,n,i){let r=t.includes(ee.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=HK(e);return{$ref:`${j}${r}`,description:a,keys:[{name:ee.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(MD,"getExtensionDetails");function tE(e,t,n,i,r=!1){var l,u;let a=Object.entries(e).length;for(let p of Object.keys(e)){let g=e[p],m=MD(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let h=n.findIndex(E=>E[0]===g.position.anchor);h>-1?(eE(g,n,h,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(ae(i,{severity:Li.LogSeverity.Error,message:Q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&GK(e,p,g,n,m)}else r&&(eE(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?tE(e,t,n,i):s>0&&tE(e,t,n,i,!0)}o(tE,"adjustCustomExtReferringToCustomExt");function WK(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||ee.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===ee.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(WK,"getExtensionAnchor");function KK(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o(KK,"getLocalExtensionsToSkip");function XK(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ee.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let h=t[m[0]];if(g(h))break;p++}return p},"findNextIndex"),s=0;return i===ee.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==ee.v4.Placement.Before))}),s>-1?s:0}o(XK,"getExtensionIndexByMergedApproach");function QK(e,t,n,i,r=!1){return r?XK(e,t,n):n.findIndex(a=>a[0]===i)}o(QK,"getExtensionIndex");function qK(e,t,n,i,r){ae(e,{severity:Li.LogSeverity.Error,message:Q.t("INVALIDEXTENSION",{id:t}),location:{path:ee.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(qK,"handleInvalidExtension");function va(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=KK(l,s);if(!l)return[];for(let p of Object.keys(l)){let g=l[p];if(u!=null&&u.includes(p))continue;let m=MD(g,n,p,ee.ActionType.Custom);if(typeof g!="object"){qK(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let h=WK(g,s);if(h){let E=QK(g,e,t,h,a);E>-1&&(eE(g,t,E,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&tE(l,n,t,r),t}o(va,"addExtensionToArray");function rE(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(rE,"addEnumForProperties");function YK(e,t,n,i=ee.DefinitionName.CustomColumn){if(i===ee.DefinitionName.CustomColumn||i.indexOf(ee.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];rE(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[ee.SchemaTag.propertyIndex]=r}}o(YK,"addColumnPropertyIndexAndEnum");function mc(e,t,n,i=ee.DefinitionName.CustomColumn,r,a){var h,E,b,O;let s=r||ee.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Pu(l),p=a?a.replace(/::/g,"/"):`@${ba.UIAnnotationTerms.LineItem}`,g=(O=(b=(E=(h=t.options)==null?void 0:h.settings)==null?void 0:E.controlConfiguration)==null?void 0:b[p])==null?void 0:O.columns;g&&(u=va(g,u,i,void 0,n)),YK(u,e,l,i);let m={};u.forEach(([N,M])=>m[N]=M),e.definitions[s].properties=m}o(mc,"addCustomColumnDefinition");function kD(e,t){let n=t.$Type===ba.UIAnnotationTypes.DataFieldForActionGroup,i;return e.lineItemId.startsWith(ee.DefinitionName.LineItemsOfView)?i=n?ee.DefinitionName.ViewToolBarActionGroup:ee.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(ee.DefinitionName.LineItems)?i=n?ee.DefinitionName.ToolBarActionGroup:ee.DefinitionName.ToolBarAction:i=n?ee.DefinitionName.ObjectPageToolBarActionGroup:ee.DefinitionName.ObjectPageToolBarAction,i}o(kD,"determineActionDefinitionName");function zK(e,t,n){e[ee.SchemaTag.keys]=[],t[ee.SchemaKeyName.semanticObject]&&e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.semanticObject,value:t[ee.SchemaKeyName.semanticObject]});let{key:i,ns:r}=bc(n,!0);e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.action,value:i}),r&&(e[ee.SchemaTag.target]=r)}o(zK,"addTargetAndKeysOfAction");function UD(e,t=!0){let{lineItemData:n,actions:i,lineItemPath:r,lineItemRecord:a,index:s}=e;if(a.Determining===!0)return;let l=kD(n,a),u=ai(a,n.entityType),p=a.$Type.split(`${ee.UIVOCABULARY}.`)[1],g=typeof a.Action=="string"?a.Action:a.Action.path,m=xm(g),h=i.properties[`${p}::${m}`]={description:u};if(t?h.$ref=GD(l,ct(m),n.appSchema,r):(h.properties={},h.type="object",h.isViewNode=!0),h[ee.SchemaTag.propertyIndex]=s,h[ee.SchemaTag.dataType]=Hr(a),zK(h,a,g),h[ee.SchemaTag.annotationType]=a.$Type,t){let E=h.$ref.replace(j,""),b=vt(l,E,n.appSchema,!1);b[ee.SchemaTag.annotationPath]=`${r}/${s}`}else h[ee.SchemaTag.annotationPath]=`${r}/${s}`}o(UD,"addActionRecordToSchema");function jD(e,t=!0){let{lineItemData:n,lineItemRecord:i,lineItemPath:r,index:a,actions:s}=e,l=kD(n,i),u=Br(i),p={};t?(s.properties[`${u}`]={$ref:oi(l,ct(u))},p=vt(l,ct(u),n.appSchema)):s.properties[`${u}`]=p,Aa(p,Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),p.properties={},p.description=ai(i,n.entityType),p.type="object",p.isViewNode=!0,p[ee.SchemaTag.propertyIndex]=a,p[ee.SchemaTag.dataType]=Hr(i),p[ee.SchemaTag.annotationPath]=`${r}/${a}`,(i.Actions??[]).forEach((g,m)=>{let h={...e,lineItemRecord:g,lineItemPath:`${p[ee.SchemaTag.annotationPath]}/Actions`,actions:p,index:m};UD(h,t)})}o(jD,"addGroupActionRecordToSchema");function oE(e){let{lineItemRecord:t,lineItemDefinition:n}=e;t.Inline!==!0||t.Determining===!0?UD(e,!n):aE(e)}o(oE,"addLineItemActionDefinition");function aE(e){var g;let{lineItemData:t,lineItemRecord:n,lineItemDefinition:i,lineItemPath:r,index:a,columnDefinitionName:s}=e,l=n.$Type===ba.UIAnnotationTypes.DataFieldForAction?`${s}Action`:s,u=t.lineItemId;if((g=n.Target)!=null&&g.value){let m=`@${ii(ee.UIVOCABULARY,t.oDataServiceAVT)}.`;n.Target.value=n.Target.value.replace(m,"@")}let p=Br(n).replace(/\//g,"::");if(p){let m=i;m||(m=t.appSchema.definitions[u]);let h=m.properties,E={description:ai(n,t.entityType)};i?(E.properties={},E.type="object",E.isViewNode=!0):E.$ref=j+l,E[ee.SchemaTag.annotationType]=n==null?void 0:n.$Type,E[ee.SchemaTag.annotationPath]=`${r}/${a}`,E[ee.SchemaTag.propertyIndex]=a,E[ee.SchemaTag.dataType]=Hr(n),h[p]=E,Om(n,h,p)}}o(aE,"addLineItemRecordToSchema");function sE(e,t,n,i,r=ee.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{let l={lineItemData:e,actions:t,lineItemPath:n,lineItemRecord:s,index:a,lineItemDefinition:i,columnDefinitionName:r};is.getStrategy(s.$Type).addLineItemDefinition(l),a++})}o(sE,"appendLineItemsToSchema");function hc(e,t=ee.DefinitionName.TableColumn,n=ee.DefinitionName.CustomColumn,i=ee.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=Cm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);sE(e,r,a,void 0,t)}o(hc,"addLineItemsTypeToSchema");function yc(e,t,n,i=ee.DefinitionName.Position,r){var p,g,m,h,E;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==ee.DefinitionName.LineItems?r:`@${ba.UIAnnotationTerms.LineItem}`,u=(E=(h=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:h[l])==null?void 0:E.columns;if(u)for(let b in u)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;Sa(s,b)}}o(yc,"addFragmentEnumForAnchor");function lo(e,t,n=ee.DefinitionName.CustomActionPosition){rs(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(lo,"addEnumForActionAnchor");function Am(e,t,n,i){var a;let r;for(let s in e){let l=((a=e[s].options)==null?void 0:a.settings)||{};if((i&&l.contextPath===i||(n==null?void 0:n.name)&&l.entitySet===n.name)&&(hm(t,e[s].name)||t===ee.v4.FE_TEMPLATE_V4_ALP&&e[s].name===ee.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(Am,"findPageV4");function $D(e,t){let n,i=e.properties[ee.PropertyName.table];return t.templateType===ee.TemplateType.AnalyticalListPageV4?(n=ee.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${j}${ee.DefinitionName.ALPTableView}`,delete e.definitions[ee.DefinitionName.Table],delete e.definitions[ee.DefinitionName.LRChartView],delete e.definitions[ee.DefinitionName.LRTableView],delete e.definitions[ee.DefinitionName.MultiTableModeV4]):t.templateType===ee.TemplateType.ListReportObjectPageV4&&(n=ee.DefinitionName.Table,delete i.anyOf,i.$ref=`${j}${ee.DefinitionName.Table}`,e.definitions[n].properties[ee.PropertyName.annotationPath][ee.SchemaTag.hidden]=!0,delete e.definitions[ee.DefinitionName.ALPTableView],e.properties[ee.PropertyName.defaultPath][ee.SchemaTag.hidden]=!0),n}o($D,"alignSchemaWithTemplateType");function Ea(e,t,n,i=ee.DefinitionName.CustomTableAction,r="",a=""){var g,m,h,E,b,O,N,M,H,$;let s=e.definitions[r];if(!s)return;let l=Pu(s),u;a?i.indexOf(ee.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===ee.DefinitionName.CustomFormActionOP?u=`@${ba.UIAnnotationTerms.FieldGroup}`:u=`@${ba.UIAnnotationTerms.LineItem}`;let p;if(r.includes(ee.DefinitionName.ObjectPageCustomSectionActions)?p=(O=(b=(E=(h=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:h.body)==null?void 0:E.sections)==null?void 0:b[u])==null?void 0:O.actions:p=($=(H=(M=(N=t.options)==null?void 0:N.settings)==null?void 0:M.controlConfiguration)==null?void 0:H[u])==null?void 0:$.actions,p&&(l=va(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][ee.SchemaTag.propertyIndex]=Z;let re={};l.forEach(([Z,oe])=>re[Z]=oe),e.definitions[r].properties=re}}o(Ea,"addCustomActionDefinition");function Pm(e,t,n,i=ee.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,h,E,b,O,N;let a=e.definitions[r];if(!a)return;let s=Pu(a),l;[ee.DefinitionName.CustomHeaderAction,ee.DefinitionName.CustomHeaderActionOP].includes(i)?l=(h=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:h.actions:l=(N=(O=(b=(E=t.options)==null?void 0:E.settings)==null?void 0:b.content)==null?void 0:O.footer)==null?void 0:N.actions,l&&(s=va(l,s,i,"press",n));let u={};if(s){for(let M=0;M<s.length;M++)s[M][1][ee.SchemaTag.propertyIndex]=M;s.forEach(([M,H])=>u[M]=H)}e.definitions[r].properties=u}o(Pm,"addHeaderFooterCustomActionDefinition");function Tc(e,t,n){let i=mm(e,[ee.ManifestSection.ui5,"routing","targets"]);if(!i){ae(n,{severity:Li.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}let r=mm(i,[t]);if(!r){ae(n,{severity:Li.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:t}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}return r}o(Tc,"getManifestPage");function vc(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,wD.join)(...p,g),h=e.find(E=>E.dataSourceUri.endsWith(m));if(h){let E=(s=t.options)==null?void 0:s.settings;return{file:h,relativeFilePath:m,connection:{contextPath:E==null?void 0:E.contextPath,entitySet:E==null?void 0:E.entitySet}}}}}o(vc,"getPageCustomExtensionFile");function Uo(e,t,n,i){let r=Tc(n,t,i),a=mm(r,["options","settings","viewName"]);return r&&typeof a=="string"?vc(e,r,n,"view",a):void 0}o(Uo,"getPageCustomViewFile");function BD(e,t,n,i,r,a,s){var g,m,h,E,b,O,N,M,H,$,re,Z;let l=Pu(t),u=new Map;if(l=l.map(oe=>{let Ae=Im(e,oe[1],oe[0],{keyProperties:[ee.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Ae.const,oe[0]),[Ae.const,oe[1]]}),a){let oe=(b=(E=(h=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:h.body)==null?void 0:E.sections)==null?void 0:b[a];oe&&"subSections"in oe&&(l=va(oe.subSections,l,i,"template",s,r))}else if(i.includes(ee.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let oe=(M=(N=(O=n.options)==null?void 0:O.settings)==null?void 0:N.content)==null?void 0:M.header;oe&&"facets"in oe&&(l=va(oe.facets,l,i,"template",s,r))}else{let oe=(Z=(re=($=(H=n.options)==null?void 0:H.settings)==null?void 0:$.content)==null?void 0:re.body)==null?void 0:Z.sections;oe&&(l=va(oe,l,i,"template",s,r))}for(let oe=0;oe<l.length;oe++)l[oe][1][ee.SchemaTag.propertyIndex]=oe;let p={};l.forEach(([oe,Ae])=>{oe=u.get(oe)||oe,p[oe]=Ae}),t.properties=p}o(BD,"addCustomSectionDefinition");function HD(e,t,n){var l,u,p;let i=Pu(t),r=new Map;i=i.map(g=>{let m=Im(e,g[1],g[0],{keyProperties:[ee.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${ba.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=va(a.filterFields,i,ee.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][ee.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(HD,"addCustomFilterFieldDefinition");function nE(e,t,n=!1){let{appSchema:i,factory:r,actionsInConfig:a,actionKey:s,manifest:l,routingId:u,manifestSectionId:p,targetAnnotation:g}=e,m=(t??"").split("<")[0],h=r.createInstance(VD.PageTypeV4.ObjectPage,m),E=[s.replace("/","??")];if(g&&E.push(g),h){let b=a[s]=h;Ot(b,l,i.definitions[t],u,E,p),n||$r(a,s)}}o(nE,"importActionToConfigurationObject");function JK(e,t){let{actionPropertyDefinition:n}=e,i=rn(t.$ref||n.$ref);nE(e,i)}o(JK,"importSingleActionSettingsOfReference");function ZK(e,t){let{actionPropertyDefinition:n,appSchema:i,actionsInConfig:r,actionKey:a}=e,s=rn(t.$ref??n.$ref);nE(e,s,!0);let l=r[a];Aa(l,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let{properties:u}=t;for(let p in u){let g=u[p],m=rn(g.$ref),h=i.definitions[m],E=rn(h.$ref??g.$ref),b={...e,actionsInConfig:l,actionKey:p};nE(b,E)}$r(r,a)}o(ZK,"importGroupActionSettingsOfReference");function Fl(e){let{actionPropertyDefinition:t,appSchema:n}=e,i=rn(t.$ref),r=n.definitions[i];r.dataType===iE?ZK(e,r):JK(e,r)}o(Fl,"importActionSettingsOfReference");var TE=class TE{addDefinition(t){WD(t)}addLineItemDefinition(t){aE(t)}};o(TE,"DataFieldStrategy");var fo=TE,vE=class vE extends fo{generateStableId(t){return Pa("DataFieldForAction::"+t.Action)}generateDescription(t,n){let i=ha(t.Label,n);return cm(t,i)}addDefinition(t){xu(t)}addLineItemDefinition(t){oE(t)}};o(vE,"DataFieldForActionStrategy");var cE=vE,bE=class bE extends fo{generateStableId(t){return Pa("DataFieldForActionGroup::"+t.ID)}generateDescription(t,n){let i=ha(t.Label,n);return t.Label??t.ID??i}addDefinition(t){xu(t)}addLineItemDefinition(t){var n;jD(t,!((n=t.lineItemData)!=null&&n.isMacro))}};o(bE,"DataFieldForActionGroupStrategy");var lE=bE,EE=class EE extends fo{generateStableId(t){return"DataFieldForIntentBasedNavigation::"+RE(t)}generateDescription(t,n){let i=ha(t.Label,n);return cm(t,i)}addDefinition(t){xu(t)}addLineItemDefinition(t){oE(t)}};o(EE,"DataFieldForIntentBasedNavigationStrategy");var fE=EE,SE=class SE extends fo{generateStableId(t){var i,r;let n=((i=t.Target)==null?void 0:i.$AnnotationPath)??((r=t.Target)==null?void 0:r.value)??"";return"DataFieldForAnnotation::"+Pa(n)}generateDescription(t,n){var a,s,l,u;let i=Su(t,n);return ha(t.Label,n)||i||((s=(a=t==null?void 0:t.Target)==null?void 0:a.$target)==null?void 0:s.Title)||((u=(l=t==null?void 0:t.Target)==null?void 0:l.value)==null?void 0:u.split("UI.v1.")[1])}};o(SE,"DataFieldForAnnotationStrategy");var uE=SE,AE=class AE extends fo{generateStableId(t){let n="DataFieldWithAction::";return"Value"in t&&t.Value&&(n+=os(t.Value)+"::"),n+=t.Action,Pa(n)}generateDescription(t,n){let i=ha(t.Label,n);return cm(t,i)}};o(AE,"DataFieldWithActionStrategy");var pE=AE,PE=class PE extends fo{generateStableId(t){return Pa("DataField::"+os(t.Value))}generateDescription(t,n){let i=ha(t.Label,n);return $b(t,n,i)}};o(PE,"DataFieldStrategyDefault");var dE=PE,xE=class xE extends fo{generateStableId(t){let n="DataFieldWithIntentBasedNavigation::";return n+=os(t.Value)+"::",n+=RE(t),Pa(n)}generateDescription(t,n){return Su(t,n)||t.Value.path}};o(xE,"DataFieldWithIntentBasedNavigationStrategy");var gE=xE,CE=class CE extends fo{generateStableId(t){let n="DataFieldWithNavigationPath::"+os(t.Value);return t.Target&&t.Target.$NavigationPropertyPath&&(n+="::"+t.Target.$NavigationPropertyPath),Pa(n)}generateDescription(t,n){let i=ha(t.Label,n);return $b(t,n,i)}};o(CE,"DataFieldWithNavigationPathStrategy");var mE=CE,IE=class IE extends fo{generateStableId(t){return Pa("DataFieldWithUrl::"+os(t.Value))}generateDescription(t,n){let i=Su(t,n);return ha(t.Label,n)||i||(typeof t.Value=="string"?t.Value:t.Value.path)}};o(IE,"DataFieldWithUrlStrategy");var hE=IE,OE=class OE{constructor(){this.strategies=new Map,this.registerStrategy(jo.UIAnnotationTypes.DataFieldForAction,new cE),this.registerStrategy(jo.UIAnnotationTypes.DataFieldForActionGroup,new lE),this.registerStrategy(jo.UIAnnotationTypes.DataFieldForIntentBasedNavigation,new fE),this.registerStrategy(jo.UIAnnotationTypes.DataFieldForAnnotation,new uE),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithAction,new pE),this.registerStrategy(jo.UIAnnotationTypes.DataField,new dE),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithIntentBasedNavigation,new gE),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithNavigationPath,new mE),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithUrl,new hE)}registerStrategy(t,n){this.strategies.set(t,n)}getStrategy(t){return this.strategies.get(t)}};o(OE,"DataFieldStrategyContext");var yE=OE,is=new yE;function xm(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(xm,"replaceSpecialChars");var Pa=o(function(e){return xm(hD(e))},"prepareId");function eX(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(eX,"evaluateConcat");function os(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 eX(e);if(e&&typeof e=="string")return xm(e.replace(/ /g,"_"))}o(os,"getStableIdPartFromValue");var RE=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),Br=o(function(e){let t=is.getStrategy(e.$Type);return t==null?void 0:t.generateStableId(e)},"getStableIdPartFromDataField");var fe=te(ce());var De=te(ce());var Zi=require("@sap-ux/vocabularies-types/vocabularies/UI"),qD=require("path"),YD=te(lc());var Rm="ResponsiveTableWithMultiSelect<LineItems>",Lm="ResponsiveTableWithInlineDelete<LineItems>",tX="TreeTable<LineItems>",nX="AnalyticalTable<LineItems>",iX="GridTable<LineItems>",LE=[Rm,Lm,tX,nX,iX],KD=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],XD="template::",Nm="template:::ObjectPageAction:::";function rX(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${j}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${j}${n}`},description:"Custom Columns"},e.definitions[t][De.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[De.SchemaTag.artifactType]=De.ArtifactType.Manifest)}o(rX,"addCustomColumnDefinition");function oX(e,t){let n;return e==="TableColumnActionIntentBased"?n=Gb(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=ct(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n=ct(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=ct(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(oX,"getActionId");function NE(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=oX(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=ai(n.lineItemRecord,n.entityType);t.properties[l]={$ref:j+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=bc(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[u]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:g}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[u][De.SchemaTag.target]=m)):(e.definitions[u]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.action,value:g}],m&&(e.definitions[u][De.SchemaTag.target]=m),e.definitions[u][De.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(NE,"handleActionRecord");function aX(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Zi.UIAnnotationTypes.DataFieldForAction||t.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(aX,"getColumnActionType");function sX(e,t){let n=[];if(!(e.$Type!==Zi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),aX(t,e,n),n}o(sX,"getActionType");function zD(e,t,n){let i=Gb(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:j+De.DefinitionName.TableColumn,description:ai(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Vm(r.properties[i],e.lineItemRecord),Om(e.lineItemRecord,r.properties,i)}}o(zD,"generateGenericColumn");function cX(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{NE(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&NE(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{NE(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":zD(i,t,r)}}o(cX,"handleAnyAction");function Cu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(Cu,"retrieveNameWithoutVocabularyFromVisualization");function Dl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=Cm(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},h=sX(g,r);h?h.forEach(E=>{cX(E,t,s,m,p,l,r)}):zD(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${j}${a}`})}o(Dl,"addLineItemsType");function lX(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,u)=>(l.includes(u.name)||l.push(u.name),l),[])}}o(lX,"addListReportLeadingProperties");function fX(e,t,n,i){var s,l,u,p,g,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(a){let h=[];for(let E in a){let b=(m=a[E])==null?void 0:m.key;b!==void 0&&!h.includes(b)&&h.push(b)}Sa(h,r)}}o(fX,"addTabkeyEnum");function Fm(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,YD.xml2json)(u.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!g||g.Column||g["table:Column"]||g["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!g||!g.Column&&!g["table:Column"]&&!g["table:AnalyticalColumn"]&&!g["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+qD.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),Sa(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(Fm,"addFragmentEnum");function _l(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){rX(e,a,s),lX(e,t,s),fX(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Fm(e,r,u,"fragmentName",s),Fm(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),Fm(e,r,u,"cellsFragmentName",s),Fm(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(_l,"addTableColumnExtensions");function JD(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(JD,"removeElementsFromEnum");function Dm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=hr(n==null?void 0:n.fullyQualifiedName,Zi.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${ct(s.value)}>`,p=Hr(s);s.type==="PropertyPath"&&(l=sm(s,n)),i.properties[s.value]={$ref:j+u},i.properties[s.value][De.SchemaTag.propertyIndex]=a,e.definitions[u]={type:"object",description:l,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[u][De.SchemaTag.dataType]=p,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.value,value:`${s.value}`}],e.definitions[u][De.SchemaTag.annotationPath]=`${i[De.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${j}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(Dm,"addSelectionFields");function ZD(e,t){for(let n of t.entityProperties)e.push(n.name)}o(ZD,"addEntityPropertiesToEnum");function _m(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(_m,"isDraftEnabled");function e1(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}o(e1,"isEntityDeletable");function t1(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}o(t1,"isEntityUpdatable");function Vl(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,u])=>{let p=u.$ref.split(j)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${j}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(Vl,"addStandardHeaderActions");function n1(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(j)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${j}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(n1,"addStandardFooterActionsOP");function wl(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?Q.t("NOUIANNOTATIONS",{entityType:t.name}):Q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});ae(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(wl,"getUIAnnotationForEntitySet");function uX(e,t,n,i){if(e===fe.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case _t.UIAnnotationTypes.DataField:case _t.UIAnnotationTypes.DataFieldForAnnotation:case _t.UIAnnotationTypes.DataFieldWithNavigationPath:case _t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===fe.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case _t.UIAnnotationTypes.DataField:case _t.UIAnnotationTypes.DataFieldForAnnotation:case _t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(uX,"copyFieldProperties");function DE(e,t,n,i){let r=e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===fe.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(DE,"determineFieldDefinitionName");function pX(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][fe.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(pX,"addKeysTagForDataField");function dX(e,t,n){if(e.$Type===_t.UIAnnotationTypes.DataField||e.$Type===_t.UIAnnotationTypes.DataFieldWithUrl||e.$Type===_t.UIAnnotationTypes.DataFieldWithNavigationPath)pX(e,t,n);else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][fe.SchemaTag.keys]=[{name:"Target",value:Rl(e.Target.value)}],t.definitions[n][fe.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][fe.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===_t.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][fe.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(dX,"addKeysTagToField");function gX(e){var t,n;return e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===_t.UIAnnotationTypes.ConnectedFieldsType}o(gX,"isConnectedField");function mX(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===_t.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let h=p[m];if(typeof h=="object"&&"$Type"in h){let E=u.findIndex(b=>b===m);E===-1&&(E=g,g++),FE(e,t,h,`ConnectedFields::${a.qualifier}`,E.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(mX,"addConnectedFields");function i1(e,t,n){if(n)return n;let i=ct(t);return e.definitions[i].properties}o(i1,"getFieldsSchemaContainer");function _E(e,t){return e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::").splice(1).join("::"):t}o(_E,"getFieldReference");function FE(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){if(!n||!n.$Type)return;let g={appSchema:t,withActions:l,sectionType:e,field:n,targetID:i,containersSchema:u,key:r,version:s,section:a,entityTypeName:p};is.getStrategy(n.$Type).addDefinition(g)}o(FE,"addField");function hX(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(hX,"determineTargetIdOfForm");function yX(e,t,n,i,r,a){if(e.base===fe.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&FE(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];FE(t,n,l,i,s,e,r)}}o(yX,"addFieldsToFormDefinition");function TX(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][fe.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][fe.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][fe.SchemaTag.annotationPath]=hr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(TX,"addTagsToFormDefinition");function wm(e,t,n,i,r,a){if(!t.target)return;let s=hX(t),l=ct(`${e}${fe.DefinitionName.Form}<${s}>`),u=ct(`${e}${fe.DefinitionName.Fields}<${s}>`),p=ct(`${e}${fe.DefinitionName.Actions}<${s}>`),g=!(t.base===fe.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${j}${l}`},e===fe.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${j}${p}`},fields:{$ref:`${j}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][fe.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${j}${u}`}},description:"Form",additionalProperties:!1},TX(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][fe.SchemaTag.isViewNode]=!0,yX(t,e,i,s,r,g),s}o(wm,"handleForm");function VE(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(VE,"replaceAlias");function Mm(e,t){let n=VE(e.Action??"",t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(Mm,"getActionNameAndId");function r1(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:r1(a.pages,t)}}o(r1,"isFirstObjectPage");function km(e,t,n,i,r){var g,m;e.definitions[fe.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${j}${fe.DefinitionName.ObjectPageFooter}`},e.definitions[fe.DefinitionName.ObjectPageFooter].properties[fe.PropertyName.actions]={$ref:`${j}${fe.DefinitionName.FooterActions}`};let a=e.definitions[fe.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[fe.SchemaTag.isViewNode]=!0;let s=ii(fe.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let h=p.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`);a[fe.SchemaTag.annotationPath]=`/${h}`,i(u,e,a,p)}else u&&(a[fe.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`);n===fe.FioriElementsVersion.v2&&r1(r,t)&&!_m(l)&&n1(e,a),delete e.definitions[fe.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${fe.DefinitionName.ObjectPageFooter}<${fe.DefinitionName.ObjectPageFooterActions}>`]}o(km,"addFooterActions");function Um(e,t,n,i,r,a=!1){var m,h;let s=fe.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[fe.DefinitionName.ObjectPageHeader].properties[fe.PropertyName.actions]={$ref:`${j}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[fe.SchemaTag.isViewNode]=!0;let p=ii(fe.UIVOCABULARY,n.serviceAVT),g=p&&((h=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:h.Identification);g?u[fe.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`):t&&(u[fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&Vl(e,!0,l)}o(Um,"addHeaderActions");function jm(e,t){e.properties.header={$ref:`${j}${fe.DefinitionName.ObjectPageHeader}`},e.definitions[fe.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[fe.DefinitionName.ObjectPageHeader][fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.HeaderInfo}`)}o(jm,"addCommonHeaderSchema");function o1(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(o1,"determineEntitySetOfEntityType");function WD(e){let{appSchema:t,section:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Br(r),g=_E(u,p),m=DE(u,p,a,g),h=i1(t,`${i}${fe.DefinitionName.Fields}<${a}>`,s.fields),E={};h[g]={$ref:`${j}${m}`,propertyIndex:parseInt(l)},gX(r)&&(E=mX(i,t,r,n,u)),a1(e,m,E)}o(WD,"addDataFieldDefinition");function xu(e){let{appSchema:t,withActions:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Br(r),g=_E(u,p),m=DE(u,p,a,g),h={};if(n&&i===fe.SectionType.Section){let E=i1(t,`${i}${fe.DefinitionName.Actions}<${a}>`,s.actions),b=E[g]={$ref:`${j}${m}`};b[fe.SchemaTag.propertyIndex]=parseInt(l)}vX(e,m,h),a1(e,m,h)}o(xu,"addDataFieldForActionAndActionGroupDefinition");function vX(e,t,n){let{appSchema:i,field:r,version:a}=e;r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&(r.Actions??[]).forEach(s=>{let l={...e,field:s,targetID:t,withActions:!1},u=Br(s),p=_E(a,u),g=DE(a,u,t,p);xu(l),n[p]=i.definitions[g]})}o(vX,"addGroupedActionsToDefinition");function a1(e,t,n={}){var u,p;let{appSchema:i,field:r,version:a,section:s,entityTypeName:l}=e;i.definitions[t]={type:"object",properties:n,description:ai(r,s.entityType),additionalProperties:!1},r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&Aa(i.definitions[t],Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),dX(r,i,t),i.definitions[t][fe.SchemaTag.annotationPath]=`/${l}/${r.fullyQualifiedName.split(l)[1]}`,i.definitions[t][fe.SchemaTag.annotationType]=r.$Type,i.definitions[t][fe.SchemaTag.isViewNode]=!0,Vm(i.definitions[t],r),uX(a,i,r,t),r.$Type===_t.UIAnnotationTypes.DataFieldForAction&&((u=i.definitions)!=null&&u[fe.DefinitionName.FormAction])&&(i.definitions[t].$ref=`${j}${fe.DefinitionName.FormAction}`,delete i.definitions[t].properties),r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&((p=i.definitions)!=null&&p[fe.DefinitionName.ObjectPageFormActionGroup])&&(i.definitions[t].$ref=`${j}${fe.DefinitionName.ObjectPageFormActionGroup}`)}o(a1,"writeDefinitionToSchema");var Tr=require("@sap-ux/vocabularies-types/vocabularies/UI");var Ke=te(ce());function Sa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(Sa,"addEnumToSchema");function Iu(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let u=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(u)===-1&&r.push(u)}}Sa(r,n)}o(Iu,"addEnumForValidAnnotations");function as(e,t,n){let i=t.definitions[n].properties[Ke.SchemaTag.annotationPath],r=[Tr.UIAnnotationTerms.SelectionVariant,Tr.UIAnnotationTerms.SelectionPresentationVariant];Iu(e,r,i)}o(as,"addEnumForSingleTabVariant");function s1(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[Tr.UIAnnotationTerms.SelectionVariant,Tr.UIAnnotationTerms.SelectionPresentationVariant];Iu(n.entityType,r,i)}o(s1,"addEnumForMultiTabVariant");function c1(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),Sa(r,i)}o(c1,"addEnumForVariantEntitySet");function l1(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Tr.UIAnnotationTerms.FieldGroup];Iu(e,r,i)}o(l1,"addEnumFieldGroupAnnotationPath");function f1(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[Ke.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${j}${Ke.DefinitionName.RelatedFacetKeys}`},l]}}}}o(f1,"addDefinitionForRelatedFacetKeys");function Ec(e){return e.replace("#","::")}o(Ec,"getFacetKeyInSchema");function Ou(e,t){return`${e}<${Ec(t)}>`}o(Ou,"getFacetDefinitionKey");function vt(e,t,n,i=!0){let r=t;if(i&&(r=Ou(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(vt,"parseSchemaDefinition");function $m(e,t,n){let i;return t===Ke.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${Tr.UIAnnotationTerms.LineItem}`?i=`${j}${n}`:(i=`${j}${n}<${t}>`,vt(n,t,e,!0)),i}o($m,"getCustomExtensionDefinitionName");function Cm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][Ke.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=$m(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?Ke.DefinitionName.ObjectPageToolBar:Ke.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${Ke.DefinitionName.Actions}<${ct(r)}>`;t.definitions[p].properties.actions.$ref=j+g;let m=r.startsWith(Ke.DefinitionName.LineItems)?Ke.DefinitionName.Actions:Ke.DefinitionName.ObjectPageToolBarActions,h;try{if(h=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),h.properties={},h.additionalProperties=!1,s){let O=$m(t,r,s);h.additionalProperties={$ref:O}}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let E,b;if(r===Ke.DefinitionName.LineItems&&t.properties.footer){b=`${Ke.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${j}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Ke.DefinitionName.GenericFooter]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Ke.DefinitionName.GenericFooter}))}let O=`${Ke.DefinitionName.FooterActions}<${ct(r)}>`;t.definitions[b].properties.actions.$ref=j+O,E=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[Ke.DefinitionName.Actions])),E.properties={},E.additionalProperties=!1}return n&&(l=hr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][Ke.SchemaTag.annotationPath]=l,E&&(t.definitions[b][Ke.SchemaTag.annotationPath]=l))),{actions:h,footerActions:E,lineItemPath:l}}o(Cm,"addCommonLineItemDefinitions");function u1(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(u1,"getDataTypeFromAnnotation");function Sc(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=u1(e.$Type)),t}o(Sc,"determineDataTypeOfTarget");function Hr(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=Sc((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=u1(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(Hr,"determineDataType");function Vm(e,t){let n=Hr(t);n&&(e[Ke.SchemaTag.dataType]=n)}o(Vm,"addDataTypeToDefinition");function oi(e,t){return`${j}${Ou(e,t)}`}o(oi,"getFacetDefinitionLink");function GD(e,t,n,i){let r=0,a=!1,s="";do{let l=`${t}${r===0?"":"."+r}`;s=oi(e,l),r++;let u=n.definitions[Ou(e,l)],p=((u==null?void 0:u.annotationPath)??"").split("/").slice(0,-1).join("/");a=!u||p===i}while(!a);return s}o(GD,"getUniqueFacetDefinitionLink");function ss(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${j}${i}`}o(ss,"addDefinitionRef");function Bm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${Ke.UIVOCABULARY}`);t=`/${n}/@${Ke.UIVOCABULARY}${i}`}return t}o(Bm,"getFacetAnnotationPath");function Ru(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:oi(a?u:l,t)};let p=vt(a?u:l,t,i,!0);ya(e,p,t),ts(e,p,t),p[Ke.SchemaTag.annotationPath]=e.annotationPath,p[Ke.SchemaTag.isViewNode]=!0}o(Ru,"handleAddressContact");function wE(e,t,n){typeof e=="object"&&(e[t]=n)}o(wE,"updateSchemaProperty");function Ml(e,t,n=ct("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${Ke.DefinitionName.Fields4Dialog}${n}`];wE(r.properties.fields.items,"enum",i)}o(Ml,"addFieldsType");function bX(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(bX,"findFirstSchemaDefinitionKey");function Im(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=rn(t.$ref),m=(p=e.definitions)==null?void 0:p[g];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,u=bX(a,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(Im,"getEnumEntry");function rs(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=Im(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];wE(l,"oneOf",r)}else wE(a,"oneOf",r)}o(rs,"addDescriptiveEnumDefinition");function bc(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(bc,"getActionKey");function Om(e,t,n){var i,r,a;try{if(e.Value)t[n][Ke.SchemaTag.keys]=[{name:Ke.SchemaKeyName.value,value:os(e.Value)}];else if(e.$Type===Tr.UIAnnotationTypes.DataFieldWithAction||e.$Type===Tr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=bc(e.Action,!0);t[n][Ke.SchemaTag.keys]=[{name:Ke.SchemaKeyName.action,value:s}],l&&(t[n][Ke.SchemaTag.target]=l)}else if(e.$Type===Tr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=bc(e.Target.value,!1);t[n][Ke.SchemaTag.keys]=[{name:Ke.SchemaKeyName.target,value:Rl(s)}],t[n][Ke.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===Tr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Tr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=bc(s,!0);t[n][Ke.SchemaTag.keys]=[{name:"SemanticObject",value:e[Ke.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][Ke.SchemaTag.target]=u)}}catch{return}}o(Om,"addKeyToDefinition");function ai(e,t){try{return is.getStrategy(e.$Type).generateDescription(e,t)}catch{return""}}o(ai,"getDataFieldDescription");function Aa(e,t){e[Ke.SchemaTag.messages]||(e[Ke.SchemaTag.messages]=[]),Array.isArray(e[Ke.SchemaTag.messages])&&e[Ke.SchemaTag.messages].push({text:t})}o(Aa,"addMessageToSchema");var kl=te(ce());var p1=[{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 g1="1.108.57";var m1={name:"@sap/ux-specification",version:g1,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas 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",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.35.5","@sap-ux/vocabularies-types":"0.13.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.108.57","@sapui5/ts-types-esm":"latest-1.108","@types/d3":"7.4.3","@types/jquery":"3.5.32","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.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","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.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 cs=class cs{constructor(){cs.distTagsOfSpec.length===0&&(cs.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){cs.distTagsOfSpec=[]}getSpecVersion(){return g1}getDistTagsOfVersion(){let t=[],n=p1,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let r=Q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});ae(n,{severity:kl.LogSeverity.Info,message:r,location:{path:kl.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(cs.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=Q.t("WRONGMINUI5VERSION",{minUI5Version:t});ae(n,{severity:kl.LogSeverity.Warning,message:r,location:{path:kl.MANIFESTPATH}})}}};o(cs,"DistTagEvaluator"),cs.distTagsOfSpec=[];var Lu=cs;var ue=te(ce());var Vn=te(ce());var vi=te(ce());function h1(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(h1,"getCustomPageFullName");function AX(e){let n=h1(e).split(".");return n[n.length-1]}o(AX,"getCustomPageName");function y1(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||vi.ViewTypes.XML}o(y1,"getViewType");function PX(e,t){return y1(e,t).toLowerCase()}o(PX,"getViewTypeExtension");function xX(e,t,n){var p;let i=o(g=>{var m;return(m=g.split(`${t.id}.`)[1])==null?void 0:m.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=h1(e);s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}o(xX,"getViewPath");function CX(e,t){let n=e.entitySet||AX(e),{viewPath:i,fileName:r}=xX(e,t,[n]),a=PX(e,t);return[...i,`${r}.view.${a}`].join("/")}o(CX,"getCustomPagePath");var ME=class ME{constructor(t,n,i,r){this.unhandledControllers=[];let a=Dt(vi.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===vi.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${vi.DirName.Pages}/${s}.json`]=u)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[vi.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=y1(t,this.app)===vi.ViewTypes.XML&&!!t.config;if(t.pageType===vi.PageTypeV4.CustomPage||t.pageType===vi.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Dt(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=Dt(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Dt(t.pageType);i.$schema=u.path}}return(i&&t.pageType===vi.PageTypeV4.CustomPage||t.pageType===vi.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=CX(t,this.app);n.$filePath=i}};o(ME,"AppProvider");var ls=ME;var lt=te(ce());var Ul=te(ce());var Bn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),T1=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),v1=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function kE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(kE,"getNewPageTemplate");function IX(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(IX,"findPageInManifest");function OX(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=kE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:kE(e[t].pageType)}),!Array.isArray(n.pages))){let i=IX(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=kE(e[t].pageType)),UE(t,e,i)}}o(OX,"transformPageFromAssociation");function RX(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===Ul.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Ul.PageTypeV2.ListReport||n.pageType===Ul.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(RX,"deletePage");function UE(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Ul.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)OX(t,r,n);Array.isArray(n.pages)||RX(n,t,i)}}o(UE,"transformPageToNewManifestV2");var r_=te(lc());var OA={};sc(OA,{ALPAnalyticalTable:()=>IS,ALPGridTable:()=>CS,ALPResponsiveTable:()=>xS,Action:()=>NS,AnalyticalCard:()=>Gl,AnalyticalCardSettings:()=>Km,AnalyticalCardSettingsv4:()=>WE,AnalyticalListPageFilterBar:()=>eS,AnalyticalTable:()=>PS,BaseCustomSection:()=>cp,ChartSettings:()=>qS,ChartSettingsType:()=>$E,CommonCardSettings:()=>ds,CommonFilterBar:()=>Bu,CommonHeaderFacetSettings:()=>Fc,CommonTableSettings:()=>ys,CommonTableSettingsForSections:()=>Mc,CreateWithFilters:()=>yS,CustomCard:()=>HE,DataLoadSettings:()=>vS,DateRange:()=>YE,DefaultDateRange:()=>zE,DefaultSpanObject:()=>BE,FRAGMENT_DEFINITION:()=>Bo,Field:()=>qE,FieldForAction:()=>oS,Fields4Dialog:()=>bS,Fields4DialogOP:()=>SA,FooterAction:()=>DS,FormAction:()=>rS,GlobalChartSettings:()=>bA,GlobalTableSettings:()=>CA,GridTable:()=>OS,HeaderActionStandard:()=>kS,HeaderSections:()=>iA,KPISettings:()=>YS,LinkListCardSettings:()=>XE,LinklistCard:()=>Uu,ListCard:()=>Hl,ListCardSettings:()=>GE,ListReportFilterBar:()=>tS,MultiEdit:()=>TS,ObjectPageAnalyticalTable:()=>AA,ObjectPageChart:()=>vA,ObjectPageCustomSectionFragment:()=>lp,ObjectPageCustomSectionView:()=>fp,ObjectPageFooterAction:()=>oA,ObjectPageFooterActionStandard:()=>jS,ObjectPageGridTable:()=>PA,ObjectPageHeader:()=>zS,ObjectPageHeaderAction:()=>JS,ObjectPageHeaderActionStandard:()=>US,ObjectPageHeaderSectionAddress:()=>nA,ObjectPageHeaderSectionChart:()=>eA,ObjectPageHeaderSectionDataPoint:()=>tA,ObjectPageHeaderSectionForm:()=>ZS,ObjectPageLayout:()=>sA,ObjectPageResponsiveTable:()=>kc,ObjectPageSectionAddressV2:()=>pA,ObjectPageSectionChartV2:()=>fA,ObjectPageSectionContactV2:()=>dA,ObjectPageSectionFormV2:()=>lA,ObjectPageSectionTableV2:()=>uA,ObjectPageSectionV2:()=>cA,ObjectPageSubSectionChartV2:()=>hA,ObjectPageSubSectionContactV2:()=>yA,ObjectPageSubSectionFormV2:()=>mA,ObjectPageSubSectionTableV2:()=>TA,ObjectPageSubSectionV2:()=>gA,ObjectPageToolBarAction:()=>IA,ObjectPageTreeTable:()=>xA,QuickVariantSelection:()=>ES,QuickVariantSelectionOP:()=>EA,QuickVariantSelectionX:()=>SS,ResponsiveTable:()=>Ic,SAP_UI_TABLE:()=>Zm,SaveAndEditOP:()=>MS,SelectionFieldDateSettings:()=>JE,SelectionFields:()=>ZE,Share:()=>_S,ShareOP:()=>VS,StackCard:()=>ku,StackCardSettings:()=>KE,TableALP:()=>ql,TableCard:()=>Wl,TableCardSettings:()=>QE,TableColumn:()=>HS,TableColumnAction:()=>bh,TableColumnActionIntentBased:()=>GS,TableCustomColumn:()=>WS,ToolBar:()=>XS,ToolBarAction:()=>FS,TreeTable:()=>AS,UpAndDownNavigationOP:()=>wS,buildIntentBasedActionId:()=>$S,deleteColumnFromFragment:()=>nh,deleteType:()=>zl,exportColorPalette:()=>A1,exportCreateParametersFields:()=>fh,exportCustomColumnsToFragment:()=>mS,exportDateSettingsField:()=>I1,exportDefaultSpan:()=>P1,exportType:()=>Yl,getChartSectionControlId:()=>Z1,getContactSubSectionControlId:()=>t_,getCustomColumnPath:()=>ih,getFormSectionControlId:()=>J1,getRootCustomColumnFromFragmentJSON:()=>Wu,getSectionControlId:()=>Vc,getSmartChartControlId:()=>ep,getSmartTableControlId:()=>Cc,getSubSectionControlId:()=>e_,getTableSectionControlId:()=>z1,importCreateParameters:()=>lh,importDateSettings:()=>nS});var zn=te(ce());var Ue=o(e=>`${zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),uo=o(e=>Ue(e)+"/tableSettings","getTableSettingPathV2"),b1=o(e=>Ue(e)+"/chartSettings","getChartSettingPathV2"),E1=o(e=>Ue(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var bn=o(()=>zn.ManifestSection.ovp,"getOVPsettingPath"),xe=o(e=>{let t=[zn.ManifestSection.ovp];return e.forEach(n=>{n in zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var Ac=o((e,t)=>`${zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Wm=o(e=>{let t=[zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ni=o(e=>{let t=[];return t.push(Wm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Pc=o(e=>Ni(e)+"/tableSettings","getGlobalTableSettingsPathV2"),po=o((e,t,n)=>{let i=[];i.push(Wm(e));let r=n.replace(zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Wr=o((e,t,n)=>po(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),S1=o((e,t,n)=>po(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),jE=o(()=>`sap.ui5/extends/extensions/${zn.v2.SAPUI5_VIEW_EXTENSION}/${zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),xa=o((e,t,n,...i)=>{let r="|",a=n.split(r),s=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join(r);return i.unshift(u),`${jE()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Gm=class Gm{};o(Gm,"ApplicationV2"),y([jt("settings")],Gm.prototype,"settings",2);var Hm=Gm,Gr=class Gr{};o(Gr,"AppSettings"),y([v({manifest:{path:o(()=>"sap.app","path")}})],Gr.prototype,"title",2),y([v({manifest:{path:o(()=>"sap.app","path")}})],Gr.prototype,"description",2),y([v({manifest:{path:o(()=>"sap.fiori","path")}})],Gr.prototype,"cloudDevAdaptationStatus",2),y([v({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],Gr.prototype,"flexibleColumnLayout",2),y([v({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],Gr.prototype,"forceGlobalRefresh",2),y([v({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],Gr.prototype,"tableColumnVerticalAlignment",2),y([v({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),Re("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Gr.prototype,"flexEnabled",2),y([v({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Gr.prototype,"draftDiscardConfirmationSettings",2),y([v({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Gr.prototype,"statePreservationMode",2);var fs=Gr;var Nu=te(ce());function LX(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=Nu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=Nu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:Nu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(LX,"importColorPalette");function A1(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===Nu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(A1,"exportColorPalette");function P1(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(P1,"exportDefaultSpan");var Xm=class Xm{};o(Xm,"ChartSettingsType"),y([v({manifest:{path:o(()=>bn()+"/chartSettings","path")}})],Xm.prototype,"showDataLabel",2);var $E=Xm,us=class us{};o(us,"DefaultSpanObject"),y([v({manifest:{path:o(t=>xe(t),"path")}})],us.prototype,"cols",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],us.prototype,"rows",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],us.prototype,"showOnlyHeader",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],us.prototype,"minimumTitleRow",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],us.prototype,"minimumSubTitleRow",2);var BE=us,Xt=class Xt{};o(Xt,"CommonCardSettings"),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"entitySet",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"title",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"subTitle",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"annotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dataPointAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionPresentationAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"kpiAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"category",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dynamicSubtitleAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"valueSelectionInfo",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showFilterInHeader",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortBy",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortOrder",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"identificationAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"presentationAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"enableLocaleCurrencyFormatting",2),y([v({manifest:{path:o(t=>xe(t),"path"),export:P1}})],Xt.prototype,"defaultSpan",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"requireAppAuthorization",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showSortingInHeader",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"tabs",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"addODataSelect",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showRefresh",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"customParams",2);var ds=Xt,jl=class jl{};o(jl,"CustomCard"),y([v({manifest:{path:o(t=>xe(t),"path")}})],jl.prototype,"model",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],jl.prototype,"template",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],jl.prototype,"settings",2);var HE=jl,ps=class ps extends ds{};o(ps,"ListCardSettings"),y([v({manifest:{path:o(t=>xe(t),"path")}})],ps.prototype,"showLineItemDetail",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],ps.prototype,"imageSupported",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],ps.prototype,"enableAddToInsights",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],ps.prototype,"listFlavor",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],ps.prototype,"listType",2);var GE=ps,Fu=class Fu{};o(Fu,"ListCard"),y([v({manifest:{path:o(t=>xe(t),"path")}})],Fu.prototype,"model",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Fu.prototype,"template",2);var Hl=Fu,go=class go extends ds{};o(go,"AnalyticalCardSettings"),y([v({manifest:{path:o(t=>xe(t),"path")}})],go.prototype,"chartAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],go.prototype,"ignoreSapText",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],go.prototype,"enableAddToInsights",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],go.prototype,"navigation",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],go.prototype,"valueSelectionInfo",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],go.prototype,"chartProperties",2),y([v({manifest:{path:o(t=>xe(t),"path"),import:LX,export:A1}})],go.prototype,"colorPalette",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],go.prototype,"bEnableStableColors",2);var Km=go,Qm=class Qm extends Km{};o(Qm,"AnalyticalCardSettingsv4"),y([v({manifest:{path:o(t=>xe(t),"path")}})],Qm.prototype,"measureAggregate",2);var WE=Qm,Du=class Du{};o(Du,"AnalyticalCard"),y([v({manifest:{path:o(t=>xe(t),"path")}})],Du.prototype,"model",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Du.prototype,"template",2);var Gl=Du,$l=class $l extends ds{};o($l,"StackCardSettings"),y([v({manifest:{path:o(t=>xe(t),"path")}})],$l.prototype,"itemText",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],$l.prototype,"objectStreamCardsNavigationProperty",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],$l.prototype,"objectStreamCardsSettings",2);var KE=$l,_u=class _u{};o(_u,"StackCard"),y([v({manifest:{path:o(t=>xe(t),"path")}})],_u.prototype,"model",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],_u.prototype,"template",2);var ku=_u,Bl=class Bl extends ds{};o(Bl,"LinkListCardSettings"),y([v({manifest:{path:o(t=>xe(t),"path")}})],Bl.prototype,"listFlavor",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Bl.prototype,"headerAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Bl.prototype,"staticContent",2);var XE=Bl,Vu=class Vu{};o(Vu,"LinklistCard"),y([v({manifest:{path:o(t=>xe(t),"path")}})],Vu.prototype,"model",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Vu.prototype,"template",2);var Uu=Vu,wu=class wu extends ds{};o(wu,"TableCardSettings"),y([v({manifest:{path:o(t=>xe(t),"path")}})],wu.prototype,"showLineItemDetail",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],wu.prototype,"enableAddToInsights",2);var QE=wu,Mu=class Mu{};o(Mu,"TableCard"),y([v({manifest:{path:o(t=>xe(t),"path")}})],Mu.prototype,"model",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Mu.prototype,"template",2);var Wl=Mu;var x1=te(ce());var NX=o((e,t,n,i,r)=>{let a=qn(n[1],r),s=n.slice(-1)[0];return zt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),qm=class qm{};o(qm,"Field"),y([v({flex:{controlId:NX,controlType:o(()=>x1.ControlType.GroupElement,"controlType")},generate:gt})],qm.prototype,"visible",2);var qE=qm;var xc=te(ce());function nS(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),delete t.fields,t}o(nS,"importDateSettings");function FX(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(FX,"importDateSettingsField");function I1(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o(I1,"exportDateSettingsField");var Kl=class Kl{};o(Kl,"DateRange"),y([v({manifest:{path:o(t=>Ue(t)+xc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Kl.prototype,"useDateRange",2),y([v({manifest:{path:o(t=>Ue(t)+xc.DATESETTINGSPATH,"path"),import:nS,export:pm}}),x({since:"1.77.0"})],Kl.prototype,"selectedValues",2),y([v({manifest:{path:o(t=>Ue(t)+xc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Kl.prototype,"exclude",2);var YE=Kl,Ym={controlId:zt,controlType:o(()=>xc.ControlType.SmartFilterBar,"controlType")},ju={path:o((e,t,n)=>`${Ue(e)}${xc.DATESETTINGSPATH}/fields/${n}`,"path")},C1={...ju,import:FX,export:I1},zm=class zm{};o(zm,"DefaultDateRange"),y([v({manifest:ju}),x({since:"1.90.0"})],zm.prototype,"operation",2);var zE=zm,gs=class gs{};o(gs,"SelectionFieldDateSettings"),y([v({manifest:C1}),x({since:"1.77.0"})],gs.prototype,"selectedValues",2),y([v({manifest:ju}),x({since:"1.77.0"})],gs.prototype,"exclude",2),y([v({manifest:ju}),x({since:"1.77.0"})],gs.prototype,"customDateRangeImplementation",2),y([v({manifest:C1}),x({since:"1.77.0"})],gs.prototype,"filter",2),y([v({manifest:ju}),x({since:"1.90.0"})],gs.prototype,"defaultValue",2);var JE=gs,iS=class iS{};o(iS,"SelectionFields");var ZE=iS,mo=class mo{};o(mo,"CommonFilterBar"),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"})],mo.prototype,"smartVariantManagement",2),y([v({flex:Ym}),x({since:"1.40.0"})],mo.prototype,"liveMode",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],mo.prototype,"variantManagementHidden",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.52.0"})],mo.prototype,"subTitleIfVariantMgmtHidden",2),y([v({manifest:{path:o(t=>Ue(t)+"/filterSettings","path"),import:nS}}),x({since:"1.77.0"})],mo.prototype,"dateSettings",2),y([v({flex:Ym}),x({since:"1.28.0"})],mo.prototype,"showClearOnFB",2),y([v({flex:Ym}),x({since:"1.38.0"})],mo.prototype,"showFilterConfiguration",2),y([v({flex:Ym}),x({since:"1.28.0"})],mo.prototype,"showRestoreOnFB",2);var Bu=mo,$u=class $u extends Bu{};o($u,"AnalyticalListPageFilterBar"),y([v({manifest:{path:o(t=>Ue(t),"path")}})],$u.prototype,"showGoButtonOnFilterBar",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],$u.prototype,"filterDefaultsFromSelectionVariant",2);var eS=$u,Jm=class Jm extends Bu{};o(Jm,"ListReportFilterBar"),y([v({manifest:{path:o(t=>Ue(t),"path")}}),Re("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],Jm.prototype,"annotationPath",2);var tS=Jm;var aS=te(ce());var DX=o((e,t,n,i,r)=>{if(i()===aS.ControlType.Button){let a=n[n.length-1],s=qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return zt(e,t)},"getFormActionButtonId"),$o={controlId:DX,controlType:o(()=>aS.ControlType.Button,"controlType")},ms=class ms{};o(ms,"FormAction"),y([v({flex:$o,generate:gt})],ms.prototype,"visible",2),y([v({flex:$o})],ms.prototype,"tooltip",2),y([v({flex:$o})],ms.prototype,"icon",2),y([v({flex:$o})],ms.prototype,"activeIcon",2),y([v({flex:$o})],ms.prototype,"type",2);var rS=ms,hs=class hs{};o(hs,"FieldForAction"),y([v({flex:$o,generate:gt})],hs.prototype,"visible",2),y([v({flex:$o})],hs.prototype,"tooltip",2),y([v({flex:$o})],hs.prototype,"icon",2),y([v({flex:$o})],hs.prototype,"activeIcon",2),y([v({flex:$o}),x({since:"1.73.0"})],hs.prototype,"type",2);var oS=hs;var Et=te(ce()),ho=te(lc());var fS=require("path"),zX=te(ce()),j1=te(U1()),$1=require("fs");var JX=(0,fS.join)(__dirname,"templates");var ZX=o((e,t)=>{let n=(0,$1.readFileSync)(e,"utf8");return(0,j1.render)(n,t)},"renderTemplate");var uS=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return ZX((0,fS.join)(JX,t+".xml"),n)},"getSingleColumnContent"),pS=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=uS(i,t);n=n+`
|
|
288
|
+
}`;var Ze=ZR(function(){return St(C,Oe+"return "+ne).apply(e,L)});if(Ze.source=ne,jv(Ze))throw Ze;return Ze}o(BH,"template");function HH(c){return It(c).toLowerCase()}o(HH,"toLower");function GH(c){return It(c).toUpperCase()}o(GH,"toUpper");function WH(c,f,d){if(c=It(c),c&&(d||f===e))return cO(c);if(!c||!(f=ur(f)))return c;var T=ro(c),S=ro(f),C=lO(T,S),L=fO(T,S)+1;return Ja(T,C,L).join("")}o(WH,"trim");function KH(c,f,d){if(c=It(c),c&&(d||f===e))return c.slice(0,pO(c)+1);if(!c||!(f=ur(f)))return c;var T=ro(c),S=fO(T,ro(f))+1;return Ja(T,0,S).join("")}o(KH,"trimEnd");function XH(c,f,d){if(c=It(c),c&&(d||f===e))return c.replace(jT,"");if(!c||!(f=ur(f)))return c;var T=ro(c),S=lO(T,ro(f));return Ja(T,S).join("")}o(XH,"trimStart");function QH(c,f){var d=D,T=ut;if(hn(f)){var S="separator"in f?f.separator:S;d="length"in f?Je(f.length):d,T="omission"in f?ur(f.omission):T}c=It(c);var C=c.length;if(sl(c)){var L=ro(c);C=L.length}if(d>=C)return c;var F=d-cl(T);if(F<1)return T;var k=L?Ja(L,0,F).join(""):c.slice(0,F);if(S===e)return k+T;if(L&&(F+=k.length-F),$v(S)){if(c.slice(F).search(S)){var z,J=k;for(S.global||(S=iv(S.source,It(LI.exec(S))+"g")),S.lastIndex=0;z=S.exec(J);)var ne=z.index;k=k.slice(0,ne===e?F:ne)}}else if(c.indexOf(ur(S),F)!=F){var ge=k.lastIndexOf(S);ge>-1&&(k=k.slice(0,ge))}return k+T}o(QH,"truncate");function qH(c){return c=It(c),c&&Pe.test(c)?c.replace(me,AU):c}o(qH,"unescape");var YH=gl(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),Gv=eR("toUpperCase");function JR(c,f,d){return c=It(c),f=d?e:f,f===e?TU(c)?CU(c):lU(c):c.match(f)||[]}o(JR,"words");var ZR=tt(function(c,f){try{return lr(c,e,f)}catch(d){return jv(d)?d:new We(d)}}),zH=aa(function(c,f){return Dr(f,function(d){d=No(d),ra(c,d,kv(c[d],c))}),c});function JH(c){var f=c==null?0:c.length,d=Ve();return c=f?un(c,function(T){if(typeof T[1]!="function")throw new _r(r);return[d(T[0]),T[1]]}):[],tt(function(T){for(var S=-1;++S<f;){var C=c[S];if(lr(C[0],this,T))return lr(C[1],this,T)}})}o(JH,"cond");function ZH(c){return Aj(wr(c,p))}o(ZH,"conforms");function Wv(c){return function(){return c}}o(Wv,"constant");function eG(c,f){return c==null||c!==c?f:c}o(eG,"defaultTo");var tG=nR(),nG=nR(!0);function Ki(c){return c}o(Ki,"identity");function Kv(c){return FO(typeof c=="function"?c:wr(c,p))}o(Kv,"iteratee");function iG(c){return _O(wr(c,p))}o(iG,"matches");function rG(c,f){return VO(c,wr(f,p))}o(rG,"matchesProperty");var oG=tt(function(c,f){return function(d){return au(d,c,f)}}),aG=tt(function(c,f){return function(d){return au(c,d,f)}});function Xv(c,f,d){var T=Qn(f),S=fg(f,T);d==null&&!(hn(f)&&(S.length||!T.length))&&(d=f,f=c,c=this,S=fg(f,Qn(f)));var C=!(hn(d)&&"chain"in d)||!!d.chain,L=ca(c);return Dr(S,function(F){var k=f[F];c[F]=k,L&&(c.prototype[F]=function(){var z=this.__chain__;if(C||z){var J=c(this.__wrapped__),ne=J.__actions__=Hi(this.__actions__);return ne.push({func:k,args:arguments,thisArg:c}),J.__chain__=z,J}return k.apply(c,Wa([this.value()],arguments))})}),c}o(Xv,"mixin");function sG(){return Xn._===this&&(Xn._=FU),this}o(sG,"noConflict");function Qv(){}o(Qv,"noop");function cG(c){return c=Je(c),tt(function(f){return wO(f,c)})}o(cG,"nthArg");var lG=xv(un),fG=xv(iO),uG=xv(YT);function eL(c){return Fv(c)?zT(No(c)):jj(c)}o(eL,"property");function pG(c){return function(f){return c==null?e:ic(c,f)}}o(pG,"propertyOf");var dG=rR(),gG=rR(!0);function qv(){return[]}o(qv,"stubArray");function Yv(){return!1}o(Yv,"stubFalse");function mG(){return{}}o(mG,"stubObject");function hG(){return""}o(hG,"stubString");function yG(){return!0}o(yG,"stubTrue");function TG(c,f){if(c=Je(c),c<1||c>Ne)return[];var d=kt,T=gi(c,kt);f=Ve(f),c-=kt;for(var S=ev(T,f);++d<c;)f(d);return S}o(TG,"times");function vG(c){return Qe(c)?un(c,No):pr(c)?[c]:Hi(bR(It(c)))}o(vG,"toPath");function bG(c){var f=++LU;return It(c)+f}o(bG,"uniqueId");var EG=hg(function(c,f){return c+f},0),SG=Cv("ceil"),AG=hg(function(c,f){return c/f},1),PG=Cv("floor");function xG(c){return c&&c.length?lg(c,Ki,uv):e}o(xG,"max");function CG(c,f){return c&&c.length?lg(c,Ve(f,2),uv):e}o(CG,"maxBy");function IG(c){return aO(c,Ki)}o(IG,"mean");function OG(c,f){return aO(c,Ve(f,2))}o(OG,"meanBy");function RG(c){return c&&c.length?lg(c,Ki,mv):e}o(RG,"min");function LG(c,f){return c&&c.length?lg(c,Ve(f,2),mv):e}o(LG,"minBy");var NG=hg(function(c,f){return c*f},1),FG=Cv("round"),DG=hg(function(c,f){return c-f},0);function _G(c){return c&&c.length?ZT(c,Ki):0}o(_G,"sum");function VG(c,f){return c&&c.length?ZT(c,Ve(f,2)):0}return o(VG,"sumBy"),P.after=iB,P.ary=NR,P.assign=GB,P.assignIn=WR,P.assignInWith=Rg,P.assignWith=WB,P.at=KB,P.before=FR,P.bind=kv,P.bindAll=zH,P.bindKey=DR,P.castArray=mB,P.chain=OR,P.chunk=A$,P.compact=P$,P.concat=x$,P.cond=JH,P.conforms=ZH,P.constant=Wv,P.countBy=_4,P.create=XB,P.curry=_R,P.curryRight=VR,P.debounce=wR,P.defaults=QB,P.defaultsDeep=qB,P.defer=rB,P.delay=oB,P.difference=C$,P.differenceBy=I$,P.differenceWith=O$,P.drop=R$,P.dropRight=L$,P.dropRightWhile=N$,P.dropWhile=F$,P.fill=D$,P.filter=w4,P.flatMap=U4,P.flatMapDeep=j4,P.flatMapDepth=$4,P.flatten=PR,P.flattenDeep=_$,P.flattenDepth=V$,P.flip=aB,P.flow=tG,P.flowRight=nG,P.fromPairs=w$,P.functions=nH,P.functionsIn=iH,P.groupBy=B4,P.initial=k$,P.intersection=U$,P.intersectionBy=j$,P.intersectionWith=$$,P.invert=oH,P.invertBy=aH,P.invokeMap=G4,P.iteratee=Kv,P.keyBy=W4,P.keys=Qn,P.keysIn=Wi,P.map=Ag,P.mapKeys=cH,P.mapValues=lH,P.matches=iG,P.matchesProperty=rG,P.memoize=xg,P.merge=fH,P.mergeWith=KR,P.method=oG,P.methodOf=aG,P.mixin=Xv,P.negate=Cg,P.nthArg=cG,P.omit=uH,P.omitBy=pH,P.once=sB,P.orderBy=K4,P.over=lG,P.overArgs=cB,P.overEvery=fG,P.overSome=uG,P.partial=Uv,P.partialRight=MR,P.partition=X4,P.pick=dH,P.pickBy=XR,P.property=eL,P.propertyOf=pG,P.pull=W$,P.pullAll=CR,P.pullAllBy=K$,P.pullAllWith=X$,P.pullAt=Q$,P.range=dG,P.rangeRight=gG,P.rearg=lB,P.reject=Y4,P.remove=q$,P.rest=fB,P.reverse=wv,P.sampleSize=J4,P.set=mH,P.setWith=hH,P.shuffle=Z4,P.slice=Y$,P.sortBy=nB,P.sortedUniq=i4,P.sortedUniqBy=r4,P.split=UH,P.spread=uB,P.tail=o4,P.take=a4,P.takeRight=s4,P.takeRightWhile=c4,P.takeWhile=l4,P.tap=x4,P.throttle=pB,P.thru=Sg,P.toArray=BR,P.toPairs=QR,P.toPairsIn=qR,P.toPath=vG,P.toPlainObject=GR,P.transform=yH,P.unary=dB,P.union=f4,P.unionBy=u4,P.unionWith=p4,P.uniq=d4,P.uniqBy=g4,P.uniqWith=m4,P.unset=TH,P.unzip=Mv,P.unzipWith=IR,P.update=vH,P.updateWith=bH,P.values=yl,P.valuesIn=EH,P.without=h4,P.words=JR,P.wrap=gB,P.xor=y4,P.xorBy=T4,P.xorWith=b4,P.zip=E4,P.zipObject=S4,P.zipObjectDeep=A4,P.zipWith=P4,P.entries=QR,P.entriesIn=qR,P.extend=WR,P.extendWith=Rg,Xv(P,P),P.add=EG,P.attempt=ZR,P.camelCase=xH,P.capitalize=YR,P.ceil=SG,P.clamp=SH,P.clone=hB,P.cloneDeep=TB,P.cloneDeepWith=vB,P.cloneWith=yB,P.conformsTo=bB,P.deburr=zR,P.defaultTo=eG,P.divide=AG,P.endsWith=CH,P.eq=ao,P.escape=IH,P.escapeRegExp=OH,P.every=V4,P.find=M4,P.findIndex=SR,P.findKey=YB,P.findLast=k4,P.findLastIndex=AR,P.findLastKey=zB,P.floor=PG,P.forEach=RR,P.forEachRight=LR,P.forIn=JB,P.forInRight=ZB,P.forOwn=eH,P.forOwnRight=tH,P.get=Bv,P.gt=EB,P.gte=SB,P.has=rH,P.hasIn=Hv,P.head=xR,P.identity=Ki,P.includes=H4,P.indexOf=M$,P.inRange=AH,P.invoke=sH,P.isArguments=ac,P.isArray=Qe,P.isArrayBuffer=AB,P.isArrayLike=Gi,P.isArrayLikeObject=Cn,P.isBoolean=PB,P.isBuffer=Za,P.isDate=xB,P.isElement=CB,P.isEmpty=IB,P.isEqual=OB,P.isEqualWith=RB,P.isError=jv,P.isFinite=LB,P.isFunction=ca,P.isInteger=kR,P.isLength=Ig,P.isMap=UR,P.isMatch=NB,P.isMatchWith=FB,P.isNaN=DB,P.isNative=_B,P.isNil=wB,P.isNull=VB,P.isNumber=jR,P.isObject=hn,P.isObjectLike=Tn,P.isPlainObject=pu,P.isRegExp=$v,P.isSafeInteger=MB,P.isSet=$R,P.isString=Og,P.isSymbol=pr,P.isTypedArray=hl,P.isUndefined=kB,P.isWeakMap=UB,P.isWeakSet=jB,P.join=B$,P.kebabCase=RH,P.last=kr,P.lastIndexOf=H$,P.lowerCase=LH,P.lowerFirst=NH,P.lt=$B,P.lte=BB,P.max=xG,P.maxBy=CG,P.mean=IG,P.meanBy=OG,P.min=RG,P.minBy=LG,P.stubArray=qv,P.stubFalse=Yv,P.stubObject=mG,P.stubString=hG,P.stubTrue=yG,P.multiply=NG,P.nth=G$,P.noConflict=sG,P.noop=Qv,P.now=Pg,P.pad=FH,P.padEnd=DH,P.padStart=_H,P.parseInt=VH,P.random=PH,P.reduce=Q4,P.reduceRight=q4,P.repeat=wH,P.replace=MH,P.result=gH,P.round=FG,P.runInContext=w,P.sample=z4,P.size=eB,P.snakeCase=kH,P.some=tB,P.sortedIndex=z$,P.sortedIndexBy=J$,P.sortedIndexOf=Z$,P.sortedLastIndex=e4,P.sortedLastIndexBy=t4,P.sortedLastIndexOf=n4,P.startCase=jH,P.startsWith=$H,P.subtract=DG,P.sum=_G,P.sumBy=VG,P.template=BH,P.times=TG,P.toFinite=la,P.toInteger=Je,P.toLength=HR,P.toLower=HH,P.toNumber=Ur,P.toSafeInteger=HB,P.toString=It,P.toUpper=GH,P.trim=WH,P.trimEnd=KH,P.trimStart=XH,P.truncate=QH,P.unescape=qH,P.uniqueId=bG,P.upperCase=YH,P.upperFirst=Gv,P.each=RR,P.eachRight=LR,P.first=xR,Xv(P,function(){var c={};return Ro(P,function(f,d){Ft.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Dr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Dr(["drop","take"],function(c,f){pt.prototype[c]=function(d){d=d===e?1:$n(Je(d),0);var T=this.__filtered__&&!f?new pt(this):this.clone();return T.__filtered__?T.__takeCount__=gi(d,T.__takeCount__):T.__views__.push({size:gi(d,kt),type:c+(T.__dir__<0?"Right":"")}),T},pt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Dr(["filter","map","takeWhile"],function(c,f){var d=f+1,T=d==sn||d==tn;pt.prototype[c]=function(S){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(S,3),type:d}),C.__filtered__=C.__filtered__||T,C}}),Dr(["head","last"],function(c,f){var d="take"+(f?"Right":"");pt.prototype[c]=function(){return this[d](1).value()[0]}}),Dr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");pt.prototype[c]=function(){return this.__filtered__?new pt(this):this[d](1)}}),pt.prototype.compact=function(){return this.filter(Ki)},pt.prototype.find=function(c){return this.filter(c).head()},pt.prototype.findLast=function(c){return this.reverse().find(c)},pt.prototype.invokeMap=tt(function(c,f){return typeof c=="function"?new pt(this):this.map(function(d){return au(d,c,f)})}),pt.prototype.reject=function(c){return this.filter(Cg(Ve(c)))},pt.prototype.slice=function(c,f){c=Je(c);var d=this;return d.__filtered__&&(c>0||f<0)?new pt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Je(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},pt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},pt.prototype.toArray=function(){return this.take(kt)},Ro(pt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),T=/^(?:head|last)$/.test(f),S=P[T?"take"+(f=="last"?"Right":""):f],C=T||/^find/.test(f);S&&(P.prototype[f]=function(){var L=this.__wrapped__,F=T?[1]:arguments,k=L instanceof pt,z=F[0],J=k||Qe(L),ne=o(function(at){var dt=S.apply(P,Wa([at],F));return T&&ge?dt[0]:dt},"interceptor");J&&d&&typeof z=="function"&&z.length!=1&&(k=J=!1);var ge=this.__chain__,Oe=!!this.__actions__.length,Me=C&&!ge,Ze=k&&!Oe;if(!C&&J){L=Ze?L:new pt(this);var ke=c.apply(L,F);return ke.__actions__.push({func:Sg,args:[ne],thisArg:e}),new Vr(ke,ge)}return Me&&Ze?c.apply(this,F):(ke=this.thru(ne),Me?T?ke.value()[0]:ke.value():ke)})}),Dr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Qd[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",T=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var S=arguments;if(T&&!this.__chain__){var C=this.value();return f.apply(Qe(C)?C:[],S)}return this[d](function(L){return f.apply(Qe(L)?L:[],S)})}}),Ro(pt.prototype,function(c,f){var d=P[f];if(d){var T=d.name+"";Ft.call(ul,T)||(ul[T]=[]),ul[T].push({name:f,func:d})}}),ul[mg(e,O).name]=[{name:"wrapper",func:e}],pt.prototype.clone=QU,pt.prototype.reverse=qU,pt.prototype.value=YU,P.prototype.at=C4,P.prototype.chain=I4,P.prototype.commit=O4,P.prototype.next=R4,P.prototype.plant=N4,P.prototype.reverse=F4,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=D4,P.prototype.first=P.prototype.head,Zf&&(P.prototype[Zf]=L4),P},"runInContext"),Xa=IU();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Xn._=Xa,define(function(){return Xa})):Js?((Js.exports=Xa)._=Xa,KT._=Xa):Xn._=Xa}).call(Sf)});var dM=ze((vde,pM)=>{var{findIndex:IY}=Qp();function OY(e,t){let i=IY(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o(OY,"findNextTextualToken");pM.exports={findNextTextualToken:OY}});var hM=ze((Ede,mM)=>{var gM=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function RY({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(gM);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(RY,"isXMLNamespaceKey");function LY(e){if(typeof e!="string")return;let t=e.match(gM);if(t!==null)return t.groups&&t.groups.prefix||""}o(LY,"getXMLNamespaceKeyPrefix");mM.exports={isXMLNamespaceKey:RY,getXMLNamespaceKeyPrefix:LY}});var TM=ze((Ade,yM)=>{var{findNextTextualToken:NY}=dM(),{isXMLNamespaceKey:FY,getXMLNamespaceKeyPrefix:DY}=hM();yM.exports={findNextTextualToken:NY,isXMLNamespaceKey:FY,getXMLNamespaceKeyPrefix:DY}});var UP=ze((Pde,bM)=>{var{reduce:_Y,has:vM,isArray:VY}=Qp();function wY(e){return _Y(e,(n,i,r)=>(r==="parent"||(vM(i,"type")?n.push(i):VY(i)&&i.length>0&&vM(i[0],"type")&&(n=n.concat(i))),n),[])}o(wY,"getAstChildrenReflective");bM.exports={getAstChildrenReflective:wY}});var jP=ze((Cde,EM)=>{EM.exports={DEFAULT_NS:"::DEFAULT"}});var RM=ze((Ide,OM)=>{var{BaseXmlCstVisitor:MY}=kP(),{last:kY,forEach:xM,reduce:UY,map:qp,pick:BP,sortBy:jY,isEmpty:$Y,isArray:CM,assign:BY}=Qp(),{findNextTextualToken:HY,isXMLNamespaceKey:GY,getXMLNamespaceKeyPrefix:WY}=TM(),{getAstChildrenReflective:KY}=UP(),{DEFAULT_NS:XY}=jP();function QY(e,t){SM.setState({tokenVector:t});let n=SM.visit(e);return n.rootElement!==Yc&&IM(n.rootElement),n}o(QY,"buildAst");var HP=class HP extends MY{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:Yc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&$Y(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),Jy(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=qp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),Jy(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=qp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=qp(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Yc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=qp(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return zY(i,t),JY(i,t),ZY(i,t,this.tokenVector),Jy(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Yc,value:Yc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=Zy(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=qY(a.image),r.syntax.value=Zy(a)}return Jy(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Yc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=jY(r,["startOffset"]),s=qp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(HP,"CstToAstVisitor");var $P=HP,SM=new $P;function Jy(e){let t=KY(e);xM(t,n=>n.parent=e)}o(Jy,"setChildrenParent");function IM(e,t=[]){let n=UY(e.attributes,(r,a)=>{if(a.key!==Yc&&GY({key:a.key,includeEmptyPrefix:!1})===!0){let s=WY(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[XY]=l}}return r},{}),i=Object.create(null);e.namespaces=BY(i,t,n),xM(e.subElements,r=>IM(r,e.namespaces))}o(IM,"updateNamespaces");function Zy(e){return BP(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Zy,"toXMLToken");function AM(e){return BP(e,["startOffset","startLine","startColumn"])}o(AM,"startOfXMLToken");function PM(e){return BP(e,["endOffset","endLine","endColumn"])}o(PM,"endOfXMLToken");function ka(e){return CM(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(ka,"exists");function qY(e){return e.substring(1,e.length-1)}o(qY,"stripQuotes");function YY(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(YY,"nsToParts");var Yc=null;function zY(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Zy(n);let i=YY(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=Zy(t.END_NAME[0]))}o(zY,"handleElementOpenCloseNameRanges");function JY(e,t){if(ka(t.OPEN)){let n;ka(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):ka(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...AM(t.OPEN[0]),...PM(n)}),ka(t.SLASH_OPEN)&&ka(t.END)&&(e.syntax.closeBody={...AM(t.SLASH_OPEN[0]),...PM(t.END[0])})}}o(JY,"handleElementOpenCloseBodyRanges");function ZY(e,t,n){if(ka(t.Name)){let i=t.Name[0].endOffset+2;if(ka(t.START_CLOSE)||ka(t.SLASH_CLOSE)){let r=(ka(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=CM(t.attribute)?kY(t.attribute).location.endOffset:t.Name[0].endOffset,s=HY(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(ZY,"handleElementAttributeRanges");OM.exports={buildAst:QY}});var FM=ze((Rde,NM)=>{var{forEach:e9,isFunction:Af}=Qp(),{getAstChildrenReflective:t9}=UP();function LM(e,t){switch(e.type){case"XMLDocument":{Af(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{Af(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{Af(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{Af(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{Af(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{Af(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=t9(e);e9(n,i=>{LM(i,t)})}o(LM,"accept");NM.exports={accept:LM}});var _M=ze((Nde,DM)=>{var{buildAst:n9}=RM(),{accept:i9}=FM(),{DEFAULT_NS:r9}=jP();DM.exports={buildAst:n9,accept:i9,DEFAULT_NS:r9}});var Li={};sc(Li,{deleteConfigEntityByPath:()=>vZ,exportConfig:()=>yZ,exportConfigEntityByPath:()=>TZ,generateCustomExtension:()=>PI,generateSchema:()=>hZ,getApiVersion:()=>AZ,getChanges:()=>f2,getGenericSchema:()=>_T,getPathToGenericSchema:()=>Rk,getProject:()=>OZ,importConfig:()=>bZ,importProject:()=>EZ,importProjectSchema:()=>SZ,isDirectory:()=>xZ,log:()=>ae,prompts:()=>mZ,readDirectory:()=>RI});module.exports=Ng(Li);var de=te(ce());var W=te(ce());var Be=o(e=>typeof e=="string","isString"),du=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),kF=o(e=>e==null?"":""+e,"makeString"),hW=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),yW=/###/g,UF=o(e=>e&&e.indexOf("###")>-1?e.replace(yW,"."):e,"cleanKey"),jF=o(e=>!e||Be(e),"canNotTraverseDeeper"),gu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(jF(e))return{};let a=UF(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return jF(e)?{}:{obj:e,k:UF(i[r])}},"getLastOfPath"),$F=o((e,t,n)=>{let{obj:i,k:r}=gu(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=gu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=gu(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),TW=o((e,t,n,i)=>{let{obj:r,k:a}=gu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),Dg=o((e,t)=>{let{obj:n,k:i}=gu(e,t);if(n)return n[i]},"getPath"),vW=o((e,t,n)=>{let i=Dg(e,n);return i!==void 0?i:Dg(t,n)},"getPathWithDefaults"),XF=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):XF(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),vl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),bW={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},EW=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>bW[t]):e,"escape"),pb=class pb{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(pb,"RegExpCache");var ob=pb,SW=[" ",",","?","!",";"],AW=new ob(20),PW=o((e,t,n)=>{t=t||"",n=n||"";let i=SW.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=AW.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),ab=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),_g=o(e=>e&&e.replace("_","-"),"getCleanedCode"),xW={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)}},mu=class mu{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||xW,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new mu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new mu(this.logger,t)}};o(mu,"Logger");var sb=mu,Fo=new sb,db=class db{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l.apply(l,[t,...i])})}};o(db,"EventEmitter");var El=db,gb=class gb extends El{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let u=Dg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||!Be(i)?u:ab(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),$F(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=Dg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?XF(u,i,a):u={...u,...i},$F(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(gb,"ResourceStore");var Vg=gb,QF={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},BF={},Ug=class Ug extends El{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),hW(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Fo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!PW(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let re=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${re}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${re}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),h=m&&m.res,E=m&&m.usedKey||s,b=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(h),N=["[object Number]","[object Function]","[object RegExp]"],M=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,H=!this.i18nFormat||this.i18nFormat.handleAsObject,$=!Be(h)&&typeof h!="boolean"&&typeof h!="number";if(H&&h&&$&&N.indexOf(O)<0&&!(Be(M)&&Array.isArray(h))){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(E,h,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=re,m.usedParams=this.getUsedParamsDetails(n),m):re}if(a){let re=Array.isArray(h),Z=re?[]:{},oe=re?b:E;for(let Ae in h)if(Object.prototype.hasOwnProperty.call(h,Ae)){let D=`${oe}${a}${Ae}`;Z[Ae]=this.translate(D,{...n,joinArrays:!1,ns:l}),Z[Ae]===D&&(Z[Ae]=h[Ae])}h=Z}}else if(H&&Be(M)&&Array.isArray(h))h=h.join(M),h&&(h=this.extendTranslation(h,t,n,i));else{let re=!1,Z=!1,oe=n.count!==void 0&&!Be(n.count),Ae=Ug.hasDefaultValue(n),D=oe?this.pluralResolver.getSuffix(p,n.count,n):"",ut=n.ordinal&&oe?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",ht=oe&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),je=ht&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${ut}`]||n.defaultValue;!this.isValidLookup(h)&&Ae&&(re=!0,h=je),this.isValidLookup(h)||(Z=!0,h=s);let Wn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:h,tn=Ae&&je!==h&&this.options.updateMissing;if(Z||re||tn){if(this.logger.log(tn?"updateKey":"missingKey",p,u,s,tn?je:h),a){let Ct=this.resolve(s,{...n,keySeparator:!1});Ct&&Ct.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Lt=[],Ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ne&&Ne[0])for(let Ct=0;Ct<Ne.length;Ct++)Lt.push(Ne[Ct]);else this.options.saveMissingTo==="all"?Lt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Lt.push(n.lng||this.language);let Ci=o((Ct,kt,cn)=>{let $i=Ae&&cn!==h?cn:Wn;this.options.missingKeyHandler?this.options.missingKeyHandler(Ct,u,kt,$i,tn,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ct,u,kt,$i,tn,n),this.emit("missingKey",Ct,u,kt,h)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&oe?Lt.forEach(Ct=>{let kt=this.pluralResolver.getSuffixes(Ct,n);ht&&n[`defaultValue${this.options.pluralSeparator}zero`]&&kt.indexOf(`${this.options.pluralSeparator}zero`)<0&&kt.push(`${this.options.pluralSeparator}zero`),kt.forEach(cn=>{Ci([Ct],s+cn,n[`defaultValue${cn}`]||je)})}):Ci(Lt,s,je))}h=this.extendTranslation(h,t,n,m,i),Z&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${u}:${s}`),(Z||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,re?h:void 0):h=this.options.parseMissingKeyHandler(h))}return r?(m.res=h,m.usedParams=this.getUsedParamsDetails(n),m):h}extendTranslation(t,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=Be(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(p){let h=t.match(this.interpolator.nestingRegexp);g=h&&h.length}let m=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||r.usedLng,i),p){let h=t.match(this.interpolator.nestingRegexp),E=h&&h.length;g<E&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,E=new Array(h),b=0;b<h;b++)E[b]=arguments[b];return a&&a[0]===E[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${E[0]} in key: ${n[0]}`),null):s.translate(...E,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,u=Be(l)?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=QF.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return Be(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(u,n),g=p.key;r=g;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let h=n.count!==void 0&&!Be(n.count),E=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(N=>{this.isValidLookup(i)||(l=N,!BF[`${O[0]}-${N}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(BF[`${O[0]}-${N}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(M=>{if(this.isValidLookup(i))return;s=M;let H=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(H,g,M,N,n);else{let re;h&&(re=this.pluralResolver.getSuffix(M,n.count,n));let Z=`${this.options.pluralSeparator}zero`,oe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(H.push(g+re),n.ordinal&&re.indexOf(oe)===0&&H.push(g+re.replace(oe,this.options.pluralSeparator)),E&&H.push(g+Z)),b){let Ae=`${g}${this.options.contextSeparator}${n.context}`;H.push(Ae),h&&(H.push(Ae+re),n.ordinal&&re.indexOf(oe)===0&&H.push(Ae+re.replace(oe,this.options.pluralSeparator)),E&&H.push(Ae+Z))}}let $;for(;$=H.pop();)this.isValidLookup(i)||(a=$,i=this.getResource(M,N,$,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(Ug,"Translator");var wg=Ug,ib=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),mb=class mb{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fo.create("languageUtils")}getScriptPartFromCode(t){if(t=_g(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=_g(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=ib(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]=ib(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=ib(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(mb,"LanguageUtil");var Mg=mb,CW=[{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}],IW={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},OW=["v1","v2","v3"],RW=["v4"],HF={zero:0,one:1,two:2,few:3,many:4,other:5},LW=o(()=>{let e={};return CW.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:IW[t.fc]}})}),e},"createRules"),hb=class hb{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Fo.create("pluralResolver"),(!this.options.compatibilityJSON||RW.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=LW(),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=_g(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!t.match(/-|_/))return;let u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[a]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>HF[r]-HF[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let a=o(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!OW.includes(this.options.compatibilityJSON)}};o(hb,"PluralResolver");var cb=hb,GF=o(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=vW(e,t,n);return!a&&r&&Be(n)&&(a=ab(e,n,i),a===void 0&&(a=ab(t,n,i))),a},"deepFindWithDefaults"),rb=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),yb=class yb{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Fo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:h,nestingPrefixEscaped:E,nestingSuffix:b,nestingSuffixEscaped:O,nestingOptionsSeparator:N,maxReplaces:M,alwaysFormat:H}=t.interpolation;this.escape=n!==void 0?n:EW,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?vl(a):s||"{{",this.suffix=l?vl(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=h?vl(h):E||vl("$t("),this.nestingSuffix=b?vl(b):O||vl(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=M||1e3,this.alwaysFormat=H!==void 0?H:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(E=>{if(E.indexOf(this.formatSeparator)<0){let M=GF(n,u,E,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(M,void 0,i,{...r,...n,interpolationkey:E}):M}let b=E.split(this.formatSeparator),O=b.shift().trim(),N=b.join(this.formatSeparator).trim();return this.format(GF(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),N,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(E=>rb(E),"safeValue")},{regex:this.regexp,safeValue:o(E=>this.escapeValue?rb(this.escape(E)):rb(E),"safeValue")}].forEach(E=>{for(l=0;a=E.regex.exec(t);){let b=a[1].trim();if(s=p(b),s===void 0)if(typeof g=="function"){let N=g(t,a,r);s=Be(N)?N:""}else if(r&&Object.prototype.hasOwnProperty.call(r,b))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=kF(s));let O=E.safeValue(s);if(t=t.replace(a[0],O),m?(E.regex.lastIndex+=s.length,E.regex.lastIndex-=a[0].length):E.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),h=`{${m[1]}`;u=m[0],h=this.interpolate(h,s);let E=h.match(/'/g),b=h.match(/"/g);(E&&E.length%2===0&&!b||b.length%2!==0)&&(h=h.replace(/'/g,'"'));try{s=JSON.parse(h),p&&(s={...p,...s})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,O),`${u}${g}${h}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let g=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=g.shift(),u=g,p=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=kF(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),p&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(yb,"Interpolator");var lb=yb,NW=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...u]=s.split(":"),p=u.join(":").trim().replace(/^'+|'+$/g,""),g=l.trim();n[g]||(n[g]=p),p==="false"&&(n[g]=!1),p==="true"&&(n[g]=!0),isNaN(p)||(n[g]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),bl=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(_g(i),r),t[s]=l),l(n)}},"createCachedFormatter"),Tb=class Tb{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Fo.create("formatter"),this.options=t,this.formats={number:bl((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:bl((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:bl((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:bl((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:bl((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=bl(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=NW(u);if(this.formats[p]){let m=l;try{let h=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},E=h.locale||h.lng||r.locale||r.lng||i;m=this.formats[p](l,E,{...g,...r,...h})}catch(h){this.logger.warn(h)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(Tb,"Formatter");var fb=Tb,FW=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),vb=class vb extends El{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Fo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let h=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?s[h]===void 0&&(s[h]=!0):(this.state[h]=1,g=!1,s[h]===void 0&&(s[h]=!0),a[h]===void 0&&(a[h]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{TW(u.loaded,[a],s),FW(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let u={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,n,i,r,u):g=p(t,n,i,r),g&&typeof g.then=="function"?g.then(m=>l(null,m)).catch(l):l(null,g)}catch(g){l(g)}else p(t,n,i,r,l,u)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(vb,"Connector");var ub=vb,WF=o(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),KF=o(e=>(Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),Fg=o(()=>{},"noop"),DW=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),hu=class hu extends El{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=KF(t),this.services={},this.logger=Fo,this.modules={external:[]},DW(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Be(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=WF();this.options={...r,...this.options,...KF(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=o(g=>g?typeof g=="function"?new g:g:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Fo.init(a(this.modules.logger),this.options):Fo.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=fb);let m=new Mg(this.options);this.store=new Vg(this.options.resources,this.options);let h=this.services;h.logger=Fo,h.resourceStore=this.store,h.languageUtils=m,h.pluralResolver=new cb(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(h.formatter=a(g),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new lb(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new ub(a(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(E){for(var b=arguments.length,O=new Array(b>1?b-1:0),N=1;N<b;N++)O[N-1]=arguments[N];t.emit(E,...O)}),this.modules.languageDetector&&(h.languageDetector=a(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=a(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new wg(this.services,this.options),this.translator.on("*",function(E){for(var b=arguments.length,O=new Array(b>1?b-1:0),N=1;N<b;N++)O[N-1]=arguments[N];t.emit(E,...O)}),this.modules.external.forEach(E=>{E.init&&E.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Fg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});let u=du(),p=o(()=>{let g=o((m,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(h),i(m,h)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fg,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=du();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=Fg),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&QF.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=du();this.emit("languageChanging",t);let a=o(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=o((u,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(u,function(){return i.t(...arguments)})},"done"),l=o(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=Be(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{s(g,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let u;if(typeof l!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),m=2;m<p;m++)g[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([s,l].concat(g))}else u={...l};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||a.keyPrefix);let h=r.options.keySeparator||".",E;return u.keyPrefix&&Array.isArray(s)?E=s.map(b=>`${u.keyPrefix}${h}${b}`):E=u.keyPrefix?`${u.keyPrefix}${h}${s}`:s,r.t(E,u)},"fixedT");return Be(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=du();return this.options.ns?(Be(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=du();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new Mg(WF());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 hu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new hu(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new Vg(this.store.data,r),a.services.resourceStore=a.store),a.translator=new wg(a.services,r),a.translator.on("*",function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];a.emit(l,...p)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(hu,"I18n");var kg=hu,Q=kg.createInstance();Q.createInstance=kg.createInstance;var UZ=Q.createInstance,jZ=Q.dir,$Z=Q.init,BZ=Q.loadResources,HZ=Q.reloadResources,GZ=Q.use,WZ=Q.changeLanguage,KZ=Q.getFixedT,XZ=Q.t,QZ=Q.exists,qZ=Q.setDefaultNamespace,YZ=Q.hasLoadedNamespace,zZ=Q.loadNamespaces,JZ=Q.loadLanguages;var cD=te(bb()),lD=te(E0()),am=te(sD()),Tt=require("@sap-ux/vocabularies-types/vocabularies/UI"),Eu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var rm=te(ce());var ae=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${rm.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${rm.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${rm.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var j="#/definitions/",pK=[W.v4.FE_TEMPLATE_V4_LIST_REPORT,W.v4.FE_TEMPLATE_V4_ALP,W.v4.FE_TEMPLATE_V4_OBJECT_PAGE,W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],dK=["sap.fe.core","sap.fe.templates"],Il=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),hr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function jr(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,am.parse)(r.fileContent,r.dataSourceUri))}catch(a){return ae(t,{severity:W.LogSeverity.Error,message:Q.t("ANNOERR"),location:{path:Q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,am.merge)(...n);i=(0,lD.convert)(r)}return i}o(jr,"parseAndMergeAndConvert");var Cl=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function jb(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(jb,"evaluateCommonLabel");function sm(e,t){let n=e.value;return e.$target&&(n=jb(e.$target.annotations,t,n)),n}o(sm,"getLabelForPropertyPath");function Su(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=jb(i.annotations,t,n)),n}o(Su,"getLabelForDataField");function ha(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return jb(a.annotations,t,s)}}}else return}o(ha,"getLabel");function cm(e,t){var r;let n=e,i=typeof n.Action=="string"?n.Action:(r=n.Action)==null?void 0:r.path;return t&&typeof t=="string"?t:i}o(cm,"getDescriptionForActionBasedDataFields");function $b(e,t,n){let i=Su(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o($b,"getTitleForDataField");function ct(e){return e.replace("#","::").replace(/\//g,":2f")}o(ct,"prepareRef");function ma(e){if(e){let t=`${W.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(ma,"getPageTypeV2");function Bb(e){let t="name"in e&&typeof e.name=="string"?om(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return W.PageTypeV4.CustomPage}o(Bb,"getPageTypeV4");function gK(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(gK,"getTargetAnnotationName");function ii(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(ii,"findAlias");function mK(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(mK,"getAnnotationFromMetaPath");function hK(e,t,n){var s,l;let i=e[e.length-1],r=mK(i),a=ii(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(hK,"determineTargetAnnotation");function yK(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Tt.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${W.UIVOCABULARY}`);return e}o(yK,"adjustKey");function TK(e,t,n,i,r=W.FioriElementsVersion.v2,a=!1){var m,h;let s=!1,l,u=i.split("/"),p=u.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=yK(t,u,a);let g=hK(u,n,e);if(g){let E=r===W.FioriElementsVersion.v2?"::":"#";t=gK(g,a).replace("#",E),l=(h=g.fullyQualifiedName)==null?void 0:h.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let E=r===W.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(E)}${E}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(TK,"getKeyAndEntityTypeOfReferenceFacet");function fD(e,t,n,i,r=W.FioriElementsVersion.v2,a=!1){var g,m,h;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((g=e.fullyQualifiedName)==null?void 0:g.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(h=e.fullyQualifiedName)==null?void 0:h.split("@")[0],p=t;if(e.$Type!==Tt.UIAnnotationTypes.CollectionFacet&&"Target"in e){let E=Cl(e.Target);if(!E){ae(i,{severity:W.LogSeverity.Error,message:Q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:O,stopProcessing:N,namespace:M}=TK(n,l,p,E,r,a);if(N)return;l=b,p=O,u=M}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}o(fD,"getSectionFacet");function vK(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(vK,"getDecodedPathElement");var Hb=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),uD=o((e,t,n,i,r,a=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let u=0;u<l.length;u++){let p=l[u];if(p==="[]")continue;let g=vK(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=Hb(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Vo=o((e,t,n,i,r=!1)=>uD(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),pD=o((e,t,n,i,r)=>{uD(e,t,i,r,n)},"setManifestSectionByPathV4");function Gb(e){let t,n,i;switch(e.$Type){case Tt.UIAnnotationTypes.DataField:t=Cl(e.Value);break;case Tt.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Cl(e.Value);break;case Tt.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${W.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Tt.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ct(e.Action)}`);break;case Tt.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Cl(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Tt.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ct(e.Action)}`);break;case Tt.UIAnnotationTypes.DataFieldWithNavigationPath:i=Cl(e.Value),n=Cl(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(Gb,"getSchemaKeyOfLineItemRecord");function bK(e,t,n){return e.includes(Tt.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Tt.UIAnnotationTerms.Chart:e.includes(Tt.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Tt.UIAnnotationTerms.Identification:n&&e.includes(Tt.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Tt.UIAnnotationTerms.LineItem:e.includes(Tt.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Tt.UIAnnotationTerms.FieldGroup:e.includes(Tt.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Tt.UIAnnotationTerms.DataPoint:e.includes(Tt.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Tt.UIAnnotationTerms.PresentationVariant:void 0}o(bK,"getUIAnnotationTerm");function EK(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Eu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Eu.CommunicationAnnotationTerms.Address:void 0}o(EK,"getCommunicationAnnotationTerm");function SK(e,t,n){return bK(e,t,n)||EK(e,t)}o(SK,"getAnnotationTerm");function AK(e,t,n,i,r){var p,g,m,h,E,b,O,N,M;let a=ii(W.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(SK(s,a,i)){case Tt.UIAnnotationTerms.Chart:{n[s]={base:W.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 Tt.UIAnnotationTerms.Identification:{n[s]={base:W.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.LineItem:{if(!s.includes(Tt.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let H=s.split("::");H[H.length-1]=`@${Tt.UIAnnotationTerms.LineItem}`,s=H.join("::")}n[s]={base:W.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.FieldGroup:{n[s]={base:W.FacetBase.Form},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}case Tt.UIAnnotationTerms.DataPoint:{n[s]={base:W.FacetBase.DataPoint},n[s].Label=(E=t==null?void 0:t.Target)==null?void 0:E.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.PresentationVariant:{n[s]={base:W.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Eu.CommunicationAnnotationTerms.Contact:{n[s]={base:W.FacetBase.Contact},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 Eu.CommunicationAnnotationTerms.Address:{n[s]={base:W.FacetBase.Address},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}default:n[s]={base:W.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",W.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(AK,"evaluateTargetAnnotation");function Wb(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(Wb,"getAnnotationPathUsingFullyQualifiedName");function Kb(e,t,n,i,r,a=W.FioriElementsVersion.v2,s){var u;let l=fD(e,i,t,s,a,!1);if(l)switch(e.$Type){case Tt.UIAnnotationTypes.ReferenceFacet:{AK(l,e,r,i,t);break}case Tt.UIAnnotationTypes.CollectionFacet:{let p=Wb(i,e.fullyQualifiedName),g=r[l.key]={base:W.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===W.FioriElementsVersion.v4&&ae(s,{severity:W.LogSeverity.Error,message:Q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{Kb(m,t,n,i,g.facets,a,s)});break}}}o(Kb,"addFacetToConfig");function lm(e,t,n=W.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ii(W.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{Kb(m,t,g,e,r,n,i)})}return r}o(lm,"getObjectPageHeaderFacets");function fm(e,t,n=W.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ii(W.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{Kb(g,t,p,e,r,n,i)})}return r}o(fm,"getObjectPageFacets");function Xb(e){var t,n,i,r;if(e[W.ManifestSection.generic]&&Object.keys(e[W.ManifestSection.generic]).length>0||e[W.ManifestSection.ovp]&&Object.keys(e[W.ManifestSection.ovp]).length>0)return W.FioriElementsVersion.v2;{let a=(n=(t=e[W.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[W.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>{let u=typeof a[l].name=="string"?a[l].name:"";return pK.indexOf(u)>-1||om(u)})||s&&Object.keys(s).find(l=>dK.indexOf(l)>-1)?W.FioriElementsVersion.v4:void 0}}o(Xb,"getFEVersionFromManifest");function PK(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[W.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[W.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[W.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[W.ManifestSection.ui5].models[t].dataSource:void 0}o(PK,"getMainService");function dD(e){var i,r;let t=PK(e);if(!t)return W.OdataVersion.v2;let n=(i=e[W.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?W.OdataVersion.v4:W.OdataVersion.v2}o(dD,"getODataVersionFromManifest");function xK(e,t){var i,r;let n;if(e[W.ManifestSection.generic]){let a=e[W.ManifestSection.generic].pages;if(!a){ae(t,{severity:W.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(ma((i=l.component)==null?void 0:i.name)===W.PageTypeV2.AnalyticalListPage){n=W.TemplateType.AnalyticalListPageV2;break}else if(ma((r=l.component)==null?void 0:r.name)===W.PageTypeV2.ListReport){n=W.TemplateType.ListReportObjectPageV2;break}}}else n||ae(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.generic}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return n}o(xK,"determineV2Template");function Au(e){var i,r,a,s;let t,n=Bb(e);if(n===W.PageTypeV4.AnalyticalListPage)t=W.TemplateType.AnalyticalListPageV4;else if(n===W.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[W.ALPViewType.Primary]||l[W.ALPViewType.Secondary])?t=W.TemplateType.AnalyticalListPageV4:t=W.TemplateType.ListReportObjectPageV4}else n===W.PageTypeV4.ObjectPage?t=W.TemplateType.ListReportObjectPageV4:[W.PageTypeV4.CustomPage,W.PageTypeV4.FPMCustomPage].includes(n)&&(t=W.TemplateType.FreestylePageV4);return t}o(Au,"determineV4PageTemplateType");function CK(e){let t;for(let n in e){let i=e[n];if(t=Au(i),t)break}return t}o(CK,"determineV4TemplateFromPages");function IK(e,t){let n=e[W.ManifestSection.ui5].routing&&e[W.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return ae(t,{severity:W.LogSeverity.Info,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing"]}}),W.TemplateType.ListReportObjectPageV4;let i=CK(n);return i||ae(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.ui5}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing","targets"]}}),i}o(IK,"determineV4Template");function uc(e,t,n){let i;return e[W.ManifestSection.ovp]?i=W.TemplateType.OverviewPageV2:t===W.FioriElementsVersion.v2?i=xK(e,n):t===W.FioriElementsVersion.v4&&(i=IK(e,n)),i}o(uc,"getTemplateTypeFromManifest");function ya(e,t,n){e!=null&&e.ID?(t.title=W.FACETTITLEPREFIX+e.ID,t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:n.replace(W.UIVOCABULARYALPHADOT,"")}])}o(ya,"addSectionTitle");function ts(e,t,n){e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(ts,"addSectionDescription");function Ol(e,t,n){var i,r;ya(e,t,n),ts(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(Ol,"addTargetTitleAndSectionDescription");function gD(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(gD,"addChartFacetID");function wo(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[W.SchemaTag.isViewNode]=!0,i[W.SchemaTag.annotationPath]=t.annotationPath,Ol(t,i,n),i}o(wo,"createDefaultSection");function mD(e,t,n,i=W.FioriElementsVersion.v2,r=!1){var l,u;let a=ii(W.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let h=fD(m,e,t,n,i,!0);return h&&g.push(h),g},s)),s}}o(mD,"getObjectPageFacetSection");var ns=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(u){let p=a&&a===u?r:u.replace(/\?\?/g,"/");if(!(!s[p]&&(a===u&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),ns(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),Ub=o(e=>e===W.SchemaType.FreestylePage?W.PageTypeV2.CustomPage:e===W.SchemaType.FPMCustomPage?W.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Dt=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case W.SchemaType.Application:{i.filename="App",i.path=`./${W.DirName.Schemas}/${i.filename}`;break}case W.SchemaType.ListReport:case W.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:Ub(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}case W.PageTypeV4.FPMCustomPage:case W.SchemaType.FPMCustomPage:{i.filename=n?`${W.SchemaType.FPMCustomPage}_${n}`:Ub(W.SchemaType.FPMCustomPage),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}default:{i.filename=Ub(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function um(e,t,n,i){if(e===W.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(um,"generatePageId");function Qb(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split(j)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u]!==void 0)&&a.push(s)}return a}o(Qb,"findMatchingKeysByAdditionalProperties");function OK(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split(j)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=Qb(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(OK,"fillArrayFromAnyOfReference");function RK(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(j)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{OK(r,n,t,i)}),i.length===0))return;return i}o(RK,"fillArrayFromPropertyDefinition");function LK(e){return e.replace(W.UIVOCABULARYDOT,"")}o(LK,"extractUIAnnotationType");function NK(e,t,n,i,r,a,s,l){var p,g,m,h,E;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(u.targetDefinition=t.definitions[b],((p=u==null?void 0:u.targetDefinition)==null?void 0:p.dataType)!==LK(Tt.UIAnnotationTypes.DataFieldForActionGroup)&&((g=u==null?void 0:u.targetDefinition)!=null&&g.$ref)||((m=u==null?void 0:u.targetDefinition)==null?void 0:m.type)==="array")return u=Mo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(M=>{M!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[M].properties})}),u.title=(h=u==null?void 0:u.targetDefinition)!=null&&h.title?u.targetDefinition.title:n;let O=b==null?void 0:b.split("<")[0],N=i||{};u.configObject=a.createInstance(s,O,N,(E=u==null?void 0:u.targetDefinition)==null?void 0:E.controlProperty)}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(NK,"determineNextDefinitionFromDefinitionArray");function Mo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Mo(e,t,n,i.items,r,a,s),l;let u=RK(i,n,e);if(u)return l=NK(u,e,t,n,r,a,s,i),l}o(Mo,"getNextTargetDefinition");var qb=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,cD.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function pm(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(pm,"convertEnumToCSV");function qi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(qi,"convertActionKeyToStableId");function rn(e){return e==null?void 0:e.split(j)[1]}o(rn,"getDefinitionKey");function dm(e){return`#/definitions/${e}`}o(dm,"getDefinitionsRef");function gm(e){return e instanceof Error?e.message:String(e)}o(gm,"getErrorMessage");function pc(e,t){return e==null?void 0:e.includes(t)}o(pc,"isFeatureSupported");function ko(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(ko,"updatePropertyIndices");function mm(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(mm,"getJSONPropertyByPath");function hD(e){return e=e.replace(W.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(hD,"removeNamespaces");function Rl(e){return e=e.replace(W.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(Rl,"replaceNamespaces");function Ta(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith(j))return t.substring(j.length)}o(Ta,"getRefType");function om(e){if(e===W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return W.PageTypeV4.FPMCustomPage;if(e!=null&&e.startsWith(`${W.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in W.PageTypeV4)return W.PageTypeV4[n]}}o(om,"convertTemplateNameToPageTypeV4");function hm(e,t){if(e===t)return!0;let n=om(e);return n?n===om(t):!1}o(hm,"compareTemplateNames");var Oo=require("@sap-ux/vocabularies-types/vocabularies/UI"),se=te(ce());var Yi=te(ce());var zt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),ym=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),qn=o((e,t)=>{let n,i=Yi.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 FK(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(FK,"escapeId");var yD=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(yD||{}),TD=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(TD||{});function DK(e,t,n){let i;return e=e.map(function(r){if(r===Yi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Yi.PropertyName.sections)return i=t[a+1],t[a+1]=qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(DK,"mapBreadcrumbs");var Yb=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=DK(t,s,r)),s[0]===Yi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Yi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Yi.VOCWITHSLASH):t[0]===Yi.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,Yi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Yi.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,g=u.indexOf(":::");return u.startsWith("DataField")&&g>-1?(u=u.replace("/",":2f"),p=`${e}template:::TableColumn:::${u.substring(0,g)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${u.substring(g+3)}`):(u=u.replace("/","_"),p=`${e}${t.join("::")}-${u}`),FK(p)},"buildColumnControlId"),zi=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function _K(e){let t=Yi.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(_K,"determinePattern");var zb=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split(j)[1]]:a,u=a.description?a.description:l.description,p=_K(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(g=>{s.enum.indexOf(g)===-1&&s.enum.push(g)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete a.description)},"addPatternForBindingChangeOfEnum"),Yn=o((e,t,n)=>{zb(e,t,n)},"addPatternForBindingChangeOfEnumLR"),gt=o((e,t,n)=>{let i=Object.values(yD);zb(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ri=o((e,t,n)=>{let i=Object.values(TD);zb(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function dc(){}o(dc,"doNotDelete");var Xee=te(bD());var Jb=Symbol("specificationMetadataKey"),v=o(e=>Reflect.metadata(Jb,e),"syncRule");function Dn(e,t){let n;return e&&(n=Reflect.getMetadata(Jb,e,t)),n}o(Dn,"getReflectMetadata");function ED(e){let t;return e&&(t=Reflect.getMetadata(Jb,e)),t}o(ED,"getReflectTypeMetadata");var Ji=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),SD=Symbol("childId"),jt=o(e=>Reflect.metadata(SD,e),"childId"),Tm=o((e,t)=>Reflect.getMetadata(SD,e,t),"getChildId"),vm=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),VK=Symbol("descriptionSrcURL"),Re=o(e=>Reflect.metadata(VK,e),"descriptionSrcURL");var wK=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(wK,e),"validity");function Ll(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Ll,"getTextForDeprecated");var LD=te(OD()),ND=te(ce());var FD=LD.default.change,RD={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function DD(e,t){let n="";try{for(let i in RD)e[i]===void 0&&(e[i]=RD[i]);n=FD.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(DD,"createChangeString");function yr(e){try{return FD.parse(e)}catch{return!1}}o(yr,"parseChangeString");function _D(e,t,n,i,r){let a=n.layer?n.layer===ND.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(_D,"fillFlexChangeContent");function bm(e,t){return DD(e,t)}o(bm,"exportToFlexChange");var gc=te(ce());function Nl(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,a);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}o(Nl,"importProperty");function Em(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(ae(i,{severity:gc.LogSeverity.Warning,message:Ll(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Em,"checkDeprecatedProperties");function Zb(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(j)[1]];return Zb(n,t)}else return e.title?e.title.startsWith(gc.FACETTITLEPREFIX)?e.title.split(gc.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(Zb,"getSectionTitle");function Sm(e){let t=e.split(`${gc.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Sm,"getTargetFromCustomColumnRef");function $r(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o($r,"removeEmptyStructure");var _t=require("@sap-ux/vocabularies-types/vocabularies/UI");var jo=require("@sap-ux/vocabularies-types/vocabularies/UI");var ba=require("@sap-ux/vocabularies-types/vocabularies/UI");var VD=te(ce()),ee=te(ce()),wD=require("path");function Ot(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=Dn(e,g);if(m!=null&&m.manifest){let h=m.manifest.path([i],t,p,...r);l=Vo(t,h,a,p,!0),l&&Object.keys(l).length>0&&(Nl(m,l,g,e,a,r),Em(u,l,h,s))}}}o(Ot,"importSettingsOfObject");var iE="DataFieldForActionGroup";function HK(){return([e,t],[n,i])=>t[ee.SchemaTag.propertyIndex]-i[ee.SchemaTag.propertyIndex]}o(HK,"sortByPropertyIndex");function Pu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(HK())}o(Pu,"sortPropertiesRecords");function GK(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}o(GK,"getExtensionText");function eE(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||ee.v4.Placement.After)===ee.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(eE,"addExtensionToSortedArray");function WK(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var u,p,g;return((u=l.position)==null?void 0:u.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((g=n.position)==null?void 0:g.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}o(WK,"addRemainingTargetByBefore");function MD(e,t,n,i){let r=t.includes(ee.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=GK(e);return{$ref:`${j}${r}`,description:a,keys:[{name:ee.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(MD,"getExtensionDetails");function tE(e,t,n,i,r=!1){var l,u;let a=Object.entries(e).length;for(let p of Object.keys(e)){let g=e[p],m=MD(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let h=n.findIndex(E=>E[0]===g.position.anchor);h>-1?(eE(g,n,h,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(ae(i,{severity:Li.LogSeverity.Error,message:Q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&WK(e,p,g,n,m)}else r&&(eE(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?tE(e,t,n,i):s>0&&tE(e,t,n,i,!0)}o(tE,"adjustCustomExtReferringToCustomExt");function KK(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||ee.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===ee.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(KK,"getExtensionAnchor");function XK(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o(XK,"getLocalExtensionsToSkip");function QK(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ee.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let h=t[m[0]];if(g(h))break;p++}return p},"findNextIndex"),s=0;return i===ee.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==ee.v4.Placement.Before))}),s>-1?s:0}o(QK,"getExtensionIndexByMergedApproach");function qK(e,t,n,i,r=!1){return r?QK(e,t,n):n.findIndex(a=>a[0]===i)}o(qK,"getExtensionIndex");function YK(e,t,n,i,r){ae(e,{severity:Li.LogSeverity.Error,message:Q.t("INVALIDEXTENSION",{id:t}),location:{path:ee.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(YK,"handleInvalidExtension");function va(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=XK(l,s);if(!l)return[];for(let p of Object.keys(l)){let g=l[p];if(u!=null&&u.includes(p))continue;let m=MD(g,n,p,ee.ActionType.Custom);if(typeof g!="object"){YK(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let h=KK(g,s);if(h){let E=qK(g,e,t,h,a);E>-1&&(eE(g,t,E,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&tE(l,n,t,r),t}o(va,"addExtensionToArray");function rE(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(rE,"addEnumForProperties");function zK(e,t,n,i=ee.DefinitionName.CustomColumn){if(i===ee.DefinitionName.CustomColumn||i.indexOf(ee.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];rE(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[ee.SchemaTag.propertyIndex]=r}}o(zK,"addColumnPropertyIndexAndEnum");function mc(e,t,n,i=ee.DefinitionName.CustomColumn,r,a){var h,E,b,O;let s=r||ee.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Pu(l),p=a?a.replace(/::/g,"/"):`@${ba.UIAnnotationTerms.LineItem}`,g=(O=(b=(E=(h=t.options)==null?void 0:h.settings)==null?void 0:E.controlConfiguration)==null?void 0:b[p])==null?void 0:O.columns;g&&(u=va(g,u,i,void 0,n)),zK(u,e,l,i);let m={};u.forEach(([N,M])=>m[N]=M),e.definitions[s].properties=m}o(mc,"addCustomColumnDefinition");function kD(e,t){let n=t.$Type===ba.UIAnnotationTypes.DataFieldForActionGroup,i;return e.lineItemId.startsWith(ee.DefinitionName.LineItemsOfView)?i=n?ee.DefinitionName.ViewToolBarActionGroup:ee.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(ee.DefinitionName.LineItems)?i=n?ee.DefinitionName.ToolBarActionGroup:ee.DefinitionName.ToolBarAction:i=n?ee.DefinitionName.ObjectPageToolBarActionGroup:ee.DefinitionName.ObjectPageToolBarAction,i}o(kD,"determineActionDefinitionName");function JK(e,t,n){e[ee.SchemaTag.keys]=[],t[ee.SchemaKeyName.semanticObject]&&e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.semanticObject,value:t[ee.SchemaKeyName.semanticObject]});let{key:i,ns:r}=bc(n,!0);e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.action,value:i}),r&&(e[ee.SchemaTag.target]=r)}o(JK,"addTargetAndKeysOfAction");function UD(e,t=!0){let{lineItemData:n,actions:i,lineItemPath:r,lineItemRecord:a,index:s}=e;if(a.Determining===!0)return;let l=kD(n,a),u=ai(a,n.entityType),p=a.$Type.split(`${ee.UIVOCABULARY}.`)[1],g=typeof a.Action=="string"?a.Action:a.Action.path,m=xm(g),h=i.properties[`${p}::${m}`]={description:u};if(t?h.$ref=GD(l,ct(m),n.appSchema,r):(h.properties={},h.type="object",h.isViewNode=!0),h[ee.SchemaTag.propertyIndex]=s,h[ee.SchemaTag.dataType]=Hr(a),JK(h,a,g),h[ee.SchemaTag.annotationType]=a.$Type,t){let E=h.$ref.replace(j,""),b=vt(l,E,n.appSchema,!1);b[ee.SchemaTag.annotationPath]=`${r}/${s}`}else h[ee.SchemaTag.annotationPath]=`${r}/${s}`}o(UD,"addActionRecordToSchema");function jD(e,t=!0){let{lineItemData:n,lineItemRecord:i,lineItemPath:r,index:a,actions:s}=e,l=kD(n,i),u=Br(i),p={};t?(s.properties[`${u}`]={$ref:oi(l,ct(u))},p=vt(l,ct(u),n.appSchema)):s.properties[`${u}`]=p,Aa(p,Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),p.properties={},p.description=ai(i,n.entityType),p.type="object",p.isViewNode=!0,p[ee.SchemaTag.propertyIndex]=a,p[ee.SchemaTag.dataType]=Hr(i),p[ee.SchemaTag.annotationPath]=`${r}/${a}`,(i.Actions??[]).forEach((g,m)=>{let h={...e,lineItemRecord:g,lineItemPath:`${p[ee.SchemaTag.annotationPath]}/Actions`,actions:p,index:m};UD(h,t)})}o(jD,"addGroupActionRecordToSchema");function oE(e){let{lineItemRecord:t,lineItemDefinition:n}=e;t.Inline!==!0||t.Determining===!0?UD(e,!n):aE(e)}o(oE,"addLineItemActionDefinition");function aE(e){var g;let{lineItemData:t,lineItemRecord:n,lineItemDefinition:i,lineItemPath:r,index:a,columnDefinitionName:s}=e,l=n.$Type===ba.UIAnnotationTypes.DataFieldForAction?`${s}Action`:s,u=t.lineItemId;if((g=n.Target)!=null&&g.value){let m=`@${ii(ee.UIVOCABULARY,t.oDataServiceAVT)}.`;n.Target.value=n.Target.value.replace(m,"@")}let p=Br(n).replace(/\//g,"::");if(p){let m=i;m||(m=t.appSchema.definitions[u]);let h=m.properties,E={description:ai(n,t.entityType)};i?(E.properties={},E.type="object",E.isViewNode=!0):E.$ref=j+l,E[ee.SchemaTag.annotationType]=n==null?void 0:n.$Type,E[ee.SchemaTag.annotationPath]=`${r}/${a}`,E[ee.SchemaTag.propertyIndex]=a,E[ee.SchemaTag.dataType]=Hr(n),h[p]=E,Om(n,h,p)}}o(aE,"addLineItemRecordToSchema");function sE(e,t,n,i,r=ee.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{let l={lineItemData:e,actions:t,lineItemPath:n,lineItemRecord:s,index:a,lineItemDefinition:i,columnDefinitionName:r};is.getStrategy(s.$Type).addLineItemDefinition(l),a++})}o(sE,"appendLineItemsToSchema");function hc(e,t=ee.DefinitionName.TableColumn,n=ee.DefinitionName.CustomColumn,i=ee.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=Cm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);sE(e,r,a,void 0,t)}o(hc,"addLineItemsTypeToSchema");function yc(e,t,n,i=ee.DefinitionName.Position,r){var p,g,m,h,E;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==ee.DefinitionName.LineItems?r:`@${ba.UIAnnotationTerms.LineItem}`,u=(E=(h=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:h[l])==null?void 0:E.columns;if(u)for(let b in u)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;Sa(s,b)}}o(yc,"addFragmentEnumForAnchor");function lo(e,t,n=ee.DefinitionName.CustomActionPosition){rs(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(lo,"addEnumForActionAnchor");function Am(e,t,n,i){var a;let r;for(let s in e){let l=((a=e[s].options)==null?void 0:a.settings)||{};if((i&&l.contextPath===i||(n==null?void 0:n.name)&&l.entitySet===n.name)&&(hm(t,e[s].name)||t===ee.v4.FE_TEMPLATE_V4_ALP&&e[s].name===ee.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(Am,"findPageV4");function $D(e,t){let n,i=e.properties[ee.PropertyName.table];return t.templateType===ee.TemplateType.AnalyticalListPageV4?(n=ee.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${j}${ee.DefinitionName.ALPTableView}`,delete e.definitions[ee.DefinitionName.Table],delete e.definitions[ee.DefinitionName.LRChartView],delete e.definitions[ee.DefinitionName.LRTableView],delete e.definitions[ee.DefinitionName.MultiTableModeV4]):t.templateType===ee.TemplateType.ListReportObjectPageV4&&(n=ee.DefinitionName.Table,delete i.anyOf,i.$ref=`${j}${ee.DefinitionName.Table}`,e.definitions[n].properties[ee.PropertyName.annotationPath][ee.SchemaTag.hidden]=!0,delete e.definitions[ee.DefinitionName.ALPTableView],e.properties[ee.PropertyName.defaultPath][ee.SchemaTag.hidden]=!0),n}o($D,"alignSchemaWithTemplateType");function Ea(e,t,n,i=ee.DefinitionName.CustomTableAction,r="",a=""){var g,m,h,E,b,O,N,M,H,$;let s=e.definitions[r];if(!s)return;let l=Pu(s),u;a?i.indexOf(ee.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===ee.DefinitionName.CustomFormActionOP?u=`@${ba.UIAnnotationTerms.FieldGroup}`:u=`@${ba.UIAnnotationTerms.LineItem}`;let p;if(r.includes(ee.DefinitionName.ObjectPageCustomSectionActions)?p=(O=(b=(E=(h=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:h.body)==null?void 0:E.sections)==null?void 0:b[u])==null?void 0:O.actions:p=($=(H=(M=(N=t.options)==null?void 0:N.settings)==null?void 0:M.controlConfiguration)==null?void 0:H[u])==null?void 0:$.actions,p&&(l=va(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][ee.SchemaTag.propertyIndex]=Z;let re={};l.forEach(([Z,oe])=>re[Z]=oe),e.definitions[r].properties=re}}o(Ea,"addCustomActionDefinition");function Pm(e,t,n,i=ee.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,h,E,b,O,N;let a=e.definitions[r];if(!a)return;let s=Pu(a),l;[ee.DefinitionName.CustomHeaderAction,ee.DefinitionName.CustomHeaderActionOP].includes(i)?l=(h=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:h.actions:l=(N=(O=(b=(E=t.options)==null?void 0:E.settings)==null?void 0:b.content)==null?void 0:O.footer)==null?void 0:N.actions,l&&(s=va(l,s,i,"press",n));let u={};if(s){for(let M=0;M<s.length;M++)s[M][1][ee.SchemaTag.propertyIndex]=M;s.forEach(([M,H])=>u[M]=H)}e.definitions[r].properties=u}o(Pm,"addHeaderFooterCustomActionDefinition");function Tc(e,t,n){let i=mm(e,[ee.ManifestSection.ui5,"routing","targets"]);if(!i){ae(n,{severity:Li.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}let r=mm(i,[t]);if(!r){ae(n,{severity:Li.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:t}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}return r}o(Tc,"getManifestPage");function vc(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,wD.join)(...p,g),h=e.find(E=>E.dataSourceUri.endsWith(m));if(h){let E=(s=t.options)==null?void 0:s.settings;return{file:h,relativeFilePath:m,connection:{contextPath:E==null?void 0:E.contextPath,entitySet:E==null?void 0:E.entitySet}}}}}o(vc,"getPageCustomExtensionFile");function Uo(e,t,n,i){let r=Tc(n,t,i),a=mm(r,["options","settings","viewName"]);return r&&typeof a=="string"?vc(e,r,n,"view",a):void 0}o(Uo,"getPageCustomViewFile");function BD(e,t,n,i,r,a,s){var g,m,h,E,b,O,N,M,H,$,re,Z;let l=Pu(t),u=new Map;if(l=l.map(oe=>{let Ae=Im(e,oe[1],oe[0],{keyProperties:[ee.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Ae.const,oe[0]),[Ae.const,oe[1]]}),a){let oe=(b=(E=(h=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:h.body)==null?void 0:E.sections)==null?void 0:b[a];oe&&"subSections"in oe&&(l=va(oe.subSections,l,i,"template",s,r))}else if(i.includes(ee.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let oe=(M=(N=(O=n.options)==null?void 0:O.settings)==null?void 0:N.content)==null?void 0:M.header;oe&&"facets"in oe&&(l=va(oe.facets,l,i,"template",s,r))}else{let oe=(Z=(re=($=(H=n.options)==null?void 0:H.settings)==null?void 0:$.content)==null?void 0:re.body)==null?void 0:Z.sections;oe&&(l=va(oe,l,i,"template",s,r))}for(let oe=0;oe<l.length;oe++)l[oe][1][ee.SchemaTag.propertyIndex]=oe;let p={};l.forEach(([oe,Ae])=>{oe=u.get(oe)||oe,p[oe]=Ae}),t.properties=p}o(BD,"addCustomSectionDefinition");function HD(e,t,n){var l,u,p;let i=Pu(t),r=new Map;i=i.map(g=>{let m=Im(e,g[1],g[0],{keyProperties:[ee.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${ba.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=va(a.filterFields,i,ee.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][ee.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(HD,"addCustomFilterFieldDefinition");function nE(e,t,n=!1){let{appSchema:i,factory:r,actionsInConfig:a,actionKey:s,manifest:l,routingId:u,manifestSectionId:p,targetAnnotation:g}=e,m=(t??"").split("<")[0],h=r.createInstance(VD.PageTypeV4.ObjectPage,m),E=[s.replace("/","??")];if(g&&E.push(g),h){let b=a[s]=h;Ot(b,l,i.definitions[t],u,E,p),n||$r(a,s)}}o(nE,"importActionToConfigurationObject");function ZK(e,t){let{actionPropertyDefinition:n}=e,i=rn(t.$ref||n.$ref);nE(e,i)}o(ZK,"importSingleActionSettingsOfReference");function eX(e,t){let{actionPropertyDefinition:n,appSchema:i,actionsInConfig:r,actionKey:a}=e,s=rn(t.$ref??n.$ref);nE(e,s,!0);let l=r[a];Aa(l,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let{properties:u}=t;for(let p in u){let g=u[p],m=rn(g.$ref),h=i.definitions[m],E=rn(h.$ref??g.$ref),b={...e,actionsInConfig:l,actionKey:p};nE(b,E)}$r(r,a)}o(eX,"importGroupActionSettingsOfReference");function Fl(e){let{actionPropertyDefinition:t,appSchema:n}=e,i=rn(t.$ref),r=n.definitions[i];r.dataType===iE?eX(e,r):ZK(e,r)}o(Fl,"importActionSettingsOfReference");var TE=class TE{addDefinition(t){WD(t)}addLineItemDefinition(t){aE(t)}};o(TE,"DataFieldStrategy");var fo=TE,vE=class vE extends fo{generateStableId(t){return Pa("DataFieldForAction::"+t.Action)}generateDescription(t,n){let i=ha(t.Label,n);return cm(t,i)}addDefinition(t){xu(t)}addLineItemDefinition(t){oE(t)}};o(vE,"DataFieldForActionStrategy");var cE=vE,bE=class bE extends fo{generateStableId(t){return Pa("DataFieldForActionGroup::"+t.ID)}generateDescription(t,n){let i=ha(t.Label,n);return t.Label??t.ID??i}addDefinition(t){xu(t)}addLineItemDefinition(t){var n;jD(t,!((n=t.lineItemData)!=null&&n.isMacro))}};o(bE,"DataFieldForActionGroupStrategy");var lE=bE,EE=class EE extends fo{generateStableId(t){return"DataFieldForIntentBasedNavigation::"+RE(t)}generateDescription(t,n){let i=ha(t.Label,n);return cm(t,i)}addDefinition(t){xu(t)}addLineItemDefinition(t){oE(t)}};o(EE,"DataFieldForIntentBasedNavigationStrategy");var fE=EE,SE=class SE extends fo{generateStableId(t){var i,r;let n=((i=t.Target)==null?void 0:i.$AnnotationPath)??((r=t.Target)==null?void 0:r.value)??"";return"DataFieldForAnnotation::"+Pa(n)}generateDescription(t,n){var a,s,l,u;let i=Su(t,n);return ha(t.Label,n)||i||((s=(a=t==null?void 0:t.Target)==null?void 0:a.$target)==null?void 0:s.Title)||((u=(l=t==null?void 0:t.Target)==null?void 0:l.value)==null?void 0:u.split("UI.v1.")[1])}};o(SE,"DataFieldForAnnotationStrategy");var uE=SE,AE=class AE extends fo{generateStableId(t){let n="DataFieldWithAction::";return"Value"in t&&t.Value&&(n+=os(t.Value)+"::"),n+=t.Action,Pa(n)}generateDescription(t,n){let i=ha(t.Label,n);return cm(t,i)}};o(AE,"DataFieldWithActionStrategy");var pE=AE,PE=class PE extends fo{generateStableId(t){return Pa("DataField::"+os(t.Value))}generateDescription(t,n){let i=ha(t.Label,n);return $b(t,n,i)}};o(PE,"DataFieldStrategyDefault");var dE=PE,xE=class xE extends fo{generateStableId(t){let n="DataFieldWithIntentBasedNavigation::";return n+=os(t.Value)+"::",n+=RE(t),Pa(n)}generateDescription(t,n){return Su(t,n)||t.Value.path}};o(xE,"DataFieldWithIntentBasedNavigationStrategy");var gE=xE,CE=class CE extends fo{generateStableId(t){let n="DataFieldWithNavigationPath::"+os(t.Value);return t.Target&&t.Target.$NavigationPropertyPath&&(n+="::"+t.Target.$NavigationPropertyPath),Pa(n)}generateDescription(t,n){let i=ha(t.Label,n);return $b(t,n,i)}};o(CE,"DataFieldWithNavigationPathStrategy");var mE=CE,IE=class IE extends fo{generateStableId(t){return Pa("DataFieldWithUrl::"+os(t.Value))}generateDescription(t,n){let i=Su(t,n);return ha(t.Label,n)||i||(typeof t.Value=="string"?t.Value:t.Value.path)}};o(IE,"DataFieldWithUrlStrategy");var hE=IE,OE=class OE{constructor(){this.strategies=new Map,this.registerStrategy(jo.UIAnnotationTypes.DataFieldForAction,new cE),this.registerStrategy(jo.UIAnnotationTypes.DataFieldForActionGroup,new lE),this.registerStrategy(jo.UIAnnotationTypes.DataFieldForIntentBasedNavigation,new fE),this.registerStrategy(jo.UIAnnotationTypes.DataFieldForAnnotation,new uE),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithAction,new pE),this.registerStrategy(jo.UIAnnotationTypes.DataField,new dE),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithIntentBasedNavigation,new gE),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithNavigationPath,new mE),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithUrl,new hE)}registerStrategy(t,n){this.strategies.set(t,n)}getStrategy(t){return this.strategies.get(t)}};o(OE,"DataFieldStrategyContext");var yE=OE,is=new yE;function xm(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(xm,"replaceSpecialChars");var Pa=o(function(e){return xm(hD(e))},"prepareId");function tX(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(tX,"evaluateConcat");function os(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 tX(e);if(e&&typeof e=="string")return xm(e.replace(/ /g,"_"))}o(os,"getStableIdPartFromValue");var RE=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),Br=o(function(e){let t=is.getStrategy(e.$Type);return t==null?void 0:t.generateStableId(e)},"getStableIdPartFromDataField");var fe=te(ce());var De=te(ce());var Zi=require("@sap-ux/vocabularies-types/vocabularies/UI"),qD=require("path"),YD=te(lc());var Rm="ResponsiveTableWithMultiSelect<LineItems>",Lm="ResponsiveTableWithInlineDelete<LineItems>",nX="TreeTable<LineItems>",iX="AnalyticalTable<LineItems>",rX="GridTable<LineItems>",LE=[Rm,Lm,nX,iX,rX],KD=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],XD="template::",Nm="template:::ObjectPageAction:::";function oX(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${j}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${j}${n}`},description:"Custom Columns"},e.definitions[t][De.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[De.SchemaTag.artifactType]=De.ArtifactType.Manifest)}o(oX,"addCustomColumnDefinition");function aX(e,t){let n;return e==="TableColumnActionIntentBased"?n=Gb(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=ct(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n=ct(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=ct(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(aX,"getActionId");function NE(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=aX(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=ai(n.lineItemRecord,n.entityType);t.properties[l]={$ref:j+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=bc(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[u]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:g}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[u][De.SchemaTag.target]=m)):(e.definitions[u]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.action,value:g}],m&&(e.definitions[u][De.SchemaTag.target]=m),e.definitions[u][De.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(NE,"handleActionRecord");function sX(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Zi.UIAnnotationTypes.DataFieldForAction||t.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(sX,"getColumnActionType");function cX(e,t){let n=[];if(!(e.$Type!==Zi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),sX(t,e,n),n}o(cX,"getActionType");function zD(e,t,n){let i=Gb(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:j+De.DefinitionName.TableColumn,description:ai(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Vm(r.properties[i],e.lineItemRecord),Om(e.lineItemRecord,r.properties,i)}}o(zD,"generateGenericColumn");function lX(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{NE(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&NE(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{NE(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":zD(i,t,r)}}o(lX,"handleAnyAction");function Cu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(Cu,"retrieveNameWithoutVocabularyFromVisualization");function Dl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=Cm(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},h=cX(g,r);h?h.forEach(E=>{lX(E,t,s,m,p,l,r)}):zD(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${j}${a}`})}o(Dl,"addLineItemsType");function fX(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,u)=>(l.includes(u.name)||l.push(u.name),l),[])}}o(fX,"addListReportLeadingProperties");function uX(e,t,n,i){var s,l,u,p,g,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(a){let h=[];for(let E in a){let b=(m=a[E])==null?void 0:m.key;b!==void 0&&!h.includes(b)&&h.push(b)}Sa(h,r)}}o(uX,"addTabkeyEnum");function Fm(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,YD.xml2json)(u.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!g||g.Column||g["table:Column"]||g["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!g||!g.Column&&!g["table:Column"]&&!g["table:AnalyticalColumn"]&&!g["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+qD.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),Sa(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(Fm,"addFragmentEnum");function _l(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){oX(e,a,s),fX(e,t,s),uX(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Fm(e,r,u,"fragmentName",s),Fm(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),Fm(e,r,u,"cellsFragmentName",s),Fm(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(_l,"addTableColumnExtensions");function JD(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(JD,"removeElementsFromEnum");function Dm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=hr(n==null?void 0:n.fullyQualifiedName,Zi.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${ct(s.value)}>`,p=Hr(s);s.type==="PropertyPath"&&(l=sm(s,n)),i.properties[s.value]={$ref:j+u},i.properties[s.value][De.SchemaTag.propertyIndex]=a,e.definitions[u]={type:"object",description:l,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[u][De.SchemaTag.dataType]=p,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.value,value:`${s.value}`}],e.definitions[u][De.SchemaTag.annotationPath]=`${i[De.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${j}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(Dm,"addSelectionFields");function ZD(e,t){for(let n of t.entityProperties)e.push(n.name)}o(ZD,"addEntityPropertiesToEnum");function _m(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(_m,"isDraftEnabled");function e1(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}o(e1,"isEntityDeletable");function t1(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}o(t1,"isEntityUpdatable");function Vl(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,u])=>{let p=u.$ref.split(j)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${j}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(Vl,"addStandardHeaderActions");function n1(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(j)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${j}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(n1,"addStandardFooterActionsOP");function wl(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?Q.t("NOUIANNOTATIONS",{entityType:t.name}):Q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});ae(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(wl,"getUIAnnotationForEntitySet");function pX(e,t,n,i){if(e===fe.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case _t.UIAnnotationTypes.DataField:case _t.UIAnnotationTypes.DataFieldForAnnotation:case _t.UIAnnotationTypes.DataFieldWithNavigationPath:case _t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===fe.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case _t.UIAnnotationTypes.DataField:case _t.UIAnnotationTypes.DataFieldForAnnotation:case _t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(pX,"copyFieldProperties");function DE(e,t,n,i){let r=e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===fe.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(DE,"determineFieldDefinitionName");function dX(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][fe.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(dX,"addKeysTagForDataField");function gX(e,t,n){if(e.$Type===_t.UIAnnotationTypes.DataField||e.$Type===_t.UIAnnotationTypes.DataFieldWithUrl||e.$Type===_t.UIAnnotationTypes.DataFieldWithNavigationPath)dX(e,t,n);else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][fe.SchemaTag.keys]=[{name:"Target",value:Rl(e.Target.value)}],t.definitions[n][fe.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][fe.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===_t.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][fe.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(gX,"addKeysTagToField");function mX(e){var t,n;return e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===_t.UIAnnotationTypes.ConnectedFieldsType}o(mX,"isConnectedField");function hX(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===_t.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let h=p[m];if(typeof h=="object"&&"$Type"in h){let E=u.findIndex(b=>b===m);E===-1&&(E=g,g++),FE(e,t,h,`ConnectedFields::${a.qualifier}`,E.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(hX,"addConnectedFields");function i1(e,t,n){if(n)return n;let i=ct(t);return e.definitions[i].properties}o(i1,"getFieldsSchemaContainer");function _E(e,t){return e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::").splice(1).join("::"):t}o(_E,"getFieldReference");function FE(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){if(!n||!n.$Type)return;let g={appSchema:t,withActions:l,sectionType:e,field:n,targetID:i,containersSchema:u,key:r,version:s,section:a,entityTypeName:p};is.getStrategy(n.$Type).addDefinition(g)}o(FE,"addField");function yX(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(yX,"determineTargetIdOfForm");function TX(e,t,n,i,r,a){if(e.base===fe.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&FE(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];FE(t,n,l,i,s,e,r)}}o(TX,"addFieldsToFormDefinition");function vX(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][fe.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][fe.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][fe.SchemaTag.annotationPath]=hr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(vX,"addTagsToFormDefinition");function wm(e,t,n,i,r,a){if(!t.target)return;let s=yX(t),l=ct(`${e}${fe.DefinitionName.Form}<${s}>`),u=ct(`${e}${fe.DefinitionName.Fields}<${s}>`),p=ct(`${e}${fe.DefinitionName.Actions}<${s}>`),g=!(t.base===fe.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${j}${l}`},e===fe.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${j}${p}`},fields:{$ref:`${j}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][fe.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${j}${u}`}},description:"Form",additionalProperties:!1},vX(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][fe.SchemaTag.isViewNode]=!0,TX(t,e,i,s,r,g),s}o(wm,"handleForm");function VE(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(VE,"replaceAlias");function Mm(e,t){let n=VE(e.Action??"",t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(Mm,"getActionNameAndId");function r1(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:r1(a.pages,t)}}o(r1,"isFirstObjectPage");function km(e,t,n,i,r){var g,m;e.definitions[fe.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${j}${fe.DefinitionName.ObjectPageFooter}`},e.definitions[fe.DefinitionName.ObjectPageFooter].properties[fe.PropertyName.actions]={$ref:`${j}${fe.DefinitionName.FooterActions}`};let a=e.definitions[fe.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[fe.SchemaTag.isViewNode]=!0;let s=ii(fe.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let h=p.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`);a[fe.SchemaTag.annotationPath]=`/${h}`,i(u,e,a,p)}else u&&(a[fe.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`);n===fe.FioriElementsVersion.v2&&r1(r,t)&&!_m(l)&&n1(e,a),delete e.definitions[fe.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${fe.DefinitionName.ObjectPageFooter}<${fe.DefinitionName.ObjectPageFooterActions}>`]}o(km,"addFooterActions");function Um(e,t,n,i,r,a=!1){var m,h;let s=fe.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[fe.DefinitionName.ObjectPageHeader].properties[fe.PropertyName.actions]={$ref:`${j}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[fe.SchemaTag.isViewNode]=!0;let p=ii(fe.UIVOCABULARY,n.serviceAVT),g=p&&((h=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:h.Identification);g?u[fe.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`):t&&(u[fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&Vl(e,!0,l)}o(Um,"addHeaderActions");function jm(e,t){e.properties.header={$ref:`${j}${fe.DefinitionName.ObjectPageHeader}`},e.definitions[fe.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[fe.DefinitionName.ObjectPageHeader][fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.HeaderInfo}`)}o(jm,"addCommonHeaderSchema");function o1(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(o1,"determineEntitySetOfEntityType");function WD(e){let{appSchema:t,section:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Br(r),g=_E(u,p),m=DE(u,p,a,g),h=i1(t,`${i}${fe.DefinitionName.Fields}<${a}>`,s.fields),E={};h[g]={$ref:`${j}${m}`,propertyIndex:parseInt(l)},mX(r)&&(E=hX(i,t,r,n,u)),a1(e,m,E)}o(WD,"addDataFieldDefinition");function xu(e){let{appSchema:t,withActions:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Br(r),g=_E(u,p),m=DE(u,p,a,g),h={};if(n&&i===fe.SectionType.Section){let E=i1(t,`${i}${fe.DefinitionName.Actions}<${a}>`,s.actions),b=E[g]={$ref:`${j}${m}`};b[fe.SchemaTag.propertyIndex]=parseInt(l)}bX(e,m,h),a1(e,m,h)}o(xu,"addDataFieldForActionAndActionGroupDefinition");function bX(e,t,n){let{appSchema:i,field:r,version:a}=e;r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&(r.Actions??[]).forEach(s=>{let l={...e,field:s,targetID:t,withActions:!1},u=Br(s),p=_E(a,u),g=DE(a,u,t,p);xu(l),n[p]=i.definitions[g]})}o(bX,"addGroupedActionsToDefinition");function a1(e,t,n={}){var u,p;let{appSchema:i,field:r,version:a,section:s,entityTypeName:l}=e;i.definitions[t]={type:"object",properties:n,description:ai(r,s.entityType),additionalProperties:!1},r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&Aa(i.definitions[t],Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),gX(r,i,t),i.definitions[t][fe.SchemaTag.annotationPath]=`/${l}/${r.fullyQualifiedName.split(l)[1]}`,i.definitions[t][fe.SchemaTag.annotationType]=r.$Type,i.definitions[t][fe.SchemaTag.isViewNode]=!0,Vm(i.definitions[t],r),pX(a,i,r,t),r.$Type===_t.UIAnnotationTypes.DataFieldForAction&&((u=i.definitions)!=null&&u[fe.DefinitionName.FormAction])&&(i.definitions[t].$ref=`${j}${fe.DefinitionName.FormAction}`,delete i.definitions[t].properties),r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&((p=i.definitions)!=null&&p[fe.DefinitionName.ObjectPageFormActionGroup])&&(i.definitions[t].$ref=`${j}${fe.DefinitionName.ObjectPageFormActionGroup}`)}o(a1,"writeDefinitionToSchema");var Tr=require("@sap-ux/vocabularies-types/vocabularies/UI");var Ke=te(ce());function Sa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(Sa,"addEnumToSchema");function Iu(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let u=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(u)===-1&&r.push(u)}}Sa(r,n)}o(Iu,"addEnumForValidAnnotations");function as(e,t,n){let i=t.definitions[n].properties[Ke.SchemaTag.annotationPath],r=[Tr.UIAnnotationTerms.SelectionVariant,Tr.UIAnnotationTerms.SelectionPresentationVariant];Iu(e,r,i)}o(as,"addEnumForSingleTabVariant");function s1(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[Tr.UIAnnotationTerms.SelectionVariant,Tr.UIAnnotationTerms.SelectionPresentationVariant];Iu(n.entityType,r,i)}o(s1,"addEnumForMultiTabVariant");function c1(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),Sa(r,i)}o(c1,"addEnumForVariantEntitySet");function l1(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Tr.UIAnnotationTerms.FieldGroup];Iu(e,r,i)}o(l1,"addEnumFieldGroupAnnotationPath");function f1(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[Ke.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${j}${Ke.DefinitionName.RelatedFacetKeys}`},l]}}}}o(f1,"addDefinitionForRelatedFacetKeys");function Ec(e){return e.replace("#","::")}o(Ec,"getFacetKeyInSchema");function Ou(e,t){return`${e}<${Ec(t)}>`}o(Ou,"getFacetDefinitionKey");function vt(e,t,n,i=!0){let r=t;if(i&&(r=Ou(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(vt,"parseSchemaDefinition");function $m(e,t,n){let i;return t===Ke.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${Tr.UIAnnotationTerms.LineItem}`?i=`${j}${n}`:(i=`${j}${n}<${t}>`,vt(n,t,e,!0)),i}o($m,"getCustomExtensionDefinitionName");function Cm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][Ke.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=$m(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?Ke.DefinitionName.ObjectPageToolBar:Ke.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${Ke.DefinitionName.Actions}<${ct(r)}>`;t.definitions[p].properties.actions.$ref=j+g;let m=r.startsWith(Ke.DefinitionName.LineItems)?Ke.DefinitionName.Actions:Ke.DefinitionName.ObjectPageToolBarActions,h;try{if(h=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),h.properties={},h.additionalProperties=!1,s){let O=$m(t,r,s);h.additionalProperties={$ref:O}}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let E,b;if(r===Ke.DefinitionName.LineItems&&t.properties.footer){b=`${Ke.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${j}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Ke.DefinitionName.GenericFooter]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Ke.DefinitionName.GenericFooter}))}let O=`${Ke.DefinitionName.FooterActions}<${ct(r)}>`;t.definitions[b].properties.actions.$ref=j+O,E=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[Ke.DefinitionName.Actions])),E.properties={},E.additionalProperties=!1}return n&&(l=hr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][Ke.SchemaTag.annotationPath]=l,E&&(t.definitions[b][Ke.SchemaTag.annotationPath]=l))),{actions:h,footerActions:E,lineItemPath:l}}o(Cm,"addCommonLineItemDefinitions");function u1(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(u1,"getDataTypeFromAnnotation");function Sc(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=u1(e.$Type)),t}o(Sc,"determineDataTypeOfTarget");function Hr(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=Sc((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=u1(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(Hr,"determineDataType");function Vm(e,t){let n=Hr(t);n&&(e[Ke.SchemaTag.dataType]=n)}o(Vm,"addDataTypeToDefinition");function oi(e,t){return`${j}${Ou(e,t)}`}o(oi,"getFacetDefinitionLink");function GD(e,t,n,i){let r=0,a=!1,s="";do{let l=`${t}${r===0?"":"."+r}`;s=oi(e,l),r++;let u=n.definitions[Ou(e,l)],p=((u==null?void 0:u.annotationPath)??"").split("/").slice(0,-1).join("/");a=!u||p===i}while(!a);return s}o(GD,"getUniqueFacetDefinitionLink");function ss(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${j}${i}`}o(ss,"addDefinitionRef");function Bm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${Ke.UIVOCABULARY}`);t=`/${n}/@${Ke.UIVOCABULARY}${i}`}return t}o(Bm,"getFacetAnnotationPath");function Ru(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:oi(a?u:l,t)};let p=vt(a?u:l,t,i,!0);ya(e,p,t),ts(e,p,t),p[Ke.SchemaTag.annotationPath]=e.annotationPath,p[Ke.SchemaTag.isViewNode]=!0}o(Ru,"handleAddressContact");function wE(e,t,n){typeof e=="object"&&(e[t]=n)}o(wE,"updateSchemaProperty");function Ml(e,t,n=ct("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${Ke.DefinitionName.Fields4Dialog}${n}`];wE(r.properties.fields.items,"enum",i)}o(Ml,"addFieldsType");function EX(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(EX,"findFirstSchemaDefinitionKey");function Im(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=rn(t.$ref),m=(p=e.definitions)==null?void 0:p[g];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,u=EX(a,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(Im,"getEnumEntry");function rs(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=Im(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];wE(l,"oneOf",r)}else wE(a,"oneOf",r)}o(rs,"addDescriptiveEnumDefinition");function bc(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(bc,"getActionKey");function Om(e,t,n){var i,r,a;try{if(e.Value)t[n][Ke.SchemaTag.keys]=[{name:Ke.SchemaKeyName.value,value:os(e.Value)}];else if(e.$Type===Tr.UIAnnotationTypes.DataFieldWithAction||e.$Type===Tr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=bc(e.Action,!0);t[n][Ke.SchemaTag.keys]=[{name:Ke.SchemaKeyName.action,value:s}],l&&(t[n][Ke.SchemaTag.target]=l)}else if(e.$Type===Tr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=bc(e.Target.value,!1);t[n][Ke.SchemaTag.keys]=[{name:Ke.SchemaKeyName.target,value:Rl(s)}],t[n][Ke.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===Tr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Tr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=bc(s,!0);t[n][Ke.SchemaTag.keys]=[{name:"SemanticObject",value:e[Ke.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][Ke.SchemaTag.target]=u)}}catch{return}}o(Om,"addKeyToDefinition");function ai(e,t){try{return is.getStrategy(e.$Type).generateDescription(e,t)}catch{return""}}o(ai,"getDataFieldDescription");function Aa(e,t){e[Ke.SchemaTag.messages]||(e[Ke.SchemaTag.messages]=[]),Array.isArray(e[Ke.SchemaTag.messages])&&e[Ke.SchemaTag.messages].push({text:t})}o(Aa,"addMessageToSchema");var kl=te(ce());var p1=[{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 g1="1.108.59";var m1={name:"@sap/ux-specification",version:g1,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas 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",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.35.5","@sap-ux/vocabularies-types":"0.13.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.108.59","@sapui5/ts-types-esm":"latest-1.108","@types/d3":"7.4.3","@types/jquery":"3.5.32","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.11.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.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 cs=class cs{constructor(){cs.distTagsOfSpec.length===0&&(cs.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){cs.distTagsOfSpec=[]}getSpecVersion(){return g1}getDistTagsOfVersion(){let t=[],n=p1,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let r=Q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});ae(n,{severity:kl.LogSeverity.Info,message:r,location:{path:kl.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(cs.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=Q.t("WRONGMINUI5VERSION",{minUI5Version:t});ae(n,{severity:kl.LogSeverity.Warning,message:r,location:{path:kl.MANIFESTPATH}})}}};o(cs,"DistTagEvaluator"),cs.distTagsOfSpec=[];var Lu=cs;var ue=te(ce());var Vn=te(ce());var vi=te(ce());function h1(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(h1,"getCustomPageFullName");function PX(e){let n=h1(e).split(".");return n[n.length-1]}o(PX,"getCustomPageName");function y1(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||vi.ViewTypes.XML}o(y1,"getViewType");function xX(e,t){return y1(e,t).toLowerCase()}o(xX,"getViewTypeExtension");function CX(e,t,n){var p;let i=o(g=>{var m;return(m=g.split(`${t.id}.`)[1])==null?void 0:m.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=h1(e);s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}o(CX,"getViewPath");function IX(e,t){let n=e.entitySet||PX(e),{viewPath:i,fileName:r}=CX(e,t,[n]),a=xX(e,t);return[...i,`${r}.view.${a}`].join("/")}o(IX,"getCustomPagePath");var ME=class ME{constructor(t,n,i,r){this.unhandledControllers=[];let a=Dt(vi.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===vi.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${vi.DirName.Pages}/${s}.json`]=u)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[vi.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=y1(t,this.app)===vi.ViewTypes.XML&&!!t.config;if(t.pageType===vi.PageTypeV4.CustomPage||t.pageType===vi.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Dt(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=Dt(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Dt(t.pageType);i.$schema=u.path}}return(i&&t.pageType===vi.PageTypeV4.CustomPage||t.pageType===vi.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=IX(t,this.app);n.$filePath=i}};o(ME,"AppProvider");var ls=ME;var lt=te(ce());var Ul=te(ce());var Bn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),T1=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),v1=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function kE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(kE,"getNewPageTemplate");function OX(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(OX,"findPageInManifest");function RX(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=kE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:kE(e[t].pageType)}),!Array.isArray(n.pages))){let i=OX(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=kE(e[t].pageType)),UE(t,e,i)}}o(RX,"transformPageFromAssociation");function LX(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===Ul.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Ul.PageTypeV2.ListReport||n.pageType===Ul.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(LX,"deletePage");function UE(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Ul.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)RX(t,r,n);Array.isArray(n.pages)||LX(n,t,i)}}o(UE,"transformPageToNewManifestV2");var r_=te(lc());var OA={};sc(OA,{ALPAnalyticalTable:()=>IS,ALPGridTable:()=>CS,ALPResponsiveTable:()=>xS,Action:()=>NS,AnalyticalCard:()=>Gl,AnalyticalCardSettings:()=>Km,AnalyticalCardSettingsv4:()=>WE,AnalyticalListPageFilterBar:()=>eS,AnalyticalTable:()=>PS,BaseCustomSection:()=>cp,ChartSettings:()=>qS,ChartSettingsType:()=>$E,CommonCardSettings:()=>ds,CommonFilterBar:()=>Bu,CommonHeaderFacetSettings:()=>Fc,CommonTableSettings:()=>ys,CommonTableSettingsForSections:()=>Mc,CreateWithFilters:()=>yS,CustomCard:()=>HE,DataLoadSettings:()=>vS,DateRange:()=>YE,DefaultDateRange:()=>zE,DefaultSpanObject:()=>BE,FRAGMENT_DEFINITION:()=>Bo,Field:()=>qE,FieldForAction:()=>oS,Fields4Dialog:()=>bS,Fields4DialogOP:()=>SA,FooterAction:()=>DS,FormAction:()=>rS,GlobalChartSettings:()=>bA,GlobalTableSettings:()=>CA,GridTable:()=>OS,HeaderActionStandard:()=>kS,HeaderSections:()=>iA,KPISettings:()=>YS,LinkListCardSettings:()=>XE,LinklistCard:()=>Uu,ListCard:()=>Hl,ListCardSettings:()=>GE,ListReportFilterBar:()=>tS,MultiEdit:()=>TS,ObjectPageAnalyticalTable:()=>AA,ObjectPageChart:()=>vA,ObjectPageCustomSectionFragment:()=>lp,ObjectPageCustomSectionView:()=>fp,ObjectPageFooterAction:()=>oA,ObjectPageFooterActionStandard:()=>jS,ObjectPageGridTable:()=>PA,ObjectPageHeader:()=>zS,ObjectPageHeaderAction:()=>JS,ObjectPageHeaderActionStandard:()=>US,ObjectPageHeaderSectionAddress:()=>nA,ObjectPageHeaderSectionChart:()=>eA,ObjectPageHeaderSectionDataPoint:()=>tA,ObjectPageHeaderSectionForm:()=>ZS,ObjectPageLayout:()=>sA,ObjectPageResponsiveTable:()=>kc,ObjectPageSectionAddressV2:()=>pA,ObjectPageSectionChartV2:()=>fA,ObjectPageSectionContactV2:()=>dA,ObjectPageSectionFormV2:()=>lA,ObjectPageSectionTableV2:()=>uA,ObjectPageSectionV2:()=>cA,ObjectPageSubSectionChartV2:()=>hA,ObjectPageSubSectionContactV2:()=>yA,ObjectPageSubSectionFormV2:()=>mA,ObjectPageSubSectionTableV2:()=>TA,ObjectPageSubSectionV2:()=>gA,ObjectPageToolBarAction:()=>IA,ObjectPageTreeTable:()=>xA,QuickVariantSelection:()=>ES,QuickVariantSelectionOP:()=>EA,QuickVariantSelectionX:()=>SS,ResponsiveTable:()=>Ic,SAP_UI_TABLE:()=>Zm,SaveAndEditOP:()=>MS,SelectionFieldDateSettings:()=>JE,SelectionFields:()=>ZE,Share:()=>_S,ShareOP:()=>VS,StackCard:()=>ku,StackCardSettings:()=>KE,TableALP:()=>ql,TableCard:()=>Wl,TableCardSettings:()=>QE,TableColumn:()=>HS,TableColumnAction:()=>bh,TableColumnActionIntentBased:()=>GS,TableCustomColumn:()=>WS,ToolBar:()=>XS,ToolBarAction:()=>FS,TreeTable:()=>AS,UpAndDownNavigationOP:()=>wS,buildIntentBasedActionId:()=>$S,deleteColumnFromFragment:()=>nh,deleteType:()=>zl,exportColorPalette:()=>A1,exportCreateParametersFields:()=>fh,exportCustomColumnsToFragment:()=>mS,exportDateSettingsField:()=>I1,exportDefaultSpan:()=>P1,exportType:()=>Yl,getChartSectionControlId:()=>Z1,getContactSubSectionControlId:()=>t_,getCustomColumnPath:()=>ih,getFormSectionControlId:()=>J1,getRootCustomColumnFromFragmentJSON:()=>Wu,getSectionControlId:()=>Vc,getSmartChartControlId:()=>ep,getSmartTableControlId:()=>Cc,getSubSectionControlId:()=>e_,getTableSectionControlId:()=>z1,importCreateParameters:()=>lh,importDateSettings:()=>nS});var zn=te(ce());var Ue=o(e=>`${zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),uo=o(e=>Ue(e)+"/tableSettings","getTableSettingPathV2"),b1=o(e=>Ue(e)+"/chartSettings","getChartSettingPathV2"),E1=o(e=>Ue(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var bn=o(()=>zn.ManifestSection.ovp,"getOVPsettingPath"),xe=o(e=>{let t=[zn.ManifestSection.ovp];return e.forEach(n=>{n in zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var Ac=o((e,t)=>`${zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Wm=o(e=>{let t=[zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ni=o(e=>{let t=[];return t.push(Wm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Pc=o(e=>Ni(e)+"/tableSettings","getGlobalTableSettingsPathV2"),po=o((e,t,n)=>{let i=[];i.push(Wm(e));let r=n.replace(zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Wr=o((e,t,n)=>po(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),S1=o((e,t,n)=>po(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),jE=o(()=>`sap.ui5/extends/extensions/${zn.v2.SAPUI5_VIEW_EXTENSION}/${zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),xa=o((e,t,n,...i)=>{let a=n.split("|"),s=e[e.length-1].split("|"),l="";a.length===4?l=[a[2],a[3]].join("|"):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join("|");return i.unshift(u),`${jE()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Gm=class Gm{};o(Gm,"ApplicationV2"),y([jt("settings")],Gm.prototype,"settings",2);var Hm=Gm,Gr=class Gr{};o(Gr,"AppSettings"),y([v({manifest:{path:o(()=>"sap.app","path")}})],Gr.prototype,"title",2),y([v({manifest:{path:o(()=>"sap.app","path")}})],Gr.prototype,"description",2),y([v({manifest:{path:o(()=>"sap.fiori","path")}})],Gr.prototype,"cloudDevAdaptationStatus",2),y([v({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],Gr.prototype,"flexibleColumnLayout",2),y([v({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],Gr.prototype,"forceGlobalRefresh",2),y([v({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],Gr.prototype,"tableColumnVerticalAlignment",2),y([v({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),Re("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Gr.prototype,"flexEnabled",2),y([v({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Gr.prototype,"draftDiscardConfirmationSettings",2),y([v({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Gr.prototype,"statePreservationMode",2);var fs=Gr;var Nu=te(ce());function NX(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=Nu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=Nu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:Nu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(NX,"importColorPalette");function A1(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===Nu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(A1,"exportColorPalette");function P1(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(P1,"exportDefaultSpan");var Xm=class Xm{};o(Xm,"ChartSettingsType"),y([v({manifest:{path:o(()=>bn()+"/chartSettings","path")}})],Xm.prototype,"showDataLabel",2);var $E=Xm,us=class us{};o(us,"DefaultSpanObject"),y([v({manifest:{path:o(t=>xe(t),"path")}})],us.prototype,"cols",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],us.prototype,"rows",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],us.prototype,"showOnlyHeader",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],us.prototype,"minimumTitleRow",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],us.prototype,"minimumSubTitleRow",2);var BE=us,Xt=class Xt{};o(Xt,"CommonCardSettings"),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"entitySet",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"title",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"subTitle",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"annotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dataPointAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionPresentationAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"kpiAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"category",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dynamicSubtitleAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"valueSelectionInfo",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showFilterInHeader",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortBy",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortOrder",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"identificationAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"presentationAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"enableLocaleCurrencyFormatting",2),y([v({manifest:{path:o(t=>xe(t),"path"),export:P1}})],Xt.prototype,"defaultSpan",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"requireAppAuthorization",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showSortingInHeader",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"tabs",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"addODataSelect",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showRefresh",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"customParams",2);var ds=Xt,jl=class jl{};o(jl,"CustomCard"),y([v({manifest:{path:o(t=>xe(t),"path")}})],jl.prototype,"model",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],jl.prototype,"template",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],jl.prototype,"settings",2);var HE=jl,ps=class ps extends ds{};o(ps,"ListCardSettings"),y([v({manifest:{path:o(t=>xe(t),"path")}})],ps.prototype,"showLineItemDetail",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],ps.prototype,"imageSupported",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],ps.prototype,"enableAddToInsights",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],ps.prototype,"listFlavor",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],ps.prototype,"listType",2);var GE=ps,Fu=class Fu{};o(Fu,"ListCard"),y([v({manifest:{path:o(t=>xe(t),"path")}})],Fu.prototype,"model",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Fu.prototype,"template",2);var Hl=Fu,go=class go extends ds{};o(go,"AnalyticalCardSettings"),y([v({manifest:{path:o(t=>xe(t),"path")}})],go.prototype,"chartAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],go.prototype,"ignoreSapText",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],go.prototype,"enableAddToInsights",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],go.prototype,"navigation",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],go.prototype,"valueSelectionInfo",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],go.prototype,"chartProperties",2),y([v({manifest:{path:o(t=>xe(t),"path"),import:NX,export:A1}})],go.prototype,"colorPalette",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],go.prototype,"bEnableStableColors",2);var Km=go,Qm=class Qm extends Km{};o(Qm,"AnalyticalCardSettingsv4"),y([v({manifest:{path:o(t=>xe(t),"path")}})],Qm.prototype,"measureAggregate",2);var WE=Qm,Du=class Du{};o(Du,"AnalyticalCard"),y([v({manifest:{path:o(t=>xe(t),"path")}})],Du.prototype,"model",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Du.prototype,"template",2);var Gl=Du,$l=class $l extends ds{};o($l,"StackCardSettings"),y([v({manifest:{path:o(t=>xe(t),"path")}})],$l.prototype,"itemText",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],$l.prototype,"objectStreamCardsNavigationProperty",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],$l.prototype,"objectStreamCardsSettings",2);var KE=$l,_u=class _u{};o(_u,"StackCard"),y([v({manifest:{path:o(t=>xe(t),"path")}})],_u.prototype,"model",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],_u.prototype,"template",2);var ku=_u,Bl=class Bl extends ds{};o(Bl,"LinkListCardSettings"),y([v({manifest:{path:o(t=>xe(t),"path")}})],Bl.prototype,"listFlavor",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Bl.prototype,"headerAnnotationPath",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Bl.prototype,"staticContent",2);var XE=Bl,Vu=class Vu{};o(Vu,"LinklistCard"),y([v({manifest:{path:o(t=>xe(t),"path")}})],Vu.prototype,"model",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Vu.prototype,"template",2);var Uu=Vu,wu=class wu extends ds{};o(wu,"TableCardSettings"),y([v({manifest:{path:o(t=>xe(t),"path")}})],wu.prototype,"showLineItemDetail",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],wu.prototype,"enableAddToInsights",2);var QE=wu,Mu=class Mu{};o(Mu,"TableCard"),y([v({manifest:{path:o(t=>xe(t),"path")}})],Mu.prototype,"model",2),y([v({manifest:{path:o(t=>xe(t),"path")}})],Mu.prototype,"template",2);var Wl=Mu;var x1=te(ce());var FX=o((e,t,n,i,r)=>{let a=qn(n[1],r),s=n.slice(-1)[0];return zt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),qm=class qm{};o(qm,"Field"),y([v({flex:{controlId:FX,controlType:o(()=>x1.ControlType.GroupElement,"controlType")},generate:gt})],qm.prototype,"visible",2);var qE=qm;var xc=te(ce());function nS(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),delete t.fields,t}o(nS,"importDateSettings");function DX(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(DX,"importDateSettingsField");function I1(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o(I1,"exportDateSettingsField");var Kl=class Kl{};o(Kl,"DateRange"),y([v({manifest:{path:o(t=>Ue(t)+xc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Kl.prototype,"useDateRange",2),y([v({manifest:{path:o(t=>Ue(t)+xc.DATESETTINGSPATH,"path"),import:nS,export:pm}}),x({since:"1.77.0"})],Kl.prototype,"selectedValues",2),y([v({manifest:{path:o(t=>Ue(t)+xc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Kl.prototype,"exclude",2);var YE=Kl,Ym={controlId:zt,controlType:o(()=>xc.ControlType.SmartFilterBar,"controlType")},ju={path:o((e,t,n)=>`${Ue(e)}${xc.DATESETTINGSPATH}/fields/${n}`,"path")},C1={...ju,import:DX,export:I1},zm=class zm{};o(zm,"DefaultDateRange"),y([v({manifest:ju}),x({since:"1.90.0"})],zm.prototype,"operation",2);var zE=zm,gs=class gs{};o(gs,"SelectionFieldDateSettings"),y([v({manifest:C1}),x({since:"1.77.0"})],gs.prototype,"selectedValues",2),y([v({manifest:ju}),x({since:"1.77.0"})],gs.prototype,"exclude",2),y([v({manifest:ju}),x({since:"1.77.0"})],gs.prototype,"customDateRangeImplementation",2),y([v({manifest:C1}),x({since:"1.77.0"})],gs.prototype,"filter",2),y([v({manifest:ju}),x({since:"1.90.0"})],gs.prototype,"defaultValue",2);var JE=gs,iS=class iS{};o(iS,"SelectionFields");var ZE=iS,mo=class mo{};o(mo,"CommonFilterBar"),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"})],mo.prototype,"smartVariantManagement",2),y([v({flex:Ym}),x({since:"1.40.0"})],mo.prototype,"liveMode",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],mo.prototype,"variantManagementHidden",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.52.0"})],mo.prototype,"subTitleIfVariantMgmtHidden",2),y([v({manifest:{path:o(t=>Ue(t)+"/filterSettings","path"),import:nS}}),x({since:"1.77.0"})],mo.prototype,"dateSettings",2),y([v({flex:Ym}),x({since:"1.28.0"})],mo.prototype,"showClearOnFB",2),y([v({flex:Ym}),x({since:"1.38.0"})],mo.prototype,"showFilterConfiguration",2),y([v({flex:Ym}),x({since:"1.28.0"})],mo.prototype,"showRestoreOnFB",2);var Bu=mo,$u=class $u extends Bu{};o($u,"AnalyticalListPageFilterBar"),y([v({manifest:{path:o(t=>Ue(t),"path")}})],$u.prototype,"showGoButtonOnFilterBar",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],$u.prototype,"filterDefaultsFromSelectionVariant",2);var eS=$u,Jm=class Jm extends Bu{};o(Jm,"ListReportFilterBar"),y([v({manifest:{path:o(t=>Ue(t),"path")}}),Re("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],Jm.prototype,"annotationPath",2);var tS=Jm;var aS=te(ce());var _X=o((e,t,n,i,r)=>{if(i()===aS.ControlType.Button){let a=n[n.length-1],s=qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return zt(e,t)},"getFormActionButtonId"),$o={controlId:_X,controlType:o(()=>aS.ControlType.Button,"controlType")},ms=class ms{};o(ms,"FormAction"),y([v({flex:$o,generate:gt})],ms.prototype,"visible",2),y([v({flex:$o})],ms.prototype,"tooltip",2),y([v({flex:$o})],ms.prototype,"icon",2),y([v({flex:$o})],ms.prototype,"activeIcon",2),y([v({flex:$o})],ms.prototype,"type",2);var rS=ms,hs=class hs{};o(hs,"FieldForAction"),y([v({flex:$o,generate:gt})],hs.prototype,"visible",2),y([v({flex:$o})],hs.prototype,"tooltip",2),y([v({flex:$o})],hs.prototype,"icon",2),y([v({flex:$o})],hs.prototype,"activeIcon",2),y([v({flex:$o}),x({since:"1.73.0"})],hs.prototype,"type",2);var oS=hs;var Et=te(ce()),ho=te(lc());var fS=require("path"),JX=te(ce()),j1=te(U1()),$1=require("fs");var ZX=(0,fS.join)(__dirname,"templates");var e3=o((e,t)=>{let n=(0,$1.readFileSync)(e,"utf8");return(0,j1.render)(n,t)},"renderTemplate");var uS=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return e3((0,fS.join)(ZX,t+".xml"),n)},"getSingleColumnContent"),pS=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=uS(i,t);n=n+`
|
|
289
289
|
`+r}return n+`
|
|
290
290
|
</core:FragmentDefinition>`},"getColumnFragmentContent"),dS=o(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
|
|
291
291
|
<Text text="Placeholder"/>`}),t+`
|
|
292
|
-
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var eh=require("path");var Bo="core:FragmentDefinition",Zm="sap.ui.table",gS=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:Zm,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:Zm,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Zm,name:"AnalyticalColumn"}]]),e3=new Map([[Et.v2.FE_TEMPLATE_V2_LIST_REPORT,Et.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Et.v2.FE_TEMPLATE_V2_ALP,Et.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Et.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Et.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),H1={type:"element",name:"Text",attributes:{text:"Placeholder"}},t3=JSON.stringify(H1);function n3(e,t){var i;let n=t?(i=e==null?void 0:e[Bo])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o(n3,"getFragmentNamespaces");function B1(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(B1,"getTagName");function th(e,t,n=e){let i=n3(n,!!(t||n!==e));if(t){let r=gS.get(t);return B1(r,i.get(r.namespace))}else{let r=gS.keys();for(let a of r){let s=gS.get(a),l=i?B1(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(th,"getTagNameFromFragmentJSON");function Wu(e,t=e){let n=th(e,void 0,t);return e[n]}o(Wu,"getRootCustomColumnFromFragmentJSON");function i3(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(i3,"addP13nData");function G1(e,t){var l,u,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(g=>g.columnKey===a.columnKey);return s<0?!1:(n=!0,r=i3(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(u=t[s])==null?void 0:u.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}o(G1,"handleFragmentColumn");function r3(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Et.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(eh.sep);if(p[p.length-1]===l){let g=JSON.parse((0,ho.xml2json)(u.fileContent,{compact:!0}));try{let m=th(g[Bo]);m&&(delete g[Bo][m],u.fileContent=(0,ho.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${u.dataSourceUri}, please check content`)}break}}}o(r3,"deleteColumnsFromFragment");function W1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===t3&&(e.splice(n,1),t-=1,t===0));n++);}o(W1,"deleteNumberOfCells");function o3(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+Et.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,ho.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&W1(l.elements[0].elements,u.length),s.fileContent=(0,ho.json2xml)(JSON.stringify(l),{spaces:4});break}}o(o3,"deleteCellsFromFragment");function nh(e,t,n,i){if(i){r3(e,i,t,n);let r=t.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&o3(a,i,n)}}o(nh,"deleteColumnFromFragment");function a3(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(H1)}o(a3,"addNewColumnsInFragment");function s3(e,t){let n=JSON.parse((0,ho.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)a3(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;W1(a,r)}e.fileContent=(0,ho.json2xml)(JSON.stringify(n),{spaces:4})}}o(s3,"updateNonEmptyCellsFragment");function c3(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(eh.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=dS(n):s3(r,n);break}}return i}o(c3,"updateCellsFragment");function l3(e,t,n,i,r){var g;let a,s,l=t.manifest,u=Bn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){ae(r,{severity:Et.LogSeverity.Error,message:Q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=Et.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,a=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,eh.sep))+Et.FRAGMENTNAMEPART+p}if(e.indexOf(Et.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Et.ChangeIndicator.Updated;let m=e.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),h=Bn(l,m),E=n.reduce((b,O)=>O.cellsFragmentName?O:b);E&&E.cellsFragmentName?(h.fragmentName=s=E.cellsFragmentName,h.className=n[0].className,h.type=p.toUpperCase()):v1(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(l3,"exportCustomColumnsToManifest");function f3(e,t,n,i,r){let a=uS(e,t);if(a){let s=JSON.parse((0,ho.xml2json)(a,{compact:!0})),l=Wu(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let u=[n];u.splice(r,0,l),n=u}else n=[l]}return n}o(f3,"insertNewColumnInFragment");function u3(e,t){let n=[];for(let i=0;i<e.length;i++)G1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(u3,"processCustomColumnInArray");function p3(e,t,n){if(e){if(Array.isArray(e))u3(e,t);else if(!G1(e,t)){let r=th(n[Bo]);r&&(delete n[Bo][r],e=void 0)}}return e}o(p3,"maintainExistingColumnInFragment");function d3(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=f3(a,i,n,r,s)}return n}o(d3,"insertNewColumnsInFragment");function g3(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Et.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=pS(i,r);else{let u=JSON.parse((0,ho.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Wu(u[Bo]),l=p3(l,i,u),l=d3(i,n,l,r,u);let g=th(u,r);u[Bo][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,ho.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(g3,"updateColumnsInFragment");function mS(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=l3(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),h=l.fragmentName,E=h.substr(i.length+1),b=E.split(".");h=b[b.length-1]+Et.FRAGMENTNAMEPART+g;let N=p==null?void 0:p.split("."),M=N?N[N.length-1]:null,H=M?M+Et.FRAGMENTNAMEPART+g:null,$=g3(s,h,E,m,r),re=!1;if(p?re=c3(s,H,n):re=!0,!$){let Z={fileContent:pS(m,r),dataSourceUri:u,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!re){let Z={fileContent:dS(n),dataSourceUri:u.replace(h,H),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(mS,"exportCustomColumnsToFragment");var ih=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=e3.get((u=e.component)==null?void 0:u.name);if(!i){let h=(m=(g=(p=e.component)==null?void 0:p.settings)==null?void 0:g.tableSettings)==null?void 0:m.type;h||(h="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(h="AnalyticalTable"),i=h+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var si=te(ce());var hS="/multiEdit",Cc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+si.PropertyName.table:zt(e,t),"getSmartTableControlId");function lh(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}o(lh,"importCreateParameters");function fh(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(fh,"exportCreateParametersFields");function m3(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let u in s)l.indexOf(u)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[u]=s[u],delete s[u]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(m3,"exportVariants");function h3(e,t){t.variants&&(Object.keys(t.variants).length>0?m3(e,t):delete e.variants)}o(h3,"exportQuickVariantSelectionX");function y3(e){var n,i;if(!e||!e.multiEdit)return;let t=JSON.parse(JSON.stringify(e.multiEdit));return t.ignoredFields=(i=(n=e.multiEdit)==null?void 0:n.ignoredFields)==null?void 0:i.split(","),t}o(y3,"importMultiEdit");var rh=class rh{};o(rh,"CreateWithFilters"),y([v({manifest:{path:o(t=>Ue(t)+"/createWithFilters","path")}})],rh.prototype,"strategy",2);var yS=rh,Xl=class Xl{};o(Xl,"MultiEdit"),y([v({manifest:{path:o(t=>uo(t)+hS,"path")}})],Xl.prototype,"enabled",2),y([v({manifest:{path:o(t=>uo(t)+hS,"path")}})],Xl.prototype,"annotationPath",2),y([v({manifest:{path:o(t=>uo(t)+hS,"path"),export:pm}})],Xl.prototype,"ignoredFields",2);var TS=Xl;function Qu(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}o(Qu,"importType");function Yl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Yl,"exportType");function zl(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(zl,"deleteType");var oh=class oh{};o(oh,"DataLoadSettings"),y([v({manifest:{path:o(t=>E1(t),"path")}}),x({since:"1.75.2"})],oh.prototype,"loadDataOnAppLaunch",2);var vS=oh,ah=class ah{};o(ah,"Fields4Dialog"),y([v({manifest:{path:o(t=>uo(t)+"/createWithParameterDialog","path"),export:fh}}),x({since:"1.77.0"})],ah.prototype,"fields",2);var bS=ah,Ku=class Ku{};o(Ku,"QuickVariantSelection"),y([v({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Ku.prototype,"showCounts",2),y([v({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Ku.prototype,"variants",2);var ES=Ku,Ql=class Ql{};o(Ql,"QuickVariantSelectionX"),y([v({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Ql.prototype,"showCounts",2),y([v({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Ql.prototype,"enableAutoBinding",2),y([v({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path"),export:h3}}),x({since:"1.48.0"})],Ql.prototype,"variants",2);var SS=Ql,bi=class bi{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}}),"getDeprecated")}};o(bi,"CommonTableSettings"),y([v({manifest:{key:"createWithParameterDialog",path:o(t=>uo(t),"path"),import:lh}}),x({since:"1.77.0"})],bi.prototype,"createWithParameterDialog",2),y([v({flex:{controlId:zt,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),x({since:"1.38.0"})],bi.prototype,"showTablePersonalisation",2),y([v({flex:{controlId:Cc,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],bi.prototype,"useExportToExcel",2),y([v({flex:{controlId:Cc,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],bi.prototype,"exportType",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],bi.prototype,"quickVariantSelection",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],bi.prototype,"quickVariantSelectionX",2),y([v({manifest:{path:o(t=>uo(t),"path")}}),x({since:"1.38.0"})],bi.prototype,"multiSelect",2),y([v({manifest:{path:o(t=>uo(t),"path")}}),x({since:"1.70.0"})],bi.prototype,"selectAll",2),y([v({manifest:{path:o(t=>uo(t),"path")}}),x({since:"1.70.0"})],bi.prototype,"selectionLimit",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.75.2"})],bi.prototype,"dataLoadSettings",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.42.0"})],bi.prototype,"condensedTableLayout",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.56.0"}),Re("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],bi.prototype,"enableTableFilterInPageVariant",2),y([jt("toolBar")],bi.prototype,"toolBar",2);var ys=bi,Ho=class Ho extends ys{};o(Ho,"ResponsiveTable"),y([v({manifest:{path:o(t=>Ue(t),"path"),import:Qu,export:Yl,delete:zl}}),x({since:"1.50.0"})],Ho.prototype,"type",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],Ho.prototype,"createWithFilters",2),y([v({flex:{controlId:Cc,controlType:o(()=>si.ControlType.Table,"controlType")},generate:Yn}),x({since:"1.52.0"})],Ho.prototype,"popinLayout",2),y([v({flex:{controlId:Cc,controlType:o(()=>si.ControlType.Table,"controlType")}})],Ho.prototype,"includeItemInSelection",2),y([v({manifest:{path:o(t=>uo(t),"path")}}),x({since:"1.77.0"})],Ho.prototype,"inlineDelete",2),y([v({flex:{controlId:Cc,controlType:o(()=>si.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Ho.prototype,"growingThreshold",2),y([v({manifest:{path:o(t=>uo(t),"path"),import:y3}}),x({since:"1.98.0"})],Ho.prototype,"multiEdit",2);var Ic=Ho,sh=class sh extends ys{};o(sh,"TreeTable"),y([v({manifest:{path:o(t=>Ue(t),"path"),import:Qu,export:Yl,delete:zl}}),x({since:"1.50.0"})],sh.prototype,"type",2);var AS=sh,yo=class yo extends ys{};o(yo,"AnalyticalTable"),y([v({manifest:{path:o(t=>Ue(t),"path"),import:Qu,export:Yl,delete:zl}}),x({since:"1.50.0"})],yo.prototype,"type",2),y([v({manifest:{path:o(t=>Ue(t),"path")}})],yo.prototype,"qualifier",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"}),v({manifest:{path:o(t=>Ue(t),"path")}})],yo.prototype,"defaultContentView",2),y([v({manifest:{path:o(t=>Ue(t),"path")}})],yo.prototype,"defaultFilterMode",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],yo.prototype,"contentTitle",2),y([v({manifest:{path:o(t=>Ue(t),"path")}})],yo.prototype,"autoHide",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.78.0"})],yo.prototype,"allFiltersAsInParameters",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],yo.prototype,"createWithFilters",2);var PS=yo,Go=class Go extends ys{};o(Go,"TableALP"),y([v({manifest:{path:o(t=>Ue(t),"path"),import:Qu,export:Yl,delete:zl}}),x({since:"1.50.0"})],Go.prototype,"type",2),y([v({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"qualifier",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"}),v({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"defaultContentView",2),y([v({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"defaultFilterMode",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],Go.prototype,"contentTitle",2),y([v({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"autoHide",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.78.0"})],Go.prototype,"allFiltersAsInParameters",2);var ql=Go,ch=class ch extends ql{};o(ch,"ALPResponsiveTable"),y([v({flex:{controlId:Cc,controlType:o(()=>si.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],ch.prototype,"growingThreshold",2);var xS=ch,RS=class RS extends ql{};o(RS,"ALPGridTable");var CS=RS,LS=class LS extends ql{};o(LS,"ALPAnalyticalTable");var IS=LS,Xu=class Xu extends ys{};o(Xu,"GridTable"),y([v({manifest:{path:o(t=>Ue(t),"path"),import:Qu,export:Yl,delete:zl}}),x({since:"1.50.0"})],Xu.prototype,"type",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],Xu.prototype,"createWithFilters",2);var OS=Xu;var qu=te(ce());var T3=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}action::${qi(i).replace(":2f","::")}`},"getActionButtonId"),v3=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}template::${i}`},"getStandardActionButtonId"),b3=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}${Nm}${i}`},"getStandardFooterActionOPButtonId"),$S=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=zi(n);return`${e}action::${i}::${qi(r)}`},"buildIntentBasedActionId"),E3=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}action::${qi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Ts={controlId:T3,controlType:o(()=>qu.ControlType.Button,"controlType")},Yu={controlId:v3,controlType:o(()=>qu.ControlType.Button,"controlType")},K1={controlId:b3,controlType:o(()=>qu.ControlType.Button,"controlType")},uh={controlId:E3,controlType:o(()=>qu.ControlType.Button,"controlType")},Oc=class Oc{};o(Oc,"Action"),y([v({flex:Ts})],Oc.prototype,"tooltip",2),y([v({flex:Ts})],Oc.prototype,"icon",2),y([v({flex:Ts})],Oc.prototype,"activeIcon",2),y([v({flex:Ts})],Oc.prototype,"type",2);var NS=Oc,Rc=class Rc{};o(Rc,"ToolBarAction"),y([v({flex:Ts})],Rc.prototype,"tooltip",2),y([v({flex:Ts})],Rc.prototype,"icon",2),y([v({flex:Ts})],Rc.prototype,"activeIcon",2),y([v({flex:Ts})],Rc.prototype,"type",2);var FS=Rc,Lc=class Lc{};o(Lc,"FooterAction"),y([v({flex:uh})],Lc.prototype,"tooltip",2),y([v({flex:uh})],Lc.prototype,"icon",2),y([v({flex:uh})],Lc.prototype,"activeIcon",2),y([v({flex:uh})],Lc.prototype,"type",2);var DS=Lc,ph=class ph{};o(ph,"Share"),y([v({flex:Yu})],ph.prototype,"visible",2);var _S=ph,dh=class dh{};o(dh,"ShareOP"),y([v({flex:Yu})],dh.prototype,"visible",2);var VS=dh,gh=class gh{};o(gh,"UpAndDownNavigationOP"),y([v({flex:Yu})],gh.prototype,"visible",2);var wS=gh,mh=class mh{};o(mh,"SaveAndEditOP"),y([v({flex:K1,generate:gt})],mh.prototype,"visible",2);var MS=mh,hh=class hh{};o(hh,"HeaderActionStandard"),y([v({flex:Yu})],hh.prototype,"visible",2);var kS=hh,yh=class yh{};o(yh,"ObjectPageHeaderActionStandard"),y([v({flex:Yu})],yh.prototype,"visible",2);var US=yh,Th=class Th{};o(Th,"ObjectPageFooterActionStandard"),y([v({flex:K1})],Th.prototype,"visible",2);var jS=Th;var Zu=te(ce());var S3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=zi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),A3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=zi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),P3=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),BS={controlId:S3,controlType:o(()=>Zu.ControlType.TableColumn,"controlType")},zu={controlId:P3,controlType:o(()=>Zu.ControlType.Button,"controlType")},X1={...BS,controlId:A3},vh={...zu,controlId:$S},Ju=class Ju{};o(Ju,"TableColumn"),y([v({flex:{controlId:Yb,controlType:o(()=>Zu.ControlType.TableColumn,"controlType")}})],Ju.prototype,"width",2),y([v({flex:{controlId:Yb,controlType:o(()=>Zu.ControlType.TableColumn,"controlType")},generate:Yn})],Ju.prototype,"hAlign",2);var HS=Ju,Ca=class Ca{};o(Ca,"TableColumnAction"),y([v({flex:BS})],Ca.prototype,"width",2),y([v({flex:BS,generate:Yn})],Ca.prototype,"hAlign",2),y([v({flex:zu})],Ca.prototype,"tooltip",2),y([v({flex:zu})],Ca.prototype,"icon",2),y([v({flex:zu})],Ca.prototype,"activeIcon",2),y([v({flex:zu})],Ca.prototype,"type",2);var bh=Ca,Ia=class Ia extends bh{};o(Ia,"TableColumnActionIntentBased"),y([v({flex:X1})],Ia.prototype,"width",2),y([v({flex:X1,generate:Yn})],Ia.prototype,"hAlign",2),y([v({flex:vh})],Ia.prototype,"tooltip",2),y([v({flex:vh})],Ia.prototype,"icon",2),y([v({flex:vh})],Ia.prototype,"activeIcon",2),y([v({flex:vh})],Ia.prototype,"type",2);var GS=Ia,KS=class KS{};o(KS,"TableCustomColumn");var WS=KS;var QS=class QS{};o(QS,"ToolBar");var XS=QS;var Nc=te(ce());var ep=o(e=>e+Nc.PropertyName.chart,"getSmartChartControlId"),vs=class vs{};o(vs,"ChartSettings"),y([v({flex:{controlId:ep,controlType:o(()=>Nc.ControlType.SmartChart,"controlType")}})],vs.prototype,"showLegendButton",2),y([v({flex:{controlId:ep,controlType:o(()=>Nc.ControlType.SmartChart,"controlType")}})],vs.prototype,"showDownloadButton",2),y([v({flex:{controlId:ep,controlType:o(()=>Nc.ControlType.SmartChart,"controlType")}})],vs.prototype,"showChartTypeSelectionButton",2),y([v({flex:{controlId:ep,controlType:o(()=>Nc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],vs.prototype,"ignoredChartTypes",2),y([v({manifest:{path:o(t=>b1(t),"path")}}),x({since:"1.81.0"})],vs.prototype,"showDataLabel",2);var qS=vs;var Oa=class Oa{};o(Oa,"KPISettings"),y([v({manifest:{path:o((t,n,i)=>Ac(t,i),"path")}})],Oa.prototype,"model",2),y([v({manifest:{path:o((t,n,i)=>Ac(t,i),"path")}})],Oa.prototype,"entitySet",2),y([v({manifest:{path:o((t,n,i)=>Ac(t,i),"path")}})],Oa.prototype,"qualifier",2),y([v({manifest:{path:o((t,n,i)=>Ac(t,i),"path")}})],Oa.prototype,"filterable",2),y([v({manifest:{path:o((t,n,i)=>Ac(t,i),"path")}})],Oa.prototype,"detailNavigation",2),y([v({manifest:{path:o((t,n,i)=>Ac(t,i),"path")}})],Oa.prototype,"groupId",2);var YS=Oa;var Q1=te(ce());var x3=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",zt(e,n)},"getAvatarControlId"),bs=class bs{};o(bs,"ObjectPageHeader"),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.46.0"})],bs.prototype,"showRelatedApps",2),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.46.0"})],bs.prototype,"editableHeaderContent",2),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.48.0"})],bs.prototype,"simpleHeaderFacets",2),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.48.0"}),Re("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],bs.prototype,"showHeaderAsCarouselOnDesktop",2),y([v({flex:{controlId:x3,controlType:o(()=>Q1.ControlType.Avatar,"controlType")},generate:gt})],bs.prototype,"displayShape",2);var zS=bs;var Eh=te(ce());var C3=o((e,t,n,i)=>{if(i()===Eh.ControlType.Button||i()===Eh.ControlType.HeaderAction){let r=n[2];return`${e}action::${qi(r)}`}return zt(e,t)},"getActionButtonId"),tp={controlId:C3,controlType:o(()=>Eh.ControlType.HeaderAction,"controlType")},Es=class Es{};o(Es,"ObjectPageHeaderAction"),y([v({flex:tp,generate:gt})],Es.prototype,"visible",2),y([v({flex:tp})],Es.prototype,"tooltip",2),y([v({flex:tp})],Es.prototype,"icon",2),y([v({flex:tp})],Es.prototype,"activeIcon",2),y([v({flex:tp})],Es.prototype,"type",2);var JS=Es;var np=te(ce());var Ih="header::headerEditable::",I3=o((e,t,n,i,r)=>`${e}${Ih}${r}`,"getDataPointHeaderSectionId"),O3=o((e,t,n,i,r)=>`${e}${Ih}${r}::ContactAddress`,"getAddressHeaderSectionId"),R3=o((e,t,n,i,r)=>`${e}${Ih}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),q1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(np.FACETTITLEPREFIX)?r.split(np.FACETTITLEPREFIX)[1]:a;return`${e}${Ih}${s}::Form`},"getFormHeaderSectionId"),ip={controlType:o(()=>np.ControlType.ObjectPageHeaderSection,"controlType")},Sh=class Sh{};o(Sh,"CommonHeaderFacetSettings"),y([v({flex:{...ip,controlId:q1},generate:gt})],Sh.prototype,"visible",2);var Fc=Sh,Ah=class Ah extends Fc{};o(Ah,"ObjectPageHeaderSectionForm"),y([v({flex:{...ip,controlId:q1}})],Ah.prototype,"visible",2);var ZS=Ah,Ph=class Ph extends Fc{};o(Ph,"ObjectPageHeaderSectionChart"),y([v({flex:{...ip,controlId:R3}})],Ph.prototype,"visible",2);var eA=Ph,xh=class xh extends Fc{};o(xh,"ObjectPageHeaderSectionDataPoint"),y([v({flex:{...ip,controlId:I3}})],xh.prototype,"visible",2);var tA=xh,Ch=class Ch extends Fc{};o(Ch,"ObjectPageHeaderSectionAddress"),y([v({flex:{...ip,controlId:O3}})],Ch.prototype,"visible",2);var nA=Ch,rA=class rA{};o(rA,"HeaderSections");var iA=rA;var aA=te(ce());var L3=o((e,t,n,i)=>{if(i()===aA.ControlType.Button){let{actionId:r}=zi(n);return`${e}action::${qi(r)}::Determining`}return zt(e,t)},"getFooterActionButtonId"),rp={controlId:L3,controlType:o(()=>aA.ControlType.Button,"controlType")},Ss=class Ss{};o(Ss,"ObjectPageFooterAction"),y([v({flex:rp,generate:gt})],Ss.prototype,"visible",2),y([v({flex:rp})],Ss.prototype,"tooltip",2),y([v({flex:rp})],Ss.prototype,"icon",2),y([v({flex:rp})],Ss.prototype,"activeIcon",2),y([v({flex:rp})],Ss.prototype,"type",2);var oA=Ss;var op=te(ce());var Oh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",zt(e,n)},"getControlId"),Dc=class Dc{};o(Dc,"ObjectPageLayout"),y([v({flex:{controlId:Oh,controlType:o(()=>op.ControlType.ObjectPageLayout,"controlType")},generate:gt})],Dc.prototype,"showHeaderContent",2),y([v({flex:{controlId:Oh,controlType:o(()=>op.ControlType.ObjectPageLayout,"controlType")}})],Dc.prototype,"showAnchorBar",2),y([v({flex:{controlId:Oh,controlType:o(()=>op.ControlType.ObjectPageLayout,"controlType")}})],Dc.prototype,"useIconTabBar",2),y([v({flex:{controlId:Oh,controlType:o(()=>op.ControlType.ObjectPageLayout,"controlType")}}),x({since:"1.34.0"})],Dc.prototype,"alwaysShowContentHeader",2);var sA=Dc;var Y1=te(ce());var _c=class _c{};o(_c,"BaseCustomSection"),y([v({manifest:{path:xa,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),x({since:"1.52.0"})],_c.prototype,"relatedFacet",2),y([v({manifest:{path:xa,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),x({since:"1.52.0"})],_c.prototype,"relativePosition",2),y([v({manifest:{path:o((t,n,i)=>xa(t,{},i,Y1.ManifestSection.generic),"path")}}),x({since:"1.52.0"})],_c.prototype,"title",2),y([v({manifest:{path:xa}}),x({since:"1.52.0"})],_c.prototype,"className",2);var cp=_c,ap=class ap extends cp{};o(ap,"ObjectPageCustomSectionFragment"),y([v({manifest:{path:xa}}),x({since:"1.52.0"})],ap.prototype,"fragmentName",2),y([v({manifest:{path:xa}}),x({since:"1.52.0"})],ap.prototype,"type",2);var lp=ap,sp=class sp extends cp{};o(sp,"ObjectPageCustomSectionView"),y([v({manifest:{path:xa}}),x({since:"1.52.0"})],sp.prototype,"viewName",2),y([v({manifest:{path:xa}}),x({since:"1.52.0"})],sp.prototype,"type",2);var fp=sp;var er=te(ce());var z1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),er.DefinitionName.Table];return zt(e,s)},"getTableSectionControlId"),J1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"FormGroup"];return zt(e,s)},"getFormSectionControlId"),Z1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Chart"];return zt(e,s)},"getChartSectionControlId"),Vc=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Section"];return zt(e,s)},"getSectionControlId"),e_=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"SubSection"];return zt(e,s)},"getSubSectionControlId"),t_=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"ContactsList"];return zt(e,s)},"getContactSubSectionControlId"),Rh=class Rh{};o(Rh,"ObjectPageSectionV2"),y([v({flex:{controlId:Vc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:gt})],Rh.prototype,"visible",2);var cA=Rh,Lh=class Lh{};o(Lh,"ObjectPageSectionFormV2"),y([v({flex:{controlId:Vc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:gt})],Lh.prototype,"visible",2);var lA=Lh,Nh=class Nh{};o(Nh,"ObjectPageSectionChartV2"),y([v({flex:{controlId:Vc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:gt})],Nh.prototype,"visible",2);var fA=Nh,Fh=class Fh{};o(Fh,"ObjectPageSectionTableV2"),y([v({flex:{controlId:Vc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:gt})],Fh.prototype,"visible",2);var uA=Fh,Dh=class Dh{};o(Dh,"ObjectPageSectionAddressV2"),y([v({flex:{controlId:Vc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:gt})],Dh.prototype,"visible",2);var pA=Dh,_h=class _h{};o(_h,"ObjectPageSectionContactV2"),y([v({flex:{controlId:Vc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:gt})],_h.prototype,"visible",2);var dA=_h,Vh=class Vh{};o(Vh,"ObjectPageSubSectionV2"),y([v({flex:{controlId:e_,controlType:o(()=>er.ControlType.SubSection,"controlType")},generate:gt})],Vh.prototype,"visible",2);var gA=Vh,wh=class wh{};o(wh,"ObjectPageSubSectionFormV2"),y([v({flex:{controlId:J1,controlType:o(()=>er.ControlType.Group,"controlType")},generate:gt})],wh.prototype,"visible",2);var mA=wh,Mh=class Mh{};o(Mh,"ObjectPageSubSectionChartV2"),y([v({flex:{controlId:Z1,controlType:o(()=>er.ControlType.SmartChart,"controlType")},generate:gt})],Mh.prototype,"visible",2);var hA=Mh,kh=class kh{};o(kh,"ObjectPageSubSectionContactV2"),y([v({flex:{controlId:t_,controlType:o(()=>er.ControlType.SubSection,"controlType")},generate:gt})],kh.prototype,"visible",2);var yA=kh,Uh=class Uh{};o(Uh,"ObjectPageSubSectionTableV2"),y([v({flex:{controlId:z1,controlType:o(()=>er.ControlType.SmartTable,"controlType")},generate:gt})],Uh.prototype,"visible",2);var TA=Uh;var jh=class jh{};o(jh,"ObjectPageChart"),y([v({manifest:{path:S1}}),x({since:"1.78.0"})],jh.prototype,"variantManagement",2);var vA=jh,$h=class $h{};o($h,"GlobalChartSettings"),y([v({manifest:{path:o(t=>Ni(t)+"/chartSettings","path")}}),x({since:"1.78.0"})],$h.prototype,"variantManagement",2);var bA=$h;var vr=te(ce());var wc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=vr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=qn(a[0],r),zt(e,a)},"getSmartTableControlId"),up=class up{};o(up,"QuickVariantSelectionOP"),y([v({manifest:{path:o((t,n,i)=>po(t,n,i)+vr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],up.prototype,"showCounts",2),y([v({manifest:{path:o((t,n,i)=>po(t,n,i)+vr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],up.prototype,"variants",2);var EA=up,Bh=class Bh{};o(Bh,"Fields4DialogOP"),y([v({manifest:{path:o((t,n,i)=>Wr(t,n,i)+"/createWithParameterDialog","path"),export:fh}}),x({since:"1.77.0"})],Bh.prototype,"fields",2);var SA=Bh,Ei=class Ei{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(Ei,"CommonTableSettingsForSections"),y([v({manifest:{key:"createWithParameterDialog",path:Wr,import:lh}}),x({since:"1.77.0"})],Ei.prototype,"createWithParameterDialog",2),y([v({flex:{controlId:wc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.28.0"})],Ei.prototype,"editable",2),y([v({flex:{controlId:wc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.95.0"}),Re("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Ei.prototype,"showPasteButton",2),y([v({manifest:{path:Wr}}),x({since:"1.54.0"})],Ei.prototype,"multiSelect",2),y([v({manifest:{path:Wr}}),x({since:"1.70.0"})],Ei.prototype,"selectAll",2),y([v({manifest:{path:Wr}}),x({since:"1.70.0"})],Ei.prototype,"selectionLimit",2),y([v({manifest:{path:po}}),x({since:"1.63.0"})],Ei.prototype,"quickVariantSelection",2),y([v({flex:{controlId:wc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],Ei.prototype,"useExportToExcel",2),y([v({flex:{controlId:wc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],Ei.prototype,"exportType",2),y([v({manifest:{path:po}}),x({since:"1.48.5"}),Re("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Ei.prototype,"createMode",2),y([v({manifest:{path:po}}),x({since:"1.61.0"})],Ei.prototype,"disableDefaultInlineCreateSort",2),y([v({manifest:{path:Wr}}),x({since:"1.78.0"})],Ei.prototype,"variantManagement",2),y([jt("toolBar")],Ei.prototype,"toolBar",2);var Mc=Ei,As=class As extends Mc{};o(As,"ObjectPageResponsiveTable"),y([v({manifest:{path:Wr}})],As.prototype,"type",2),y([v({flex:{controlId:wc,controlType:o(()=>vr.ControlType.Table,"controlType")}})],As.prototype,"includeItemInSelection",2),y([v({flex:{controlId:wc,controlType:o(()=>vr.ControlType.Table,"controlType")},generate:gt}),x({since:"1.52.0"})],As.prototype,"popinLayout",2),y([v({manifest:{path:Wr}}),x({since:"1.77.0"})],As.prototype,"inlineDelete",2),y([v({flex:{controlId:wc,controlType:o(()=>vr.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],As.prototype,"growingThreshold",2);var kc=As,pp=class pp extends Mc{};o(pp,"ObjectPageAnalyticalTable"),y([v({manifest:{path:Wr}})],pp.prototype,"type",2),y([v({manifest:{path:po}}),x({since:"1.67.0"})],pp.prototype,"condensedTableLayout",2);var AA=pp,dp=class dp extends Mc{};o(dp,"ObjectPageGridTable"),y([v({manifest:{path:Wr}})],dp.prototype,"type",2),y([v({manifest:{path:po}}),x({since:"1.67.0"})],dp.prototype,"condensedTableLayout",2);var PA=dp,gp=class gp extends Mc{};o(gp,"ObjectPageTreeTable"),y([v({manifest:{path:Wr}})],gp.prototype,"type",2),y([v({manifest:{path:po}}),x({since:"1.67.0"})],gp.prototype,"condensedTableLayout",2);var xA=gp,Ra=class Ra{};o(Ra,"GlobalTableSettings"),y([v({manifest:{path:Pc}}),x({since:"1.70.0"})],Ra.prototype,"selectAll",2),y([v({manifest:{path:Pc}}),x({since:"1.78.0"})],Ra.prototype,"variantManagement",2),y([v({manifest:{path:Pc}})],Ra.prototype,"type",2),y([v({manifest:{path:Pc}}),x({since:"1.54.0"})],Ra.prototype,"multiSelect",2),y([v({manifest:{path:Pc}}),x({since:"1.67.0"})],Ra.prototype,"condensedTableLayout",2),y([v({manifest:{path:Pc}}),x({since:"1.77.0"})],Ra.prototype,"inlineDelete",2);var CA=Ra;var n_=te(ce());var N3=o((e,t,n,i,r)=>{let{actionId:a}=zi(n),s=qn(n[1],r);return`${e}${s}::action::${qi(a).replace(":2f","::")}`},"getActionButtonId"),mp={controlId:N3,controlType:o(()=>n_.ControlType.Button,"controlType")},Ps=class Ps{};o(Ps,"ObjectPageToolBarAction"),y([v({flex:mp,generate:gt})],Ps.prototype,"visible",2),y([v({flex:mp})],Ps.prototype,"tooltip",2),y([v({flex:mp})],Ps.prototype,"icon",2),y([v({flex:mp})],Ps.prototype,"activeIcon",2),y([v({flex:mp})],Ps.prototype,"type",2);var IA=Ps;var Fi=te(ce());function RA(e,t,n,i){if(t.controlType===Fi.ControlType.TableColumn||t.controlType===Fi.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===Fi.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Fi.VOCWITHCOLONS),u=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(u!=null&&u.startsWith("DataField")?u=u==null?void 0:u.replace("/",":2f"):u=u==null?void 0:u.replace("/","_"),u!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(RA,"addFlexChangeToConfigTableColumn");function Hh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Fi.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(Hh,"addFlexChangeToConfigTable");function Gh(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,h,E;let s=yr(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(g=s.content)!=null&&g.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},u;if(s.controlType===Fi.ControlType.TableColumn)u=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===Fi.v2.TableTypeV2.ResponsiveTable)&&!((h=l.controlId)!=null&&h.includes(Fi.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Fi.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;u=(E=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:E.properties[l.propertyId]}u&&RA(t.table,l,n,i)})}o(Gh,"importFlexChangesOfColumn");function xs(e){return e.replace("/","::")}o(xs,"convertActionKey");function LA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(LA,"convertSelector");function F3(e,t,n,i){var a,s,l,u;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((u=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:u.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}o(F3,"addSmartFilterBarFlex");function D3(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=qi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let u=a.split(":::"),p=u.find(h=>h.startsWith("sSemanticObject")),g=u.find(h=>h.startsWith("sAction")),m=g.split("sAction::")[1].replace(":2f","::");if(p){let h=`${p.split("::")[1]}::${m}`,E=`${u[0]}:::${p}:::${g}`;i.set(h,r),i.set(r,E)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(D3,"filterActions");function _3(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(_3,"addColumnActionConfigPart");function V3(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}o(V3,"getActionId");function w3(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var u,p;let l=D3(s.name,i);if(l.has(s.id)){let g=l.get(s.id),m=(u=g.split("<")[1])==null?void 0:u.split(">")[0];s.name==="TableColumnAction"&&_3(s,e,m);let h=s.configPart[m];((p=i.definitions[g])==null?void 0:p.properties[t])&&h&&(h[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(w3,"addActionFlex");function M3(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=Dn(e[lt.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[lt.PropertyName.chart],t):e[lt.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(M3,"addSmartChartFlex");function Wh(e,t,n,i){var r,a;try{let s=yr(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(lt.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(lt.PageTypeV2.AnalyticalListPage))switch(s.controlId=LA(s.controlId),s.controlType){case lt.ControlType.SmartFilterBar:{F3(e,l,s,n);break}case lt.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case lt.ControlType.Button:{let u=V3(s);u&&w3(e,l,s,n,u);break}case lt.ControlType.SmartChart:{M3(e,l,s,n);break}default:break}}catch(s){ae(i,{severity:lt.LogSeverity.Error,message:Q.t("FLEXERROR")},...s)}}o(Wh,"addFlex");function k3(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let r in i.tableSettings)i[r]=i.tableSettings[r];delete i.tableSettings}}}o(k3,"adjustQuickVariantSelectionX");function _n(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=Dn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=Bn(t,g),Nl(p,s,u,e),Em(l,s,g,r)}k3(u,e)}}o(_n,"transferSettingsOfObject");function Kh(e,t){var r,a,s,l,u,p,g,m,h;let n=e[lt.ManifestSection.generic].pages[t],i=lt.v2.TableTypeV2.ResponsiveTable;return(r=e[lt.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[lt.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[lt.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.tableSettings)==null?void 0:g.type)||((m=n.component)==null?void 0:m.settings.tableType):((h=n.component)==null?void 0:h.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=lt.v2.TableTypeV2.AnalyticalTable),i}o(Kh,"determineTableType");function i_(e,t,n,i,r,a,s){var l,u;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,g=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let h={...(l=e._attributes)!=null&&l.id?{id:(u=e._attributes)==null?void 0:u.id}:{},...m?{text:m}:{},...g,...g.columnKey?{columnKey:g.columnKey}:{},...g.columnIndex?{columnIndex:Number(g.columnIndex)}:{},...g.leadingProperty?{leadingProperty:g.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(h.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(h)}}o(i_,"evaluateFragmentColumn");function U3(e,t,n,i){let r;if(e===lt.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===lt.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(U3,"determineCellsFragmentName");function j3(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,r_.xml2json)(e[0].fileContent,{compact:!0}))[Bo];try{let g=Wu(p);if(g)if((l=t[lt.PropertyName.table])!=null&&l.columns||(t[lt.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)i_(m,n,i,r,t,a,s);else i_(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(j3,"analyzeFilteredFragments");function $3(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[u,p]=l,g=l[2];if(u&&p===t){let m=e[s].type?e[s].type.toLowerCase():"xml",h=e[s].fragmentName;if(!h)continue;let E=U3(u,e,p,g),b=h.split(".");h=b[b.length-1]+lt.FRAGMENTNAMEPART+m;let O=i.fragments.filter(N=>N.dataSourceUri.endsWith(h));try{j3(O,n,e,s,g,u,E)}catch(N){i.logger.error(N.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(N=>{Gh(i,n,N.id,N,r)})}}}o($3,"processViewExtensions");function Jl(e,t,n,i,r,a="LineItems"){var s,l,u;if(t.fragments&&(u=(l=(s=t.manifest[lt.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&u["sap.ui.viewExtensions"]){let p=lt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),g=t.manifest[lt.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!g)return;let m=r&&r.target?r.target:n.entitySet;$3(g,m,e,t,a)}}o(Jl,"addFragments");function Xh(e,t,n){if(e.header={actions:{}},n[lt.DefinitionName.HeaderActionsStandard]){let i=n[lt.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(lt.PageTypeV2.ListReport,r,{})}}o(Xh,"importHeaderActions");var Is=te(ce());var hp="sap.suite.ui.generic.template.ListReport";var o_="sap.suite.ui.generic.template.ListReport.view.ListReport";var Yh=te(ce());var Qh=te(ce());function Zl(e,t=!0,n=[]){let i=[Qh.ManifestSection.generic];return e.forEach(function(r){i.push("pages"),i.push(r)}),t&&(i.push("component"),i.push("settings")),i.concat(n)}o(Zl,"getManifestPathFromPagePath");function Wo(e,t,n){let i=e,r=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:r,value:r&&n?i[n]:void 0,parent:r?i:void 0}}o(Wo,"getManifestPropertyByPath");function La(e){return e!==null&&typeof e=="object"}o(La,"isDefinition");function qh(e,t,n,i,r,a,s){let l=n[Qh.SchemaTag.conversionExit],u=l==null?void 0:l.name,p=t?t(u):void 0;if(!p)return i;let g=l.params;return e?p.appToConfig(i,g,r??[],n,s):p.configToApp(i,g,r??[],n,a)}o(qh,"executeConversionExit");function Uc(e,t,n,i="string",r=!1){let a;if(e===void 0)a=r;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=r:a=typeof s!==i||s===null&&r}return a&&ae(n,{severity:Yh.LogSeverity.Error,message:Q.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}o(Uc,"hasPropertyTypeError");var joe=Symbol("Property is suppressed without explanation");var $t=te(ce());function jc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(ma((r=s.component)==null?void 0:r.name)===$t.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=jc(s.pages,t,n),i))return n.unshift(a),i}}o(jc,"findObjectPageV2");function ef(e,t){var n;for(let i in e){let r=e[i];if(ma((n=r.component)==null?void 0:n.name)===$t.PageTypeV2.ListReport)return t.push(i),r}}o(ef,"findListReportPageV2");function tf(e){if(!e.manifest[$t.ManifestSection.generic]){ae(e.logger,{severity:$t.LogSeverity.Error,message:Q.t("NOFE"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}let t=e.manifest[$t.ManifestSection.generic].pages;if(!t){ae(e.logger,{severity:$t.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}return t}o(tf,"getV2Pages");function nf(e,t,n){var i;if(!e){ae(t,{severity:$t.LogSeverity.Error,message:Q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;ae(t,{severity:$t.LogSeverity.Error,message:Q.t("NOENTITYSET",{pageName:r}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}}o(nf,"checkV2Page");function rf(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),ma((i=a.component)==null?void 0:i.name)===$t.PageTypeV2.AnalyticalListPage)return a}ae(n,{severity:$t.LogSeverity.Error,message:Q.t("NOALP"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}o(rf,"findAnalyticalListPage");function NA(e,t){let n=e.split("|");return $t.v2.SectionPosition[n[0]]&&n[1]===t}o(NA,"isAssociatedCustomSection");function a_(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${$t.v2.SAPUI5_VIEW_EXTENSION}/${$t.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)NA(r,t)&&(i[r]=n[r]);return i}o(a_,"findCustomSectionExtensions");function B3(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(B3,"removeEmptySettingsOfFooter");function H3(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(H3,"removeEmptySettingsOfFilterBar");function G3(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(G3,"removeEmptySettingsOfToolBar");function zh(e){G3(e),H3(e),B3(e)}o(zh,"removeEmptySettings");var qt=te(ce());var c_=te(ce());var FA={};sc(FA,{ACTION_GROUPS_ARENT_SUPPORTED:()=>DQ,ANNOERR:()=>fQ,ANNOTATIONFILE:()=>uQ,COMPONENTNOTDEFINED:()=>pQ,CONTEXTPATHCOULDNOTBERESOLVED:()=>aQ,ENTITYSETNOTFOUND:()=>oQ,FLEXERROR:()=>SQ,INCONSISTENTSCHEMA:()=>NQ,INVALIDANCHOR:()=>AQ,INVALIDEXTENSION:()=>PQ,INVALIDTARGETDEFINITION:()=>CQ,MACROS_ANNOTATION_ERROR:()=>RQ,NOALP:()=>cQ,NOANNOTATIONFORPATH:()=>iQ,NOBASEPATH:()=>X3,NOCHARTS:()=>hQ,NOENTITYSET:()=>J3,NOENTITYTYPE4SET:()=>Z3,NOFE:()=>q3,NOFRAGMENT:()=>xQ,NOGENERICSCHEMA:()=>Y3,NOID4SECTION:()=>IQ,NOLINEITEMANDCHARTS:()=>yQ,NOLINEITEMFORPATH:()=>rQ,NOLINEITEMS:()=>mQ,NOLR:()=>sQ,NOPAGEFORENTITYSET:()=>z3,NOPAGES:()=>Q3,NOPRESENTATIONVARIANT:()=>eQ,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>tQ,NOPRESENTATIONVARIANTFORSPV:()=>nQ,NOROUTING:()=>dQ,NOROUTINGID:()=>EQ,NOTARGET:()=>bQ,NOTARGETS:()=>vQ,NOTEMPLATE:()=>lQ,NOUIANNOTATIONS:()=>gQ,NOVISUALIZATIONS:()=>TQ,TYPEERROR:()=>LQ,UNEXISTING_ANNOTATION_PATH:()=>FQ,UNKNOWNMINUI5VERSION:()=>K3,WRONGMINUI5VERSION:()=>W3,XMLPARSEFAILURE:()=>OQ,default:()=>_Q});var W3="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",K3="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",X3="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",Q3="No pages found in manifest for app with id '{{- appId}}'",q3="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",Y3="No generic schema found while generating page schema for {{- pageType}}",z3="No page found in manifest for entitySet '{{- entitySet}}'",J3="No entitySet defined for page '{{- pageName}}'",Z3="No entityType could be found for the given entity set '{{- entitySetName}}'",eQ="No PresentationVariant defined for '{{- key}}'",tQ="No PresentationVariant found for default SelectionPresentationVariant",nQ="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",iQ="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",rQ="No line item annotation found for path '{{- annotationPath}}'",oQ="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",aQ="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",sQ="No page found in manifest for list report",cQ="No page found in manifest for analytical list page",lQ="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",fQ="Error while parsing annotation files",uQ="Annotation file: '{{- file}}'",pQ="Component name is not defined for page '{{- pageName}}'",dQ="Incomplete manifest definition: no routing defined",gQ="No UI Annotation defined for entity type '{{- entityType }}'",mQ="UI.LineItem annotation has not been defined",hQ="UI.Chart annotation has not been defined",yQ="Neither UI.LineItem nor UI.Chart annotation has been defined",TQ="Empty Collection for Visualizations",vQ="Incomplete manifest definition: no targets defined",bQ="Invalid reference: annotation target '{{- target}}' not found",EQ="No page found in manifest for routingId '{{- routingId}}'",SQ="Error while parsing flex change",AQ="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",PQ="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",xQ="fragmentName is undefined for columnKey '{{- columnKey}}'",CQ="Invalid routing target definition in manifest: '{{- target}}'",IQ="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",OQ="Parsing of XML file failed with error - {{- error}}",RQ="Error during resolving annotation for '{{- control}}'",LQ="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",NQ="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",FQ="The annotation path doesn't exist.",DQ="Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher.",_Q={WRONGMINUI5VERSION:W3,UNKNOWNMINUI5VERSION:K3,NOBASEPATH:X3,NOPAGES:Q3,NOFE:q3,NOGENERICSCHEMA:Y3,NOPAGEFORENTITYSET:z3,NOENTITYSET:J3,NOENTITYTYPE4SET:Z3,NOPRESENTATIONVARIANT:eQ,NOPRESENTATIONVARIANTFORDEFAULTSPV:tQ,NOPRESENTATIONVARIANTFORSPV:nQ,NOANNOTATIONFORPATH:iQ,NOLINEITEMFORPATH:rQ,ENTITYSETNOTFOUND:oQ,CONTEXTPATHCOULDNOTBERESOLVED:aQ,NOLR:sQ,NOALP:cQ,NOTEMPLATE:lQ,ANNOERR:fQ,ANNOTATIONFILE:uQ,COMPONENTNOTDEFINED:pQ,NOROUTING:dQ,NOUIANNOTATIONS:gQ,NOLINEITEMS:mQ,NOCHARTS:hQ,NOLINEITEMANDCHARTS:yQ,NOVISUALIZATIONS:TQ,NOTARGETS:vQ,NOTARGET:bQ,NOROUTINGID:EQ,FLEXERROR:SQ,INVALIDANCHOR:AQ,INVALIDEXTENSION:PQ,NOFRAGMENT:xQ,INVALIDTARGETDEFINITION:CQ,NOID4SECTION:IQ,XMLPARSEFAILURE:OQ,MACROS_ANNOTATION_ERROR:RQ,TYPEERROR:LQ,INCONSISTENTSCHEMA:NQ,UNEXISTING_ANNOTATION_PATH:FQ,ACTION_GROUPS_ARENT_SUPPORTED:DQ};function s_(e){e.addResourceBundle(e.language,"translation",FA)}o(s_,"initI18n");function Qt(e="en"){Q.init({resources:{en:{translation:c_.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
292
|
+
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var eh=require("path");var Bo="core:FragmentDefinition",Zm="sap.ui.table",gS=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:Zm,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:Zm,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Zm,name:"AnalyticalColumn"}]]),t3=new Map([[Et.v2.FE_TEMPLATE_V2_LIST_REPORT,Et.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Et.v2.FE_TEMPLATE_V2_ALP,Et.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Et.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Et.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),H1={type:"element",name:"Text",attributes:{text:"Placeholder"}},n3=JSON.stringify(H1);function i3(e,t){var i;let n=t?(i=e==null?void 0:e[Bo])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o(i3,"getFragmentNamespaces");function B1(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(B1,"getTagName");function th(e,t,n=e){let i=i3(n,!!(t||n!==e));if(t){let r=gS.get(t);return B1(r,i.get(r.namespace))}else{let r=gS.keys();for(let a of r){let s=gS.get(a),l=i?B1(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(th,"getTagNameFromFragmentJSON");function Wu(e,t=e){let n=th(e,void 0,t);return e[n]}o(Wu,"getRootCustomColumnFromFragmentJSON");function r3(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(r3,"addP13nData");function G1(e,t){var l,u,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(g=>g.columnKey===a.columnKey);return s<0?!1:(n=!0,r=r3(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(u=t[s])==null?void 0:u.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}o(G1,"handleFragmentColumn");function o3(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Et.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(eh.sep);if(p[p.length-1]===l){let g=JSON.parse((0,ho.xml2json)(u.fileContent,{compact:!0}));try{let m=th(g[Bo]);m&&(delete g[Bo][m],u.fileContent=(0,ho.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${u.dataSourceUri}, please check content`)}break}}}o(o3,"deleteColumnsFromFragment");function W1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===n3&&(e.splice(n,1),t-=1,t===0));n++);}o(W1,"deleteNumberOfCells");function a3(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+Et.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,ho.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&W1(l.elements[0].elements,u.length),s.fileContent=(0,ho.json2xml)(JSON.stringify(l),{spaces:4});break}}o(a3,"deleteCellsFromFragment");function nh(e,t,n,i){if(i){o3(e,i,t,n);let r=t.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&a3(a,i,n)}}o(nh,"deleteColumnFromFragment");function s3(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(H1)}o(s3,"addNewColumnsInFragment");function c3(e,t){let n=JSON.parse((0,ho.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)s3(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;W1(a,r)}e.fileContent=(0,ho.json2xml)(JSON.stringify(n),{spaces:4})}}o(c3,"updateNonEmptyCellsFragment");function l3(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(eh.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=dS(n):c3(r,n);break}}return i}o(l3,"updateCellsFragment");function f3(e,t,n,i,r){var g;let a,s,l=t.manifest,u=Bn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){ae(r,{severity:Et.LogSeverity.Error,message:Q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=Et.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,a=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,eh.sep))+Et.FRAGMENTNAMEPART+p}if(e.indexOf(Et.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Et.ChangeIndicator.Updated;let m=e.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),h=Bn(l,m),E=n.reduce((b,O)=>O.cellsFragmentName?O:b);E&&E.cellsFragmentName?(h.fragmentName=s=E.cellsFragmentName,h.className=n[0].className,h.type=p.toUpperCase()):v1(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(f3,"exportCustomColumnsToManifest");function u3(e,t,n,i,r){let a=uS(e,t);if(a){let s=JSON.parse((0,ho.xml2json)(a,{compact:!0})),l=Wu(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let u=[n];u.splice(r,0,l),n=u}else n=[l]}return n}o(u3,"insertNewColumnInFragment");function p3(e,t){let n=[];for(let i=0;i<e.length;i++)G1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(p3,"processCustomColumnInArray");function d3(e,t,n){if(e){if(Array.isArray(e))p3(e,t);else if(!G1(e,t)){let r=th(n[Bo]);r&&(delete n[Bo][r],e=void 0)}}return e}o(d3,"maintainExistingColumnInFragment");function g3(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=u3(a,i,n,r,s)}return n}o(g3,"insertNewColumnsInFragment");function m3(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Et.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=pS(i,r);else{let u=JSON.parse((0,ho.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Wu(u[Bo]),l=d3(l,i,u),l=g3(i,n,l,r,u);let g=th(u,r);u[Bo][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,ho.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(m3,"updateColumnsInFragment");function mS(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=f3(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),h=l.fragmentName,E=h.substr(i.length+1),b=E.split(".");h=b[b.length-1]+Et.FRAGMENTNAMEPART+g;let N=p==null?void 0:p.split("."),M=N?N[N.length-1]:null,H=M?M+Et.FRAGMENTNAMEPART+g:null,$=m3(s,h,E,m,r),re=!1;if(p?re=l3(s,H,n):re=!0,!$){let Z={fileContent:pS(m,r),dataSourceUri:u,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!re){let Z={fileContent:dS(n),dataSourceUri:u.replace(h,H),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(mS,"exportCustomColumnsToFragment");var ih=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=t3.get((u=e.component)==null?void 0:u.name);if(!i){let h=(m=(g=(p=e.component)==null?void 0:p.settings)==null?void 0:g.tableSettings)==null?void 0:m.type;h||(h="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(h="AnalyticalTable"),i=h+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var si=te(ce());var hS="/multiEdit",Cc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+si.PropertyName.table:zt(e,t),"getSmartTableControlId");function lh(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}o(lh,"importCreateParameters");function fh(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(fh,"exportCreateParametersFields");function h3(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let u in s)l.indexOf(u)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[u]=s[u],delete s[u]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(h3,"exportVariants");function y3(e,t){t.variants&&(Object.keys(t.variants).length>0?h3(e,t):delete e.variants)}o(y3,"exportQuickVariantSelectionX");function T3(e){var n,i;if(!e||!e.multiEdit)return;let t=JSON.parse(JSON.stringify(e.multiEdit));return t.ignoredFields=(i=(n=e.multiEdit)==null?void 0:n.ignoredFields)==null?void 0:i.split(","),t}o(T3,"importMultiEdit");var rh=class rh{};o(rh,"CreateWithFilters"),y([v({manifest:{path:o(t=>Ue(t)+"/createWithFilters","path")}})],rh.prototype,"strategy",2);var yS=rh,Xl=class Xl{};o(Xl,"MultiEdit"),y([v({manifest:{path:o(t=>uo(t)+hS,"path")}})],Xl.prototype,"enabled",2),y([v({manifest:{path:o(t=>uo(t)+hS,"path")}})],Xl.prototype,"annotationPath",2),y([v({manifest:{path:o(t=>uo(t)+hS,"path"),export:pm}})],Xl.prototype,"ignoredFields",2);var TS=Xl;function Qu(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}o(Qu,"importType");function Yl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Yl,"exportType");function zl(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(zl,"deleteType");var oh=class oh{};o(oh,"DataLoadSettings"),y([v({manifest:{path:o(t=>E1(t),"path")}}),x({since:"1.75.2"})],oh.prototype,"loadDataOnAppLaunch",2);var vS=oh,ah=class ah{};o(ah,"Fields4Dialog"),y([v({manifest:{path:o(t=>uo(t)+"/createWithParameterDialog","path"),export:fh}}),x({since:"1.77.0"})],ah.prototype,"fields",2);var bS=ah,Ku=class Ku{};o(Ku,"QuickVariantSelection"),y([v({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Ku.prototype,"showCounts",2),y([v({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Ku.prototype,"variants",2);var ES=Ku,Ql=class Ql{};o(Ql,"QuickVariantSelectionX"),y([v({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Ql.prototype,"showCounts",2),y([v({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Ql.prototype,"enableAutoBinding",2),y([v({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path"),export:y3}}),x({since:"1.48.0"})],Ql.prototype,"variants",2);var SS=Ql,bi=class bi{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}}),"getDeprecated")}};o(bi,"CommonTableSettings"),y([v({manifest:{key:"createWithParameterDialog",path:o(t=>uo(t),"path"),import:lh}}),x({since:"1.77.0"})],bi.prototype,"createWithParameterDialog",2),y([v({flex:{controlId:zt,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),x({since:"1.38.0"})],bi.prototype,"showTablePersonalisation",2),y([v({flex:{controlId:Cc,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],bi.prototype,"useExportToExcel",2),y([v({flex:{controlId:Cc,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],bi.prototype,"exportType",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],bi.prototype,"quickVariantSelection",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],bi.prototype,"quickVariantSelectionX",2),y([v({manifest:{path:o(t=>uo(t),"path")}}),x({since:"1.38.0"})],bi.prototype,"multiSelect",2),y([v({manifest:{path:o(t=>uo(t),"path")}}),x({since:"1.70.0"})],bi.prototype,"selectAll",2),y([v({manifest:{path:o(t=>uo(t),"path")}}),x({since:"1.70.0"})],bi.prototype,"selectionLimit",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.75.2"})],bi.prototype,"dataLoadSettings",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.42.0"})],bi.prototype,"condensedTableLayout",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.56.0"}),Re("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],bi.prototype,"enableTableFilterInPageVariant",2),y([jt("toolBar")],bi.prototype,"toolBar",2);var ys=bi,Ho=class Ho extends ys{};o(Ho,"ResponsiveTable"),y([v({manifest:{path:o(t=>Ue(t),"path"),import:Qu,export:Yl,delete:zl}}),x({since:"1.50.0"})],Ho.prototype,"type",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],Ho.prototype,"createWithFilters",2),y([v({flex:{controlId:Cc,controlType:o(()=>si.ControlType.Table,"controlType")},generate:Yn}),x({since:"1.52.0"})],Ho.prototype,"popinLayout",2),y([v({flex:{controlId:Cc,controlType:o(()=>si.ControlType.Table,"controlType")}})],Ho.prototype,"includeItemInSelection",2),y([v({manifest:{path:o(t=>uo(t),"path")}}),x({since:"1.77.0"})],Ho.prototype,"inlineDelete",2),y([v({flex:{controlId:Cc,controlType:o(()=>si.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Ho.prototype,"growingThreshold",2),y([v({manifest:{path:o(t=>uo(t),"path"),import:T3}}),x({since:"1.98.0"})],Ho.prototype,"multiEdit",2);var Ic=Ho,sh=class sh extends ys{};o(sh,"TreeTable"),y([v({manifest:{path:o(t=>Ue(t),"path"),import:Qu,export:Yl,delete:zl}}),x({since:"1.50.0"})],sh.prototype,"type",2);var AS=sh,yo=class yo extends ys{};o(yo,"AnalyticalTable"),y([v({manifest:{path:o(t=>Ue(t),"path"),import:Qu,export:Yl,delete:zl}}),x({since:"1.50.0"})],yo.prototype,"type",2),y([v({manifest:{path:o(t=>Ue(t),"path")}})],yo.prototype,"qualifier",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"}),v({manifest:{path:o(t=>Ue(t),"path")}})],yo.prototype,"defaultContentView",2),y([v({manifest:{path:o(t=>Ue(t),"path")}})],yo.prototype,"defaultFilterMode",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],yo.prototype,"contentTitle",2),y([v({manifest:{path:o(t=>Ue(t),"path")}})],yo.prototype,"autoHide",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.78.0"})],yo.prototype,"allFiltersAsInParameters",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],yo.prototype,"createWithFilters",2);var PS=yo,Go=class Go extends ys{};o(Go,"TableALP"),y([v({manifest:{path:o(t=>Ue(t),"path"),import:Qu,export:Yl,delete:zl}}),x({since:"1.50.0"})],Go.prototype,"type",2),y([v({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"qualifier",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"}),v({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"defaultContentView",2),y([v({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"defaultFilterMode",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],Go.prototype,"contentTitle",2),y([v({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"autoHide",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.78.0"})],Go.prototype,"allFiltersAsInParameters",2);var ql=Go,ch=class ch extends ql{};o(ch,"ALPResponsiveTable"),y([v({flex:{controlId:Cc,controlType:o(()=>si.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],ch.prototype,"growingThreshold",2);var xS=ch,RS=class RS extends ql{};o(RS,"ALPGridTable");var CS=RS,LS=class LS extends ql{};o(LS,"ALPAnalyticalTable");var IS=LS,Xu=class Xu extends ys{};o(Xu,"GridTable"),y([v({manifest:{path:o(t=>Ue(t),"path"),import:Qu,export:Yl,delete:zl}}),x({since:"1.50.0"})],Xu.prototype,"type",2),y([v({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],Xu.prototype,"createWithFilters",2);var OS=Xu;var qu=te(ce());var v3=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}action::${qi(i).replace(":2f","::")}`},"getActionButtonId"),b3=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}template::${i}`},"getStandardActionButtonId"),E3=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}${Nm}${i}`},"getStandardFooterActionOPButtonId"),$S=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=zi(n);return`${e}action::${i}::${qi(r)}`},"buildIntentBasedActionId"),S3=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}action::${qi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Ts={controlId:v3,controlType:o(()=>qu.ControlType.Button,"controlType")},Yu={controlId:b3,controlType:o(()=>qu.ControlType.Button,"controlType")},K1={controlId:E3,controlType:o(()=>qu.ControlType.Button,"controlType")},uh={controlId:S3,controlType:o(()=>qu.ControlType.Button,"controlType")},Oc=class Oc{};o(Oc,"Action"),y([v({flex:Ts})],Oc.prototype,"tooltip",2),y([v({flex:Ts})],Oc.prototype,"icon",2),y([v({flex:Ts})],Oc.prototype,"activeIcon",2),y([v({flex:Ts})],Oc.prototype,"type",2);var NS=Oc,Rc=class Rc{};o(Rc,"ToolBarAction"),y([v({flex:Ts})],Rc.prototype,"tooltip",2),y([v({flex:Ts})],Rc.prototype,"icon",2),y([v({flex:Ts})],Rc.prototype,"activeIcon",2),y([v({flex:Ts})],Rc.prototype,"type",2);var FS=Rc,Lc=class Lc{};o(Lc,"FooterAction"),y([v({flex:uh})],Lc.prototype,"tooltip",2),y([v({flex:uh})],Lc.prototype,"icon",2),y([v({flex:uh})],Lc.prototype,"activeIcon",2),y([v({flex:uh})],Lc.prototype,"type",2);var DS=Lc,ph=class ph{};o(ph,"Share"),y([v({flex:Yu})],ph.prototype,"visible",2);var _S=ph,dh=class dh{};o(dh,"ShareOP"),y([v({flex:Yu})],dh.prototype,"visible",2);var VS=dh,gh=class gh{};o(gh,"UpAndDownNavigationOP"),y([v({flex:Yu})],gh.prototype,"visible",2);var wS=gh,mh=class mh{};o(mh,"SaveAndEditOP"),y([v({flex:K1,generate:gt})],mh.prototype,"visible",2);var MS=mh,hh=class hh{};o(hh,"HeaderActionStandard"),y([v({flex:Yu})],hh.prototype,"visible",2);var kS=hh,yh=class yh{};o(yh,"ObjectPageHeaderActionStandard"),y([v({flex:Yu})],yh.prototype,"visible",2);var US=yh,Th=class Th{};o(Th,"ObjectPageFooterActionStandard"),y([v({flex:K1})],Th.prototype,"visible",2);var jS=Th;var Zu=te(ce());var A3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=zi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),P3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=zi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),x3=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),BS={controlId:A3,controlType:o(()=>Zu.ControlType.TableColumn,"controlType")},zu={controlId:x3,controlType:o(()=>Zu.ControlType.Button,"controlType")},X1={...BS,controlId:P3},vh={...zu,controlId:$S},Ju=class Ju{};o(Ju,"TableColumn"),y([v({flex:{controlId:Yb,controlType:o(()=>Zu.ControlType.TableColumn,"controlType")}})],Ju.prototype,"width",2),y([v({flex:{controlId:Yb,controlType:o(()=>Zu.ControlType.TableColumn,"controlType")},generate:Yn})],Ju.prototype,"hAlign",2);var HS=Ju,Ca=class Ca{};o(Ca,"TableColumnAction"),y([v({flex:BS})],Ca.prototype,"width",2),y([v({flex:BS,generate:Yn})],Ca.prototype,"hAlign",2),y([v({flex:zu})],Ca.prototype,"tooltip",2),y([v({flex:zu})],Ca.prototype,"icon",2),y([v({flex:zu})],Ca.prototype,"activeIcon",2),y([v({flex:zu})],Ca.prototype,"type",2);var bh=Ca,Ia=class Ia extends bh{};o(Ia,"TableColumnActionIntentBased"),y([v({flex:X1})],Ia.prototype,"width",2),y([v({flex:X1,generate:Yn})],Ia.prototype,"hAlign",2),y([v({flex:vh})],Ia.prototype,"tooltip",2),y([v({flex:vh})],Ia.prototype,"icon",2),y([v({flex:vh})],Ia.prototype,"activeIcon",2),y([v({flex:vh})],Ia.prototype,"type",2);var GS=Ia,KS=class KS{};o(KS,"TableCustomColumn");var WS=KS;var QS=class QS{};o(QS,"ToolBar");var XS=QS;var Nc=te(ce());var ep=o(e=>e+Nc.PropertyName.chart,"getSmartChartControlId"),vs=class vs{};o(vs,"ChartSettings"),y([v({flex:{controlId:ep,controlType:o(()=>Nc.ControlType.SmartChart,"controlType")}})],vs.prototype,"showLegendButton",2),y([v({flex:{controlId:ep,controlType:o(()=>Nc.ControlType.SmartChart,"controlType")}})],vs.prototype,"showDownloadButton",2),y([v({flex:{controlId:ep,controlType:o(()=>Nc.ControlType.SmartChart,"controlType")}})],vs.prototype,"showChartTypeSelectionButton",2),y([v({flex:{controlId:ep,controlType:o(()=>Nc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],vs.prototype,"ignoredChartTypes",2),y([v({manifest:{path:o(t=>b1(t),"path")}}),x({since:"1.81.0"})],vs.prototype,"showDataLabel",2);var qS=vs;var Oa=class Oa{};o(Oa,"KPISettings"),y([v({manifest:{path:o((t,n,i)=>Ac(t,i),"path")}})],Oa.prototype,"model",2),y([v({manifest:{path:o((t,n,i)=>Ac(t,i),"path")}})],Oa.prototype,"entitySet",2),y([v({manifest:{path:o((t,n,i)=>Ac(t,i),"path")}})],Oa.prototype,"qualifier",2),y([v({manifest:{path:o((t,n,i)=>Ac(t,i),"path")}})],Oa.prototype,"filterable",2),y([v({manifest:{path:o((t,n,i)=>Ac(t,i),"path")}})],Oa.prototype,"detailNavigation",2),y([v({manifest:{path:o((t,n,i)=>Ac(t,i),"path")}})],Oa.prototype,"groupId",2);var YS=Oa;var Q1=te(ce());var C3=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",zt(e,n)},"getAvatarControlId"),bs=class bs{};o(bs,"ObjectPageHeader"),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.46.0"})],bs.prototype,"showRelatedApps",2),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.46.0"})],bs.prototype,"editableHeaderContent",2),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.48.0"})],bs.prototype,"simpleHeaderFacets",2),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.48.0"}),Re("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],bs.prototype,"showHeaderAsCarouselOnDesktop",2),y([v({flex:{controlId:C3,controlType:o(()=>Q1.ControlType.Avatar,"controlType")},generate:gt})],bs.prototype,"displayShape",2);var zS=bs;var Eh=te(ce());var I3=o((e,t,n,i)=>{if(i()===Eh.ControlType.Button||i()===Eh.ControlType.HeaderAction){let r=n[2];return`${e}action::${qi(r)}`}return zt(e,t)},"getActionButtonId"),tp={controlId:I3,controlType:o(()=>Eh.ControlType.HeaderAction,"controlType")},Es=class Es{};o(Es,"ObjectPageHeaderAction"),y([v({flex:tp,generate:gt})],Es.prototype,"visible",2),y([v({flex:tp})],Es.prototype,"tooltip",2),y([v({flex:tp})],Es.prototype,"icon",2),y([v({flex:tp})],Es.prototype,"activeIcon",2),y([v({flex:tp})],Es.prototype,"type",2);var JS=Es;var np=te(ce());var Ih="header::headerEditable::",O3=o((e,t,n,i,r)=>`${e}${Ih}${r}`,"getDataPointHeaderSectionId"),R3=o((e,t,n,i,r)=>`${e}${Ih}${r}::ContactAddress`,"getAddressHeaderSectionId"),L3=o((e,t,n,i,r)=>`${e}${Ih}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),q1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(np.FACETTITLEPREFIX)?r.split(np.FACETTITLEPREFIX)[1]:a;return`${e}${Ih}${s}::Form`},"getFormHeaderSectionId"),ip={controlType:o(()=>np.ControlType.ObjectPageHeaderSection,"controlType")},Sh=class Sh{};o(Sh,"CommonHeaderFacetSettings"),y([v({flex:{...ip,controlId:q1},generate:gt})],Sh.prototype,"visible",2);var Fc=Sh,Ah=class Ah extends Fc{};o(Ah,"ObjectPageHeaderSectionForm"),y([v({flex:{...ip,controlId:q1}})],Ah.prototype,"visible",2);var ZS=Ah,Ph=class Ph extends Fc{};o(Ph,"ObjectPageHeaderSectionChart"),y([v({flex:{...ip,controlId:L3}})],Ph.prototype,"visible",2);var eA=Ph,xh=class xh extends Fc{};o(xh,"ObjectPageHeaderSectionDataPoint"),y([v({flex:{...ip,controlId:O3}})],xh.prototype,"visible",2);var tA=xh,Ch=class Ch extends Fc{};o(Ch,"ObjectPageHeaderSectionAddress"),y([v({flex:{...ip,controlId:R3}})],Ch.prototype,"visible",2);var nA=Ch,rA=class rA{};o(rA,"HeaderSections");var iA=rA;var aA=te(ce());var N3=o((e,t,n,i)=>{if(i()===aA.ControlType.Button){let{actionId:r}=zi(n);return`${e}action::${qi(r)}::Determining`}return zt(e,t)},"getFooterActionButtonId"),rp={controlId:N3,controlType:o(()=>aA.ControlType.Button,"controlType")},Ss=class Ss{};o(Ss,"ObjectPageFooterAction"),y([v({flex:rp,generate:gt})],Ss.prototype,"visible",2),y([v({flex:rp})],Ss.prototype,"tooltip",2),y([v({flex:rp})],Ss.prototype,"icon",2),y([v({flex:rp})],Ss.prototype,"activeIcon",2),y([v({flex:rp})],Ss.prototype,"type",2);var oA=Ss;var op=te(ce());var Oh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",zt(e,n)},"getControlId"),Dc=class Dc{};o(Dc,"ObjectPageLayout"),y([v({flex:{controlId:Oh,controlType:o(()=>op.ControlType.ObjectPageLayout,"controlType")},generate:gt})],Dc.prototype,"showHeaderContent",2),y([v({flex:{controlId:Oh,controlType:o(()=>op.ControlType.ObjectPageLayout,"controlType")}})],Dc.prototype,"showAnchorBar",2),y([v({flex:{controlId:Oh,controlType:o(()=>op.ControlType.ObjectPageLayout,"controlType")}})],Dc.prototype,"useIconTabBar",2),y([v({flex:{controlId:Oh,controlType:o(()=>op.ControlType.ObjectPageLayout,"controlType")}}),x({since:"1.34.0"})],Dc.prototype,"alwaysShowContentHeader",2);var sA=Dc;var Y1=te(ce());var _c=class _c{};o(_c,"BaseCustomSection"),y([v({manifest:{path:xa,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),x({since:"1.52.0"})],_c.prototype,"relatedFacet",2),y([v({manifest:{path:xa,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),x({since:"1.52.0"})],_c.prototype,"relativePosition",2),y([v({manifest:{path:o((t,n,i)=>xa(t,{},i,Y1.ManifestSection.generic),"path")}}),x({since:"1.52.0"})],_c.prototype,"title",2),y([v({manifest:{path:xa}}),x({since:"1.52.0"})],_c.prototype,"className",2);var cp=_c,ap=class ap extends cp{};o(ap,"ObjectPageCustomSectionFragment"),y([v({manifest:{path:xa}}),x({since:"1.52.0"})],ap.prototype,"fragmentName",2),y([v({manifest:{path:xa}}),x({since:"1.52.0"})],ap.prototype,"type",2);var lp=ap,sp=class sp extends cp{};o(sp,"ObjectPageCustomSectionView"),y([v({manifest:{path:xa}}),x({since:"1.52.0"})],sp.prototype,"viewName",2),y([v({manifest:{path:xa}}),x({since:"1.52.0"})],sp.prototype,"type",2);var fp=sp;var er=te(ce());var z1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),er.DefinitionName.Table];return zt(e,s)},"getTableSectionControlId"),J1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"FormGroup"];return zt(e,s)},"getFormSectionControlId"),Z1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Chart"];return zt(e,s)},"getChartSectionControlId"),Vc=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Section"];return zt(e,s)},"getSectionControlId"),e_=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"SubSection"];return zt(e,s)},"getSubSectionControlId"),t_=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"ContactsList"];return zt(e,s)},"getContactSubSectionControlId"),Rh=class Rh{};o(Rh,"ObjectPageSectionV2"),y([v({flex:{controlId:Vc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:gt})],Rh.prototype,"visible",2);var cA=Rh,Lh=class Lh{};o(Lh,"ObjectPageSectionFormV2"),y([v({flex:{controlId:Vc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:gt})],Lh.prototype,"visible",2);var lA=Lh,Nh=class Nh{};o(Nh,"ObjectPageSectionChartV2"),y([v({flex:{controlId:Vc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:gt})],Nh.prototype,"visible",2);var fA=Nh,Fh=class Fh{};o(Fh,"ObjectPageSectionTableV2"),y([v({flex:{controlId:Vc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:gt})],Fh.prototype,"visible",2);var uA=Fh,Dh=class Dh{};o(Dh,"ObjectPageSectionAddressV2"),y([v({flex:{controlId:Vc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:gt})],Dh.prototype,"visible",2);var pA=Dh,_h=class _h{};o(_h,"ObjectPageSectionContactV2"),y([v({flex:{controlId:Vc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:gt})],_h.prototype,"visible",2);var dA=_h,Vh=class Vh{};o(Vh,"ObjectPageSubSectionV2"),y([v({flex:{controlId:e_,controlType:o(()=>er.ControlType.SubSection,"controlType")},generate:gt})],Vh.prototype,"visible",2);var gA=Vh,wh=class wh{};o(wh,"ObjectPageSubSectionFormV2"),y([v({flex:{controlId:J1,controlType:o(()=>er.ControlType.Group,"controlType")},generate:gt})],wh.prototype,"visible",2);var mA=wh,Mh=class Mh{};o(Mh,"ObjectPageSubSectionChartV2"),y([v({flex:{controlId:Z1,controlType:o(()=>er.ControlType.SmartChart,"controlType")},generate:gt})],Mh.prototype,"visible",2);var hA=Mh,kh=class kh{};o(kh,"ObjectPageSubSectionContactV2"),y([v({flex:{controlId:t_,controlType:o(()=>er.ControlType.SubSection,"controlType")},generate:gt})],kh.prototype,"visible",2);var yA=kh,Uh=class Uh{};o(Uh,"ObjectPageSubSectionTableV2"),y([v({flex:{controlId:z1,controlType:o(()=>er.ControlType.SmartTable,"controlType")},generate:gt})],Uh.prototype,"visible",2);var TA=Uh;var jh=class jh{};o(jh,"ObjectPageChart"),y([v({manifest:{path:S1}}),x({since:"1.78.0"})],jh.prototype,"variantManagement",2);var vA=jh,$h=class $h{};o($h,"GlobalChartSettings"),y([v({manifest:{path:o(t=>Ni(t)+"/chartSettings","path")}}),x({since:"1.78.0"})],$h.prototype,"variantManagement",2);var bA=$h;var vr=te(ce());var wc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=vr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=qn(a[0],r),zt(e,a)},"getSmartTableControlId"),up=class up{};o(up,"QuickVariantSelectionOP"),y([v({manifest:{path:o((t,n,i)=>po(t,n,i)+vr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],up.prototype,"showCounts",2),y([v({manifest:{path:o((t,n,i)=>po(t,n,i)+vr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],up.prototype,"variants",2);var EA=up,Bh=class Bh{};o(Bh,"Fields4DialogOP"),y([v({manifest:{path:o((t,n,i)=>Wr(t,n,i)+"/createWithParameterDialog","path"),export:fh}}),x({since:"1.77.0"})],Bh.prototype,"fields",2);var SA=Bh,Ei=class Ei{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(Ei,"CommonTableSettingsForSections"),y([v({manifest:{key:"createWithParameterDialog",path:Wr,import:lh}}),x({since:"1.77.0"})],Ei.prototype,"createWithParameterDialog",2),y([v({flex:{controlId:wc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.28.0"})],Ei.prototype,"editable",2),y([v({flex:{controlId:wc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.95.0"}),Re("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Ei.prototype,"showPasteButton",2),y([v({manifest:{path:Wr}}),x({since:"1.54.0"})],Ei.prototype,"multiSelect",2),y([v({manifest:{path:Wr}}),x({since:"1.70.0"})],Ei.prototype,"selectAll",2),y([v({manifest:{path:Wr}}),x({since:"1.70.0"})],Ei.prototype,"selectionLimit",2),y([v({manifest:{path:po}}),x({since:"1.63.0"})],Ei.prototype,"quickVariantSelection",2),y([v({flex:{controlId:wc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],Ei.prototype,"useExportToExcel",2),y([v({flex:{controlId:wc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],Ei.prototype,"exportType",2),y([v({manifest:{path:po}}),x({since:"1.48.5"}),Re("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Ei.prototype,"createMode",2),y([v({manifest:{path:po}}),x({since:"1.61.0"})],Ei.prototype,"disableDefaultInlineCreateSort",2),y([v({manifest:{path:Wr}}),x({since:"1.78.0"})],Ei.prototype,"variantManagement",2),y([jt("toolBar")],Ei.prototype,"toolBar",2);var Mc=Ei,As=class As extends Mc{};o(As,"ObjectPageResponsiveTable"),y([v({manifest:{path:Wr}})],As.prototype,"type",2),y([v({flex:{controlId:wc,controlType:o(()=>vr.ControlType.Table,"controlType")}})],As.prototype,"includeItemInSelection",2),y([v({flex:{controlId:wc,controlType:o(()=>vr.ControlType.Table,"controlType")},generate:gt}),x({since:"1.52.0"})],As.prototype,"popinLayout",2),y([v({manifest:{path:Wr}}),x({since:"1.77.0"})],As.prototype,"inlineDelete",2),y([v({flex:{controlId:wc,controlType:o(()=>vr.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],As.prototype,"growingThreshold",2);var kc=As,pp=class pp extends Mc{};o(pp,"ObjectPageAnalyticalTable"),y([v({manifest:{path:Wr}})],pp.prototype,"type",2),y([v({manifest:{path:po}}),x({since:"1.67.0"})],pp.prototype,"condensedTableLayout",2);var AA=pp,dp=class dp extends Mc{};o(dp,"ObjectPageGridTable"),y([v({manifest:{path:Wr}})],dp.prototype,"type",2),y([v({manifest:{path:po}}),x({since:"1.67.0"})],dp.prototype,"condensedTableLayout",2);var PA=dp,gp=class gp extends Mc{};o(gp,"ObjectPageTreeTable"),y([v({manifest:{path:Wr}})],gp.prototype,"type",2),y([v({manifest:{path:po}}),x({since:"1.67.0"})],gp.prototype,"condensedTableLayout",2);var xA=gp,Ra=class Ra{};o(Ra,"GlobalTableSettings"),y([v({manifest:{path:Pc}}),x({since:"1.70.0"})],Ra.prototype,"selectAll",2),y([v({manifest:{path:Pc}}),x({since:"1.78.0"})],Ra.prototype,"variantManagement",2),y([v({manifest:{path:Pc}})],Ra.prototype,"type",2),y([v({manifest:{path:Pc}}),x({since:"1.54.0"})],Ra.prototype,"multiSelect",2),y([v({manifest:{path:Pc}}),x({since:"1.67.0"})],Ra.prototype,"condensedTableLayout",2),y([v({manifest:{path:Pc}}),x({since:"1.77.0"})],Ra.prototype,"inlineDelete",2);var CA=Ra;var n_=te(ce());var F3=o((e,t,n,i,r)=>{let{actionId:a}=zi(n),s=qn(n[1],r);return`${e}${s}::action::${qi(a).replace(":2f","::")}`},"getActionButtonId"),mp={controlId:F3,controlType:o(()=>n_.ControlType.Button,"controlType")},Ps=class Ps{};o(Ps,"ObjectPageToolBarAction"),y([v({flex:mp,generate:gt})],Ps.prototype,"visible",2),y([v({flex:mp})],Ps.prototype,"tooltip",2),y([v({flex:mp})],Ps.prototype,"icon",2),y([v({flex:mp})],Ps.prototype,"activeIcon",2),y([v({flex:mp})],Ps.prototype,"type",2);var IA=Ps;var Fi=te(ce());function RA(e,t,n,i){if(t.controlType===Fi.ControlType.TableColumn||t.controlType===Fi.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===Fi.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Fi.VOCWITHCOLONS),u=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(u!=null&&u.startsWith("DataField")?u=u==null?void 0:u.replace("/",":2f"):u=u==null?void 0:u.replace("/","_"),u!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(RA,"addFlexChangeToConfigTableColumn");function Hh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Fi.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(Hh,"addFlexChangeToConfigTable");function Gh(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,h,E;let s=yr(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(g=s.content)!=null&&g.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},u;if(s.controlType===Fi.ControlType.TableColumn)u=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===Fi.v2.TableTypeV2.ResponsiveTable)&&!((h=l.controlId)!=null&&h.includes(Fi.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Fi.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;u=(E=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:E.properties[l.propertyId]}u&&RA(t.table,l,n,i)})}o(Gh,"importFlexChangesOfColumn");function xs(e){return e.replace("/","::")}o(xs,"convertActionKey");function LA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(LA,"convertSelector");function D3(e,t,n,i){var a,s,l,u;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((u=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:u.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}o(D3,"addSmartFilterBarFlex");function _3(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=qi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let u=a.split(":::"),p=u.find(h=>h.startsWith("sSemanticObject")),g=u.find(h=>h.startsWith("sAction")),m=g.split("sAction::")[1].replace(":2f","::");if(p){let h=`${p.split("::")[1]}::${m}`,E=`${u[0]}:::${p}:::${g}`;i.set(h,r),i.set(r,E)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(_3,"filterActions");function V3(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(V3,"addColumnActionConfigPart");function w3(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}o(w3,"getActionId");function M3(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var u,p;let l=_3(s.name,i);if(l.has(s.id)){let g=l.get(s.id),m=(u=g.split("<")[1])==null?void 0:u.split(">")[0];s.name==="TableColumnAction"&&V3(s,e,m);let h=s.configPart[m];((p=i.definitions[g])==null?void 0:p.properties[t])&&h&&(h[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(M3,"addActionFlex");function k3(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=Dn(e[lt.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[lt.PropertyName.chart],t):e[lt.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(k3,"addSmartChartFlex");function Wh(e,t,n,i){var r,a;try{let s=yr(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(lt.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(lt.PageTypeV2.AnalyticalListPage))switch(s.controlId=LA(s.controlId),s.controlType){case lt.ControlType.SmartFilterBar:{D3(e,l,s,n);break}case lt.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case lt.ControlType.Button:{let u=w3(s);u&&M3(e,l,s,n,u);break}case lt.ControlType.SmartChart:{k3(e,l,s,n);break}default:break}}catch(s){ae(i,{severity:lt.LogSeverity.Error,message:Q.t("FLEXERROR")},...s)}}o(Wh,"addFlex");function U3(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let r in i.tableSettings)i[r]=i.tableSettings[r];delete i.tableSettings}}}o(U3,"adjustQuickVariantSelectionX");function _n(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=Dn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=Bn(t,g),Nl(p,s,u,e),Em(l,s,g,r)}U3(u,e)}}o(_n,"transferSettingsOfObject");function Kh(e,t){var r,a,s,l,u,p,g,m,h;let n=e[lt.ManifestSection.generic].pages[t],i=lt.v2.TableTypeV2.ResponsiveTable;return(r=e[lt.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[lt.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[lt.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.tableSettings)==null?void 0:g.type)||((m=n.component)==null?void 0:m.settings.tableType):((h=n.component)==null?void 0:h.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=lt.v2.TableTypeV2.AnalyticalTable),i}o(Kh,"determineTableType");function i_(e,t,n,i,r,a,s){var l,u;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,g=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let h={...(l=e._attributes)!=null&&l.id?{id:(u=e._attributes)==null?void 0:u.id}:{},...m?{text:m}:{},...g,...g.columnKey?{columnKey:g.columnKey}:{},...g.columnIndex?{columnIndex:Number(g.columnIndex)}:{},...g.leadingProperty?{leadingProperty:g.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(h.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(h)}}o(i_,"evaluateFragmentColumn");function j3(e,t,n,i){let r;if(e===lt.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===lt.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(j3,"determineCellsFragmentName");function $3(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,r_.xml2json)(e[0].fileContent,{compact:!0}))[Bo];try{let g=Wu(p);if(g)if((l=t[lt.PropertyName.table])!=null&&l.columns||(t[lt.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)i_(m,n,i,r,t,a,s);else i_(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o($3,"analyzeFilteredFragments");function B3(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[u,p]=l,g=l[2];if(u&&p===t){let m=e[s].type?e[s].type.toLowerCase():"xml",h=e[s].fragmentName;if(!h)continue;let E=j3(u,e,p,g),b=h.split(".");h=b[b.length-1]+lt.FRAGMENTNAMEPART+m;let O=i.fragments.filter(N=>N.dataSourceUri.endsWith(h));try{$3(O,n,e,s,g,u,E)}catch(N){i.logger.error(N.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(N=>{Gh(i,n,N.id,N,r)})}}}o(B3,"processViewExtensions");function Jl(e,t,n,i,r,a="LineItems"){var s,l,u;if(t.fragments&&(u=(l=(s=t.manifest[lt.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&u["sap.ui.viewExtensions"]){let p=lt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),g=t.manifest[lt.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!g)return;let m=r&&r.target?r.target:n.entitySet;B3(g,m,e,t,a)}}o(Jl,"addFragments");function Xh(e,t,n){if(e.header={actions:{}},n[lt.DefinitionName.HeaderActionsStandard]){let i=n[lt.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(lt.PageTypeV2.ListReport,r,{})}}o(Xh,"importHeaderActions");var Is=te(ce());var hp="sap.suite.ui.generic.template.ListReport";var o_="sap.suite.ui.generic.template.ListReport.view.ListReport";var Yh=te(ce());var Qh=te(ce());function Zl(e,t=!0,n=[]){let i=[Qh.ManifestSection.generic];return e.forEach(function(r){i.push("pages"),i.push(r)}),t&&(i.push("component"),i.push("settings")),i.concat(n)}o(Zl,"getManifestPathFromPagePath");function Wo(e,t,n){let i=e,r=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:r,value:r&&n?i[n]:void 0,parent:r?i:void 0}}o(Wo,"getManifestPropertyByPath");function La(e){return e!==null&&typeof e=="object"}o(La,"isDefinition");function qh(e,t,n,i,r,a,s){let l=n[Qh.SchemaTag.conversionExit],u=l==null?void 0:l.name,p=t?t(u):void 0;if(!p)return i;let g=l.params;return e?p.appToConfig(i,g,r??[],n,s):p.configToApp(i,g,r??[],n,a)}o(qh,"executeConversionExit");function Uc(e,t,n,i="string",r=!1){let a;if(e===void 0)a=r;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=r:a=typeof s!==i||s===null&&r}return a&&ae(n,{severity:Yh.LogSeverity.Error,message:Q.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}o(Uc,"hasPropertyTypeError");var $oe=Symbol("Property is suppressed without explanation");var $t=te(ce());function jc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(ma((r=s.component)==null?void 0:r.name)===$t.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=jc(s.pages,t,n),i))return n.unshift(a),i}}o(jc,"findObjectPageV2");function ef(e,t){var n;for(let i in e){let r=e[i];if(ma((n=r.component)==null?void 0:n.name)===$t.PageTypeV2.ListReport)return t.push(i),r}}o(ef,"findListReportPageV2");function tf(e){if(!e.manifest[$t.ManifestSection.generic]){ae(e.logger,{severity:$t.LogSeverity.Error,message:Q.t("NOFE"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}let t=e.manifest[$t.ManifestSection.generic].pages;if(!t){ae(e.logger,{severity:$t.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}return t}o(tf,"getV2Pages");function nf(e,t,n){var i;if(!e){ae(t,{severity:$t.LogSeverity.Error,message:Q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;ae(t,{severity:$t.LogSeverity.Error,message:Q.t("NOENTITYSET",{pageName:r}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}}o(nf,"checkV2Page");function rf(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),ma((i=a.component)==null?void 0:i.name)===$t.PageTypeV2.AnalyticalListPage)return a}ae(n,{severity:$t.LogSeverity.Error,message:Q.t("NOALP"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}o(rf,"findAnalyticalListPage");function NA(e,t){let n=e.split("|");return $t.v2.SectionPosition[n[0]]&&n[1]===t}o(NA,"isAssociatedCustomSection");function a_(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${$t.v2.SAPUI5_VIEW_EXTENSION}/${$t.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)NA(r,t)&&(i[r]=n[r]);return i}o(a_,"findCustomSectionExtensions");function H3(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(H3,"removeEmptySettingsOfFooter");function G3(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(G3,"removeEmptySettingsOfFilterBar");function W3(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(W3,"removeEmptySettingsOfToolBar");function zh(e){W3(e),G3(e),H3(e)}o(zh,"removeEmptySettings");var qt=te(ce());var c_=te(ce());var FA={};sc(FA,{ACTION_GROUPS_ARENT_SUPPORTED:()=>_Q,ANNOERR:()=>uQ,ANNOTATIONFILE:()=>pQ,COMPONENTNOTDEFINED:()=>dQ,CONTEXTPATHCOULDNOTBERESOLVED:()=>sQ,ENTITYSETNOTFOUND:()=>aQ,FLEXERROR:()=>AQ,INCONSISTENTSCHEMA:()=>FQ,INVALIDANCHOR:()=>PQ,INVALIDEXTENSION:()=>xQ,INVALIDTARGETDEFINITION:()=>IQ,MACROS_ANNOTATION_ERROR:()=>LQ,NOALP:()=>lQ,NOANNOTATIONFORPATH:()=>rQ,NOBASEPATH:()=>Q3,NOCHARTS:()=>yQ,NOENTITYSET:()=>Z3,NOENTITYTYPE4SET:()=>eQ,NOFE:()=>Y3,NOFRAGMENT:()=>CQ,NOGENERICSCHEMA:()=>z3,NOID4SECTION:()=>OQ,NOLINEITEMANDCHARTS:()=>TQ,NOLINEITEMFORPATH:()=>oQ,NOLINEITEMS:()=>hQ,NOLR:()=>cQ,NOPAGEFORENTITYSET:()=>J3,NOPAGES:()=>q3,NOPRESENTATIONVARIANT:()=>tQ,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>nQ,NOPRESENTATIONVARIANTFORSPV:()=>iQ,NOROUTING:()=>gQ,NOROUTINGID:()=>SQ,NOTARGET:()=>EQ,NOTARGETS:()=>bQ,NOTEMPLATE:()=>fQ,NOUIANNOTATIONS:()=>mQ,NOVISUALIZATIONS:()=>vQ,TYPEERROR:()=>NQ,UNEXISTING_ANNOTATION_PATH:()=>DQ,UNKNOWNMINUI5VERSION:()=>X3,WRONGMINUI5VERSION:()=>K3,XMLPARSEFAILURE:()=>RQ,default:()=>VQ});var K3="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",X3="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",Q3="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",q3="No pages found in manifest for app with id '{{- appId}}'",Y3="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",z3="No generic schema found while generating page schema for {{- pageType}}",J3="No page found in manifest for entitySet '{{- entitySet}}'",Z3="No entitySet defined for page '{{- pageName}}'",eQ="No entityType could be found for the given entity set '{{- entitySetName}}'",tQ="No PresentationVariant defined for '{{- key}}'",nQ="No PresentationVariant found for default SelectionPresentationVariant",iQ="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",rQ="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",oQ="No line item annotation found for path '{{- annotationPath}}'",aQ="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",sQ="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",cQ="No page found in manifest for list report",lQ="No page found in manifest for analytical list page",fQ="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",uQ="Error while parsing annotation files",pQ="Annotation file: '{{- file}}'",dQ="Component name is not defined for page '{{- pageName}}'",gQ="Incomplete manifest definition: no routing defined",mQ="No UI Annotation defined for entity type '{{- entityType }}'",hQ="UI.LineItem annotation has not been defined",yQ="UI.Chart annotation has not been defined",TQ="Neither UI.LineItem nor UI.Chart annotation has been defined",vQ="Empty Collection for Visualizations",bQ="Incomplete manifest definition: no targets defined",EQ="Invalid reference: annotation target '{{- target}}' not found",SQ="No page found in manifest for routingId '{{- routingId}}'",AQ="Error while parsing flex change",PQ="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",xQ="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",CQ="fragmentName is undefined for columnKey '{{- columnKey}}'",IQ="Invalid routing target definition in manifest: '{{- target}}'",OQ="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",RQ="Parsing of XML file failed with error - {{- error}}",LQ="Error during resolving annotation for '{{- control}}'",NQ="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",FQ="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",DQ="The annotation path doesn't exist.",_Q="Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher.",VQ={WRONGMINUI5VERSION:K3,UNKNOWNMINUI5VERSION:X3,NOBASEPATH:Q3,NOPAGES:q3,NOFE:Y3,NOGENERICSCHEMA:z3,NOPAGEFORENTITYSET:J3,NOENTITYSET:Z3,NOENTITYTYPE4SET:eQ,NOPRESENTATIONVARIANT:tQ,NOPRESENTATIONVARIANTFORDEFAULTSPV:nQ,NOPRESENTATIONVARIANTFORSPV:iQ,NOANNOTATIONFORPATH:rQ,NOLINEITEMFORPATH:oQ,ENTITYSETNOTFOUND:aQ,CONTEXTPATHCOULDNOTBERESOLVED:sQ,NOLR:cQ,NOALP:lQ,NOTEMPLATE:fQ,ANNOERR:uQ,ANNOTATIONFILE:pQ,COMPONENTNOTDEFINED:dQ,NOROUTING:gQ,NOUIANNOTATIONS:mQ,NOLINEITEMS:hQ,NOCHARTS:yQ,NOLINEITEMANDCHARTS:TQ,NOVISUALIZATIONS:vQ,NOTARGETS:bQ,NOTARGET:EQ,NOROUTINGID:SQ,FLEXERROR:AQ,INVALIDANCHOR:PQ,INVALIDEXTENSION:xQ,NOFRAGMENT:CQ,INVALIDTARGETDEFINITION:IQ,NOID4SECTION:OQ,XMLPARSEFAILURE:RQ,MACROS_ANNOTATION_ERROR:LQ,TYPEERROR:NQ,INCONSISTENTSCHEMA:FQ,UNEXISTING_ANNOTATION_PATH:DQ,ACTION_GROUPS_ARENT_SUPPORTED:_Q};function s_(e){e.addResourceBundle(e.language,"translation",FA)}o(s_,"initI18n");function Qt(e="en"){Q.init({resources:{en:{translation:c_.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
293
293
|
|
|
294
|
-
`}),s_(Q)}o(Qt,"initI18n");var _A={};sc(_A,{AnalyticalListPage:()=>Xr,ListReport:()=>To,ObjectPage:()=>ci,OverviewPage:()=>Jt,exportFilterSettings:()=>u_,importDateSettingsOVP:()=>l_,importFilterSettings:()=>f_});var Jh=te(ce());var Xr=class{};o(Xr,"AnalyticalListPage"),y([v({flex:{controlId:ym,controlType:o(()=>Jh.ControlType.DynamicPage,"controlType")}})],Xr.prototype,"fitContent",2),y([jt("table")],Xr.prototype,"table",2),y([jt("template::SmartFilterBar")],Xr.prototype,"filterBar",2),y([jt("analyticalListPageChart")],Xr.prototype,"chart",2),y([jt("analyticalListFooter")],Xr.prototype,"footer",2),Xr=y([Ji({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Jh.v2.FE_TEMPLATE_V2_ALP})],Xr);var yp=te(ce());var To=class{};o(To,"ListReport"),y([v({flex:{controlId:ym,controlType:o(()=>yp.ControlType.DynamicPage,"controlType")}})],To.prototype,"fitContent",2),y([jt("listReportFilter")],To.prototype,"filterBar",2),y([jt("listReport")],To.prototype,"table",2),y([jt("listReportFooter")],To.prototype,"footer",2),To=y([Ji({id:yp.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:yp.v2.FE_TEMPLATE_V2_LIST_REPORT})],To);var DA=te(ce());var ci=class{};o(ci,"ObjectPage"),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.52.0"})],ci.prototype,"showConfirmationOnDraftActivate",2),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.52.1"})],ci.prototype,"hideChevronForUnauthorizedExtNav",2),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.48.0"})],ci.prototype,"allowDeepLinking",2),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.52.0"})],ci.prototype,"navToListOnSave",2),y([jt("header")],ci.prototype,"header",2),y([jt("sections")],ci.prototype,"sections",2),y([jt("layout")],ci.prototype,"layout",2),y([v({manifest:{path:o(t=>Wm(t),"path")}}),x({since:"1.77.0"})],ci.prototype,"defaultLayoutTypeIfExternalNavigation",2),y([v({manifest:{path:o(t=>Ni(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),x({since:"1.78.0"})],ci.prototype,"globalChartSettings",2),y([v({manifest:{path:o(t=>Ni(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:dc}}),x({since:"1.71.0"})],ci.prototype,"globalTableSettings",2),ci=y([Ji({id:DA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:DA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ci);function VQ(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(VQ,"importDateSettingsFieldsOVP");function l_(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&&VQ(e,t),t}o(l_,"importDateSettingsOVP");function f_(e){let t={};return t.dateSettings=l_(e.filterSettings),t}o(f_,"importFilterSettings");function wQ(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(wQ,"exportFilterFields");function u_(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&&wQ(t,n,e))}o(u_,"exportFilterSettings");var Jt=class{};o(Jt,"OverviewPage"),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"globalFilterModel",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"globalFilterEntityType",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"globalFilterEntitySet",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"showBasicSearch",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"disableErrorPage",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"smartVariantRequired",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"bHeaderExpanded",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"containerLayout",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"showDateInRelativeFormat",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"disableTableCardFlexibility",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"enableLiveFilter",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"enableLazyRendering",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"refreshStrategyOnAppRestore",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"considerAnalyticalParameters",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"refreshIntervalInMinutes",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"useDateRangeType",2),y([v({manifest:{path:o(()=>bn(),"path"),import:f_,export:u_}}),x({since:"1.80.0"})],Jt.prototype,"filterSettings",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"dataLoadSettings",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"resizableLayout",2),Jt=y([Ji({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Jt);var VA=class VA{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(VA,"MetadataFactory");var of=VA;var Jn=te(ce());var MQ={},kQ={Table:Ic,ResponsiveTableWithMultiSelect:Ic,ResponsiveTableWithInlineDelete:Ic},UQ={[Jn.v2.CardSettingsType.listCardSettings]:Hl,[Jn.v2.CardSettingsType.listCardSettingsv4]:Hl,[Jn.v2.CardSettingsType.analyticalCardSettings]:Gl,[Jn.v2.CardSettingsType.analyticalCardSettingsv4]:Gl,[Jn.v2.CardSettingsType.stackCardSettings]:ku,[Jn.v2.CardSettingsType.linkListCardSettings]:Uu,[Jn.v2.CardSettingsType.tableCardSettings]:Wl,[Jn.v2.CardSettingsType.tableCardSettingsv4]:Wl},jQ={[Jn.SAPUI5_VIEW_CLASS]:fp,[Jn.SAPUI5_FRAGMENT_CLASS]:lp,Table:kc,ObjectPageResponsiveTableWithMultiSelect:kc,ObjectPageResponsiveTableWithInlineDelete:kc},$Q={[Jn.PageTypeV2.AnalyticalListPage]:MQ,[Jn.PageTypeV2.ListReport]:kQ,[Jn.PageTypeV2.ObjectPage]:jQ,[Jn.PageTypeV2.OverviewPage]:UQ},wA=class wA extends of{constructor(){super(OA,_A,$Q)}};o(wA,"MetadataInstanceFactoryV2");var Di=wA;function BQ(e,t,n,i,r){if(e.filterBar=t.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ListReportFilterBar,e.filterBar),_n(e.filterBar,n.manifest,i[qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),_n(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(BQ,"importFilterBar");function MA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=yr(s),u={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(g=l.content)!=null&&g.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};Hh(n.table,u,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&Gh(e,n,s)}o(MA,"importFlexChangesOfTableAndColumns");function HQ(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Rm]&&t[Lm]&&(a=JSON.parse(JSON.stringify(t[Rm])),a.properties={...a.properties,...t[Lm].properties}),_n(n.table,i.manifest,a,r,i.logger),MA(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&&ae(i.logger,{severity:qt.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}o(HQ,"importTable");function GQ(e,t,n,i){let r=e.jsonSchema.definitions,a=Kh(e.manifest,i);if(t.table=n.createInstance(qt.PageTypeV2.ListReport,a,t.table),Xh(t,n,r),HQ(a,r,t,e,i),t.table.toolBar=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,r[qt.DefinitionName.ToolBarLR],i,e.logger),r[qt.DefinitionName.ActionsLR])for(let l in r[qt.DefinitionName.ActionsLR].properties){let u=xs(l);t.table.toolBar.actions[u]=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.Action),_n(t.table.toolBar.actions[u],e.manifest,r[qt.DefinitionName.Action],i,e.logger)}BQ(t,n,e,r,i),t.footer={actions:{}};let s=r[qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=xs(l);t.footer.actions[u]=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.FooterAction),_n(t.footer.actions[u],e.manifest,r[qt.DefinitionName.Action],i,e.logger)}}o(GQ,"addSettings");function p_(e){if(Qt(),!tf(e))return;let n=new Di,i=n.createPageInstance(qt.PageTypeV2.ListReport),r=[],a=ef(e.manifest[qt.ManifestSection.generic].pages,r);if(nf(a,e.logger,a==null?void 0:a.entitySet),!!a)return GQ(e,i,n,r[0]),e.flex.forEach(s=>{yr(s)&&Wh(i,s,e.jsonSchema,e.logger)}),Jl(i,e,a,qt.PageTypeV2.ListReport),zh(i),i}o(p_,"createListReportConfig");var ve=te(ce());var Tp=require("@sap-ux/vocabularies-types/vocabularies/UI");var KQ=[ve.ControlType.Avatar,ve.ControlType.ObjectPageLayout,ve.ControlType.DynamicPage];function XQ(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(`${Tp.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${ve.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Tp.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}o(XQ,"getSingleSelectorIdPart");function QQ(e){let t,n=e.split(":::");if(n.length===1)t=XQ(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(`::${Tp.UIAnnotationTerms.LineItem}`,`/@${Tp.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(QQ,"getFacetID");function qQ(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=yr(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(ve.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let h=m[1].replace(/:3a:3a/g,"::");r.exec(h)!==null&&(h=h.split("template:::TableColumn:::")[1]);let E=QQ(h);h=LA(h).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${h}::${g.content.property}`]={controlId:h,propertyId:g.content.property,facetId:E,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){ae(n,{severity:ve.LogSeverity.Error,message:Q.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}o(qQ,"prepareFlexChanges");var YQ=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(j,"");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(j,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function zQ(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&RA(i,t,r)}o(zQ,"addFlexChangeToColumns");function d_(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,ve.VOCWITHSLASH)];for(let u in e){let p=e[u],g=p.propertyId===t,m=t==="columns"&&p.controlType===ve.ControlType.TableColumn;(g||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?zQ(a,p,r.properties,n):Hh(n,p,r))}}o(d_,"importFlexChangesOfTable");function JQ(e,t){return e.facetId==="template"&&t}o(JQ,"isStandardActionFlexChange");var g_=o((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function ZQ(e,t,n,i,r,a){var O;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===ve.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(ve.ACTIONTITLEPREFIX))&&!r&&s,m=r&&g_(u,r.split("::"))&&s,h=e.title&&g_(u,e.title.split("::"),!0),E=!t.facetId&&KQ.includes(t.controlType),b=JQ(t,l);return p||g||m||h||E||b}o(ZQ,"matchSelector");function e7(e,t,n,i,r,a){var u;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let g=n[p];if(g.propertyId!==i||g.controlType!==((u=e.properties[g.propertyId])==null?void 0:u[ve.SchemaTag.controlType]))continue;ZQ(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(e7,"importFlexChanges");function t7(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(ae(n.logger,{severity:ve.LogSeverity.Warning,message:Ll(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(t7,"checkDeprecatedProperties");function n7(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=Bn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u));let g=e.manifest.import;if(g&&typeof g=="function"){let m=g(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return t7(p,a,n,u),p}o(n7,"importManifestSetting");function _i(e,t,n,i,r,a){var u,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let g in n.properties||n){let m=Dn(t,g);if(g==="columns"||m!=null&&m.flex)if((u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSectionTableV2")||(p=r==null?void 0:r.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(g==="columns"){let h=n.properties[g].$ref.split(j)[1],E=e.jsonSchema.definitions[h];d_(i.flexChanges,g,t,r,E,l)}else d_(i.flexChanges,g,t,r,n);else{let h=(r==null?void 0:r.title)||(r==null?void 0:r.id);e7(n,t,i.flexChanges,g,h,a)}else m!=null&&m.manifest&&n7(m,i.pageKeys,e,t,g,s,r)}}o(_i,"transferSettingsAndFlexChanges");function h_(e,t,n,i){let r=qi(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${XD}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Nm}${r}`;break}}return r.replace(/@/g,"")}o(h_,"getActionId");function i7(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split(j)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=h_(s,a,"","");e.actions[a]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,l,{}),_i(n,e[ve.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(i7,"fillStandardActions");function Zh(e,t,n,i,r,a){var l;n[ve.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};a&&(u.id=a);for(let p in t){let g=xs(p),m=h_(s,g,r,a);m&&(n[ve.PropertyName.actions][g]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,s),_i(e,n[ve.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[ve.PropertyName.actions])!=null&&l[g]&&Object.keys(n[ve.PropertyName.actions][g]).length===0&&delete n[ve.PropertyName.actions][g]}}i7(n,t,e,i),Object.keys(n[ve.PropertyName.actions]).length===0&&delete n[ve.PropertyName.actions]}o(Zh,"fillActions");function r7(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(ve.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;_i(e,i[t.id].form.fields[l],e.jsonSchema.definitions[ve.DefinitionName.Field],r,{},u),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(r7,"fillFields");function o7(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}o(o7,"prepareTableSchema");function a7(e,t,n,i,r){var l,u;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",g=r.factory.createInstance(ve.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][ve.PropertyName.table]=g;let m=e.jsonSchema.definitions,h=o7(p,t,m);_i(e,i[t.id],t.schema,r,{title:t.title}),_i(e,i[t.id][ve.PropertyName.table],h,r,t);let E=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(E!=null&&E.properties){let b=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");Zh(e,E.properties,i[t.id][ve.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][ve.PropertyName.table].toolBar).length===0&&delete i[t.id][ve.PropertyName.table].toolBar}}o(a7,"fillTableInConfig");function s7(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Sm(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};Jl(n[t],e,i,ve.PageTypeV2.ObjectPage,l,r)}}o(s7,"fillCustomColumnsInConfig");function c7(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][ve.PropertyName.chart]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(_i(e,i[t.id],t.schema,r,{title:t.title}),_i(e,i[t.id][ve.PropertyName.chart],e.jsonSchema.definitions[ve.DefinitionName.ObjectPageChart],r,t))}o(c7,"fillChartSection");function l7(e,t,n,i){n[t.id]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&_i(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(l7,"fillHeaderSection");function f7(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&_i(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&Zh(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&r7(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}o(f7,"fillFormSection");function m_(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&_i(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,kA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(m_,"fillSubSection");function kA(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:YQ(t[l]),schema:t[l],title:Zb(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],a7(e,p,n,i,r),s7(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],c7(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],f7(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],m_(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],l7(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],m_(e,p,n,i,r))}}o(kA,"fillSectionsInConfig");function u7(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];_i(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(u7,"fillCustomSectionsInConfig");function p7(e,t){var g,m;let n=t.factory.createPageInstance(ve.PageTypeV2.ObjectPage);_i(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(ve.PageTypeV2.ObjectPage,ve.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;_i(e,n.globalTableSettings,i[ve.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(ve.PageTypeV2.ObjectPage,ve.DefinitionName.ObjectPageHeader);let r=i[ve.DefinitionName.ObjectPageHeader]?i[ve.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];_i(e,n.header,r,t);let a=i[ve.DefinitionName.ObjectPageHeaderActions];a&&Zh(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[ve.DefinitionName.FooterActions];s&&Zh(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageLayout"),_i(e,n.layout,i[ve.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[ve.DefinitionName.HeaderSections];if(l){let h=(g=t.v2Page.component)==null?void 0:g.settings;kA(e,l.properties,h,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[ve.DefinitionName.Sections];if(u){let h=(m=t.v2Page.component)==null?void 0:m.settings;kA(e,u.properties,h,n.sections,t)}let p=a_(e.manifest,e.entitySet);return u7(p,n,t,i,e),n}o(p7,"fillConfig");function ey(e){Qt();let t=tf(e);if(!t)return;let n=e.entitySet,i=[],r=jc(t,e.entitySet,i);if(nf(r,e.logger,n),!r)return;let a=qQ(e.flex,n),s=new Di;return p7(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(ey,"createObjectPageConfigV2");var Ko=te(ce());var jA=te(bb());var Vt=te(ce());var d7=["colorPalette","tabs"];function g7(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(g7,"createCard");function y_(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),y_(e,n.join("|"))}return t}o(y_,"findAvailableId");function vp(e,t,n,i,r,a,s){i!=null&&i.properties&&UA(e,t,n,i.properties,r,a,s)}o(vp,"transferManifestEntriesOVP");function $c(e,t,n,i){return e.createInstance(Vt.PageTypeV2.OverviewPage,i,n,t)}o($c,"assignReflectMetadataRules");function m7(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(j),r=e.appSchema.definitions[i[1]];t=$c(e.factory,i[1],t,"CustomCard"),vp(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(m7,"processAnyOfDefinitionsOfOVP");function h7(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!d7.includes(i)?t[i]=(0,jA.default)(t[i]||{},r||{},{arrayMerge:qb}):t[i]=r}o(h7,"checkSyncRuleForExport");function y7(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in Vt.v2.CardSettingsType||n==="settings")l.settings=(0,jA.default)(l.settings||{},r||{},{arrayMerge:qb});else if(r!==void 0){let u=e.manifest.export;h7(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(y7,"transferToManifest");function T7(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(Vt.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=$c(e.factory,i[0],e.currentObject[t],"CustomCard"),g7(t,e.exportResults.manifest[Vt.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated,vp(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[Vt.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Vt.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated)})}o(T7,"transferCards");function v7(e,t){if(t==="cards")T7(e);else{let n=Mo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Vt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(j);e.currentObject=$c(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],vp(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],UA(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],UA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(v7,"exportOfObject");function UA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!Il(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=Dn(e,l),g={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(g.currentObject=e[a[a.length-2]],u=m7(g)):u&&typeof u=="object"&&i[l]&&v7(g,l),p!=null&&p.manifest&&y7(p,a,l,t,u,e)}}o(UA,"processProperties");function b7(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=_D(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=bm(p,g);e.exportResults.flexChanges.find(E=>{let b=!1,O=JSON.parse(E);O={content:O.content,selector:O.selector};let N=JSON.parse(m);return N={content:N.content,selector:N.selector},JSON.stringify(O)===JSON.stringify(N)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(b7,"evaluateFlexRule");function E7(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated}}o(E7,"exportConfigValueToManifest");function S7(e,t,n,i,r){let a=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)E7(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated,ns(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(S7,"evaluateManifestRule");function A7(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(Vt.FACETTITLEPREFIX)?r.split(Vt.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(A7,"getManifestPathOfSections");function P7(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o(P7,"getManifestPathOfTable");function x7(e,t,n,i,r){let a;return t[0]===Vt.PropertyName.sections?a=A7(t,a,n,e,r):t[0]===Vt.PropertyName.table?a=P7(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(x7,"getManifestPath");function C7(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)b7(e,i,t,r,a,n,s);else if(t.manifest){let u=x7(e,i,t,n,a);S7(e,u,t,s,n)}}o(C7,"evaluateExportRule");function I7(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(nh(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Vt.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(Vt.ViewTemplateType.ResponsiveTableColumnsExtension,Vt.ViewTemplateType.ResponsiveTableCellsExtension);nh(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(I7,"deleteObsoleteColumn");function O7(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=T1(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated,I7(r,e,n))}o(O7,"deleteObsoleteColumnsFromFragment");function R7(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:u}=ih(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(R7,"clusterConfigColumnsByPath");function T_(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in Vt.v2.TableColumnExtensionTypeV2){let{path:u}=ih(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{O7(p)}catch(g){e.logger.error(g.message)}}if(t){let l=R7(t,n,e.v2Page,s,r);for(let u in l)mS(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(T_,"transferColumnExtensions");function L7(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=y_(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(E=>{var b;return(b=E.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split(j),h=e.appSchema.definitions[m[m.length-1]];Cs(e,t[p],i,[...r,s[p]],h)}let u=Bn(e.exportResults.manifest,jE());for(let p in u)NA(p,l)&&!s.includes(p)&&delete u[p]}o(L7,"transferManifestExtensions");function N7(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Vt.PropertyName.table){n=e[i-1];break}return qn(n,t)}o(N7,"getSectionId");function F7(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Mo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);Cs(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(F7,"transferIndexTable");function D7(e,t,n,i,r,a){let s,l=Sm(e.$ref);l&&(s={target:l,key:N7(t,n)}),T_(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(D7,"transferCustomColumns");function _7(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Mo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&Cs(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(_7,"handleAnyOfDefinitions");function V7(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")L7(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){D7(l,t,s,e,n,a);return}else a?Cs(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&_7(l,e,s,n==null?void 0:n[r],r,i,t)}o(V7,"transferComplexProperty");function Cs(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!Il(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Tm(t,l),p=u?[...n,u]:n,g=Dn(t,l),m=e.propertyDefinition=r.properties[l],h=e.nextDefinition=Mo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(C7(e,g,t,[...i],p,a,l),F7(s,e,a,l,p,i),s===void 0||typeof s=="object")V7(e,i,t,p,l,h,a);else if((m==null?void 0:m.$ref)===j+"TableCustomColumns"){T_(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(Cs,"transferManifestEntriesAndFlexChange");function v_(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=$c(r,i,n[i],s),a.push(i),$A(r,n[i],e,l.properties,a)}o(v_,"transferSettingsOfRef");function w7(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(j);v_(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${j}${Ko.v2.cardTemplateSettingsMap[e.template]}`.split(j);v_(i,l,e,t,r,a)}}o(w7,"processPropertiesOfObject");function M7(e,t,n,i,r,a){let s=Dn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=Bn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{Nl(s,u,t,e)}catch(p){ae(i.logger,{severity:Ko.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:gm(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&w7(e,t,r,i,a,n)}o(M7,"processOvpProperty");function $A(e,t,n,i,r){for(let a in i)M7(t,a,r,n,i,e)}o($A,"processOvpProperties");function k7(e,t,n){$A(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Ko.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[Ko.ManifestSection.ovp].cards[i].template,a=Ko.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=$c(n,a,{},"CustomCard"),e.cards=$c(n,a,e.cards,"CustomCard"),$A(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(k7,"addSettings");function ty(e){let t=new Di,n=t.createPageInstance(Ko.PageTypeV2.OverviewPage);return e.jsonSchema&&k7(n,e,t),n}o(ty,"createOverviewPageConfig");var Pt=te(ce());function U7(e,t,n,i){var p,g;let r=Kh(e.manifest,i),a=e.jsonSchema.definitions;Xh(t,n,a),t.table=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(_n(t.table,e.manifest,s,i,e.logger),MA(e,s,t),t.table.toolBar=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,a[Pt.DefinitionName.ToolBar],i,e.logger),a[Pt.DefinitionName.ActionsLR])for(let m in a[Pt.DefinitionName.ActionsLR].properties){let h=xs(m);t.table.toolBar.actions[h]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.Action),_n(t.table.toolBar.actions[h],e.manifest,a[Pt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),_n(t.filterBar,e.manifest,a[Pt.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[Pt.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[Pt.DefinitionName.SelectionFields].properties;for(let h in m){let E=h;t.filterBar.selectionFields[E]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),_n(t.filterBar.selectionFields[E],e.manifest,a.SelectionFieldDateSettings,i,e.logger,E)}}t.chart=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),_n(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[Pt.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let h=xs(m);t.footer.actions[h]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.FooterAction),_n(t.footer.actions[h],e.manifest,a[Pt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[Pt.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:g.keyPerformanceIndicators;u&&Object.keys(u).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),_n(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(U7,"addSettings");function ny(e){if(Qt(),!tf(e))return;let n=new Di,i=n.createPageInstance(Pt.PageTypeV2.AnalyticalListPage),r=[],a=rf(e.manifest[Pt.ManifestSection.generic].pages,r,e.logger);if(nf(a,e.logger,a==null?void 0:a.entitySet),!!a)return U7(e,i,n,r[0]),e.flex.forEach(s=>{yr(s)&&Wh(i,s,e.jsonSchema,e.logger)}),Jl(i,e,a,Pt.PageTypeV2.AnalyticalListPage),zh(i),i}o(ny,"createAnalyticalListPageConfig");var Zn=te(ce());var af=require("@sap-ux/vocabularies-types/vocabularies/UI");var $7=["filterBar","table","footer"],B7=Zn.UIVOCABULARYALPHADOT.substring(1);function BA(e,t,n,i){as(e,n,"QuickVariant"),s1(n,"QuickVariantX",t),c1(i,n,"QuickVariantX")}o(BA,"addEnumForVariantPaths");function H7(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[af.UIAnnotationTerms.SelectionPresentationVariant,af.UIAnnotationTerms.SelectionVariant,af.UIAnnotationTerms.PresentationVariant];Iu(e,r,i)}o(H7,"addEnumForFilterBarAnnotationPath");function G7(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(af.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(af.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(B7,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(ae(n,{severity:Zn.LogSeverity.Warning,message:Q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(G7,"getPresentationVariantForLineItem");function W7(e,t,n){if(Uc(t,"annotationPath",n))return;let i=G7(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=Cu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||ae(n,{severity:Zn.LogSeverity.Warning,message:Q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(W7,"getLineItemAnnotation");function b_(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:j+Zn.DefinitionName.LineItems},r=j+Zn.DefinitionName.ToolBarLR;LE.forEach((u,p)=>{n.properties.table.anyOf[p.toString()].$ref=j+u;let g=u.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[g]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[u]=m});let{entityType:a,uIAnnotations:s}=wl(e);if(s){let u=[],p=ef(e.manifest[Zn.ManifestSection.generic].pages,u);Vl(n);let g=W7(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let h=hr(a.fullyQualifiedName,g.term,g.qualifier);LE.forEach(E=>{n.definitions[E][Zn.SchemaTag.annotationPath]=h})}Dl(!1,n,g,a);let m=s.SelectionFields;if(Dm(n,m,a),Ml(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],ZD(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return ae(e.logger,{severity:Zn.LogSeverity.Error,message:Q.t("NOLR"),location:{path:Zn.MANIFESTPATH,range:[Zn.ManifestSection.generic]}}),n;_l(n,a,p,e.manifest,e.fragments),BA(a,e.entitySet,n,e.serviceAVT),H7(a,n,Zn.DefinitionName.ListReportFilterBar),l1(a,n,Zn.DefinitionName.MultiEditV2),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 ko(n,$7),n}o(b_,"generateListReportSchemaV2");var we=te(ce());var bp=o(e=>({flexChanges:[],manifest:{[we.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:we.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:we.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function E_(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===we.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o(E_,"getClassesForSingleSection");function S_(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],E_(n,i,t),S_(n,t)}}o(S_,"getSubsectionClasses");function K7(e,t,n){let i;for(let r in e.sections)i=t.sections[r],E_(i,r,n),S_(i,n)}o(K7,"getExportClassesForSections");function X7(e,t){let n=ef(t.manifest[we.ManifestSection.generic].pages,e);if(!n){ae(t.logger,{severity:we.LogSeverity.Error,message:Q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){ae(t.logger,{severity:we.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(X7,"findV2Page");function HA(e,t){let n=vm(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(HA,"calculateBaseId");function A_(e,t,n=!1){let i=bp(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=X7(a,e),l=new Di,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:HA(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Cs(p,u,[],[],e.jsonSchema)}return i}o(A_,"exportListReportPage");function P_(e,t,n=!1){let i=e.page.config,r=bp(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=rf(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Di,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:HA(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Cs(p,u,[],[],e.jsonSchema)}return r}o(P_,"exportAnalyticalListPage");function x_(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=bp(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=jc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return ae(e.logger,{severity:we.LogSeverity.Error,message:Q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new Di,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&K7(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:HA(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Cs(g,p,[],[],e.jsonSchema)}}return a}o(x_,"exportObjectPage");var C_=o(e=>{let t=bp();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Di,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&vp(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),Q7=o((e,t,n)=>{var s;let i=bp();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new Hm,e);r.settings=Object.assign(new fs,e.settings);for(let l in n.definitions.AppSettings.properties){let u=Dn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=Bn(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],ns(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&UE(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function I_(e,t){if(e[we.SchemaType.ListReport])return WA(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return x_(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return C_(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return Q7(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return P_(e[we.SchemaType.AnalyticalListPage],t)}o(I_,"exportPageV2");function GA(e,t,n=!1){if(e[we.SchemaType.ListReport])return WA(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return x_(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return C_(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return P_(e[we.SchemaType.AnalyticalListPage],t,n)}o(GA,"exportConfigEntityByPathV2");var Na=te(ce());function R_(e,t){e.anyOf&&e.anyOf.forEach(function(n){Bc(n,t)})}o(R_,"addAnyOfToReferredTypes");function ry(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}o(ry,"getSingleItem");function Bc(e,t){if(typeof e!="object")return;let n=Ta(e);n&&L_(n,t),R_(e,t),Bc(e.additionalProperties,t),Bc(ry(e),t)}o(Bc,"addReferredTypesFromElement");function L_(e,t){t.referredTypeNames.add(e);let n=t.types[e];Bc(n,t);let i=n.properties;i?Object.values(i).forEach(r=>Bc(r,t)):Bc(ry(n),t),Bc(n.additionalProperties,t)}o(L_,"addReferredTypesFromType");function iy(e,t,n,i,r){if(typeof t!="object")return;let a=Ta(t);if(a){let s=r.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,r.types[a]=s),e){let l;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=dm(p),l=structuredClone(s),r.types[p]=l,r.referredTypeNames.add(p)}else r.referredTypeNames.add(a),l=s;let u={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};KA(n,u,e.syncRuleProvider,l,r)}else L_(a,r)}else KA(n,i,e==null?void 0:e.syncRuleProvider,t,r)}o(iy,"applyAdaptationInfoToElement");function O_(e,t,n,i){let r=i==null?void 0:i.elementAdapter;return r?r(n,t,e):{}}o(O_,"applySyncRuleToElement");function KA(e,t,n,i,r){var h,E;let a=ED(n),s=O_(e,t,i,a);if(!s)return;iy(s.additionalPropertiesAdaptation,i.additionalProperties,e,t,r);let l={pageInfo:t.pageInfo,specificParams:((h=s.referenceAdaptation)==null?void 0:h.specificParams)||t.specificParams},u=i.properties,p;if(u)p=u;else{let b=ry(i);if(b)u={items:b},p=i;else return}let g,m=((E=s.referenceAdaptation)==null?void 0:E.processingRuleProvider)||function(b,O){g=g||n&&new n;let N=Dn(g,b);return O_(e,l,O,N)};for(let b in u){let O=u[b];if(typeof O!="object"){p[b]=O;continue}let N={...O},M=m(b,N);M?(M.controlId?N[Na.SchemaTag.controlId]=`${t.pageInfo.controlId}--${M.controlId}`:M.manifestPath&&(N[Na.SchemaTag.artifactType]="Manifest",N[Na.SchemaTag.manifestPath]=M.manifestPath),R_(N,r),iy(M.referenceAdaptation,N,e,l,r),iy(M.additionalPropertiesAdaptation,N.additionalProperties,e,l,r),iy(M.itemsAdaptation,ry(N),e,l,r),p[b]=N):delete p[b]}}o(KA,"adjustElement");function q7(e,t,n){let i=t.split("."),r=i[i.length-1],a=t+".view."+(r==="ObjectPage"?"Details":r);return`${e}::${a}::${n}`}o(q7,"getViewId");function N_(e,t,n){var re;Qt();let i=uc(e.manifest,Na.FioriElementsVersion.v2,n);if(!i||i===Na.TemplateType.OverviewPageV2)return;let r=Zl(e.pagePath,!1),{parent:a}=Wo(e.manifest,r);if(!a)return;let s=a.component;if(Uc(a,"entitySet",n,"string",!0)||Uc(s,"name",n,"string",!0))return;let l=a.entitySet,u=s.name,p=t(u),g=p==null?void 0:p.genericSchema,m=p==null?void 0:p.syncRuleProvider;if(!m||!g)return g;let h=e.parsedAnnotations||jr(e.annotations,n),E=(re=h==null?void 0:h.entitySets)==null?void 0:re.find(Z=>Z.name===l);if(!E)return g;let b=structuredClone(g),O=q7(e.appId,u,l),M={pageInfo:{appId:e.appId,componentName:u,entitySet:l,controlId:O,pagePath:e.pagePath}},H={templateType:i,manifest:e.manifest,serviceAVT:h,fioriElementsVersion:Na.FioriElementsVersion.v2,entitySet:E,fragments:e.fragments,logger:n,entityType:E.entityType},$={types:b.definitions,referredTypeNames:new Set};KA(H,M,m,b,$);for(let Z in b.definitions)$.referredTypeNames.has(Z)||delete b.definitions[Z];return b}o(N_,"getAdaptedSchema");var F_=te(ce());var Xo=class{};o(Xo,"ListReportNew"),y([v({flex:{controlType:o(()=>F_.ControlType.DynamicPage,"controlType")},elementAdapter(){return{controlId:"page"}}})],Xo.prototype,"fitContent",2),Xo=y([Ji({id:o_,pageId:hp}),v({elementAdapter(e,t,n){let i=Zl(t.pageInfo.pagePath),{entityType:r,uIAnnotations:a}=wl(n),{value:s}=Wo(n.manifest,i);return{referenceAdaptation:{specificParams:{settings:s,entityType:r,uIAnnotations:a}}}}})],Xo);var YA=require("path"),j_=require("fs");var br=te(ce());function Y7(e){let t={};return e.flex.forEach(function(i){let r=yr(i);if(r){let a=r,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}o(Y7,"getChangeMapFormImportParameters");function XA(e,t,n,i,r){if(e===void 0)return;let a=Ta(t),s=a?n[a]:void 0;if(t[br.SchemaTag.conversionExit]&&(e=qh(!0,r.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return XA(e,s,n,i,r);if(t.type==="object"&&t.properties&&typeof e=="object"){let l={},u=!1;for(let p in t.properties){let g=t.properties[p],m=XA(e[p],g,n,i,r);m!==void 0&&(u=!0,l[p]=m)}return u?l:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}o(XA,"getConfigRep");function D_(e,t,n,i,r,a,s,l){let u=XA(r,a,s,l,t);if(u===void 0)return;let p=e,g=[];n.forEach(function(m){g.push(m);let h=m.propertyName;p[h]=p[h]||t.propertyInstanceProvider(g),p=p[h]}),p[i]=u}o(D_,"transferValueToConfig");function z7(e,t,n,i,r,a,s,l){let u=r[br.SchemaTag.controlId],p=l[u];if(!p)return;let g=-1,m=p.find(function(h,E){return h.content.property===i?(g=E,!0):!1});m&&(D_(e,t,n,i,m.type==="propertyBindingChange"?m.content.newBinding:m.content.newValue,r,a,s),p.length===1?delete l[u]:p.splice(g,1))}o(z7,"importFlexChangesToConfigProperty");function J7(e,t,n,i,r,a,s){let l=r[br.SchemaTag.manifestPath],u,p;Array.isArray(l)?(p=l,u=!0):(p=l.path,u=l.addTargetPropertyToPath);let{hasPath:g,value:m,parent:h}=Wo(s.manifest,p,u?i:void 0);if(!g)return;D_(e,t,n,i,u?m:h,r,a,s)}o(J7,"importManifestToConfigProperty");function __(e,t,n,i,r,a,s){if(La(n.properties))for(let l in n.properties){let u=n.properties[l];if(!La(u))continue;let p=u[br.SchemaTag.artifactType];if(p===br.ArtifactType.FlexChange)z7(e,t,i,l,u,r,a,s);else if(p===br.ArtifactType.Manifest&&u[br.SchemaTag.manifestPath])J7(e,t,i,l,u,r,a);else{let g=Ta(u),m=g?r[g]:void 0;if(La(m)){let h=i.concat([{propertyName:l,propertyType:g.split("<")[0]}]);__(e,t,m,h,r,a,s)}}}}o(__,"importDefinitionIntoConfig");function V_(e,t,n){var h;let i=uc(e.manifest,br.FioriElementsVersion.v2,e.logger);if(!i||i===br.TemplateType.OverviewPageV2)return;let r=Zl(t,!1),{parent:a}=Wo(e.manifest,r),s=(h=a==null?void 0:a.component)==null?void 0:h.name,l=typeof s=="string"?n(s):void 0;if(!l)return;let u=Y7(e),p=e.jsonSchema,g=p.definitions,m=l.propertyInstanceProvider([]);return __(m,l,p,[],g,e,u),m}o(V_,"getConfigForPage");var Si=te(ce());function Z7(e,t,n,i){let r=t===void 0?null:t,a=typeof r=="string"&&r.startsWith("{");i.push({controlId:e[Si.SchemaTag.controlId],controlType:e[Si.SchemaTag.controlType],propertyName:n,newValue:r,isBinding:a})}o(Z7,"addFlexChangeInfoToList");function w_(e,t,n,i){var l;if(n[Si.SchemaTag.conversionExit])return qh(!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 r=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let u in n.properties){let p=n.properties[u];if(!La(p))continue;let g=Ta(p);p=g&&i.globalTypeDefinitions[g]||p;let m=r[u];s=s||m!==void 0;let h=w_(e?e[u]:void 0,m,p,i);h===void 0?delete r[u]:(r[u]=h,a=!0)}return a?r:s?Object.keys(t).every(u=>La(n.properties[u]))?void 0:r:t}o(w_,"getValueForManifest");function QA(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(r,a){return QA(r,t[a])}):!0;let n=Object.keys(e).filter(r=>e[r]!==void 0),i=Object.keys(t).filter(r=>t[r]!==void 0);return n.length!==i.length||n.some(function(r){return QA(e[r],t[r])})}o(QA,"isDifferent");function e6(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}o(e6,"isEmpty");function t6(e,t,n,i,r){let a=n.manifest,s=e.length-1,l=e[s],u=[];e.some(function(m,h){if(h===s)return!0;let E=a[m];if(typeof E!="object"||E===null)return!0;a=E,u.push(a)});let p=u.length===s?a[l]:void 0,g=w_(t,p,i,r);if(QA(g,p))if(g===void 0){n.manifestChangeIndicator=Si.ChangeIndicator.Deleted;for(let m=s;m>0;m--){let h=u[m];if(!e6(h))break;let E=u[m-1],b=e[m];delete E[b]}}else{for(let m=u.length;m<s;m++){let h={};a[e[m]]=h,a=h}a[l]=g,n.manifestChangeIndicator=p===void 0?Si.ChangeIndicator.Created:Si.ChangeIndicator.Updated}}o(t6,"applyManifestChange");function n6(e,t,n,i,r){let a=e==null?void 0:e[n],s=i[Si.SchemaTag.artifactType];if(s===Si.ArtifactType.FlexChange)Z7(i,a,n,t.flexList);else if(s===Si.ArtifactType.Manifest&&i[Si.SchemaTag.manifestPath]){let l,u=i[Si.SchemaTag.manifestPath];Array.isArray(u)?l=u.concat([n]):(l=u.path,u.addTargetPropertyToPath&&(l=l.concat([n]))),t6(l,a,t,i,r)}else{let l=Ta(i),u=l?r.globalTypeDefinitions[l]:void 0;La(u)&&M_(a,t,u,r)}}o(n6,"transferConfigPropertyToExportResults");function M_(e,t,n,i){let r=n.properties||{};for(let a in r){let s=n.properties[a];La(s)&&n6(e,t,a,s,i)}}o(M_,"transferConfigToExportResults");function k_(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:Si.ChangeIndicator.NoChange}}),r={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:Si.ChangeIndicator.NoChange,flexList:[],fragments:i};return M_(t,a,e.jsonSchema,r),a}o(k_,"exportPage");var i6=!1,r6={generateListReportSchemaV2(e,t){return b_(e,t)},createListReportConfig(e){return p_(e)},exportListReportPage(e,t,n){return A_(e,t,n)}},qA;function o6(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,YA.join)(__dirname.substring(0,i+13),"dist")}let t=(0,YA.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,j_.readFileSync)(t,"utf8"))}o(o6,"getPersistentListReportNewSchema");function a6(){let e=o6();return function(t){return t===hp?{genericSchema:e,syncRuleProvider:Xo}:void 0}}o(a6,"createGenericSchemaInfoProvider");function s6(e){return e===hp?{propertyInstanceProvider:o(function(t){return new Xo},"propertyInstanceProvider")}:void 0}o(s6,"getConfigInfo");function U_(e){let{value:t}=Wo(e,[Is.ManifestSection.generic],"pages");return Array.isArray(t)?[0]:t&&typeof t=="object"?[Object.keys(t)[0]]:void 0}o(U_,"getPagePathForRootPage");function c6(e,t,n){let i=!e.layer||e.layer===Is.FlexChangeLayer.Customer,r={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(r.content.newBinding=n.newValue,r.type="propertyBindingChange"):r.content.newValue=n.newValue,bm(r,t)}o(c6,"flexInfoToChangeString");function l6(){let e=a6(),t=o(function(n,i,r){let a=structuredClone(i.manifest);return a[Is.ManifestSection.app].id=n,i.flexList.map(c6.bind(null,r,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,r=U_(i);if(!r)return null;let a={appId:((s=i[Is.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:r,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return N_(a,e,n.logger)},createListReportConfig(n){let i=U_(n.manifest);return V_(n,i,s6)},exportListReportPage(n,i,r){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:Is.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},l=k_(s),u=t(n.appId,l,i);return{manifest:l.manifest,fragments:l.fragments,flexChanges:u,manifestChangeIndicator:l.manifestChangeIndicator}}}}o(l6,"createPageHandlerLRGeneric");function zA(){return i6?(qA=qA||l6(),qA):r6}o(zA,"getPageHandlerLR");function Ep(e,t){return zA().generateListReportSchemaV2(e,t)}o(Ep,"generateListReportSchemaV2");function oy(e){return zA().createListReportConfig(e)}o(oy,"createListReportConfig");function WA(e,t,n=!1){return zA().exportListReportPage(e,t,n)}o(WA,"exportListReportPage");function sy(e,t){var n,i;return(n=e.component)!=null&&n.name?um(ma((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(sy,"generateId");function f6(e,t,n,i){e.navigation={};let r=$_(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=sy(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(f6,"getPageConfigsAndNavigations");function $_(e,t){var i;let n={};for(let r in e){let a=e[r],s=sy(a,r);if(!s)continue;let l={pageType:ma((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let u=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(u)if(l.pageType===Vn.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=oy(p)}else if(l.pageType===Vn.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=ny(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=ey(p)}a.pages&&f6(l,a,t,n)}return n}o($_,"getPagesAndConfigs");var JA=class JA extends ls{constructor(t){Qt();let n;t.manifest[Vn.ManifestSection.generic]?n=t.manifest[Vn.ManifestSection.generic].pages:ae(t.logger,{severity:Vn.LogSeverity.Error,message:Q.t("NOFE"),location:{path:Vn.MANIFESTPATH,range:[Vn.ManifestSection.generic]}}),n||ae(t.logger,{severity:Vn.LogSeverity.Error,message:Q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:Vn.MANIFESTPATH,range:[Vn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&sy(n[i],i),a=new fs,s=Dt(Vn.SchemaType.Application),l=t.appSchemas[s.filename];_n(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,$_(n,t),a)}};o(JA,"V2AppProvider");var ay=JA;function Sp(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||ae(n,{severity:Vn.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:Vn.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=sy(l,s);i[u]=l}if(t===Vn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Sp(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(Sp,"getPages");var Hc=te(ce());var ZA=class ZA extends ls{constructor(t){let n={},i=t.manifest[Hc.ManifestSection.ovp],r=new fs,a=Dt(Hc.SchemaType.Application);_n(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Hc.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Hc.PageTypeV2.OverviewPage,config:ty(l),entitySet:i.globalFilterEntitySet},p=um(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(ZA,"V2OvpProvider");var cy=ZA;var _=te(ce()),Gc=require("@sap-ux/vocabularies-types/vocabularies/UI");var u6=["header","filterBar","chart","table"],eP="@UI.LineItem";function tP(e,t,n,i,r){i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=hr(e.fullyQualifiedName,Gc.UIAnnotationTerms.SelectionFields,r));let a=0;return n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+ct(s.value);s.type==="PropertyPath"&&(l=sm(s,e)),i.properties[u]={$ref:j+u},i.properties[u][_.SchemaTag.propertyIndex]=a;let p=Hr(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][_.SchemaTag.isViewNode]=!0,t.definitions[u][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][_.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${a}`,a++}),i}o(tP,"addSelectionFields");function p6(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Gc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(p6,"getVisualFilters");function d6(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}o(d6,"getPropertiesIndex");function g6(e,t,n,i){var s,l,u,p,g,m;let r=d6(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let h in n){let E=n[h];if(!E.template){let b=a.properties[h]={$ref:oi(_.DefinitionName.VisualFilter,h)},O=r.indexOf(h);O!==-1&&(b[_.SchemaTag.propertyIndex]=O);let N=vt(_.DefinitionName.VisualFilter,h,t);(s=E.visualFilter)!=null&&s.valueList&&(N[_.SchemaTag.annotationPath]=`${h}/@${E.visualFilter.valueList}`);let M=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(H=>H.name===h))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();N.description=M||h,N[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:h}]}}}o(g6,"addVisualFilters");function m6(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},HD(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&rs(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(m6,"applyCustomFilterFields");function h6(e,t,n,i){var l,u;let r=p6(n),a=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[_.DefinitionName.SelectionFields][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.SelectionFields].properties={},s=t.definitions[_.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},g6(e,t,r,a);else{let p=t.definitions[_.DefinitionName.FilterBar];p.properties.initialLayout[_.SchemaTag.hidden]=!0,p.properties.layout[_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.CompactFilters][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.VisualFilters][_.SchemaTag.hidden]=!0}s=tP(e,t,a,s),m6(t,s,n)}o(h6,"addFilterBar");function B_(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${_.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=ct(`${_.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=ai(u,r),m=u.$Type.split(`${_.UIVOCABULARY}.`)[1],h=a.properties[`${m}::${u.Action}`]={$ref:j+p,description:g};h[_.SchemaTag.propertyIndex]=l,h[_.SchemaTag.annotationType]=u.$Type,h[_.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[_.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][_.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}o(B_,"defineActions");function H_(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(u=>u.value.indexOf(_.FacetBase.LineItem)>-1):i?a=e.find(u=>u.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?Rl(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(H_,"findTheRightVisualization");function y6(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(y6,"analyzeChartAnnotation");function T6(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=H_((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(ae(r,{severity:_.LogSeverity.Error,message:Q.t("NOVISUALIZATIONS")}),s=eP,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(T6,"analyzeSPVforView");function sf(e,t,n,i,r,a){let s,l,u=e==null?void 0:e.split(`${_.UIVOCABULARY}.`)[1],p=u&&t[u];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(_.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=H_(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return T6(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=eP,m=`/${s}/@${Gc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=eP;p.qualifier&&(g+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("Chart")){let{visualization:g,targetAnnotation:m,chartTitle:h}=y6(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:h}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(sf,"analyzeViewAnnotation");function v6(e,t,n,i){let r=e.definitions[_.DefinitionName.ALPChartView];if(e.definitions[_.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.isViewNode],n&&(e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.annotationPath]=n),e.definitions[_.DefinitionName.ALPChart].properties.annotationPath[_.SchemaTag.hidden]=!0,r.properties.annotationPath[_.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${j}${_.DefinitionName.ALPChart}`,t){let a=t.split(_.UIVOCABULARYDOT)[1];if(i[a]){let s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else Aa(r,Q.t("UNEXISTING_ANNOTATION_PATH"))}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(v6,"addALPChartView");function b6(e,t,n,i,r,a){var M,H,$,re,Z,oe,Ae,D;let s=(M=n.entityType)==null?void 0:M.annotations.UI,l=(re=($=(H=t==null?void 0:t[0])==null?void 0:H.primary)==null?void 0:$[0])==null?void 0:re[_.SchemaTag.annotationPath],{targetAnnotation:u}=sf(l,s,n.serviceAVT,"primary",void 0,n.logger);v6(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=j+p,B_(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=sf((Ae=(oe=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:oe[0])==null?void 0:Ae[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),h=e.definitions[a];g||i?(h.properties.toolBar.$ref=`${j}${_.DefinitionName.ToolBarLR}`,h.properties.columns={$ref:j+_.DefinitionName.LineItems},h.properties.annotationPath[_.SchemaTag.hidden]=!0):h.properties={};let E=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(E)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],E.additionalProperties=!1,E.description="Table (key: secondary)",E.title="Table",g?(delete E.properties,E.$ref=`${j}${_.DefinitionName.ALPTable}`):i||(E.properties={}),E[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let b,O;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(b=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=O=i.split(_.UIVOCABULARYDOT)[1]),b){let ut={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};hc(ut,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let ht=s[O].fullyQualifiedName.split("@");E[_.SchemaTag.annotationPath]=`/${ht[0]}/@${ht[1]}`,E[_.SchemaTag.key]="secondary",E[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}mc(e,r,n.logger);let N=`${_.DefinitionName.Actions}<${ct(_.DefinitionName.LineItems)}>`;Ea(e,r,n.logger,void 0,N),lo(e,N,_.DefinitionName.CustomActionPosition)}o(b6,"addALPViews");function E6(e,t){let n=`${_.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][_.SchemaTag.isViewNode],e.appSchema.definitions[n][_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${_.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${j}${i}`;let r=`${_.DefinitionName.Actions}<${e.viewKey}>`;return B_(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${j}${r}`,n}o(E6,"addViewChartDefinitions");function S6(e,t,n,i,r,a){let s=E6(e,t);n.definitions[s].properties.annotationPath[_.SchemaTag.hidden]=!0,n.definitions[s].properties.index[_.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[_.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${j}${s}`,description:a||l,title:l}}o(S6,"addViewChart");function A6(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=vt(_.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[_.SchemaTag.isViewNode],l[_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),ss(l.properties.toolBar,_.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${j}${a}`,description:e.title||u,title:u},ss(l.properties.columns,s),l.properties.annotationPath[_.SchemaTag.hidden]=!0,l.properties.index[_.SchemaTag.hidden]=!0,l.properties.entitySet[_.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(_.UIVOCABULARYDOT)[1],g={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};hc(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(A6,"addViewLineItems");function P6(e,t,n,i){e.properties[t][_.SchemaTag.isViewNode]=!0,e.properties[t][_.SchemaTag.annotationPath]=n?`/${n}/@${i[_.SchemaTag.annotationPath]}`:void 0,e.properties[t][_.SchemaTag.artifactType]=_.ArtifactType.Manifest,e.properties[t][_.SchemaTag.key]=t,e.properties[t][_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:t}]}o(P6,"addTagsToView");function x6(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(x6,"getTargetEntityType");function C6(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Gc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=vt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);ss(l.properties.position,_.DefinitionName.ViewPosition,r),vt(_.DefinitionName.ViewPosition,r,e.appSchema),mc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),yc(e.appSchema,r,i,`${_.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let u=`${_.DefinitionName.Actions}<${r}>`,p=`${_.DefinitionName.ViewCustomAction}<${r}>`;Ea(e.appSchema,i,t.logger,p,u,s),vt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${j}${g}`,lo(e.appSchema,u,g)}o(C6,"addViewCustomExtensions");function I6(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)A6(n,t,e,n.targetAnnotation,i),C6(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)S6(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:`${j}${_.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${j}${_.DefinitionName.LRTableView}`}}}o(I6,"addLRViewParts");function O6(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let u of t){if(!u[_.SchemaTag.key])continue;let p,g=x6(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:h,targetAnnotation:E,namespace:b,title:O}=sf(u==null?void 0:u[_.SchemaTag.annotationPath],m,n.serviceAVT,u[_.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(H=>H.targetTypeName===b))==null?void 0:l.name);let N=ct(u[_.SchemaTag.key]),M={viewKey:N,appSchema:e,targetAnnotation:E,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};I6(h,s,M,n,i,m,u),P6(s,N,b,u)}}o(O6,"addLRViews");function R6(e,t,n,i,r,a){var g,m,h,E,b,O,N,M,H,$,re,Z,oe;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=sf(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Ae=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${ct(Ae)}`,ut=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ut[_.SchemaTag.isViewNode],ss(ut.properties.toolBar,_.DefinitionName.ToolBar,D),ut[_.SchemaTag.annotationPath]=u,ut.properties.columns={},ss(ut.properties.columns,D),delete s.properties,ss(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let ht=(m=t.entityType)==null?void 0:m.annotations.UI[Ae];ht||ae(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOTARGET",{target:Ae})});let je={isObjectPage:!1,appSchema:e,lineItemAnnotation:ht,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};hc(je);let sn=(h=Ae.split("#"))==null?void 0:h[1],Wn=sn?`@${Gc.UIAnnotationTerms.LineItem}#${sn}`:`@${Gc.UIAnnotationTerms.LineItem}`;mc(e,i,t.logger,void 0,D,Wn),yc(e,D,i,void 0,Wn);let tn=`${_.DefinitionName.Actions}<${D}>`,Lt=$m(e,D,_.DefinitionName.CustomTableAction);Ea(e,i,t.logger,rn(Lt),tn,Wn),lo(e,tn,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${j}${_.DefinitionName.ToolBarLR}`,ss(s.properties.columns,_.DefinitionName.LineItems);let Ae=(O=(b=(E=t.entityType)==null?void 0:E.annotations)==null?void 0:b[r])==null?void 0:O.LineItem;!Ae&&!((H=(M=(N=i.options)==null?void 0:N.settings)==null?void 0:M.views)!=null&&H.paths)&&ae(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Ae,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};hc(D),mc(e,i,t.logger),yc(e,_.DefinitionName.LineItems,i),Ae&&!((Z=(re=($=i.options)==null?void 0:$.settings)==null?void 0:re.views)!=null&&Z.paths)&&(s[_.SchemaTag.annotationPath]=hr((oe=t.entityType)==null?void 0:oe.fullyQualifiedName,Ae.term,Ae.qualifier));let ut=`${_.DefinitionName.Actions}<${ct(_.DefinitionName.LineItems)}>`;Ea(e,i,t.logger,void 0,ut),lo(e,ut,_.DefinitionName.CustomActionPosition)}}o(R6,"adaptTableDefinition");function L6(e,t,n){var i,r,a,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===_.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===_.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(u=t==null?void 0:t.annotations.UI)==null?void 0:u.PresentationVariant)==null?void 0:p.term)}}o(L6,"getDefaultAnnotationPath");function N6(e,t,n,i){var u,p,g,m,h;let r=(g=(p=(u=t.options)==null?void 0:u.settings)==null?void 0:p.views)==null?void 0:g.paths,a=n.entityType,s=L6(t,n.entityType,n.templateType),l=$D(e,n);h6(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(R6(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],O6(e,r,n,t,l)):(h=(m=t.options)==null?void 0:m.settings)!=null&&h.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[_.PropertyName.chart][_.SchemaTag.hidden]=!0):n.templateType===_.TemplateType.AnalyticalListPageV4&&(b6(e,r,n,s,t,l),yc(e,_.DefinitionName.LineItems,t))}o(N6,"addTableAndViews");function F6(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=_.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",Pm(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;vt(l,l,e,!1),s.properties.position.$ref=`${j}${l}`,lo(e,i,l)}o(F6,"addHeaderActions");function Ap(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ii(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,as(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return ae(e.logger,{severity:_.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=Am(l,n,e.entitySet,i);if(!u)return r;F6(r,u,e.logger),N6(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,ko(r,u6),r}o(Ap,"generateListReportSchemaV4");var Ui=require("@sap-ux/vocabularies-types/vocabularies/UI"),R=te(ce());var VM=te(lc()),wM=te(_M()),MM=te(kP());var kM=te(ce()),UM=te(ce());function rz(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o(rz,"findElementByXMLPath");function jM(e,t){return e[t]?!1:(e[t]={},!0)}o(jM,"ensureObjectExists");function oz(e,t){let n={},i=rn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(oz,"getPropertiesFromRef");function az(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=jM(l,i),m=l[i];return zc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(az,"traverseDefaultAggregation");function sz(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}o(sz,"isDefaultAggregationAppliable");function zc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=oz(s,n.$ref));for(let h in u){let E=u[h],b=typeof E=="object";if(b&&(p==null?void 0:p.defaultAggregation)===h&&sz(u,p)&&(l=az(e,t,p)||l,b=!1),!!b)if((m=(g=E.metadata)==null?void 0:g.path)!=null&&m.length){let O=E.metadata.path,N=O.slice(r.length),M=rz(i,N);l=jM(a,h)||l;let H=a[h];l=zc({fullSchema:e.fullSchema,schema:E,element:M,contextPath:O,config:H,parent:e},t)||l}else l=t(e,E,a,h)||l}return l}o(zc,"traverseSchema");function Pf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,MM.parse)(e.fileContent),s=(0,wM.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,VM.xml2js)(e.fileContent)}catch(r){ae(n,{severity:UM.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:gm(r)}),location:{path:e.dataSourceUri}})}return i}o(Pf,"parseXML");function xf(e){return`${kM.DefinitionName.CustomExtensionFragment}<${e}>`}o(xf,"getCustomExtensionFragmentDefinitionKey");function eT(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(eT,"getRootElement");var qP=te(ce()),YP=te(ce());var Yp=te(ce());function _s(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(_s,"getAttribute");function $M(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o($M,"getNodeByName");function cz(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}o(cz,"resolveMetaPath");function GP(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=_s(t,"contextPath")||i.contextPath,a=_s(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let O=cz(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,h=a.split("#");h.length&&(m=h[1]);let E;if(a){let O=a.split(".");O.length&&(E=O[O.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:E}:void 0}o(GP,"getEntityTypeResolution");function BM(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(BM,"applyAnnotationPath");function lz(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=sf(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=Wb(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(lz,"getTableLineItemAnnotationData");var HM={"sap.fe.macros.Chart":o(e=>{let t=GP(e);BM(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=GP(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ii(Yp.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);tP(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=GP(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=ii(Yp.UIVOCABULARY,n);if(BM(t,r),t.annotationPath){let u=lz(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:Yp.DefinitionName.LineItems,isMacro:!0};sE(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var GM=te(ce());var fz=new Map([["filterFields","SelectionField::"]]),uz=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),zp={anchor:"anchor",placement:"placement",key:"key"};function pz(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[rn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return zp.anchor in r&&zp.placement in r}return!1}o(pz,"isCustomExtensionSchema");function WM(e){let t=fz.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=uz.get(e),t&&(n.prefix=t)),n}o(WM,"getAnnotationPrefix");function dz(e,t,n,i){let r=t.properties[n],a=WM(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=_s(l,zp.key)||n,p=_s(l,zp.anchor),g=_s(l,zp.placement)||GM.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,h={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:h}}o(dz,"getExtensionData");function gz(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=dz(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}va(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],u=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in a&&(u=t.properties[a[l]]),u&&(u.propertyIndex=s)}}o(gz,"updatePropertyIndices");function mz(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=_s(e.subElements[s],"key")||r}return r}o(mz,"getCorrectedAnchorEnumKey");function hz(e,t,n,i){var a,s;let r=WM(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;rs(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let g=((s=(a=p.properties)==null?void 0:a[u])==null?void 0:s.oneOf)||[];for(let m of g)typeof m=="object"&&typeof m.const=="string"&&(m.const=mz(e,m.const,r,t.properties[m.const]))}}o(hz,"applyEnumsForAnchors");function KM(e,t,n,i){pz(t,n)&&(i=i||e.name,gz(e,t,i),hz(e,t,n,i))}o(KM,"handleExtensions");var ui=[];for(let e=0;e<256;++e)ui.push((e+256).toString(16).slice(1));function XM(e,t=0){return(ui[e[t+0]]+ui[e[t+1]]+ui[e[t+2]]+ui[e[t+3]]+"-"+ui[e[t+4]]+ui[e[t+5]]+"-"+ui[e[t+6]]+ui[e[t+7]]+"-"+ui[e[t+8]]+ui[e[t+9]]+"-"+ui[e[t+10]]+ui[e[t+11]]+ui[e[t+12]]+ui[e[t+13]]+ui[e[t+14]]+ui[e[t+15]]).toLowerCase()}o(XM,"unsafeStringify");var QM=require("crypto");var nT=new Uint8Array(256),tT=nT.length;function WP(){return tT>nT.length-16&&((0,QM.randomFillSync)(nT),tT=0),nT.slice(tT,tT+=16)}o(WP,"rng");var qM=require("crypto"),KP={randomUUID:qM.randomUUID};function yz(e,t,n){var r;if(KP.randomUUID&&!t&&!e)return KP.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??WP();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=i[a];return t}return XM(i)}o(yz,"v4");var XP=yz;var QP="sap.fe.macros",Tz=["id","key","title","text","label","header"];function YM(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(YM,"getElementName");function vz(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(vz,"isElementWithNamespace");function bz(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(bz,"getDependencies");function Ez(e,t){let n="",i=e.attributes||[];for(let r of Tz){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(Ez,"getViewNodeDescription");function Sz(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(Sz,"findAvailableName");function zM(e,t){if(e.properties={},e.$ref){let n=rn(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(zM,"prepareSchemaProperties");function Az(e,t,n){t.properties||zM(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(Az,"handleAttributes");function Pz(e){e.type===YP.MacrosPropertyType.Control&&(e.internalId=XP())}o(Pz,"applyIdForMacros");function xz(e,t,n){var i,r;try{(r=(i=HM)[e])==null||r.call(i,t)}catch{ae(n,{severity:qP.LogSeverity.Error,message:Q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(xz,"callAnnotationHandler");function Cz(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===YP.MacrosPropertyType.Control&&(e.controlName=n)}o(Cz,"updateMetadataByReference");function Iz(e,t,n,i){var h,E,b,O,N;let r=n.schema;t.properties||zM(t,r);let a=t.properties[i],s=(h=a==null?void 0:a.metadata)==null?void 0:h.type,l=(E=a==null?void 0:a.metadata)==null?void 0:E.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&O.length?Sz(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(rn(a.$ref)):g=[`${QP}.${i}`,`${QP}.table.${i}`,`${QP}.filterBar.${i}`];let m=!1;for(let M of g){let H=(N=r.definitions)==null?void 0:N[M];if(typeof H!="object")continue;Cz(u,H,M);let $=Ez(e,i),re={$ref:dm(M),description:$,propertyIndex:n.index,metadata:u};Az(e,re,r),t.properties[p]=re,m=!0,xz(M,{...n,node:e,schema:re,rootSchema:n.schema},n.logger);break}if(Pz(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let M={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=M}return p}o(Iz,"addControlToSchema");function JM(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split(j)[1];a&&t.indexOf(a)===-1&&t.push(a)}JM(r,t)}}o(JM,"populateUsedDefinitionKeys");function Oz(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let i=t.additionalProperties.$ref.split(".");if(i[i.length-1]===e.name)return!0}return!1}o(Oz,"isElementAddableToSchema");function Rz(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!$M(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(Rz,"getDefaultAggregation");function Lz(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,ZM(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:YM(s),index:a}]},i)}}o(Lz,"handleSubElementsOfXMLNode");function ZM(e,t,n,i){var g,m,h;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[rn(t.$ref)]:t;if(vz(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let E=(h=t.metadata)==null?void 0:h.defaultAggregation;E&&Oz(e,t.properties[E])&&(t=t.properties[E]);let b=e.name.split(":"),O=Iz(e,t,n,b[b.length-1]);if(t.properties[O])t=t.properties[O];else return}let{subElements:l=[]}=e,u=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&u&&n.schema.definitions[u]&&i.indexOf(u)===-1&&(i.push(u),JM(t,i));let p=Rz(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),Lz(l,t,n,i),r.push({node:e,schema:t});for(let E of r)KM(E.node,E.schema,n.schema,E.name)}o(ZM,"handleXMLNode");function Nz(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}o(Nz,"getMacrosPrefixes");function Jc(e,t,n,i){let r=Pf(t.file,!0,i),a=[];if(!r)return;Qt();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){ae(i,{severity:qP.LogSeverity.Error,message:Q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=bz(l),p=Nz(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let h=l.subElements[m],E=!g[h.name];g[h.name]=!0,ZM(h,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:E,path:[{name:YM(h),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(Jc,"generateMacrosSchemaDefinition");function ek(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&ek(i.subSections,t)}}o(ek,"populateTemplates");function tk(e,t,n,i){var s,l,u;let r=Tc(n.manifest,i),a=[];ek(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=xf(p);e.definitions[m]=g;let h=vc(n.fragments,r,n.manifest,"fragment",p);if(h){g.metadata.filePath=h.relativeFilePath;let{properties:E={},definitions:b={}}=Jc(t,h,n.serviceAVT,n.logger)||{};g.properties=E;for(let O in b)e.definitions[O]||(e.definitions[O]=b[O])}}return t}o(tk,"resolveFragments");var Fz=["header","layout","sections","footer"],Dz=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],JP="Custom Action";function ak(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=Mm(t.item,e),p=Br(t.item),m=t.item.$Type===Ui.UIAnnotationTypes.DataFieldForActionGroup,h=m?R.DefinitionName.ObjectPageHeaderActionGroup:R.DefinitionName.ObjectPageHeaderAction,E=t.item.fullyQualifiedName.replace(`@${Ui.UIAnnotationTerms.Identification}`,`/@${Ui.UIAnnotationTerms.Identification}`),b=`${h}<${ct(p)}>`,O=i.definitions[b]={type:"object",$ref:`${j}${h}`,description:ai(t.item,r)};if(O[R.SchemaTag.isViewNode]=!0,O[R.SchemaTag.dataType]=Hr(t.item),O[R.SchemaTag.propertyIndex]=s,m){O.properties={},Aa(O,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let N=(t.item.Actions??[]).map((M,H)=>({item:M,index:H}));zP(N,e,i,r,O,R.ActionType.Annotation)}else O[R.SchemaTag.keys]=[],t.item[R.SchemaKeyName.semanticObject]&&O[R.SchemaTag.keys].push({name:R.SchemaKeyName.semanticObject,value:t.item[R.SchemaKeyName.semanticObject]}),O[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:l});u&&(i.definitions[b][R.SchemaTag.target]=u),O[R.SchemaTag.actionType]=n,O[R.SchemaTag.annotationPath]=`/${E}`,a.properties[p]={$ref:`${j}${b}`},a.properties[p][R.SchemaTag.propertyIndex]=s}o(ak,"addSingleHeaderActionV4");function nk(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[R.SchemaTag.isViewNode]=!0,s[R.SchemaTag.propertyIndex]=i,s[R.SchemaTag.keys]=[],s[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:e}),s[R.SchemaTag.actionType]=R.ActionType.Standard,n.properties[r]={$ref:`${j}${a}`},n.properties[r][R.SchemaTag.propertyIndex]=i,s}o(nk,"addStandardHeaderAction");function ik(e,t,n,i,r,a){let s=Br(e.item),l=ai(e.item,n),u=ct(`${R.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Ui.UIAnnotationTerms.Identification}`,`/@${Ui.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${j}${R.DefinitionName.FooterActionV4}`,description:l};g[R.SchemaTag.isViewNode]=!0,g[R.SchemaTag.actionType]=t,g[R.SchemaTag.propertyIndex]=a,g[R.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${j}${u}`}}o(ik,"addSingleFooterAction");function _z(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Ui.UIAnnotationTypes.DataFieldForAction||i.$Type===Ui.UIAnnotationTypes.DataFieldForActionGroup||i.$Type===Ui.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(Dz.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(_z,"groupByCriticality");function Vz(e,t,n,i,r,a){let s=e.findIndex(l=>{var u,p;return((p=(u=l.item.annotations)==null?void 0:u.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(ak(t,e[s],R.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(Vz,"addCopyAction");function zP(e,t,n,i,r,a,s=0){let l=s;for(let u of e)ak(t,u,a,n,i,r,l),l++}o(zP,"addGroupedHeaderActions");function wz(e){let t="RelatedApps",n=e.properties[t]={$ref:`${j}${t}`,description:"Related Apps"};n[R.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[R.SchemaTag.artifactType]=R.ArtifactType.Manifest,n[R.SchemaTag.actionType]=R.ActionType.Standard,n[R.SchemaTag.isViewNode]=!0,n[R.SchemaTag.keys]=[{name:R.SchemaKeyName.action,value:t}]}o(wz,"addRelatedAppsButton");function rk(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[R.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`:e[R.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`}o(rk,"setAnnotationPathFromEntitySetOrEntityType");function Mz(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?_z(n):{};if(zP(s,r.serviceAVT,t,e,i,R.ActionType.Criticality),r.entitySet){let p=e1(r.entitySet),g=t1(r.entitySet);if(_m(r.entitySet)&&g){let m=nk("Edit",t,i,s.length);rk(m,r.entitySet,e,"UpdateHidden")}if(p){let m=nk("Delete",t,i,s.length+1);rk(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;Vz(l,r.serviceAVT,t,e,i,u),zP(l,r.serviceAVT,t,e,i,R.ActionType.Annotation,u),sk(t,a,R.DefinitionName.CustomHeaderActionOP,r.logger),wz(i)}o(Mz,"addHeaderActionCallBackV4");function kz(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Ui.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];ik(l,R.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];ik(l,R.ActionType.Annotation,e,t,n,r.length+s)}}o(kz,"addFooterActionCallBackV4");function Uz(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Ui.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomColumnOP}<${n}>`:R.DefinitionName.CustomColumnOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${R.DefinitionName.CustomColumnOP}<${n}>`;mc(e,t,r,u,n,i);let p=a?n:R.DefinitionName.PositionOP;vt(R.DefinitionName.PositionOP,p,e,a);let g=a?`${R.DefinitionName.PositionOP}<${n}>`:R.DefinitionName.PositionOP;l.properties.position.$ref=`${j}${g}`,yc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&rE(m,l)}o(Uz,"addCustomColumnsOP");function jz(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Ui.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomTableActionOP}<${n}>`:R.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description=JP;let u=`${R.DefinitionName.CustomTableActionOP}<${n}>`,p=`${R.DefinitionName.Actions}<${ct(n)}>`;Ea(e,t,r,u,p,i);let g=a?n:R.DefinitionName.CustomActionPositionOP;vt(R.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${R.DefinitionName.CustomActionPositionOP}<${n}>`:R.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${j}${m}`,lo(e,p,m)}o(jz,"addTableCustomActionsOP");function sk(e,t,n,i){let r=e.definitions[n];r[R.SchemaTag.isViewNode]=!0,r.description=JP;let a=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.ObjectPageHeaderActions:R.DefinitionName.FooterActions;Pm(e,t,i,n,a);let s=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.CustomHeaderActionPositionOP:R.DefinitionName.CustomFooterActionPositionOP;vt(s,s,e,!1),r.properties.position.$ref=`${j}${s}`,lo(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${j}${n}`})}o(sk,"addHeaderFooterCustomActionsOP");function $z(e,t,n,i,r){let a=`${R.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[R.SchemaTag.isViewNode]=!0,s.description=JP;let l=`${R.DefinitionName.CustomFormActionOP}<${n}>`,u=`${R.DefinitionName.SectionActions}<${ct(n)}>`;Ea(e,t,r,l,u,i),vt(R.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${R.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${j}${p}`,lo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${j}${a}`})}o($z,"addFormCustomActionsOP");function Bz(e,t,n,i,r,a,s){let l=Ec(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=vt(R.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${j}${l}`},g.properties.toolBar.$ref=oi(R.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=oi(R.DefinitionName.QuickVariantSelectionV4OP,t);let m=vt(R.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=oi(R.DefinitionName.AnnotationPathAsObject,t),vt(R.DefinitionName.AnnotationPathAsObject,t,n),as(e.entityType,n,`${R.DefinitionName.AnnotationPathAsObject}<${l}>`);let h={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return hc(h,R.DefinitionName.ObjectPageTableColumn,R.DefinitionName.CustomColumnOP,R.DefinitionName.CustomTableActionOP),Uz(n,a,l,t,s),jz(n,a,l,t,s),g}o(Bz,"handleLineItem");function ck(e,t,n,i,r,a,s){s&&iT(s,t,R.DefinitionName.ObjectPageSectionTableV4);let l=vt(R.DefinitionName.ObjectPageSectionTableV4,t,n);ya(e,l,Ec(t)),ts(e,l,Ec(t)),l[R.SchemaTag.annotationPath]=e.annotationPath,l[R.SchemaTag.target]=e.namespace,l.properties.table.$ref=oi(R.DefinitionName.ObjectPageTable,t);let u=Bz(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(ck,"handleSectionTable");function Hz(e,t,n,i,r,a,s){let l;a===R.SectionType.Section?l=R.DefinitionName.ObjectPageSectionForm:a===R.SectionType.HeaderSection&&(l=R.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:oi(l,n)};let u=vt(l,n,r);e.ID||(u.properties={}),ya(e,u,n),ts(e,u,n),u[R.SchemaTag.annotationPath]=e.annotationPath,u[R.SchemaTag.target]=e.namespace,u[R.SchemaTag.isViewNode]=!0;let p=wm(a,e,u,r,R.FioriElementsVersion.v4,n);if(e.base===R.FacetBase.Form){let g=Ec(n);vt(R.DefinitionName.CustomFormActionOP,p,r),$z(r,t,p,g,s)}}o(Hz,"handleFormIdentification");function ok(e,t,n,i,r){n.properties[t]={$ref:`${j}${r}`};let a=vt(R.DefinitionName.CommonHeaderFacetSettings,r,i,!1);Ol(e,a,t),a[R.SchemaTag.annotationPath]=e.annotationPath,a[R.SchemaTag.target]=e.namespace,a[R.SchemaTag.dataType]=Sc(e==null?void 0:e.target),a[R.SchemaTag.isViewNode]=!0}o(ok,"handleHeaderFacet");function Gz(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,u=ai(l,i),p=l.$Type.split(R.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:oi(R.DefinitionName.ObjectPageToolBarAction,g),description:u};m[R.SchemaTag.propertyIndex]=a,m[R.SchemaTag.annotationType]=l.$Type;let h=vt(R.DefinitionName.ObjectPageToolBarAction,ct(g),n);h[R.SchemaTag.annotationPath]=Bm(l),h[R.SchemaTag.dataType]=Hr(l),h.properties={},a++})}return r}o(Gz,"handleChartActions");function Wz(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[R.SchemaTag.annotationPath]=Bm(e),r[R.SchemaTag.dataType]=Sc(e.target||e),r[R.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=oi(R.DefinitionName.ObjectPageToolBar,t);let a=vt(R.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=oi(R.DefinitionName.ObjectPageToolBarActions,t);let s=Gz(e,t,n,i);return{chart:r,chartActions:s}}o(Wz,"handleChart");function lk(e,t,n,i,r=e.entityType,a=!1,s){let l=a?R.DefinitionName.CommonHeaderFacetSettings:R.DefinitionName.ObjectPageSectionChart,u=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart;i&&iT(i,t,l);let p=Ou(u,t),g=vt(l,p,n,!1);if(Ol(e,g,t),a)return delete g.properties.chart,{parentChartRef:g};g[R.SchemaTag.annotationPath]=Bm(e),g.properties.chart.$ref=oi(R.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:h}=Wz(e.target||e,t,n,r);return m[R.SchemaTag.target]=s,{parentChartRef:g,chart:m,chartActions:h}}o(lk,"handleSectionChart");function Kz(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${VE(r,n.serviceAVT)}`,l=s.split(R.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(Kz,"getVisualizationKeyAndType");function Xz(e,t,n){var r,a;return(a=(r=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:r.annotations)==null?void 0:a.UI[n]}o(Xz,"getTargetFromNavigation");function Qz(e,t,n){let i=e.target[R.FacetBase.PresentationVariant]?e.target[R.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:u}=Kz(!!r,a,n),p=r?a:Xz(n,s,u),g=e.target[R.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:u,target:p,namespace:g,navigationPath:s}}o(Qz,"getVisualizationProps");function iT(e,t,n,i){e.properties[t]={$ref:oi(n,i||t)}}o(iT,"addPropertyRef");function fk(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(fk,"getSectionPropertyRef");function qz(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:u}=fk(t,r);iT(i,l,R.DefinitionName.ObjectPageSectionTableV4,u);let{sectionTable:p,table:g}=ck(e,u,n,{target:r.target,entityType:e.entityType},a,s);p[R.SchemaTag.annotationPath]=e.annotationPath,Ol(e,p,t),delete p[R.SchemaTag.isViewNode],g[R.SchemaTag.annotationPath]=`/${r.namespace}/${r.key}`,g[R.SchemaTag.target]=r.namespace}o(qz,"addPVLineItemSection");function Yz(e,t,n,i,r,a=!1){let s=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:u}=fk(t,r);iT(i,l,s,u);let{parentChartRef:p}=lk(r.target,u,n,void 0,e.entityType,a,r.namespace);p[R.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(ya(e,p,t),gD(e,p)):Ol(e,p,t)}o(Yz,"addPVChartSection");function zz(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){ae(a.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=Qz(e,t,a),u=r===R.SectionType.HeaderSection;l&&(l.type.startsWith(R.Visualization.Chart)?Yz(e,t,n,i,l,u):l.type.startsWith(R.Visualization.LineItem)&&qz(e,t,n,i,l,a,s))}o(zz,"handleSectionPresentationVariant");function Jz(e){let t=e.facets||{};for(let n in t)if(t[n].base===R.FacetBase.CollectionFacet)return!0;return!1}o(Jz,"containsCollectionFacet");function Zz(e,t,n){var a;let i=`${R.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[R.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};pc(n,R.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(Zz,"createCustomSubSectionReference");function e9(e,t,n,i){var a,s,l,u;let r=(u=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:u.sections;if(r)for(let p in r){let g=vt(n,p,e),m=vt(R.DefinitionName.ObjectPageCustomSectionActions,p,e),h=vt(R.DefinitionName.CustomSectionActionOP,p,e),E=`${R.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${j}${E}`};let b=`${R.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${j}${b}`},vt(R.DefinitionName.CustomSectionActionPositionOP,p,e);let O=`${R.DefinitionName.CustomSectionActionPositionOP}<${p}>`;h.properties.position.$ref=`${j}${O}`,h[R.SchemaTag.isViewNode]=!0,Ea(e,t,i,b,E,p),lo(e,E,O)}}o(e9,"applyCustomActionsToCustomSections");function ZP(e,t,n,i,r,a,s){var m,h,E,b,O;let l=!1,u;a&&s?(l=!Jz(a),u=Zz(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${j}${u}`},BD(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&rs(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[R.SchemaKeyName.id,R.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(R.DefinitionName.ObjectPageCustomSectionFragment)){let N=t.definitions[R.DefinitionName.ObjectPageCustomSectionActions];N.properties={},e9(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(R.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let N=(O=(b=(E=(h=(m=i.options)==null?void 0:m.settings)==null?void 0:h.content)==null?void 0:E.body)==null?void 0:b.sections)==null?void 0:O[s],M=N&&"subSections"in N?N.subSections:{};for(let H=g.oneOf.length-1;H>=0;H--){let $=g.oneOf[H];M[$.const]||($.hidden=!0)}}}o(ZP,"applyCustomSections");function t9(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=wo(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[R.SchemaTag.annotationPath]=e.annotationPath,g[R.SchemaTag.target]=e.namespace,g[R.SchemaTag.keys]=[{name:R.SchemaKeyName.id,value:e.ID}],g[R.SchemaTag.isViewNode]=!0;let m=l+1;for(let h in e.facets)ex(a,e.facets,h,g,n,r,s,m);u&&ZP(g,n,a,s,R.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(t9,"handleCollection");function ex(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${Ec(n)}>`;switch(u.base){case R.FacetBase.PresentationVariant:case R.FacetBase.SelectionPresentationVariant:{zz(u,n,r,i,a,e,s);break}case R.FacetBase.CollectionFacet:{t9(u,n,r,i,a,e,s,l);break}case R.FacetBase.LineItem:{if(a===R.SectionType.Section){let g=t[n];ck(u,n,r,g,e,s,i)}break}case R.FacetBase.Form:case R.FacetBase.Identification:{Hz(u,s,n,i,r,a,e.logger);break}case R.FacetBase.DataPoint:{ok(u,n,i,r,p);break}case R.FacetBase.Chart:{a===R.SectionType.HeaderSection?ok(u,n,i,r,p):a===R.SectionType.Section&&lk(u,n,r,i);break}case R.FacetBase.Address:case R.FacetBase.Contact:{Ru(u,n,i,r,a);break}default:i.properties[n]=wo(r,u,n)}}o(ex,"addSection");function n9(e,t,n){let i=fm(e.entityType,e.serviceAVT,R.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[R.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[R.DefinitionName.Sections];for(let a in i)ex(e,i,a,r,t,R.SectionType.Section,n);ZP(r,t,e,n,R.DefinitionName.ObjectPageCustomSectionFragment)}o(n9,"addSections");function i9(e,t,n,i){let r=lm(n,e.serviceAVT,R.FioriElementsVersion.v4,e.logger),a=t.definitions[R.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)ex(e,r,s,a,t,R.SectionType.HeaderSection,i);ZP(a,t,e,i,R.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionAddress]}}o(i9,"addHeaderSections");function r9(e,t,n){let i=e.entityType;jm(t,i),Um(t,i,e,Mz,n),i&&(t.definitions[R.DefinitionName.HeaderSections][R.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Ui.UIAnnotationTerms.HeaderFacets}`),i9(e,t,i,n)}o(r9,"addHeader");function Jp(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${j}${R.DefinitionName.Sections}`},!e.manifest[R.ManifestSection.ui5].routing||!e.manifest[R.ManifestSection.ui5].routing.targets)return ae(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:R.MANIFESTPATH}}),r;let a=r.definitions[R.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:R.DefinitionName.Sections};if(a[R.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[R.ManifestSection.ui5].routing.targets;if(!s)return ae(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:R.MANIFESTPATH,range:[R.ManifestSection.generic]}}),r;let l=Am(s,R.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(r9(e,r,l),a[R.SchemaTag.isViewNode]=!0,e.entityType&&(a[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Ui.UIAnnotationTerms.Facets}`),pc(e.featureToggles,R.Features.BuildingBlocks)&&i){r.definitions[R.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{tk(r,i,e,l.id)}catch(u){ae(e.logger,{severity:R.LogSeverity.Error,message:u})}}n9(e,r,l),km(r,e,R.FioriElementsVersion.v4,kz),sk(r,l,R.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[R.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[R.DefinitionName.GenericColumnsOP],delete r.definitions[R.DefinitionName.GenericSections],delete r.definitions[R.DefinitionName.GenericSubSections],delete r.definitions[R.DefinitionName.ObjectPageChart],delete r.definitions[R.DefinitionName.ObjectPageSectionAddress],delete r.definitions[R.DefinitionName.ObjectPageSectionChart],delete r.definitions[R.DefinitionName.ObjectPageSectionContact],delete r.definitions[R.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[R.DefinitionName.ObjectPageSectionForm],delete r.definitions[R.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[R.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[R.DefinitionName.ObjectPageSubSections],delete r.definitions[R.DefinitionName.ObjectPageTable],delete r.definitions[R.DefinitionName.ObjectPageToolBar],delete r.definitions[R.DefinitionName.ObjectPageToolBarAction],delete r.definitions[R.DefinitionName.ObjectPageToolBarActions],delete r.definitions[R.DefinitionName.QuickVariantSelectionV4OP],ko(r,Fz),r}o(Jp,"generateObjectPageSchemaV4");function tx(e,t){return JSON.parse(JSON.stringify(t))}o(tx,"generateFreestyleSchemaV4");var Jr=te(ce());function nx(e,t,n,i,r,a,s,l,u){let p=jr(n,r),{entitySet:g,entityType:m}=Zc(p,s,t,r),h={templateType:Jr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Jr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Jp(h,e,s,l)}o(nx,"generateObjectPageInterfaceV4");function rT(e,t,n,i,r,a,s){Qt();let l=jr(i,r),{entitySet:u,entityType:p}=Zc(l,s,n,r),g={templateType:e,fioriElementsVersion:Jr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Jr.TemplateType.ListReportObjectPageV4?Jr.v4.FE_TEMPLATE_V4_LIST_REPORT:Jr.v4.FE_TEMPLATE_V4_ALP;return Ap(g,t,m,s)}o(rT,"generateListReportInterfaceV4");function ix(e,t,n,i,r,a){let s=jr(n,a),l={templateType:e,fioriElementsVersion:Jr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return tx(l,t)}o(ix,"generateFreestyleInterfaceV4");function rx(e,t,n,i,r,a,s){let l={};if(pc(a,Jr.Features.BuildingBlocks)){let u=jr(r,s),p=Uo(i||[],t,n,s);l=p!=null&&p.file.fileContent?Jc(e,p,u,s):{}}return l}o(rx,"generateFPMCustomPageInterfaceV4");var tl=require("@sap-ux/vocabularies-types/vocabularies/UI"),mk=te(ce());var el=te(ce());var dk=new Map([[el.PageTypeV2.ListReport,el.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[el.PageTypeV2.ObjectPage,el.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),uk=o((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),pk=o(e=>{var t;for(let[n,i]of dk)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),o9=o((e,t)=>{let n="";for(let[r,a]of dk)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),gk={manifest:{path:o(()=>`sap.ui5/extends/extensions/${el.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=pk(n);i&&(t[i]={},uk(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=o9(s,i);e[l]||(e[l]={}),uk(r[s],e[l])}for(let s in e){let l=pk(s);l&&!r[l]&&delete e[s]}},"export")}};var ft=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),sT=o(e=>ft(e)+"/views/paths","getSettingsPathForLRViewsPaths"),cT=o(e=>ft(e)+"/content/header","getSettingsPathForHeaderOP"),a9=o(e=>ft(e)+"/content/footer","getSettingsPathForFooterOP"),eo=o(e=>ft(e)+"/controlConfiguration","getControlConfigurationPath"),lT=o((e,t,n)=>eo(e)+`/@${tl.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),fT=o(e=>eo(e)+`/@${tl.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Vs=o((e,t,n,i)=>eo(e)+`/@${tl.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),ox=o((e,t,n,i)=>fT(e)+`/filterFields/${i}`,"getFilterFieldPath"),Cr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?eo(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),nr=o((e,t,n,i,r)=>r?Cr(e,t,n,i,r):eo(e)+`/@${tl.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),uT=o((e,t,n,i,r)=>nr(e,t,n,i,r)+mk.QUICKVARPATH,"getQuickVariantPath"),ir=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?eo(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),ji=o((e,t,n,i,r)=>r?ir(e,t,n,i,r):eo(e)+`/@${tl.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),to=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?eo(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Ir=o((e,t,n,i,r)=>r?to(e,t,n,i,r):eo(e)+`/@${tl.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),rr=o((e,t,n,i)=>eo(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),Un=o((e,t,n,i)=>eo(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),pi=o((e,t,n,i)=>cT(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),pT=o((e,t,n,i)=>ft(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),So=o((e,t,n,i)=>a9(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Fn=o((e,t,n)=>eo(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),If=o((e,t,n,i)=>{let r=ft(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),ws=o((e,t,n,i)=>ft(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Or=o((e,t,n,i)=>{let r=ft(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),Of=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=ft(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),aT=class aT{};o(aT,"ApplicationV4"),y([jt("settings")],aT.prototype,"settings",2);var oT=aT,Zr=class Zr{};o(Zr,"AppSettings"),y([v({manifest:{path:o(()=>"sap.app","path")}})],Zr.prototype,"title",2),y([v({manifest:{path:o(()=>"sap.app","path")}})],Zr.prototype,"description",2),y([v({manifest:{path:o(()=>"sap.fiori","path")}})],Zr.prototype,"cloudDevAdaptationStatus",2),y([v({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),x({since:"1.78.0"})],Zr.prototype,"flexibleColumnLayout",2),y([v({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"})],Zr.prototype,"flexEnabled",2),y([v({manifest:{path:o(()=>"sap.ui5","path")}})],Zr.prototype,"dependencies",2),y([v({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Zr.prototype,"viewType",2),y([v({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Zr.prototype,"path",2),y([v(gk)],Zr.prototype,"controllerExtensions",2);var Cf=Zr;var he=te(ce());var oI={};sc(oI,{ALPChart:()=>dC,ALPTable:()=>Mf,ActionAfterExecutionConfiguration:()=>MC,ActionAfterExecutionConfigurationFooter:()=>Cx,ActionAfterExecutionConfigurationForm:()=>Lx,ActionAfterExecutionConfigurationOP:()=>Td,ActionAfterExecutionConfigurationObjectPageHeader:()=>Bx,ActionAfterExecutionConfigurationToolBarLR:()=>QC,Actions:()=>GC,AdditionalSemanticObject:()=>VC,CommonHeaderFacetSettings:()=>Ws,CommonViewSettings:()=>wf,CustomActionPosition:()=>ZC,CustomActionPositionOP:()=>LC,CustomFilterField:()=>lx,CustomFilterFieldPosition:()=>cx,CustomFooterActionOP:()=>Rx,CustomFooterActionPositionOP:()=>Ox,CustomFormActionOP:()=>kx,CustomHeaderAction:()=>gx,CustomHeaderActionOP:()=>Kx,CustomHeaderActionPosition:()=>nd,CustomHeaderActionPositionOP:()=>Wx,CustomSectionActionOP:()=>Ex,CustomSectionActionPositionOP:()=>bx,CustomTableAction:()=>eI,CustomTableActionOP:()=>NC,FilterBar:()=>ax,FlexSettings:()=>qx,FooterActionV4:()=>Ix,FormAction:()=>Nx,Header:()=>ux,HeaderActions:()=>fx,HeaderSections:()=>tC,LRChartView:()=>gC,LRTableView:()=>mC,MultiTableModeV4:()=>yC,ObjectPageCustomHeaderSectionFlexSettings:()=>mx,ObjectPageCustomHeaderSectionFragment:()=>hx,ObjectPageCustomSectionActions:()=>yx,ObjectPageCustomSectionFragment:()=>Lf,ObjectPageCustomSubSectionFragment:()=>Tx,ObjectPageFooter:()=>Ax,ObjectPageFooterActions:()=>Sx,ObjectPageForm:()=>_x,ObjectPageFormActionGroup:()=>Fx,ObjectPageFormActions:()=>Dx,ObjectPageHeader:()=>jx,ObjectPageHeaderAction:()=>Hx,ObjectPageHeaderActionGroup:()=>Gx,ObjectPageHeaderActions:()=>Ux,ObjectPageHeaderSectionAddress:()=>eC,ObjectPageHeaderSectionChart:()=>zx,ObjectPageHeaderSectionContact:()=>Zx,ObjectPageHeaderSectionDataPoint:()=>Jx,ObjectPageHeaderSectionForm:()=>Yx,ObjectPageLayout:()=>cC,ObjectPageTable:()=>gd,ObjectPageTableColumn:()=>$f,ObjectPageTableColumnAction:()=>PC,ObjectPageToolBarAction:()=>OC,ObjectPageToolBarActionGroup:()=>RC,ObjectPageToolBarActions:()=>FC,PersonalizationType:()=>fC,PersonalizationTypeOP:()=>SC,Position:()=>jC,PositionOP:()=>xC,QuickVariantSelectionV4:()=>pC,QuickVariantSelectionV4OP:()=>AC,RelatedApps:()=>wC,Table:()=>TC,TableColumn:()=>CT,TableColumnAction:()=>kC,TableCreationModeOP:()=>EC,TableCustomColumn:()=>BC,TableCustomColumnOP:()=>CC,TableSettings:()=>vT,TableViewExtension:()=>hC,TableViewSettings:()=>ud,ToolBar:()=>WC,ToolBarAction:()=>qC,ToolBarActionGroup:()=>YC,ViewCustomActionPosition:()=>tI,ViewPersonalizationType:()=>uC,ViewPosition:()=>$C,ViewTableColumn:()=>IT,ViewTableColumnAction:()=>UC,ViewTableCustomAction:()=>nI,ViewTableCustomColumn:()=>HC,ViewToolBarAction:()=>JC,ViewToolBarActionGroup:()=>zC,VisualFilter:()=>sx,checkViewOrder:()=>vC,deleteCreationModeProperty:()=>dd,deletePersonalizationProperty:()=>Co,exportCreationModeProperty:()=>pd,exportPersonalization:()=>AT,exportPersonalizationProperty:()=>xo});function s9(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(s9,"exportVisualFilterValueList");var Rf=class Rf{};o(Rf,"FilterBar"),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.99.0"}),Re("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],Rf.prototype,"hideFilterBar",2),y([v({manifest:{path:fT}}),x({since:"1.93.0"}),Re("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Rf.prototype,"initialLayout",2),y([v({manifest:{path:fT}}),x({since:"1.93.0"}),Re("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Rf.prototype,"layout",2);var ax=Rf,Zp=class Zp{};o(Zp,"VisualFilter"),y([v({manifest:{path:ox}}),x({since:"1.93.0"}),Re("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Zp.prototype,"availability",2),y([v({manifest:{path:ox,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:s9,key:"visualFilter"}}),x({since:"1.93.0"})],Zp.prototype,"visualFilterValueList",2);var sx=Zp,ed=class ed{};o(ed,"CustomFilterFieldPosition"),y([v({manifest:{path:o((t,n,i,r)=>Vs(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],ed.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r)=>Vs(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],ed.prototype,"placement",2);var cx=ed,Ms=class Ms{};o(Ms,"CustomFilterField"),y([v({manifest:{path:Vs}}),x({since:"1.77.0"})],Ms.prototype,"label",2),y([v({manifest:{path:Vs}}),x({since:"1.77.0"})],Ms.prototype,"property",2),y([v({manifest:{path:Vs}}),x({since:"1.77.0"})],Ms.prototype,"template",2),y([v({manifest:{path:Vs}}),x({since:"1.77.0"})],Ms.prototype,"required",2),y([v({manifest:{path:Vs}}),x({since:"1.77.0"})],Ms.prototype,"position",2);var lx=Ms;var px=class px{};o(px,"HeaderActions");var fx=px,dx=class dx{};o(dx,"Header");var ux=dx;var td=class td{};o(td,"CustomHeaderActionPosition"),y([v({manifest:{path:o((t,n,i,r)=>pi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],td.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r)=>pi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],td.prototype,"placement",2);var nd=td,ks=class ks{};o(ks,"CustomHeaderAction"),y([v({manifest:{path:pi}}),x({since:"1.84.0"})],ks.prototype,"text",2),y([v({manifest:{path:pi}}),x({since:"1.84.0"})],ks.prototype,"position",2),y([v({manifest:{path:pi}}),x({since:"1.84.0"})],ks.prototype,"press",2),y([v({manifest:{path:pi},generate:Yn}),x({since:"1.84.0"})],ks.prototype,"visible",2),y([v({manifest:{path:pi},generate:Yn}),x({since:"1.84.0"})],ks.prototype,"enabled",2);var gx=ks;var dT=class dT{};o(dT,"ObjectPageCustomHeaderSectionFlexSettings"),y([v({manifest:{path:o((t,n,i)=>Or(t,n,i,"flexSettings"),"path")}}),x({since:"1.81.0"})],dT.prototype,"designtime",2);var mx=dT,or=class or{};o(or,"ObjectPageCustomHeaderSectionFragment"),y([v({manifest:{path:o((t,n,i)=>Or(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],or.prototype,"relatedFacet",2),y([v({manifest:{path:o((t,n,i)=>Or(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],or.prototype,"relativePosition",2),y([v({manifest:{path:Or},generate:ri}),x({since:"1.84.0"})],or.prototype,"visible",2),y([v({manifest:{path:Or}}),x({since:"1.77.0"})],or.prototype,"title",2),y([v({manifest:{path:Or}}),x({since:"1.77.0"})],or.prototype,"subTitle",2),y([v({manifest:{path:Or,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],or.prototype,"fragmentName",2),y([v({manifest:{path:Or,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),x({since:"1.86.0"})],or.prototype,"templateEdit",2),y([v({manifest:{path:Or}}),x({since:"1.81.0"})],or.prototype,"stashed",2),y([v({manifest:{path:Or}}),x({since:"1.81.0"})],or.prototype,"flexSettings",2),y([v({manifest:{path:Or}}),x({since:"1.81.0"})],or.prototype,"requestGroupId",2),y([v({manifest:{path:Or,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],or.prototype,"controls",2);var hx=or;var vx=class vx{};o(vx,"ObjectPageCustomSectionActions");var yx=vx,Us=class Us{};o(Us,"ObjectPageCustomSectionFragment"),y([v({manifest:{path:o((t,n,i)=>If(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],Us.prototype,"relatedFacet",2),y([v({manifest:{path:o((t,n,i)=>If(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],Us.prototype,"relativePosition",2),y([v({manifest:{path:If}}),x({since:"1.77.0"})],Us.prototype,"title",2),y([v({manifest:{path:If,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Us.prototype,"fragmentName",2),y([v({manifest:{path:If,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Us.prototype,"controls",2);var Lf=Us,js=class js extends Lf{};o(js,"ObjectPageCustomSubSectionFragment"),y([v({manifest:{path:o((...t)=>`${Of.apply({},t)}/position`,"path"),key:"anchor"}}),x({since:"1.77.0"})],js.prototype,"relatedFacet",2),y([v({manifest:{path:o((...t)=>`${Of.apply({},t)}/position`,"path"),key:"placement"}}),x({since:"1.77.0"})],js.prototype,"relativePosition",2),y([v({manifest:{path:Of}}),x({since:"1.77.0"})],js.prototype,"title",2),y([v({manifest:{path:Of,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],js.prototype,"fragmentName",2),y([v({manifest:{path:Of,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],js.prototype,"controls",2);var Tx=js;var id=class id{};o(id,"CustomSectionActionPositionOP"),y([v({manifest:{path:o((t,n,i,r)=>ws(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],id.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r)=>ws(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],id.prototype,"placement",2);var bx=id,$s=class $s{};o($s,"CustomSectionActionOP"),y([v({manifest:{path:ws}}),x({since:"1.84.0"})],$s.prototype,"text",2),y([v({manifest:{path:ws}}),x({since:"1.84.0"})],$s.prototype,"position",2),y([v({manifest:{path:ws}}),x({since:"1.84.0"})],$s.prototype,"press",2),y([v({manifest:{path:ws},generate:ri}),x({since:"1.84.0"})],$s.prototype,"visible",2),y([v({manifest:{path:ws},generate:ri}),x({since:"1.84.0"})],$s.prototype,"enabled",2);var Ex=$s;var Px=class Px{};o(Px,"ObjectPageFooterActions");var Sx=Px,xx=class xx{};o(xx,"ObjectPageFooter");var Ax=xx;var rd=class rd{};o(rd,"ActionAfterExecutionConfigurationFooter"),y([v({manifest:{path:o((t,n,i,r)=>So(t,n,i,r)+"/afterExecution","path")}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],rd.prototype,"navigateToInstance",2),y([v({manifest:{path:o((t,n,i,r)=>So(t,n,i,r)+"/afterExecution","path")}})],rd.prototype,"enableAutoScroll",2);var Cx=rd,gT=class gT{};o(gT,"FooterActionV4"),y([v({manifest:{path:So}}),x({since:"1.84.0"})],gT.prototype,"afterExecution",2);var Ix=gT,od=class od{};o(od,"CustomFooterActionPositionOP"),y([v({manifest:{path:o((t,n,i,r)=>So(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],od.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r)=>So(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],od.prototype,"placement",2);var Ox=od,Bs=class Bs{};o(Bs,"CustomFooterActionOP"),y([v({manifest:{path:So}}),x({since:"1.84.0"})],Bs.prototype,"text",2),y([v({manifest:{path:So}}),x({since:"1.84.0"})],Bs.prototype,"position",2),y([v({manifest:{path:So}}),x({since:"1.84.0"})],Bs.prototype,"press",2),y([v({manifest:{path:So},generate:ri}),x({since:"1.84.0"})],Bs.prototype,"visible",2),y([v({manifest:{path:So},generate:ri}),x({since:"1.84.0"})],Bs.prototype,"enabled",2);var Rx=Bs;var ad=class ad{};o(ad,"ActionAfterExecutionConfigurationForm"),y([v({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/afterExecution","path")}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ad.prototype,"navigateToInstance",2),y([v({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/afterExecution","path")}})],ad.prototype,"enableAutoScroll",2);var Lx=ad,mT=class mT{};o(mT,"FormAction"),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],mT.prototype,"afterExecution",2);var Nx=mT,Vx=class Vx{};o(Vx,"ObjectPageFormActionGroup");var Fx=Vx,wx=class wx{};o(wx,"ObjectPageFormActions");var Dx=wx,Mx=class Mx{};o(Mx,"ObjectPageForm");var _x=Mx;var Hs=class Hs{};o(Hs,"CustomFormActionOP"),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],Hs.prototype,"text",2),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],Hs.prototype,"position",2),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],Hs.prototype,"press",2),y([v({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Hs.prototype,"visible",2),y([v({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Hs.prototype,"enabled",2);var kx=Hs;var $x=class $x{};o($x,"ObjectPageHeaderActions");var Ux=$x,Nf=class Nf{};o(Nf,"ObjectPageHeader"),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],Nf.prototype,"editableHeaderContent",2),y([v({manifest:{path:cT}}),x({since:"1.84.0"})],Nf.prototype,"visible",2),y([v({manifest:{path:cT}}),x({since:"1.84.0"})],Nf.prototype,"anchorBarVisible",2);var jx=Nf;var sd=class sd{};o(sd,"ActionAfterExecutionConfigurationObjectPageHeader"),y([v({manifest:{path:o((t,n,i,r)=>pi(t,n,i,r)+"/afterExecution","path")}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],sd.prototype,"navigateToInstance",2),y([v({manifest:{path:o((t,n,i,r)=>pi(t,n,i,r)+"/afterExecution","path")}})],sd.prototype,"enableAutoScroll",2);var Bx=sd,hT=class hT{};o(hT,"ObjectPageHeaderAction"),y([v({manifest:{path:pi}}),x({since:"1.84.0"})],hT.prototype,"afterExecution",2);var Hx=hT,Xx=class Xx{};o(Xx,"ObjectPageHeaderActionGroup");var Gx=Xx,Qx=class Qx extends nd{};o(Qx,"CustomHeaderActionPositionOP");var Wx=Qx,Gs=class Gs{};o(Gs,"CustomHeaderActionOP"),y([v({manifest:{path:pi}}),x({since:"1.84.0"})],Gs.prototype,"text",2),y([v({manifest:{path:pi}}),x({since:"1.84.0"})],Gs.prototype,"position",2),y([v({manifest:{path:pi}}),x({since:"1.84.0"})],Gs.prototype,"press",2),y([v({manifest:{path:pi},generate:ri}),x({since:"1.84.0"})],Gs.prototype,"visible",2),y([v({manifest:{path:pi},generate:ri}),x({since:"1.84.0"})],Gs.prototype,"enabled",2);var Kx=Gs;var yT=class yT{};o(yT,"FlexSettings"),y([v({manifest:{path:o((t,n,i)=>lT(t,n,i)+"/flexSettings","path")}}),x({since:"1.81.0"}),Re("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],yT.prototype,"designtime",2);var qx=yT,cd=class cd{};o(cd,"CommonHeaderFacetSettings"),y([v({manifest:{path:lT}}),x({since:"1.81.0"})],cd.prototype,"stashed",2),y([v({manifest:{path:lT}}),x({since:"1.81.0"})],cd.prototype,"flexSettings",2);var Ws=cd,nC=class nC extends Ws{};o(nC,"ObjectPageHeaderSectionForm");var Yx=nC,iC=class iC extends Ws{};o(iC,"ObjectPageHeaderSectionChart");var zx=iC,rC=class rC extends Ws{};o(rC,"ObjectPageHeaderSectionDataPoint");var Jx=rC,oC=class oC extends Ws{};o(oC,"ObjectPageHeaderSectionContact");var Zx=oC,aC=class aC extends Ws{};o(aC,"ObjectPageHeaderSectionAddress");var eC=aC,sC=class sC{};o(sC,"HeaderSections");var tC=sC;var TT=class TT{};o(TT,"ObjectPageLayout"),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],TT.prototype,"sectionLayout",2);var cC=TT;var PT=te(ce());var lC=te(ce());var c9=o((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function Po(e,t,n,i,r,a){let s=sT(e),l=c9(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[lC.SchemaTag.key]===(a==null?void 0:a.key)||g[lC.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(Po,"getSettingsPathForLRViewsPath");function l9(e,t,n,i,r,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let u of l){let p=Number(u),g=e[u];t===g.key?s[n]=g:p>=i&&p<=r?s[Math.max(0,p+a)]=g:s[u]=g}return s}o(l9,"fillNewlyOrderedViews");function vC(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=l9(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(vC,"checkViewOrder");function AT(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(AT,"exportPersonalization");function xo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(xo,"exportPersonalizationProperty");function Co(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}o(Co,"deletePersonalizationProperty");function bC(e,t,n,i,r,a){var l;let s;if(!t||Object.keys(t).length===0){let u=e;Object.keys(u).forEach(p=>{u[p]&&u[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let u=(l=a.table)==null?void 0:l.views;for(let p in u)u[p].index>s&&u[p].index--}}o(bC,"deleteView");function pd(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(pd,"exportCreationModeProperty");function dd(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}o(dd,"deleteCreationModeProperty");function hk(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(hk,"importPersonalization");function yk(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(yk,"determineIndexOfView");var Ff=class Ff{};o(Ff,"PersonalizationType"),y([v({manifest:{path:nr,export:xo,delete:Co}})],Ff.prototype,"column",2),y([v({manifest:{path:nr,export:xo,delete:Co}})],Ff.prototype,"sort",2),y([v({manifest:{path:nr,export:xo,delete:Co}})],Ff.prototype,"filter",2);var fC=Ff,Df=class Df{};o(Df,"ViewPersonalizationType"),y([v({manifest:{path:Cr,export:xo,delete:Co}})],Df.prototype,"column",2),y([v({manifest:{path:Cr,export:xo,delete:Co}})],Df.prototype,"sort",2),y([v({manifest:{path:nr,export:xo,delete:Co}})],Df.prototype,"filter",2);var uC=Df,_f=class _f{};o(_f,"QuickVariantSelectionV4"),y([v({manifest:{path:uT}})],_f.prototype,"paths",2),y([v({manifest:{path:uT}})],_f.prototype,"hideTableTitle",2),y([v({manifest:{path:uT}})],_f.prototype,"showCounts",2);var pC=_f,Ao=class Ao{};o(Ao,"TableSettings"),y([v({manifest:{path:nr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ao.prototype,"type",2),y([v({manifest:{path:nr,import:hk,export:AT}}),x({since:"1.86.0"})],Ao.prototype,"personalization",2),y([v({manifest:{path:nr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],Ao.prototype,"selectionMode",2),y([v({manifest:{path:nr}}),x({since:"1.84.0"})],Ao.prototype,"selectAll",2),y([v({manifest:{path:nr}}),x({since:"1.84.0"})],Ao.prototype,"selectionLimit",2),y([v({manifest:{path:nr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Ao.prototype,"enableExport",2),y([v({manifest:{path:nr}}),x({since:"1.84.0"})],Ao.prototype,"quickVariantSelection",2),y([v({manifest:{path:nr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Ao.prototype,"condensedTableLayout",2);var vT=Ao,bT=class bT{};o(bT,"ALPChart"),y([v({manifest:{path:o(t=>ft(t)+"/views/paths/0/primary/0","path"),delete:bC}})],bT.prototype,"annotationPath",2);var dC=bT,nl=class nl{};o(nl,"CommonViewSettings"),y([v({manifest:{path:Po,delete:dc}})],nl.prototype,"key",2),y([v({manifest:{path:sT,import:yk,export:o((t,n)=>{vC(t,n)},"export"),delete:bC}})],nl.prototype,"index",2),y([v({manifest:{path:Po,delete:dc}})],nl.prototype,"annotationPath",2),y([v({manifest:{path:Po}})],nl.prototype,"entitySet",2);var wf=nl,no=class no extends wf{};o(no,"TableViewSettings"),y([v({manifest:{path:Cr}}),x({since:"1.84.0"})],no.prototype,"type",2),y([v({manifest:{path:Cr,import:hk}}),x({since:"1.86.0"})],no.prototype,"personalization",2),y([v({manifest:{path:Cr}}),x({since:"1.84.0"})],no.prototype,"selectionMode",2),y([v({manifest:{path:Cr}}),x({since:"1.84.0"})],no.prototype,"selectAll",2),y([v({manifest:{path:Cr}}),x({since:"1.84.0"})],no.prototype,"selectionLimit",2),y([v({manifest:{path:Cr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],no.prototype,"enableExport",2),y([v({manifest:{path:Cr}}),x({since:"1.84.0"})],no.prototype,"quickVariantSelection",2),y([v({manifest:{path:Cr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],no.prototype,"condensedTableLayout",2),y([v({manifest:{path:Cr}}),x({since:"1.117.0"}),Re("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],no.prototype,"hierarchyQualifier",2);var ud=no;function f9(e){return ud}o(f9,"getTableViewSettings");var ld=class ld extends ud{};o(ld,"ALPTable"),y([v({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:dc}})],ld.prototype,"annotationPath",2),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],ld.prototype,"initialLoad",2);var Mf=ld,ET=class ET extends wf{};o(ET,"LRChartView"),y([v({manifest:{path:Po},generate:Yn})],ET.prototype,"visible",2);var gC=ET,Vf=class Vf extends f9(wf){};o(Vf,"LRTableView"),y([v({manifest:{path:Po}})],Vf.prototype,"keepPreviousPersonalization",2),y([v({manifest:{path:Po}})],Vf.prototype,"entitySet",2),y([v({manifest:{path:Po},generate:Yn})],Vf.prototype,"visible",2);var mC=Vf,Ks=class Ks{};o(Ks,"TableViewExtension"),y([v({manifest:{path:Po}})],Ks.prototype,"key",2),y([v({manifest:{path:sT,import:yk,export:o((t,n)=>{vC(t,n)},"export"),delete:bC}})],Ks.prototype,"index",2),y([v({manifest:{path:Po}})],Ks.prototype,"label",2),y([v({manifest:{path:Po}})],Ks.prototype,"template",2),y([v({manifest:{path:Po},generate:Yn})],Ks.prototype,"visible",2);var hC=Ks,ST=class ST{};o(ST,"MultiTableModeV4"),y([v({manifest:{path:o(t=>ft(t)+"/views","path")}})],ST.prototype,"showCounts",2);var yC=ST,fd=class fd extends vT{};o(fd,"Table"),y([v({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:dc}})],fd.prototype,"annotationPath",2),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],fd.prototype,"initialLoad",2);var TC=fd;var kf=class kf{};o(kf,"TableCreationModeOP"),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:o((t,n,i)=>{pd(t,n,i)},"export"),delete:o((t,n,i,r)=>{dd(t,r)},"delete")}})],kf.prototype,"name",2),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:o((t,n,i)=>{pd(t,n,i)},"export"),delete:o((t,n,i,r)=>{dd(t,r)},"delete")}})],kf.prototype,"createAtEnd",2),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:o((t,n,i)=>{pd(t,n,i)},"export"),delete:o((t,n,i,r)=>{dd(t,r)},"delete")}})],kf.prototype,"inlineCreationRowsHiddenInEditMode",2);var EC=kf,Uf=class Uf{};o(Uf,"PersonalizationTypeOP"),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:xo,delete:Co}})],Uf.prototype,"column",2),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:xo,delete:Co}})],Uf.prototype,"sort",2),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:xo,delete:Co}})],Uf.prototype,"filter",2);var SC=Uf,jf=class jf{};o(jf,"QuickVariantSelectionV4OP"),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i)+PT.QUICKVARPATH,"path")}})],jf.prototype,"paths",2),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i)+PT.QUICKVARPATH,"path")}})],jf.prototype,"hideTableTitle",2),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i)+PT.QUICKVARPATH,"path")}})],jf.prototype,"showCounts",2);var AC=jf,ar=class ar{};o(ar,"ObjectPageTable"),y([v({manifest:{path:Fn}}),x({since:"1.84.0"})],ar.prototype,"type",2),y([v({manifest:{path:Fn,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),x({since:"1.84.0"})],ar.prototype,"creationMode",2),y([v({manifest:{path:Fn,import:o(t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},"import"),export:AT}}),x({since:"1.86.0"})],ar.prototype,"personalization",2),y([v({manifest:{path:Fn}}),x({since:"1.84.0"})],ar.prototype,"selectionMode",2),y([v({manifest:{path:Fn}}),x({since:"1.84.0"})],ar.prototype,"selectAll",2),y([v({manifest:{path:Fn}}),x({since:"1.84.0"})],ar.prototype,"selectionLimit",2),y([v({manifest:{path:Fn}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],ar.prototype,"enableExport",2),y([v({manifest:{path:Fn}}),x({since:"1.84.0"})],ar.prototype,"quickVariantSelection",2),y([v({manifest:{path:Fn}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],ar.prototype,"condensedTableLayout",2),y([v({manifest:{path:Fn}}),x({since:"1.86.0"})],ar.prototype,"enableFullScreen",2),y([v({manifest:{path:Fn}}),x({since:"1.84.0"})],ar.prototype,"enablePaste",2);var gd=ar;var md=class md{};o(md,"ActionAfterExecutionConfigurationOP"),y([v({manifest:{path:o((t,n,i,r)=>rr(t,n,i,r)+"/afterExecution","path")}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],md.prototype,"navigateToInstance",2),y([v({manifest:{path:o((t,n,i,r)=>rr(t,n,i,r)+"/afterExecution","path")}})],md.prototype,"enableAutoScroll",2);var Td=md,hd=class hd{};o(hd,"ObjectPageTableColumn"),y([v({manifest:{path:rr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],hd.prototype,"width",2),y([v({manifest:{path:rr}}),x({since:"1.85.0"})],hd.prototype,"availability",2);var $f=hd,IC=class IC extends $f{};o(IC,"ObjectPageTableColumnAction");var PC=IC,yd=class yd{};o(yd,"PositionOP"),y([v({manifest:{path:o((t,n,i,r)=>rr(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],yd.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r)=>rr(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],yd.prototype,"placement",2);var xC=yd,Jo=class Jo{};o(Jo,"TableCustomColumnOP"),y([v({manifest:{path:rr}}),x({since:"1.84.0"})],Jo.prototype,"position",2),y([v({manifest:{path:rr}}),x({since:"1.84.0"})],Jo.prototype,"header",2),y([v({manifest:{path:rr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Jo.prototype,"width",2),y([v({manifest:{path:rr}}),x({since:"1.84.0"})],Jo.prototype,"template",2),y([v({manifest:{path:rr}}),x({since:"1.86.0"})],Jo.prototype,"horizontalAlign",2),y([v({manifest:{path:rr}}),x({since:"1.84.0"})],Jo.prototype,"availability",2),y([v({manifest:{path:rr}}),x({since:"1.85.0"})],Jo.prototype,"properties",2);var CC=Jo;var xT=class xT{};o(xT,"ObjectPageToolBarAction"),y([v({manifest:{path:Un}})],xT.prototype,"enableOnSelect",2);var OC=xT,DC=class DC{};o(DC,"ObjectPageToolBarActionGroup");var RC=DC,vd=class vd{};o(vd,"CustomActionPositionOP"),y([v({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],vd.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],vd.prototype,"placement",2);var LC=vd,Ua=class Ua{};o(Ua,"CustomTableActionOP"),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"text",2),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"position",2),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"press",2),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"requiresSelection",2),y([v({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Ua.prototype,"visible",2),y([v({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Ua.prototype,"enabled",2);var NC=Ua,_C=class _C{};o(_C,"ObjectPageToolBarActions");var FC=_C;var Bf=class Bf{};o(Bf,"AdditionalSemanticObject"),y([v({manifest:{path:pT}}),Re("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.108.0"})],Bf.prototype,"allowedActions",2),y([v({manifest:{path:pT}}),Re("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Bf.prototype,"unavailableActions",2),y([v({manifest:{path:pT}}),Re("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Bf.prototype,"mapping",2);var VC=Bf,bd=class bd{};o(bd,"RelatedApps"),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],bd.prototype,"showRelatedApps",2),y([v({manifest:{path:ft}})],bd.prototype,"additionalSemanticObjects",2);var wC=bd;var Ed=class Ed{};o(Ed,"ActionAfterExecutionConfiguration"),y([v({manifest:{path:o((t,n,i,r,a)=>ji(t,n,i,r,a)+"/afterExecution","path")}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Ed.prototype,"navigateToInstance",2),y([v({manifest:{path:o((t,n,i,r,a)=>ji(t,n,i,r,a)+"/afterExecution","path")}})],Ed.prototype,"enableAutoScroll",2);var MC=Ed,Sd=class Sd{};o(Sd,"TableColumn"),y([v({manifest:{path:ji}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Sd.prototype,"width",2),y([v({manifest:{path:ji}}),x({since:"1.85.0"})],Sd.prototype,"availability",2);var CT=Sd,Ad=class Ad{};o(Ad,"ViewTableColumn"),y([v({manifest:{path:ir}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ad.prototype,"width",2),y([v({manifest:{path:ir}}),x({since:"1.85.0"})],Ad.prototype,"availability",2);var IT=Ad,OT=class OT extends CT{};o(OT,"TableColumnAction"),y([v({manifest:{path:ji}}),x({since:"1.84.0"})],OT.prototype,"afterExecution",2);var kC=OT,RT=class RT extends IT{};o(RT,"ViewTableColumnAction"),y([v({manifest:{path:ir}}),x({since:"1.84.0"})],RT.prototype,"afterExecution",2);var UC=RT,Pd=class Pd{};o(Pd,"Position"),y([v({manifest:{path:o((t,n,i,r,a)=>ji(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Pd.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r,a)=>ji(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Pd.prototype,"placement",2);var jC=Pd,xd=class xd{};o(xd,"ViewPosition"),y([v({manifest:{path:o((t,n,i,r,a)=>ir(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],xd.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r,a)=>ir(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],xd.prototype,"placement",2);var $C=xd,Zo=class Zo{};o(Zo,"TableCustomColumn"),y([v({manifest:{path:ji}}),x({since:"1.84.0"})],Zo.prototype,"position",2),y([v({manifest:{path:ji}}),x({since:"1.84.0"})],Zo.prototype,"header",2),y([v({manifest:{path:ji}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Zo.prototype,"width",2),y([v({manifest:{path:ji}}),x({since:"1.84.0"})],Zo.prototype,"template",2),y([v({manifest:{path:ji}}),x({since:"1.86.0"})],Zo.prototype,"horizontalAlign",2),y([v({manifest:{path:ji}}),x({since:"1.84.0"})],Zo.prototype,"availability",2),y([v({manifest:{path:ji}}),x({since:"1.85.0"})],Zo.prototype,"properties",2);var BC=Zo,ea=class ea{};o(ea,"ViewTableCustomColumn"),y([v({manifest:{path:ir}}),x({since:"1.84.0"})],ea.prototype,"position",2),y([v({manifest:{path:ir}}),x({since:"1.84.0"})],ea.prototype,"header",2),y([v({manifest:{path:ir}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ea.prototype,"width",2),y([v({manifest:{path:ir}}),x({since:"1.84.0"})],ea.prototype,"template",2),y([v({manifest:{path:ir}}),x({since:"1.86.0"})],ea.prototype,"horizontalAlign",2),y([v({manifest:{path:ir}}),x({since:"1.84.0"})],ea.prototype,"availability",2),y([v({manifest:{path:ir}}),x({since:"1.85.0"})],ea.prototype,"properties",2);var HC=ea;var KC=class KC{};o(KC,"Actions");var GC=KC,XC=class XC{};o(XC,"ToolBar");var WC=XC;var Cd=class Cd{};o(Cd,"ActionAfterExecutionConfigurationToolBarLR"),y([v({manifest:{path:o((t,n,i,r,a)=>Ir(t,n,i,r,a)+"/afterExecution","path")}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Cd.prototype,"navigateToInstance",2),y([v({manifest:{path:o((t,n,i,r,a)=>Ir(t,n,i,r,a)+"/afterExecution","path")}})],Cd.prototype,"enableAutoScroll",2);var QC=Cd,Id=class Id{};o(Id,"ToolBarAction"),y([v({manifest:{path:Ir}})],Id.prototype,"enableOnSelect",2),y([v({manifest:{path:Ir}})],Id.prototype,"afterExecution",2);var qC=Id,iI=class iI{};o(iI,"ToolBarActionGroup");var YC=iI,rI=class rI{};o(rI,"ViewToolBarActionGroup");var zC=rI,Od=class Od{};o(Od,"ViewToolBarAction"),y([v({manifest:{path:to}})],Od.prototype,"enableOnSelect",2),y([v({manifest:{path:to}})],Od.prototype,"afterExecution",2);var JC=Od,Rd=class Rd{};o(Rd,"CustomActionPosition"),y([v({manifest:{path:o((t,n,i,r,a)=>Ir(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Rd.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r,a)=>Ir(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Rd.prototype,"placement",2);var ZC=Rd,ja=class ja{};o(ja,"CustomTableAction"),y([v({manifest:{path:Ir}}),x({since:"1.84.0"})],ja.prototype,"text",2),y([v({manifest:{path:Ir}}),x({since:"1.84.0"})],ja.prototype,"position",2),y([v({manifest:{path:Ir}}),x({since:"1.84.0"})],ja.prototype,"press",2),y([v({manifest:{path:Ir}}),x({since:"1.84.0"})],ja.prototype,"requiresSelection",2),y([v({manifest:{path:Ir},generate:Yn}),x({since:"1.84.0"})],ja.prototype,"visible",2),y([v({manifest:{path:Ir},generate:Yn}),x({since:"1.84.0"})],ja.prototype,"enabled",2);var eI=ja,Ld=class Ld{};o(Ld,"ViewCustomActionPosition"),y([v({manifest:{path:o((t,n,i,r,a)=>to(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Ld.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r,a)=>to(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Ld.prototype,"placement",2);var tI=Ld,$a=class $a{};o($a,"ViewTableCustomAction"),y([v({manifest:{path:to}}),x({since:"1.84.0"})],$a.prototype,"text",2),y([v({manifest:{path:to}}),x({since:"1.84.0"})],$a.prototype,"position",2),y([v({manifest:{path:to}}),x({since:"1.84.0"})],$a.prototype,"press",2),y([v({manifest:{path:to}}),x({since:"1.84.0"})],$a.prototype,"requiresSelection",2),y([v({manifest:{path:to},generate:Yn}),x({since:"1.84.0"})],$a.prototype,"visible",2),y([v({manifest:{path:to},generate:Yn}),x({since:"1.84.0"})],$a.prototype,"enabled",2);var nI=$a;var lI={};sc(lI,{FreestylePage:()=>sI,ListReport:()=>Rr,ObjectPage:()=>Io});function u9(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(a=>delete e[a])}o(u9,"deleteAllALPViews");function p9(){}o(p9,"doNotExport");function d9(){}o(d9,"doNotImport");var Rr=class{};o(Rr,"ListReport"),y([v({manifest:{path:o(t=>ft(t)+"/views","path"),import:d9,export:p9,delete:u9}})],Rr.prototype,"chart",2),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],Rr.prototype,"variantManagement",2),y([v({manifest:{path:o(t=>ft(t)+"/views/paths/[]/0","path")}}),Re("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Rr.prototype,"defaultPath",2),y([v({manifest:{path:o(t=>ft(t),"path")}})],Rr.prototype,"defaultTemplateAnnotationPath",2),y([jt("header")],Rr.prototype,"header",2),y([jt("fe::FilterBar")],Rr.prototype,"filterBar",2),Rr=y([Ji({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Rr);var aI=te(ce());var Io=class{};o(Io,"ObjectPage"),y([jt("header")],Io.prototype,"header",2),y([jt("layout")],Io.prototype,"layout",2),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],Io.prototype,"variantManagement",2),y([jt("sections")],Io.prototype,"sections",2),Io=y([Ji({id:`${aI.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:aI.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Io);var cI=class cI{};o(cI,"FreestylePage");var sI=cI;var LT=te(ce());var g9={ALPTableView:Mf},m9={ALPTableView:Mf},h9={Table:gd,TableColumn:$f,ObjectPageCustomSectionView:Lf,ActionAfterExecutionConfiguration:Td},y9={[LT.PageTypeV4.AnalyticalListPage]:g9,[LT.PageTypeV4.ListReport]:m9,[LT.PageTypeV4.ObjectPage]:h9},fI=class fI extends of{constructor(){super(oI,lI,y9)}};o(fI,"MetadataInstanceFactoryV4");var Ba=fI;var uI=require("@sap-ux/vocabularies-types/vocabularies/UI");function pI(e,t,n,i,r,a,s){var g,m,h,E,b,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${uI.UIAnnotationTerms.LineItem}`?a:he.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let N in p.properties){let H=l[u].properties[N].$ref.split(j)[1].split("<")[0];e.columns[N]=n.createInstance(i,H);let $=s||a;Ot(e.columns[N],t.manifest,l[H],r,[N,$],$,t.logger),$r(e.columns,N)}$r(e,"columns")}else{let N=(O=(b=(E=(h=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:h[r])==null?void 0:E.options)==null?void 0:b.settings)==null?void 0:O.views;(!N||N.paths.length<1)&&ae(t.logger,{severity:he.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}}o(pI,"transferColumns");function T9(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[he.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let u=s.properties[l];if(typeof u=="object"&&u.$ref){let p=rn(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),Ot(t.visualFilters[l],e.manifest,a[p],r,[l])}}$r(t,"visualFilters")}}o(T9,"importVisualFilters");function v9(e,t,n,i,r,a=he.DefinitionName.LineItems,s){var g;let l=e.jsonSchema.definitions,u=s;!u&&[he.DefinitionName.LineItems,`${he.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${uI.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${he.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let m in p.properties){let h=p.properties[m];if(typeof h=="object"&&h.$ref){let b={actionPropertyDefinition:(g=p==null?void 0:p.properties)==null?void 0:g[m],appSchema:e.jsonSchema,factory:n,actionsInConfig:t.toolBar.actions,actionKey:m,manifest:e.manifest,routingId:r,targetAnnotation:u};Fl(b)}}}o(v9,"importActions");function dI(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,Ot(u.toolBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.ToolBarLR],r,[]),v9(e,u,n,i,r,a,s),$r(u.toolBar,"actions"),$r(u,"toolBar")}o(dI,"transferToolBar");function Tk(e,t,n){var s;let i=(s=e[t])==null?void 0:s[he.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(Tk,"determineTargetAnnotationOfView");function b9(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,he.DefinitionName.ALPChart);let s=a[he.DefinitionName.ALPChart],l=s[he.SchemaTag.annotationPath];Ot(t.chart,e.manifest,s,r,[s[he.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),Ot(t.chart.toolBar,e.manifest,a[he.DefinitionName.ViewChartToolBar],r,[]);let u=a[he.DefinitionName.ALPTable][he.SchemaTag.annotationPath];if(u){let p=a[he.DefinitionName.ALPTable],g=t.table=n.createInstance(i,he.DefinitionName.ALPTable);dI(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));Ot(g,e.manifest,p,r,[p[he.SchemaTag.key],m]),pI(g,e,n,i,r,void 0,m)}}o(b9,"importALPViews");function E9(e){let t;return e.indexOf(he.DefinitionName.LRTableView)>-1?t=he.DefinitionName.LRTableView:e.indexOf(he.DefinitionName.LRChartView)>-1?t=he.DefinitionName.LRChartView:e===he.DefinitionName.TableViewExtension&&(t=he.DefinitionName.TableViewExtension),t}o(E9,"getViewTypeByDefinition");function S9(e,t,n,i,r){let a=t.table.views=n.createInstance(i,he.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Ot(a,e.manifest,s[he.DefinitionName.MultiTableModeV4],r,[]);let l=s[he.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][he.SchemaTag.propertyIndex]-g[1][he.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split(j)[1],m=E9(g),h=a[p[0]]=n.createInstance(i,m),E=s[g].entitySet,b=Tk(s,g,E);if(Ot(h,e.manifest,s[g],r,[p[0],b]),m===he.DefinitionName.LRTableView){let O=`${he.DefinitionName.LineItemsOfView}::${p[0]}`;dI(e,h,n,i,r,O,b),pI(h,e,n,i,r,O,b)}Object.keys(h).length===0&&delete a[p[0]]}$r(t.table,"views")}o(S9,"importLRViews");function A9(e,t,n,i,r){let a=he.DefinitionName.HeaderActions,s=he.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let u in l.properties){let p=l.properties[u];if(typeof p=="object"&&p.$ref){let g=rn(p.$ref),m=e.definitions[g],h=rn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(he.PageTypeV4.ObjectPage,h),Ot(t[s].actions[u],i,e.definitions[h],r,[u.replace("/","??")]),$r(t.header,"actions"),$r(t,"header")}}}}o(A9,"transferHeaderActions");function P9(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[he.DefinitionName.SelectionFields,he.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==j+he.DefinitionName.CustomFilterField)continue;let u=n.createInstance(he.PageTypeV4.ListReport,he.DefinitionName.CustomFilterField),p=l.$ref.split(j)[1];Ot(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(P9,"importCustomFilterFields");function x9(e,t,n,i,r,a){if(Ot(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,he.DefinitionName.Header),Ot(t.header,e.manifest,e.jsonSchema.definitions[he.DefinitionName.Header],r,[]),A9(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,he.DefinitionName.FilterBar),Ot(t.filterBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.FilterBar],r,[]),T9(e,t.filterBar,n,i,r),P9(e,t.filterBar,n,r),a===he.SchemaType.ListReport){let s=he.DefinitionName.Table,l=e.jsonSchema.definitions[s],u;l.$ref&&(s=l.$ref.split(j)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split(j)[1]),t.table=n.createInstance(i,he.DefinitionName.Table);let p=Tk(e.jsonSchema.definitions,s);Ot(t.table,e.manifest,l,r,[s,p]),dI(e,t,n,i,r,u),pI(t.table,e,n,i,r,u,p),S9(e,t,n,i,r)}else a===he.SchemaType.AnalyticalListPage&&b9(e,t,n,i,r)}o(x9,"addSettings");function il(e,t){if(Qt(),!e.jsonSchema)return;if(!e.manifest[he.ManifestSection.ui5]||!e.manifest[he.ManifestSection.ui5].routing){ae(e.logger,{severity:he.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let n=e.manifest[he.ManifestSection.ui5].routing.targets;if(!n){ae(e.logger,{severity:he.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let i=new Ba,r=i.createPageInstance(he.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=Bb(s);if("name"in s&&(l===he.PageTypeV4.ListReport||l===he.PageTypeV4.AnalyticalListPage)){x9(e,r,i,he.PageTypeV4.ListReport,a,t);break}}return r}o(il,"createListReportConfig");var be=te(ce()),Xs=require("@sap-ux/vocabularies-types/vocabularies/UI");function C9(e,t){var i;let n="boolean";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?e==="true"||e==="false":!1}o(C9,"isBoolean");function I9(e,t){var i;let n="number";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?!isNaN(parseFloat(e.toString())):!1}o(I9,"isNumber");function O9(e,t){let n=e.toString();return C9(n,t)?n==="true":I9(n,t)?parseFloat(n):e}o(O9,"convertValue");function R9(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=O9(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(R9,"importProperty");function vk(e,t,n){let i,r=Pf(e.file,!1,n);if(r){let a=eT(r);i={},zc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},R9)}return i}o(vk,"convertXmlFileToConfig");function NT(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=Uo(t||[],r,n,a),l;return s&&(l=vk(s,i,e.logger)),l}o(NT,"createCustomPageConfig");function Nd(e,t){var h;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=xf(t),u=(h=r.definitions)==null?void 0:h[l];if(!r||!u)return;let p=Tc(i,a),g=vc(n||[],p,i,"fragment",t),m;if(g){let E={...u,definitions:r.definitions};m=vk(g,E,s)}return m}o(Nd,"createCustomFragmentConfig");function gI(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(gI,"getManifestId");function Fd(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(Fd,"getDefinitionId");function L9(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Fd(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(be.DefinitionName.CustomColumnOP)>-1?s=be.DefinitionName.CustomColumnOP:s=be.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(be.PageTypeV4.ObjectPage,s);Ot(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(L9,"fillTableColumnsInConfig");function Sk(e,t,n,i,r,a=n){var s;if(typeof t=="object")for(let l in t.properties){let u=t.properties[l];if(typeof u=="object"&&u.$ref){let p=rn(u.$ref),g=(s=t==null?void 0:t.properties)==null?void 0:s[l],m=p.split("<")[0],h;m.includes(be.DefinitionName.CustomSectionActionOP)?h=i.actions:h=i[n].table.toolBar.actions;let E={actionPropertyDefinition:g,appSchema:e.jsonSchema,factory:r,actionsInConfig:h,actionKey:l,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Fl(E)}}}o(Sk,"fillSectionActionsInConfig");function N9(e,t,n,i,r,a=n){if(t.actions){let s=i[n].form.actions={},u=e.jsonSchema.definitions[`${be.DefinitionName.ObjectPageSectionForm}<${Fd(a)}>`].properties.form.$ref.split(j)[1],m=e.jsonSchema.definitions[u].properties.actions.$ref.split(j)[1],h=e.jsonSchema.definitions[m];for(let E in h.properties){let b=h.properties[E],O=rn(b.$ref),N=e.jsonSchema.definitions[O];if(N.annotationType===Xs.UIAnnotationTypes.DataFieldForAction||N.annotationType===Xs.UIAnnotationTypes.DataFieldForActionGroup||N.description==="Custom Action"){let M={actionPropertyDefinition:b,appSchema:e.jsonSchema,factory:r,actionsInConfig:s,actionKey:E,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Fl(M)}}}}o(N9,"fillFormActionsInConfig");function bk(e,t,n,i,r,a){var u;let s=a||gI(i,!1,Xs.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageTable);let p=`${be.DefinitionName.ObjectPageTable}<${a?Fd(a):i.replace("#","::")}>`;Ot(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${be.DefinitionName.Actions}<${Fd(s)}>`];Sk(e,g,i,n,r,s),L9(e,l,n,i,r,s)}}o(bk,"fillTableInConfig");function F9(e,t,n,i,r){var l;let a=gI(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageForm,{actions:{}}),N9(e,s,i,n,r,a))}o(F9,"fillFormInConfig");function D9(e,t,n,i,r,a){let s=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(j)[1];if(Ot(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=Nd(e,s.fragmentName);s.controls=u}n[i]=s}o(D9,"fillCustomSubSectionInConfig");function Ak(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let h=t[m],E=m;if(m.includes(Xs.UIAnnotationTerms.PresentationVariant)&&((s=h.$ref)!=null&&s.startsWith(j+be.DefinitionName.ObjectPageSectionTableV4))){let b=h.$ref.split(j)[1];E=b?gI(b,!0,Xs.UIAnnotationTerms.LineItem):m,bk(e,n,i,m,r,E)}else(l=h.$ref)!=null&&l.startsWith(j+be.DefinitionName.ObjectPageSectionTableV4)?bk(e,n,i,m,r):h.properties&&h.properties.subsections?(i[m]={subsections:{}},Ak(e,h.properties.subsections.properties,n,i[m].subsections,r,m)):(u=h.$ref)!=null&&u.startsWith(j+be.DefinitionName.ObjectPageSectionForm)&&((p=h.$ref)!=null&&p.includes(`@${Xs.UIAnnotationTerms.FieldGroup}::`))?F9(e,n,i,m,r):(g=h.$ref)!=null&&g.startsWith(j+be.DefinitionName.ObjectPageCustomSubSectionFragment)&&D9(e,h,i,m,r,a)}}o(Ak,"fillSectionsInConfig");function _9(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSectionFragment);if(Ot(p,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${be.DefinitionName.ObjectPageCustomSectionActions}<${Fd(l)}>`];Sk(e,m,l,p,i,l)}let g=u.template;if(g){let m=Nd(e,g);p.controls=m}n.sections[l]=p}}o(_9,"fillCustomSectionsInConfig");function V9(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomHeaderSectionFragment);Ot(p,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let h=Nd(e,g);p.controls=h}let m=u.templateEdit;if(m){let h=Nd(e,m);p.controlsEditMode=h}n.header.sections[l]=p}}o(V9,"fillCustomHeaderSectionsInConfig");function w9(e,t,n,i,r){var s,l;let a=e.definitions[be.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split(j)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(be.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=g?n.createInstance(be.PageTypeV4.ObjectPage,g):{},Ot(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(be.FACETTITLEPREFIX)[1]))}}}o(w9,"fillHeaderFacets");function Ek(e,t,n,i,r,a,s){let l=e.definitions[a];if(typeof l=="object"){let u=t[s].actions={};for(let p in l.properties){let g=l.properties[p];typeof g=="object"&&g.$ref&&Fl({actionPropertyDefinition:g,appSchema:e,factory:n,actionsInConfig:u,actionKey:p,manifest:i,routingId:r})}}}o(Ek,"fillHeaderFooterActions");function M9(e,t,n){var a,s;let i=n.createPageInstance(be.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageHeader),Ot(i.header,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageFooter),Ot(i.footer,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageLayout),Ot(i.layout,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageLayout],e.routingId,[]),Ot(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[be.DefinitionName.Sections]&&(i.sections={},Ak(e,e.jsonSchema.definitions[be.DefinitionName.Sections].properties,r,i.sections,n)),_9(e,r,i,n),w9(e.jsonSchema,i,n,e.manifest,e.routingId),V9(e,r,i,n),Ek(e.jsonSchema,i,n,e.manifest,e.routingId,be.DefinitionName.ObjectPageHeaderActions,be.PropertyName.header),Ek(e.jsonSchema,i,n,e.manifest,e.routingId,be.DefinitionName.FooterActions,be.PropertyName.footer)),i}o(M9,"fillObjectPageConfig");function FT(e){if(Qt(),!e.manifest[be.ManifestSection.ui5]||!e.manifest[be.ManifestSection.ui5].routing){ae(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5]}});return}let t=e.manifest[be.ManifestSection.ui5].routing.targets;if(!t){ae(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){ae(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5,"routing"]}});return}let i=new Ba;return M9(e,n,i)}o(FT,"createObjectPageConfigV4");var Ge=te(ce());var mI=[],DT={};function k9(e,t){let n=e.target,i=t.target,r=Array.isArray(n),a=Array.isArray(i);return r&&a?n.length-i.length:!r&&!a?0:r?1:-1}o(k9,"routesSorter");function hI(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}o(hI,"resolveTarget");function U9(e){let t={};e=e.concat().sort(k9);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=hI(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(U9,"populateAssociations");function j9(e,t,n){let i;return e.name?e.name===Ge.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ge.PageTypeV4.FPMCustomPage:e.name.endsWith(Ge.PageTypeV4.ListReport)||e.name.endsWith(Ge.PageTypeV4.AnalyticalListPage)?i=Ge.PageTypeV4.ListReport:e.name.endsWith(Ge.PageTypeV4.ObjectPage)?i=Ge.PageTypeV4.ObjectPage:i=Ge.PageTypeV4.CustomPage:"viewId"in e?i=Ge.PageTypeV4.CustomPage:(ae(t,{severity:Ge.LogSeverity.Error,message:Q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ge.MANIFESTPATH,range:[`${Ge.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ge.ViewTypes&&"viewName"in e&&(i=Ge.PageTypeV4.CustomPage)),i}o(j9,"determinePageType");function $9(e){let t=e.target.viewId||e.target.id,n=Dt(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ge.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===Ge.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=FT(r)}else if(e.page.pageType===Ge.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=NT(r)}else if(e.templateType===Ge.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=il(r,Ge.SchemaType.ListReport)}else if(e.templateType===Ge.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=il(r,Ge.SchemaType.AnalyticalListPage)}else if(e.templateType===Ge.TemplateType.FreestylePageV4&&e.page.pageType===Ge.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=Au(e.target)===Ge.TemplateType.AnalyticalListPageV4?Ge.SchemaType.AnalyticalListPage:Ge.SchemaType.ListReport;e.page.config=il(r,s)}}}o($9,"convertSettingsToConfig");function B9(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");mI.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");mI.push(t[t.length-1])}}o(B9,"updateUnhandledControllers");function H9(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}o(H9,"setVariantManagmentAndNavigation");function G9(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=Zc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(G9,"setEntitySetEntityTypeContextPath");function W9(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.viewPath&&{path:e.viewPath},...e.path&&{path:e.path}};else if([Ge.PageTypeV4.CustomPage,Ge.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName,s=e.name;!a&&n===Ge.PageTypeV4.CustomPage&&(a=s,s=void 0),t.view={...e.id&&{id:e.id},...a&&{name:a},...s&&{template:s},...e.viewType&&{viewType:e.viewType}}}}o(W9,"evaluateCustomPageSettings");function K9(e,t,n,i){var p;let r=e.targets[t],a=j9(r,i.logger,t),s={pageType:a};if(G9(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),DT[t]&&DT[t].indexOf(".")!==-1){let g=DT[t].split(".");s.navigationProperty=g[g.length-1]}W9(r,s,a),H9(r,s),B9(r);let l=e.routes.find(g=>(g==null?void 0:g.target)&&g.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),!((p=s.view)!=null&&p.template)&&"name"in r&&r.name&&(s.template=r.name),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};$9(u)}o(K9,"getSinglePageAndConfig");function Pk(e){let t={},n=e.manifest[Ge.ManifestSection.ui5].routing;if(!n||!n.routes){let i=Q.t("NOROUTING");return ae(e.logger,{severity:Ge.LogSeverity.Error,message:i,location:{path:Ge.MANIFESTPATH,range:[Ge.ManifestSection.ui5]}}),t}DT=U9(n.routes||[]);for(let i in n.targets)K9(n,i,t,e);return t}o(Pk,"getPagesAndConfigs");function xk(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 hI(t?t.target:e.routes[0].target)}else return}o(xk,"getHome");function Ck(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.viewPath&&{path:t.viewPath},...t.path&&{path:t.path}}:{}}o(Ck,"getSettings");function Gf(e,t){let n=e[Ge.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];hm(t,a.name)&&(i[r]=a)}return i}o(Gf,"getPages");var yI=class yI extends ls{constructor(t){Qt();let n=new Cf,i=Dt(Ge.SchemaType.Application),r=t.appSchemas[i.filename];Ot(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,xk(t.manifest[Ge.ManifestSection.ui5].routing),Pk(t),{...Ck(t.manifest[Ge.ManifestSection.ui5].routing),...n}),this.unhandledControllers=mI}};o(yI,"V4AppProvider");var Hf=yI;var Ik=require("fs"),rl=require("path"),Ok=te(ce()),Dd=te(ce());var Rk=o((e,t,n=__dirname)=>{let i;switch(t){case Dd.SchemaType.Application:{i=`${Dd.SchemaType.Application}${e.toUpperCase()}.json`;break}case Dd.SchemaType.FPMCustomPage:{i=`${Dd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,rl.join)(n,"schemas",e,i);if(n.endsWith((0,rl.join)("specification","packages","specification")))return(0,rl.join)(n,"dist","schemas",e,i);if(n.endsWith((0,rl.join)("src","specification")))return(0,rl.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,rl.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),X9=o(async e=>new Promise((t,n)=>{(0,Ik.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),_T=o(async(e,t)=>{try{let n=Rk(e||Ok.FioriElementsVersion.v4,t,__dirname);return await X9(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function Q9(e,t){let n={},i=[];switch(i=[ue.SchemaType.Application],e){case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.AnalyticalListPageV4:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.FreestylePageV4:i.push(ue.SchemaType.FreestylePage),t===ue.FioriElementsVersion.v4&&i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.ListReportObjectPageV2:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage);break;case ue.TemplateType.AnalyticalListPageV2:i.push(ue.SchemaType.AnalyticalListPage,ue.SchemaType.ObjectPage);break;case ue.TemplateType.OverviewPageV2:i.push(ue.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Dt(r);n[a.filename]=await _T(t,r)}return n}o(Q9,"getGenericSchemas");function Nk(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ii(ue.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(Nk,"getAnnotationsForUi");function _d(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(_d,"getEntitySetByEntitySetName");function q9(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let a=2;a<e.objectPath.length;a++){let s=e.objectPath[a];if(i&&s._type==="NavigationProperty"){let l=s.containsTarget?`${s.name}/${s.partner}`:s.name,u=(r=i.navigationPropertyBinding)==null?void 0:r[l];i=t.entitySets.find(p=>p.name===(u==null?void 0:u.name))}}return{entityType:n,entitySet:i}}o(q9,"resolveNavigationProperty");function Zc(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(u=r.target)==null?void 0:u.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=q9(r,e):ae(i,{severity:ue.LogSeverity.Error,message:Q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:ue.MANIFESTPATH}}),n&&!a&&ae(i,{severity:ue.LogSeverity.Error,message:Q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(Zc,"getEntityTypeEntitySetFromContextPath");function Lk(e,t,n){let i=Sp(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=_d(a,e.serviceAVT);s||ae(e.logger,{severity:ue.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Dt(ue.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=Dt(ue.SchemaType.ObjectPage);n[l.filename]=Vd(e,t[u.filename])}}o(Lk,"generateObjectPageSchemasV2");function Y9(e,t,n){var l,u;let i=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:h,entityType:E}=Zc(s,m,g,e.logger);e.entityType=E,e.entitySet=h;let b=Dt(ue.SchemaType.ListReport,p),O=Dt(ue.SchemaType.ListReport);e.templateType===ue.TemplateType.FreestylePageV4&&(e.templateType=Au(a[p])),n[b.filename]=Ap(e,t[O.filename],a[p].name,m)}}o(Y9,"generateListReportSchemasV4");function z9(e,t,n){var r;let i=Sp(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=_d(s,e.serviceAVT);let l=Dt(ue.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Dt(ue.SchemaType.ListReport);t[l.filename]=Ep(e,n[u.filename])}}o(z9,"generateAppSchemaV2LR");function J9(e,t,n){var a,s;let i=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=Zc(r,p,u);e.entitySet=m,e.entityType=g;let h=Dt(ue.SchemaType.ObjectPage,l),E=Dt(ue.SchemaType.ObjectPage),b=Dt(ue.SchemaType.FPMCustomPage);n[h.filename]=Jp(e,t[E.filename],p,t[b.filename])}}o(J9,"generateObjectPageSchemasV4");function Z9(e,t,n,i){var a;let r={};if(i===ue.TemplateType.ListReportObjectPageV2&&n)z9(e,r,t),Lk(e,t,r);else if(i===ue.TemplateType.AnalyticalListPageV2&&n){let s=Sp(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=_d(u,e.serviceAVT);let p=Dt(ue.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=Dt(ue.SchemaType.AnalyticalListPage);r[p.filename]=wd(e,t[g.filename])}Lk(e,t,r)}else if(i===ue.TemplateType.OverviewPageV2){let s=Dt(ue.SchemaType.OverviewPage),l=Dt(ue.SchemaType.OverviewPage);r[s.filename]=Md(t[l.filename],e.manifest)}return{...t,...r}}o(Z9,"generateAppSchemasV2");function eJ(e,t,n){if(!pc(e.featureToggles,ue.Features.BuildingBlocks))return;let i=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=Uo(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=Dt(ue.SchemaType.FPMCustomPage,void 0,l),p=Dt(ue.SchemaType.FPMCustomPage);n[u.filename]=Jc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(eJ,"generateCustomPageSchemasV4");function tJ(e,t,n){let i={};return n&&(Y9(e,t,i),J9(e,t,i),eJ(e,t,i)),{...t,...i}}o(tJ,"generateAppSchemasV4");async function Fk(e,t,n){let i=await Q9(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===ue.FioriElementsVersion.v4?tJ(e,i,t):Z9(e,i,t,n)}o(Fk,"generateAppSchemas");function nJ(e){let t,n=[];switch(e.templateType){case ue.TemplateType.ListReportObjectPageV2:case ue.TemplateType.AnalyticalListPageV2:t=new ay(e);break;case ue.TemplateType.AnalyticalListPageV4:case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.FreestylePageV4:t=new Hf(e);break;case ue.TemplateType.OverviewPageV2:t=new cy(e);break;default:t=new Hf(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(nJ,"importConfigs");function Dk(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===ue.SchemaType.Application?r=`${ue.DirName.Schemas}/${ue.FileName.App[0].toUpperCase()}${ue.FileName.App.slice(1)}`:r=`${ue.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(Dk,"getFileList");async function TI(e){var b,O;Qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new Lu().doesUi5VersionFitDistTags((O=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:O.minUI5Version,i);let u=Xb(t),p=jr(n,i),g=Nk(p),m=uc(t,u,i),E=await Fk({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return Dk(E)}o(TI,"importProjectSchema");async function vI(e){var H,$;Qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new Lu().doesUi5VersionFitDistTags(($=(H=t["sap.ui5"])==null?void 0:H.dependencies)==null?void 0:$.minUI5Version,i);let p=Xb(t),g=dD(t),m=jr(n,i),h=uc(t,p,i),E={templateType:h,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=Nk(m),O=await Fk(E,b,h),M=nJ({manifest:t,flexChanges:s,appSchemas:O,templateType:h,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return Dk(O,M)}o(vI,"importProjectSchemaAndConfig");var iJ=["header","sections","footer"];function rJ(e,t,n,i){t.properties[n][se.SchemaTag.artifactType]=se.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=se.ControlType.Section;break;case"ObjectPageSubSectionV2":r=se.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=se.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=se.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=se.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=se.ControlType.ObjectPageHeaderSection;break}r&&(gt(e,t,n),t.properties[n][se.SchemaTag.controlType]=r)}o(rJ,"addFlexChangeForSection");function oJ(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Oo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=Mm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${ct(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Oo.UIAnnotationTerms.Identification}`,`/@${Oo.UIAnnotationTerms.Identification}`);t.definitions[g][se.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][se.SchemaTag.actionType]=se.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][se.SchemaTag.keys]=[{name:se.SchemaKeyName.action,value:s}],u&&(t.definitions[g][se.SchemaTag.target]=u),i.properties[l]={$ref:`${j}${g}`}}})}o(oJ,"addHeaderActionCallBackV2");function aJ(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Oo.UIAnnotationTypes.DataFieldForAction){let a=Br(r).split("::").splice(1).join("::"),s=ai(r,e),l=ct(`${se.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Oo.UIAnnotationTerms.Identification}`,`/@${Oo.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[se.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${j}${l}`}}})}o(aJ,"addFooterActionCallBackV2");function sJ(e,t,n,i,r,a,s,l){let u,p;if(a.ID&&a.Label?u=a.ID+a.Label.replace(/\s+/g,""):a.ID?u=a.ID:a.Label&&(u=a.Label.replace(/\s+/g,"")),u?p=`${se.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${se.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${se.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[g]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],h=r==null?void 0:r.entityTypes.find(b=>b.name===i),E=jc(t[se.ManifestSection.generic].pages,n,m);return _l(e,h,E,t,l,p,g,a.ID),p}o(sJ,"ensureCustomColumnDefinitionExists");function Ud(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&rJ(e,t,"visible",n)}o(Ud,"addAppSchemaDefinition");function cJ(e,t,n){e.properties[t]={$ref:`${j}${n}`}}o(cJ,"addSectionReference");function kd(e,t,n,i){let r=ct(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=j+t,i.definitions[r].properties.toolBar.$ref=`${j}ObjectPageToolBar<${t}>`,i.definitions[r][se.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=se.FACETTITLEPREFIX+n.ID,i.definitions[r][se.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=se.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${j}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=`${j}QuickVariant<${t}>`,as(n.entityType,i,`QuickVariant<${t}>`)}o(kd,"addTableDefinition");function lJ(e,t,n,i,r,a){if(i.base!==se.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=wo(n,i,t);let u=n.definitions[l];Ud(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[se.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${j}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${j}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${j}ObjectPageAnalyticalTable<${t}>`},{$ref:`${j}ObjectPageGridTable<${t}>`},{$ref:`${j}ObjectPageTreeTable<${t}>`}],u[se.SchemaTag.annotationPath]=i.annotationPath,ya(i,u,t),ts(i,u,t),kd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),kd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),kd("ObjectPageGridTable",t,i,n),kd("ObjectPageTreeTable",t,i,n),kd("ObjectPageAnalyticalTable",t,i,n);let p,g=o1(i.entityType,e.serviceAVT);g&&(p=sJ(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let h=r[m];h.base===se.FacetBase.LineItem&&(h.ID===s||m.includes(s))&&Dl(!0,n,h.target,h.entityType,h.ID||m,p)}}o(lJ,"handleLineItem");function fJ(e,t,n,i,r,a=!1){e.definitions[t]=wo(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Ud(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[se.SchemaTag.isViewNode]=!0}o(fJ,"handleSubSection");function uJ(e,t,n,i,r){e.definitions[t]=wo(e,n,i);let a=e.definitions[t];Ud(e,a,r,"ObjectPageSectionChartV2")}o(uJ,"handleSectionChart");function _k(e,t,n,i,r,a){e.definitions[t]=wo(e,n,i);let s=e.definitions[t];Ud(e,s,r,a||"CommonHeaderFacetSettings"),s[se.SchemaTag.annotationPath]=n.annotationPath,s[se.SchemaTag.isViewNode]=!0,s[se.SchemaTag.dataType]=Sc(n==null?void 0:n.target)}o(_k,"handleHeaderFacet");function pJ(e,t,n){let i=e.definitions[t],r=i[se.SchemaTag.dataType]=Sc(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}o(pJ,"addDataPointHeaderFacetDataType");function dJ(e,t,n,i,r){e.definitions[t]=wo(e,n,i);let a=e.definitions[t];return Ud(e,a,r,"ObjectPageSectionFormV2"),a[se.SchemaTag.annotationPath]=n.annotationPath,a[se.SchemaTag.isViewNode]=!0,a}o(dJ,"handleFormSection");function gJ(e,t,n){let i=new Map([[se.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[se.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[se.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[se.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[se.FacetBase.Form,"ObjectPageHeaderSectionForm"],[se.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[se.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[se.FacetBase.LineItem,"ObjectPageSectionTableV2"],[se.FacetBase.Chart,"ObjectPageSectionChartV2"],[se.FacetBase.Address,"ObjectPageSectionAddressV2"],[se.FacetBase.Contact,"ObjectPageSectionContactV2"],[se.FacetBase.Form,"ObjectPageSectionFormV2"],[se.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[se.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[se.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[se.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[se.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[se.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[se.FacetBase.Form,"ObjectPageSubSectionFormV2"],[se.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(gJ,"getSectionType");function mJ(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Oo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(mJ,"getReferenceKey");function wk(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=gJ(l.base,a,s),p=mJ(l,n,u),g=`${u}<${p}>`;switch(cJ(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,fJ(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let h in l.facets)wk(e,l.facets,h,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{lJ(e,p,r,l,t,u),Ml(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{uJ(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=dJ(r,g,l,p,u);wm(se.SectionType.Section,l,m,r,se.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{Ru(l,p,i,r,se.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{Ru(l,p,i,r,se.SectionType.Section,se.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{_k(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{_k(r,g,l,p,u),pJ(r,g,l);break}default:i.properties[n]=wo(r,l,p)}}o(wk,"addSection");function Vk(e,t,n,i,r,a=!1){if(e)for(let s in t)wk(i,t,s,n,r,!1,a)}o(Vk,"addSectionsFromFacets");function Mk(e,t,n){var g,m,h,E,b,O;let i=t.definitions[se.DefinitionName.Sections];i[se.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[se.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Oo.UIAnnotationTerms.Facets}`);let r=t.definitions[se.DefinitionName.HeaderSections];if(r[se.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[se.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Oo.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=fm((h=e.entitySet)==null?void 0:h.entityType,e.serviceAVT,se.FioriElementsVersion.v2,e.logger),s=lm((E=e.entitySet)==null?void 0:E.entityType,e.serviceAVT,se.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let N in n){let M=n[N];(O=(b=e.entitySet)==null?void 0:b.name)!=null&&O.includes(M.entitySet)?(Vk(l,a,i,e,t),Vk(u,s,r,e,t,!0)):Mk(e,t,M.pages)}let p=t.definitions.CustomSections;for(let N in p.properties)i.properties[N]=p.properties[N]}o(Mk,"addSections");function hJ(e,t,n){jm(e,n),Um(e,n,t,oJ,void 0,!0)}o(hJ,"addHeader");function yJ(e,t,n,i){let r=mD(t,n,i,void 0,!0);r&&f1(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(yJ,"addRelatedFacetKeysType");function Vd(e,t){var s;Qt();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[se.PropertyName.sections]={$ref:j+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[se.ManifestSection.generic].pages;return a?(hJ(n,e,r),n.definitions[se.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Mk(e,n,a),yJ(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[se.SchemaTag.isViewNode]=!0):delete n.properties[se.PropertyName.sections]),km(n,e,se.FioriElementsVersion.v2,aJ,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,ko(n,iJ),n):(ae(e.logger,{severity:se.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.generic]}}),n)}o(Vd,"generateObjectPageSchemaV2");var en=te(ce());var TJ=["filterBar","keyPerformanceIndicators","chart","table","footer"];function vJ(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(Uc(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(O){let N=O+(r?"#"+r:"");return t[N]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?Q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):Q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return ae(n,{severity:en.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||Cu("LineItem",O),g=g||Cu("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],h=t[g],E=(m||i.quickVariantSelectionX?0:1)+(h?0:2);if(E>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][E-1],N=Q.t(O);ae(n,{severity:en.LogSeverity.Warning,message:N})}return{lineItemAnnotation:m,chartAnnotation:h}}o(vJ,"getLineItemAndChartAnnotation");function bJ(e,t){let n=e.definitions[en.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[en.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(bJ,"addChart");function wd(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[en.PropertyName.table].anyOf[0].$ref=j+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${j}${en.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${j}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[en.PropertyName.table].anyOf[1].$ref=`${j}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${j}${en.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${j}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[en.PropertyName.table].anyOf[2].$ref=`${j}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${j}${en.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${j}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,JD(n.definitions.TableColumnExtensionTypeV2.enum,[en.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=wl(e);if(s){Vl(n);let l=[],u=rf(e.manifest[en.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=vJ(u,s,e.logger);p&&KD.forEach(h=>{n.definitions[h][en.SchemaTag.annotationPath]=hr(a.fullyQualifiedName,p.term,p.qualifier)}),Dl(!1,n,p,a),g&&bJ(n,g);let m=s.SelectionFields;if(Dm(n,m,a),Ml(n,a),!u)return ae(e.logger,{severity:en.LogSeverity.Error,message:Q.t("NOLR"),location:{path:en.MANIFESTPATH,range:[en.ManifestSection.generic]}}),n;_l(n,a,u,e.manifest,e.fragments),BA(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 ko(n,TJ),n}o(wd,"generateAnalyticalListReportSchemaV2");var kk=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function EJ(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}o(EJ,"getCardDefinitionNames");function SJ(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},Sa(a,s.CardModel);let l=EJ(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=j+"CardModel"}}o(SJ,"addModelsEnum");function AJ(e,t){let n=e.properties;for(let i in kk){let r=kk[i],a=r.key;n[a]&&(n[a].messages=[{text:Ll(a,{since:r.since,deprecated:{since:r.deprecated.since,text:r.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}o(AJ,"markDeprecatedProperties");function Uk(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},AJ(n,t),SJ(n,t),n}o(Uk,"generateOverviewPageSchemaV2");var Qs=te(ce());function bI(e,t,n,i,r,a){Qt();let s=jr(e,t),l={templateType:a,fioriElementsVersion:Qs.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=_d(r,l.serviceAVT),l.entitySet||ae(l.logger,{severity:Qs.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(bI,"prepareGenerationV2");function EI(e,t,n,i,r,a){let s=bI(n,a,i,r,t,Qs.TemplateType.ListReportObjectPageV2);return Vd(s,e)}o(EI,"generateObjectPageInterfaceV2");function SI(e,t,n,i,r,a){let s=bI(n,a,i,r,t,Qs.TemplateType.ListReportObjectPageV2);return Ep(s,e)}o(SI,"generateListReportInterfaceV2");function AI(e,t,n,i,r,a){let s=bI(n,a,i,r,t,Qs.TemplateType.AnalyticalListPageV2);return wd(s,e)}o(AI,"generateAnalyticalListPageInterfaceV2");function Md(e,t){return Uk(e,t)}o(Md,"generateOVPInterfaceV2");var Wf=te(ce()),$k=require("@sap-ux/vocabularies-types/vocabularies/UI");function jk(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}o(jk,"updateDependencyLib");function VT(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}o(VT,"extractLastIdPart");function Bk(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return ae(i,{severity:Wf.LogSeverity.Error,message:Q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(Wf.PropertyName.sections),s=a>-1?VT(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${$k.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},g={customExtension:Wf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return PI(g),!0}o(Bk,"createNewCustomColumn");var Ha=te(ce());var Gk=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),Hk=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function PJ(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(PJ,"initializeRouting");function xJ(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(xJ,"setTargetOptions");function CJ(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Ha.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(CJ,"calculateQueryPattern");function Wk(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(u=>n[s].navigation[u].route===i);l&&(t=l,a=n[s])}if(a){Wk(e,t,n,s);return}}}o(Wk,"fillNavigationParts");function IJ(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(IJ,"fillParentKeys");function OJ(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(xJ(n,a,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=l==null?void 0:l.routePattern;if(!u){let p=[];Wk(p,a,t,r,l==null?void 0:l.contextPath);let g=IJ(e.routePattern);u=CJ(p,l,g)}i.routes.push(Gk(u,s.route,s.route))}}}o(OJ,"handlePageNavigation");function RJ(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(RJ,"removeDeletedPages");function LJ(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=Hk({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=Hk({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(LJ,"transferEntitySetandContextPath");function NJ(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(NJ,"updateRouteLayout");function FJ(e,t,n){var i;return e.pageType&&![Ha.PageTypeV4.CustomPage,Ha.PageTypeV4.FPMCustomPage].includes(e.pageType)?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||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(e.pageType!==Ha.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Ha.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(i=t==null?void 0:t.options)==null?void 0:i.settings,viewName:e.view.name}}}),t}o(FJ,"fillTarget");function Kk(e,t,n){var r,a;let i=PJ(n[Ha.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(Gk(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=FJ(u,l,s),LJ(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),OJ(u,t,l,i,s),NJ(i,s,u),i.targets[s]=l}return RJ(i,t),i}o(Kk,"transformRoutingV4");var xi=te(ce());var Xk=[xi.FlexibleColumnLayoutAggregations.BeginColumnPages,xi.FlexibleColumnLayoutAggregations.MidColumnPages,xi.FlexibleColumnLayoutAggregations.EndColumnPages],Qk=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(g=>g.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:Xk[r]?s.controlAggregation=Xk[r]:s.controlAggregation=xi.FlexibleColumnLayoutAggregations.EndColumnPages;let u=a.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let g in l.navigation)Qk(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),DJ=o((e,t)=>{e.routing.config.routerClass=xi.v4.FIORI_FCL_ROUTER_CLASS,Qk(e,t,t.home);let n={viewName:xi.FIORI_FCL_ROOT_VIEW_NAME,type:xi.ViewTypes.XML,async:!0,id:xi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,jk(e,xi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),_J=o(e=>{var t;e.rootView&&e.rootView.viewName===xi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===xi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),qk=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?DJ(e,t):_J(e)},"updateFcl");var ie=te(ce()),jd=require("@sap-ux/vocabularies-types/vocabularies/UI");var Yk=te(lc()),wT=te(ce());function VJ(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(VJ,"isExportValueEquals");function wJ(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===wT.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(wJ,"deleteProperty");function zk(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),zc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},zk)}else VJ((u=s.attributes)==null?void 0:u[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(wJ(e,i),l=!0);return l}o(zk,"exportProperty");function MT(e,t,n,i,r,a){let s=Pf(e.file,!1,a);if(s){let l=eT(s);if(zc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},zk)){let p=(0,Yk.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:wT.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(MT,"getExtensionExportResult");var Jk=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},u;return r&&Object.keys(r).length>0&&(u=Uo(n||[],a.name,i,s)),u&&MT(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),Zk=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=Tc(u,s[0]);p=vc(a,m,u,g,t)}if(p){let m=xf(t),E={...i.definitions[m],definitions:i.definitions};MT(p,r,n,E,g,l)}},"exportXMLFragmentConfig");var e2=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],MJ=[...e2,"views","initialLoad","template"],kT=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function kJ(e,t,n){var s,l,u,p;let i=`@${jd.UIAnnotationTerms.LineItem}`,r=`@${jd.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ie.DefinitionName.TableSPV])==null?void 0:s[ie.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ie.DefinitionName.ALPTable])==null?void 0:u[ie.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ie.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(kJ,"determineTargetAnnotationOfTable");function UJ(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ie.DefinitionName.ALPChart])==null?void 0:a[ie.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(UJ,"determineTargetAnnotationOfChart");function jJ(e,t,n,i,r){var a;if(e.length===3)t=n=i[ie.SchemaTag.annotationPath]&&i[ie.SchemaTag.annotationPath].substr(i[ie.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split(j)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ie.SchemaTag.annotationPath])&&l[ie.SchemaTag.annotationPath].substr(l[ie.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(jJ,"determineTargetAnnotationBasedOnParentView");function $J(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=jJ(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ie.SchemaTag.annotationPath]&&l[ie.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ie.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ie.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o($J,"determineTargetAnnotationOfView");function BJ(e,t,n){let i,r;return e[2].split(`@${ie.UIVOCABULARY}`)[1]?n&&n.indexOf(ie.FACETTITLEPREFIX)>-1?i=r=n.split(ie.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(BJ,"determineTargetAnnotationOfHeaderSections");function HJ(e,t){let n=e[1].split(`@${ie.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=VT(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(HJ,"determineTargetAnnotationOfSections");function GJ(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=kJ(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=UJ(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=HJ(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=BJ(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=$J(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(GJ,"determineTargetAnnotation");function WJ(e){return e.includes(iE)}o(WJ,"isGroupingElement");function KJ(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ie.PropertyName.actions,ie.PropertyName.columns,ie.PropertyName.views,ie.PropertyName.visualFilters,ie.PropertyName.selectionFields].includes(ie.PropertyName[r])||WJ(r)){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(KJ,"determineKeyForSyncRule");function XJ(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}o(XJ,"createNewObjectInManifest");function t2(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(XJ(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}o(t2,"transferPropertyToManifest");function QJ(e,t,n,i,r,a,s){var p,g,m;let l=!1,u=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((g=n.config.table)!=null&&g.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&e2.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&MJ.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let h=t.syncRule.manifest.delete;typeof h=="function"&&(h(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 ns(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(QJ,"deleteFromManifest");function qJ(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:u,custom:p}=GJ(e,n.transferParameters,n.configObject),g=KJ(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),h=Vo(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(h){let E={syncRule:t,manifestSection:h,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:g};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&Il([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=QJ(e,E,n.transferParameters,h,m,u,l):r=t2(E,n.propertyDefinition,i)}return r}o(qJ,"exportManifestChange");function YJ(e,t,n){let i=Dn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);Zk(e.transferParameters,r,n.configObject)}else i.manifest&&qJ(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ie.ChangeIndicator.Updated)}o(YJ,"evaluateExportRule");function zJ(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,CI(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(zJ,"transferSubObject");function JJ(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=ft(e.pageNameArray)+"/views",a=Vo(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(JJ,"createALPTableView");function ZJ(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=ft(e.transferParameters.pageNameArray)+"/views",r=Vo(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||jd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(ZJ,"createALPChartView");function eZ(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ft(e.pageNameArray),r=Vo(e.exportResults.manifest,i),a=`@${jd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].filterFields;Object.keys(t).forEach(l=>{let u=t[l];s[l]={};for(let p in u)p==="visualFilterValueList"?s[l].visualFilter={valueList:u[p]}:s[l][p]=u[p]})}return n}o(eZ,"createVisualFilters");function tZ(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ft(t.pageNameArray)+"/views",s=Vo(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let u=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(u===-1)s.paths.push(l),r=!0;else if(u!==i.index){let p=JSON.parse(JSON.stringify(s.paths[u]));s.paths.splice(u,1),s.paths.splice(e,0,p),r=!0}}return r}o(tZ,"createLRTableView");function nZ(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ie.DefinitionName.CustomColumn))i=Bk(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ie.DefinitionName.ALPChartView&&e.key===ie.PropertyName.chart&&e.configObject)return ZJ(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return JJ(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=tZ(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ie.DefinitionName.VisualFilters)&&(i=eZ(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(nZ,"createNewElement");function iZ(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(iZ,"isDefinitionTraversable");function xI(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Tm(e.configObject,e.key),s=Mo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=nZ(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split(j)[1],i),p=a?[...t,a]:[...t,e.key];if(l||YJ(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||iZ(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;zJ(e,s,r,p,m)}}o(xI,"transferSortedListEntry");function rZ(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,u)=>l[1]&&l[1].index-u[1].index),s.forEach(l=>{var u;(u=n.properties)!=null&&u[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],xI(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,xI(e,i,r),a=!0)}),e.index++})}return a}o(rZ,"transferConfigEntriesWithAnyOfDefinitions");function oZ(e,t,n,i){let r=Qb(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(oZ,"mergeEntriesForInsert");function aZ(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ie.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ie.SchemaTag.propertyIndex]-r[1][ie.SchemaTag.propertyIndex])),t}o(aZ,"sortProperties");function sZ(e,t,n,i,r,a){var l,u;let s=!1;if(e){let p=e.anyOf;if(!p){let g=(l=e.$ref)==null?void 0:l.split(j)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=rZ(n,p,i,r,a)}return s}o(sZ,"checkIfAnyOfDefinition");function CI(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=a.additionalProperties,p=sZ(u,e,l,a,n,i),g=aZ(a.properties);u!=null&&u.$ref&&oZ(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!Il(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,xI(l,n,i,p),m[1].$ref&&s++)})}o(CI,"transferManifestEntriesAndFlexChange");function n2(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(n2,"getClassesForSingleSection");function i2(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],n2(n,i,t),i2(n,t)}}o(i2,"getSubsectionClasses");function cZ(e,t,n){let i;for(let r in e.sections)i=t.sections[r],n2(e,r,n),i2(i,n)}o(cZ,"getExportClassesForSections");function r2(e,t){let n=vm(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(r2,"calculateBaseId");var o2=o((e,t,n=!1)=>{var l;let i=kT(e.manifest),r=new Ba,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&cZ(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:r2(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ie.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return CI(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),lZ=o((e,t,n,i,r,a,s=!1)=>{var b,O;let l=kT(e.manifest),u=e.jsonSchema,p=(b=n.table)!=null&&b[ie.PropertyName.annotationPath]?ie.DefinitionName.ALPTableView:ie.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ie.DefinitionName.LineItems;u.definitions[ie.DefinitionName.TableSPV]&&(m=u.definitions[ie.DefinitionName.TableSPV].properties.columns.$ref.split(j)[1]);let h=u.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&h)for(let N in h.properties)g.toolBar.actions[N]=t.createInstance(i,ie.DefinitionName.ToolBarAction,g.toolBar.actions[N]);let E={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:r2(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return CI(E,n,[],[],[],u),l},"exportListPage"),II=o((e,t,n,i=!1)=>{let r=new Ba,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return lZ(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),a2=o((e,t,n=!1)=>II(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),fZ=o((e,t,n,i,r,a)=>{let s=Vo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=Hb());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];t2(u,p,{}),!l&&Object.keys(s).length&&pD(r,t,s)},"applyExportRule"),uZ=o((e,t,n)=>{var a;let i=kT(t),r=Object.assign(new oT,e);r.settings=Object.assign(new Cf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Dn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)fZ(l,u,s,e,i.manifest,n);else{let p=Vo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],ns(i.manifest,u,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=Kk(e.home,e.pages,i.manifest),qk(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),s2=o((e,t)=>{if(e[ie.SchemaType.ListReport])return II(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return o2(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return uZ(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return a2(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return Jk(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),pZ=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=kT(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Uo(n||[],i.name,r,e.logger)),l&&MT(l,s,i.config,t,"view",a),s},"exportCustomPage"),OI=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return II(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return o2(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return a2(e[ie.SchemaType.AnalyticalListPage],t,n);if(e[ie.SchemaType.FPMCustomPage])return pZ(e[ie.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Bt=require("@sap-ux/fe-fpm-writer");var dZ=new Map([[de.CustomExtensionType.CustomPage,Bt.generateCustomPage],[de.CustomExtensionType.CustomColumn,Bt.generateCustomColumn],[de.CustomExtensionType.CustomSection,Bt.generateCustomSection],[de.CustomExtensionType.ObjectPage,Bt.generateObjectPage],[de.CustomExtensionType.ListReport,Bt.generateListReport],[de.CustomExtensionType.CustomAction,Bt.generateCustomAction],[de.CustomExtensionType.CustomView,Bt.generateCustomView],[de.CustomExtensionType.ControllerExtension,Bt.generateControllerExtension],[de.CustomExtensionType.CustomSubSection,Bt.generateCustomSubSection],[de.CustomExtensionType.CustomFilterField,Bt.generateCustomFilter],[de.CustomExtensionType.CustomHeaderSection,Bt.generateCustomHeaderSection]]),gZ={api:Bt.PromptsAPI,types:Bt.PromptsType};function mZ(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];if(n[de.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.ListReport];t=SI(i,r,a,s,l,u)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.ObjectPage];t=EI(i,r,a,s,l,u)}else if(n[de.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[de.SchemaType.OverviewPage];t=Md(i,r)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.AnalyticalListPage];t=AI(i,r,a,s,l,u)}}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];if(n[de.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[de.SchemaType.ListReport];t=rT(de.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[de.SchemaType.ObjectPage];t=nx(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[de.SchemaType.AnalyticalListPage];t=rT(de.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[de.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[de.SchemaType.FreestylePage];t=ix(de.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[de.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[de.SchemaType.FPMCustomPage];t=rx(i,r,a,s,u,e.featureToggles,l)}}return t}o(mZ,"generateSchema");function hZ(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=I_(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=s2(i,n)}return t}o(hZ,"exportConfig");function yZ(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=GA(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=OI(i,n)}return t}o(yZ,"exportConfigEntityByPath");function TZ(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=GA(i,n,!0)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=OI(i,n,!0)}return t}o(TZ,"deleteConfigEntityByPath");function vZ(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];n[de.SchemaType.ListReport]?t=oy(n[de.SchemaType.ListReport]):n[de.SchemaType.ObjectPage]?t=ey(n[de.SchemaType.ObjectPage]):n[de.SchemaType.OverviewPage]?t=ty(n[de.SchemaType.OverviewPage]):n[de.SchemaType.AnalyticalListPage]&&(t=ny(n[de.SchemaType.AnalyticalListPage]))}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];n[de.SchemaType.ListReport]?t=il(n[de.SchemaType.ListReport],de.SchemaType.ListReport):n[de.SchemaType.ObjectPage]?t=FT(n[de.SchemaType.ObjectPage]):n[de.SchemaType.AnalyticalListPage]?t=il(n[de.SchemaType.AnalyticalListPage],de.SchemaType.AnalyticalListPage):n[de.SchemaType.FPMCustomPage]&&(t=NT(n[de.SchemaType.FPMCustomPage]))}return t}o(vZ,"importConfig");async function bZ(e){return vI(e)}o(bZ,"importProject");async function EZ(e){return TI(e)}o(EZ,"importProjectSchema");function SZ(){return{version:"22",fpmWriter:"30",moduleVersion:m1.version}}o(SZ,"getApiVersion");function PI(e){let t=dZ.get(e.customExtension);if(t&&typeof t=="function")return(0,Bt.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(PI,"generateCustomExtension");var io=require("path"),qs=require("fs");var Kf=o(async e=>new Promise((t,n)=>{(0,qs.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),AZ=o(async e=>JSON.parse(await Kf(e)),"readJSON"),RI=o(async e=>new Promise((t,n)=>{(0,qs.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),PZ=o(async e=>new Promise(t=>{(0,qs.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),l2=o(async e=>new Promise(t=>{(0,qs.exists)(e,n=>{t(n)})}),"resourceExists"),xZ=o(async e=>AZ((0,io.join)(e,"manifest.json")),"getManifest"),f2=o(async e=>{let t=[],n=(0,io.join)(e,"changes");if(!await l2(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await RI(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Kf((0,io.join)(n,a)));return t},"getChanges"),c2=o(async(e,t="fragments")=>{let n=[],i=(0,io.join)(e,"ext",t);if(!await l2(i))return n;let r=await RI(i);for(let a of r){let s=(0,io.join)(i,a),l=await Kf(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),CZ=o(async(e,t)=>{var r,a,s,l,u,p,g,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let h=(0,io.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:h,fileContent:await Kf(h)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let h of i.mainService.settings.annotations)if((g=(p=i[h])==null?void 0:p.settings)!=null&&g.localUri){let E=(0,io.join)(t,i[h].settings.localUri);n.push({dataSourceUri:E,fileContent:await Kf(E)})}}if(n.length===0)for(let h in i){let E=i[h];if((E==null?void 0:E.type)==="ODataAnnotation"&&((m=E==null?void 0:E.settings)!=null&&m.localUri)){let b=(0,io.join)(t,E.settings.localUri);n.push({dataSourceUri:b,fileContent:await Kf(b)})}}return n},"getAnnotations"),IZ=o(async e=>{let t=(0,io.basename)(e),n=(0,io.join)(e,"webapp"),i=await xZ(n),r=await CZ(i,n),a=await f2(n),s=await c2(n),l=await c2(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");cc(Li,te(ce()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
|
|
294
|
+
`}),s_(Q)}o(Qt,"initI18n");var _A={};sc(_A,{AnalyticalListPage:()=>Xr,ListReport:()=>To,ObjectPage:()=>ci,OverviewPage:()=>Jt,exportFilterSettings:()=>u_,importDateSettingsOVP:()=>l_,importFilterSettings:()=>f_});var Jh=te(ce());var Xr=class{};o(Xr,"AnalyticalListPage"),y([v({flex:{controlId:ym,controlType:o(()=>Jh.ControlType.DynamicPage,"controlType")}})],Xr.prototype,"fitContent",2),y([jt("table")],Xr.prototype,"table",2),y([jt("template::SmartFilterBar")],Xr.prototype,"filterBar",2),y([jt("analyticalListPageChart")],Xr.prototype,"chart",2),y([jt("analyticalListFooter")],Xr.prototype,"footer",2),Xr=y([Ji({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Jh.v2.FE_TEMPLATE_V2_ALP})],Xr);var yp=te(ce());var To=class{};o(To,"ListReport"),y([v({flex:{controlId:ym,controlType:o(()=>yp.ControlType.DynamicPage,"controlType")}})],To.prototype,"fitContent",2),y([jt("listReportFilter")],To.prototype,"filterBar",2),y([jt("listReport")],To.prototype,"table",2),y([jt("listReportFooter")],To.prototype,"footer",2),To=y([Ji({id:yp.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:yp.v2.FE_TEMPLATE_V2_LIST_REPORT})],To);var DA=te(ce());var ci=class{};o(ci,"ObjectPage"),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.52.0"})],ci.prototype,"showConfirmationOnDraftActivate",2),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.52.1"})],ci.prototype,"hideChevronForUnauthorizedExtNav",2),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.48.0"})],ci.prototype,"allowDeepLinking",2),y([v({manifest:{path:o(t=>Ni(t),"path")}}),x({since:"1.52.0"})],ci.prototype,"navToListOnSave",2),y([jt("header")],ci.prototype,"header",2),y([jt("sections")],ci.prototype,"sections",2),y([jt("layout")],ci.prototype,"layout",2),y([v({manifest:{path:o(t=>Wm(t),"path")}}),x({since:"1.77.0"})],ci.prototype,"defaultLayoutTypeIfExternalNavigation",2),y([v({manifest:{path:o(t=>Ni(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),x({since:"1.78.0"})],ci.prototype,"globalChartSettings",2),y([v({manifest:{path:o(t=>Ni(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:dc}}),x({since:"1.71.0"})],ci.prototype,"globalTableSettings",2),ci=y([Ji({id:DA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:DA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ci);function wQ(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(wQ,"importDateSettingsFieldsOVP");function l_(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&&wQ(e,t),t}o(l_,"importDateSettingsOVP");function f_(e){let t={};return t.dateSettings=l_(e.filterSettings),t}o(f_,"importFilterSettings");function MQ(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(MQ,"exportFilterFields");function u_(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&&MQ(t,n,e))}o(u_,"exportFilterSettings");var Jt=class{};o(Jt,"OverviewPage"),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"globalFilterModel",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"globalFilterEntityType",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"globalFilterEntitySet",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"showBasicSearch",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"disableErrorPage",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"smartVariantRequired",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"bHeaderExpanded",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"containerLayout",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"showDateInRelativeFormat",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"disableTableCardFlexibility",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"enableLiveFilter",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"enableLazyRendering",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"refreshStrategyOnAppRestore",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"considerAnalyticalParameters",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"refreshIntervalInMinutes",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"useDateRangeType",2),y([v({manifest:{path:o(()=>bn(),"path"),import:f_,export:u_}}),x({since:"1.80.0"})],Jt.prototype,"filterSettings",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"dataLoadSettings",2),y([v({manifest:{path:o(()=>bn(),"path")}})],Jt.prototype,"resizableLayout",2),Jt=y([Ji({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Jt);var VA=class VA{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(VA,"MetadataFactory");var of=VA;var Jn=te(ce());var kQ={},UQ={Table:Ic,ResponsiveTableWithMultiSelect:Ic,ResponsiveTableWithInlineDelete:Ic},jQ={[Jn.v2.CardSettingsType.listCardSettings]:Hl,[Jn.v2.CardSettingsType.listCardSettingsv4]:Hl,[Jn.v2.CardSettingsType.analyticalCardSettings]:Gl,[Jn.v2.CardSettingsType.analyticalCardSettingsv4]:Gl,[Jn.v2.CardSettingsType.stackCardSettings]:ku,[Jn.v2.CardSettingsType.linkListCardSettings]:Uu,[Jn.v2.CardSettingsType.tableCardSettings]:Wl,[Jn.v2.CardSettingsType.tableCardSettingsv4]:Wl},$Q={[Jn.SAPUI5_VIEW_CLASS]:fp,[Jn.SAPUI5_FRAGMENT_CLASS]:lp,Table:kc,ObjectPageResponsiveTableWithMultiSelect:kc,ObjectPageResponsiveTableWithInlineDelete:kc},BQ={[Jn.PageTypeV2.AnalyticalListPage]:kQ,[Jn.PageTypeV2.ListReport]:UQ,[Jn.PageTypeV2.ObjectPage]:$Q,[Jn.PageTypeV2.OverviewPage]:jQ},wA=class wA extends of{constructor(){super(OA,_A,BQ)}};o(wA,"MetadataInstanceFactoryV2");var Di=wA;function HQ(e,t,n,i,r){if(e.filterBar=t.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ListReportFilterBar,e.filterBar),_n(e.filterBar,n.manifest,i[qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),_n(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(HQ,"importFilterBar");function MA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=yr(s),u={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(g=l.content)!=null&&g.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};Hh(n.table,u,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&Gh(e,n,s)}o(MA,"importFlexChangesOfTableAndColumns");function GQ(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Rm]&&t[Lm]&&(a=JSON.parse(JSON.stringify(t[Rm])),a.properties={...a.properties,...t[Lm].properties}),_n(n.table,i.manifest,a,r,i.logger),MA(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&&ae(i.logger,{severity:qt.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}o(GQ,"importTable");function WQ(e,t,n,i){let r=e.jsonSchema.definitions,a=Kh(e.manifest,i);if(t.table=n.createInstance(qt.PageTypeV2.ListReport,a,t.table),Xh(t,n,r),GQ(a,r,t,e,i),t.table.toolBar=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,r[qt.DefinitionName.ToolBarLR],i,e.logger),r[qt.DefinitionName.ActionsLR])for(let l in r[qt.DefinitionName.ActionsLR].properties){let u=xs(l);t.table.toolBar.actions[u]=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.Action),_n(t.table.toolBar.actions[u],e.manifest,r[qt.DefinitionName.Action],i,e.logger)}HQ(t,n,e,r,i),t.footer={actions:{}};let s=r[qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=xs(l);t.footer.actions[u]=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.FooterAction),_n(t.footer.actions[u],e.manifest,r[qt.DefinitionName.Action],i,e.logger)}}o(WQ,"addSettings");function p_(e){if(Qt(),!tf(e))return;let n=new Di,i=n.createPageInstance(qt.PageTypeV2.ListReport),r=[],a=ef(e.manifest[qt.ManifestSection.generic].pages,r);if(nf(a,e.logger,a==null?void 0:a.entitySet),!!a)return WQ(e,i,n,r[0]),e.flex.forEach(s=>{yr(s)&&Wh(i,s,e.jsonSchema,e.logger)}),Jl(i,e,a,qt.PageTypeV2.ListReport),zh(i),i}o(p_,"createListReportConfig");var ve=te(ce());var Tp=require("@sap-ux/vocabularies-types/vocabularies/UI");var XQ=[ve.ControlType.Avatar,ve.ControlType.ObjectPageLayout,ve.ControlType.DynamicPage];function QQ(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(`${Tp.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${ve.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Tp.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}o(QQ,"getSingleSelectorIdPart");function qQ(e){let t,n=e.split(":::");if(n.length===1)t=QQ(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(`::${Tp.UIAnnotationTerms.LineItem}`,`/@${Tp.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(qQ,"getFacetID");function YQ(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=yr(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(ve.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let h=m[1].replace(/:3a:3a/g,"::");r.exec(h)!==null&&(h=h.split("template:::TableColumn:::")[1]);let E=qQ(h);h=LA(h).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${h}::${g.content.property}`]={controlId:h,propertyId:g.content.property,facetId:E,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){ae(n,{severity:ve.LogSeverity.Error,message:Q.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}o(YQ,"prepareFlexChanges");var zQ=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(j,"");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(j,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function JQ(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&RA(i,t,r)}o(JQ,"addFlexChangeToColumns");function d_(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,ve.VOCWITHSLASH)];for(let u in e){let p=e[u],g=p.propertyId===t,m=t==="columns"&&p.controlType===ve.ControlType.TableColumn;(g||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?JQ(a,p,r.properties,n):Hh(n,p,r))}}o(d_,"importFlexChangesOfTable");function ZQ(e,t){return e.facetId==="template"&&t}o(ZQ,"isStandardActionFlexChange");var g_=o((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function e7(e,t,n,i,r,a){var O;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===ve.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(ve.ACTIONTITLEPREFIX))&&!r&&s,m=r&&g_(u,r.split("::"))&&s,h=e.title&&g_(u,e.title.split("::"),!0),E=!t.facetId&&XQ.includes(t.controlType),b=ZQ(t,l);return p||g||m||h||E||b}o(e7,"matchSelector");function t7(e,t,n,i,r,a){var u;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let g=n[p];if(g.propertyId!==i||g.controlType!==((u=e.properties[g.propertyId])==null?void 0:u[ve.SchemaTag.controlType]))continue;e7(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(t7,"importFlexChanges");function n7(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(ae(n.logger,{severity:ve.LogSeverity.Warning,message:Ll(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(n7,"checkDeprecatedProperties");function i7(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=Bn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u));let g=e.manifest.import;if(g&&typeof g=="function"){let m=g(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return n7(p,a,n,u),p}o(i7,"importManifestSetting");function _i(e,t,n,i,r,a){var u,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let g in n.properties||n){let m=Dn(t,g);if(g==="columns"||m!=null&&m.flex)if((u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSectionTableV2")||(p=r==null?void 0:r.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(g==="columns"){let h=n.properties[g].$ref.split(j)[1],E=e.jsonSchema.definitions[h];d_(i.flexChanges,g,t,r,E,l)}else d_(i.flexChanges,g,t,r,n);else{let h=(r==null?void 0:r.title)||(r==null?void 0:r.id);t7(n,t,i.flexChanges,g,h,a)}else m!=null&&m.manifest&&i7(m,i.pageKeys,e,t,g,s,r)}}o(_i,"transferSettingsAndFlexChanges");function h_(e,t,n,i){let r=qi(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${XD}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Nm}${r}`;break}}return r.replace(/@/g,"")}o(h_,"getActionId");function r7(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split(j)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=h_(s,a,"","");e.actions[a]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,l,{}),_i(n,e[ve.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(r7,"fillStandardActions");function Zh(e,t,n,i,r,a){var l;n[ve.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};a&&(u.id=a);for(let p in t){let g=xs(p),m=h_(s,g,r,a);m&&(n[ve.PropertyName.actions][g]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,s),_i(e,n[ve.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[ve.PropertyName.actions])!=null&&l[g]&&Object.keys(n[ve.PropertyName.actions][g]).length===0&&delete n[ve.PropertyName.actions][g]}}r7(n,t,e,i),Object.keys(n[ve.PropertyName.actions]).length===0&&delete n[ve.PropertyName.actions]}o(Zh,"fillActions");function o7(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(ve.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;_i(e,i[t.id].form.fields[l],e.jsonSchema.definitions[ve.DefinitionName.Field],r,{},u),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(o7,"fillFields");function a7(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}o(a7,"prepareTableSchema");function s7(e,t,n,i,r){var l,u;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",g=r.factory.createInstance(ve.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][ve.PropertyName.table]=g;let m=e.jsonSchema.definitions,h=a7(p,t,m);_i(e,i[t.id],t.schema,r,{title:t.title}),_i(e,i[t.id][ve.PropertyName.table],h,r,t);let E=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(E!=null&&E.properties){let b=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");Zh(e,E.properties,i[t.id][ve.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][ve.PropertyName.table].toolBar).length===0&&delete i[t.id][ve.PropertyName.table].toolBar}}o(s7,"fillTableInConfig");function c7(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Sm(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};Jl(n[t],e,i,ve.PageTypeV2.ObjectPage,l,r)}}o(c7,"fillCustomColumnsInConfig");function l7(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][ve.PropertyName.chart]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(_i(e,i[t.id],t.schema,r,{title:t.title}),_i(e,i[t.id][ve.PropertyName.chart],e.jsonSchema.definitions[ve.DefinitionName.ObjectPageChart],r,t))}o(l7,"fillChartSection");function f7(e,t,n,i){n[t.id]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&_i(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(f7,"fillHeaderSection");function u7(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&_i(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&Zh(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&o7(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}o(u7,"fillFormSection");function m_(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&_i(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,kA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(m_,"fillSubSection");function kA(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:zQ(t[l]),schema:t[l],title:Zb(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],s7(e,p,n,i,r),c7(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],l7(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],u7(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],m_(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],f7(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],m_(e,p,n,i,r))}}o(kA,"fillSectionsInConfig");function p7(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];_i(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(p7,"fillCustomSectionsInConfig");function d7(e,t){var g,m;let n=t.factory.createPageInstance(ve.PageTypeV2.ObjectPage);_i(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(ve.PageTypeV2.ObjectPage,ve.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;_i(e,n.globalTableSettings,i[ve.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(ve.PageTypeV2.ObjectPage,ve.DefinitionName.ObjectPageHeader);let r=i[ve.DefinitionName.ObjectPageHeader]?i[ve.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];_i(e,n.header,r,t);let a=i[ve.DefinitionName.ObjectPageHeaderActions];a&&Zh(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[ve.DefinitionName.FooterActions];s&&Zh(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageLayout"),_i(e,n.layout,i[ve.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[ve.DefinitionName.HeaderSections];if(l){let h=(g=t.v2Page.component)==null?void 0:g.settings;kA(e,l.properties,h,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[ve.DefinitionName.Sections];if(u){let h=(m=t.v2Page.component)==null?void 0:m.settings;kA(e,u.properties,h,n.sections,t)}let p=a_(e.manifest,e.entitySet);return p7(p,n,t,i,e),n}o(d7,"fillConfig");function ey(e){Qt();let t=tf(e);if(!t)return;let n=e.entitySet,i=[],r=jc(t,e.entitySet,i);if(nf(r,e.logger,n),!r)return;let a=YQ(e.flex,n),s=new Di;return d7(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(ey,"createObjectPageConfigV2");var Ko=te(ce());var jA=te(bb());var Vt=te(ce());var g7=["colorPalette","tabs"];function m7(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(m7,"createCard");function y_(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),y_(e,n.join("|"))}return t}o(y_,"findAvailableId");function vp(e,t,n,i,r,a,s){i!=null&&i.properties&&UA(e,t,n,i.properties,r,a,s)}o(vp,"transferManifestEntriesOVP");function $c(e,t,n,i){return e.createInstance(Vt.PageTypeV2.OverviewPage,i,n,t)}o($c,"assignReflectMetadataRules");function h7(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(j),r=e.appSchema.definitions[i[1]];t=$c(e.factory,i[1],t,"CustomCard"),vp(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(h7,"processAnyOfDefinitionsOfOVP");function y7(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!g7.includes(i)?t[i]=(0,jA.default)(t[i]||{},r||{},{arrayMerge:qb}):t[i]=r}o(y7,"checkSyncRuleForExport");function T7(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in Vt.v2.CardSettingsType||n==="settings")l.settings=(0,jA.default)(l.settings||{},r||{},{arrayMerge:qb});else if(r!==void 0){let u=e.manifest.export;y7(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(T7,"transferToManifest");function v7(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(Vt.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=$c(e.factory,i[0],e.currentObject[t],"CustomCard"),m7(t,e.exportResults.manifest[Vt.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated,vp(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[Vt.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Vt.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated)})}o(v7,"transferCards");function b7(e,t){if(t==="cards")v7(e);else{let n=Mo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Vt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(j);e.currentObject=$c(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],vp(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],UA(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],UA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(b7,"exportOfObject");function UA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!Il(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=Dn(e,l),g={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(g.currentObject=e[a[a.length-2]],u=h7(g)):u&&typeof u=="object"&&i[l]&&b7(g,l),p!=null&&p.manifest&&T7(p,a,l,t,u,e)}}o(UA,"processProperties");function E7(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=_D(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=bm(p,g);e.exportResults.flexChanges.find(E=>{let b=!1,O=JSON.parse(E);O={content:O.content,selector:O.selector};let N=JSON.parse(m);return N={content:N.content,selector:N.selector},JSON.stringify(O)===JSON.stringify(N)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(E7,"evaluateFlexRule");function S7(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated}}o(S7,"exportConfigValueToManifest");function A7(e,t,n,i,r){let a=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)S7(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated,ns(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(A7,"evaluateManifestRule");function P7(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(Vt.FACETTITLEPREFIX)?r.split(Vt.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(P7,"getManifestPathOfSections");function x7(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o(x7,"getManifestPathOfTable");function C7(e,t,n,i,r){let a;return t[0]===Vt.PropertyName.sections?a=P7(t,a,n,e,r):t[0]===Vt.PropertyName.table?a=x7(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(C7,"getManifestPath");function I7(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)E7(e,i,t,r,a,n,s);else if(t.manifest){let u=C7(e,i,t,n,a);A7(e,u,t,s,n)}}o(I7,"evaluateExportRule");function O7(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(nh(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Vt.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(Vt.ViewTemplateType.ResponsiveTableColumnsExtension,Vt.ViewTemplateType.ResponsiveTableCellsExtension);nh(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(O7,"deleteObsoleteColumn");function R7(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=T1(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated,O7(r,e,n))}o(R7,"deleteObsoleteColumnsFromFragment");function L7(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:u}=ih(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(L7,"clusterConfigColumnsByPath");function T_(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in Vt.v2.TableColumnExtensionTypeV2){let{path:u}=ih(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{R7(p)}catch(g){e.logger.error(g.message)}}if(t){let l=L7(t,n,e.v2Page,s,r);for(let u in l)mS(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(T_,"transferColumnExtensions");function N7(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=y_(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(E=>{var b;return(b=E.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split(j),h=e.appSchema.definitions[m[m.length-1]];Cs(e,t[p],i,[...r,s[p]],h)}let u=Bn(e.exportResults.manifest,jE());for(let p in u)NA(p,l)&&!s.includes(p)&&delete u[p]}o(N7,"transferManifestExtensions");function F7(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Vt.PropertyName.table){n=e[i-1];break}return qn(n,t)}o(F7,"getSectionId");function D7(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Mo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);Cs(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(D7,"transferIndexTable");function _7(e,t,n,i,r,a){let s,l=Sm(e.$ref);l&&(s={target:l,key:F7(t,n)}),T_(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(_7,"transferCustomColumns");function V7(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Mo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&Cs(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(V7,"handleAnyOfDefinitions");function w7(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")N7(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){_7(l,t,s,e,n,a);return}else a?Cs(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&V7(l,e,s,n==null?void 0:n[r],r,i,t)}o(w7,"transferComplexProperty");function Cs(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!Il(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Tm(t,l),p=u?[...n,u]:n,g=Dn(t,l),m=e.propertyDefinition=r.properties[l],h=e.nextDefinition=Mo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(I7(e,g,t,[...i],p,a,l),D7(s,e,a,l,p,i),s===void 0||typeof s=="object")w7(e,i,t,p,l,h,a);else if((m==null?void 0:m.$ref)===j+"TableCustomColumns"){T_(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(Cs,"transferManifestEntriesAndFlexChange");function v_(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=$c(r,i,n[i],s),a.push(i),$A(r,n[i],e,l.properties,a)}o(v_,"transferSettingsOfRef");function M7(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(j);v_(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${j}${Ko.v2.cardTemplateSettingsMap[e.template]}`.split(j);v_(i,l,e,t,r,a)}}o(M7,"processPropertiesOfObject");function k7(e,t,n,i,r,a){let s=Dn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=Bn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{Nl(s,u,t,e)}catch(p){ae(i.logger,{severity:Ko.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:gm(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&M7(e,t,r,i,a,n)}o(k7,"processOvpProperty");function $A(e,t,n,i,r){for(let a in i)k7(t,a,r,n,i,e)}o($A,"processOvpProperties");function U7(e,t,n){$A(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Ko.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[Ko.ManifestSection.ovp].cards[i].template,a=Ko.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=$c(n,a,{},"CustomCard"),e.cards=$c(n,a,e.cards,"CustomCard"),$A(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(U7,"addSettings");function ty(e){let t=new Di,n=t.createPageInstance(Ko.PageTypeV2.OverviewPage);return e.jsonSchema&&U7(n,e,t),n}o(ty,"createOverviewPageConfig");var Pt=te(ce());function j7(e,t,n,i){var p,g;let r=Kh(e.manifest,i),a=e.jsonSchema.definitions;Xh(t,n,a),t.table=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(_n(t.table,e.manifest,s,i,e.logger),MA(e,s,t),t.table.toolBar=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,a[Pt.DefinitionName.ToolBar],i,e.logger),a[Pt.DefinitionName.ActionsLR])for(let m in a[Pt.DefinitionName.ActionsLR].properties){let h=xs(m);t.table.toolBar.actions[h]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.Action),_n(t.table.toolBar.actions[h],e.manifest,a[Pt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),_n(t.filterBar,e.manifest,a[Pt.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[Pt.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[Pt.DefinitionName.SelectionFields].properties;for(let h in m){let E=h;t.filterBar.selectionFields[E]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),_n(t.filterBar.selectionFields[E],e.manifest,a.SelectionFieldDateSettings,i,e.logger,E)}}t.chart=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),_n(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[Pt.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let h=xs(m);t.footer.actions[h]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.FooterAction),_n(t.footer.actions[h],e.manifest,a[Pt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[Pt.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:g.keyPerformanceIndicators;u&&Object.keys(u).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),_n(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(j7,"addSettings");function ny(e){if(Qt(),!tf(e))return;let n=new Di,i=n.createPageInstance(Pt.PageTypeV2.AnalyticalListPage),r=[],a=rf(e.manifest[Pt.ManifestSection.generic].pages,r,e.logger);if(nf(a,e.logger,a==null?void 0:a.entitySet),!!a)return j7(e,i,n,r[0]),e.flex.forEach(s=>{yr(s)&&Wh(i,s,e.jsonSchema,e.logger)}),Jl(i,e,a,Pt.PageTypeV2.AnalyticalListPage),zh(i),i}o(ny,"createAnalyticalListPageConfig");var Zn=te(ce());var af=require("@sap-ux/vocabularies-types/vocabularies/UI");var B7=["filterBar","table","footer"],H7=Zn.UIVOCABULARYALPHADOT.substring(1);function BA(e,t,n,i){as(e,n,"QuickVariant"),s1(n,"QuickVariantX",t),c1(i,n,"QuickVariantX")}o(BA,"addEnumForVariantPaths");function G7(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[af.UIAnnotationTerms.SelectionPresentationVariant,af.UIAnnotationTerms.SelectionVariant,af.UIAnnotationTerms.PresentationVariant];Iu(e,r,i)}o(G7,"addEnumForFilterBarAnnotationPath");function W7(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(af.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(af.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(H7,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(ae(n,{severity:Zn.LogSeverity.Warning,message:Q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(W7,"getPresentationVariantForLineItem");function K7(e,t,n){if(Uc(t,"annotationPath",n))return;let i=W7(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=Cu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||ae(n,{severity:Zn.LogSeverity.Warning,message:Q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(K7,"getLineItemAnnotation");function b_(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:j+Zn.DefinitionName.LineItems},r=j+Zn.DefinitionName.ToolBarLR;LE.forEach((u,p)=>{n.properties.table.anyOf[p.toString()].$ref=j+u;let g=u.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[g]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[u]=m});let{entityType:a,uIAnnotations:s}=wl(e);if(s){let u=[],p=ef(e.manifest[Zn.ManifestSection.generic].pages,u);Vl(n);let g=K7(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let h=hr(a.fullyQualifiedName,g.term,g.qualifier);LE.forEach(E=>{n.definitions[E][Zn.SchemaTag.annotationPath]=h})}Dl(!1,n,g,a);let m=s.SelectionFields;if(Dm(n,m,a),Ml(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],ZD(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return ae(e.logger,{severity:Zn.LogSeverity.Error,message:Q.t("NOLR"),location:{path:Zn.MANIFESTPATH,range:[Zn.ManifestSection.generic]}}),n;_l(n,a,p,e.manifest,e.fragments),BA(a,e.entitySet,n,e.serviceAVT),G7(a,n,Zn.DefinitionName.ListReportFilterBar),l1(a,n,Zn.DefinitionName.MultiEditV2),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 ko(n,B7),n}o(b_,"generateListReportSchemaV2");var we=te(ce());var bp=o(e=>({flexChanges:[],manifest:{[we.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:we.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:we.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function E_(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===we.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o(E_,"getClassesForSingleSection");function S_(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],E_(n,i,t),S_(n,t)}}o(S_,"getSubsectionClasses");function X7(e,t,n){let i;for(let r in e.sections)i=t.sections[r],E_(i,r,n),S_(i,n)}o(X7,"getExportClassesForSections");function Q7(e,t){let n=ef(t.manifest[we.ManifestSection.generic].pages,e);if(!n){ae(t.logger,{severity:we.LogSeverity.Error,message:Q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){ae(t.logger,{severity:we.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(Q7,"findV2Page");function HA(e,t){let n=vm(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(HA,"calculateBaseId");function A_(e,t,n=!1){let i=bp(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=Q7(a,e),l=new Di,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:HA(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Cs(p,u,[],[],e.jsonSchema)}return i}o(A_,"exportListReportPage");function P_(e,t,n=!1){let i=e.page.config,r=bp(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=rf(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Di,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:HA(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Cs(p,u,[],[],e.jsonSchema)}return r}o(P_,"exportAnalyticalListPage");function x_(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=bp(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=jc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return ae(e.logger,{severity:we.LogSeverity.Error,message:Q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new Di,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&X7(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:HA(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Cs(g,p,[],[],e.jsonSchema)}}return a}o(x_,"exportObjectPage");var C_=o(e=>{let t=bp();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Di,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&vp(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),q7=o((e,t,n)=>{var s;let i=bp();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new Hm,e);r.settings=Object.assign(new fs,e.settings);for(let l in n.definitions.AppSettings.properties){let u=Dn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=Bn(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],ns(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&UE(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function I_(e,t){if(e[we.SchemaType.ListReport])return WA(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return x_(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return C_(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return q7(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return P_(e[we.SchemaType.AnalyticalListPage],t)}o(I_,"exportPageV2");function GA(e,t,n=!1){if(e[we.SchemaType.ListReport])return WA(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return x_(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return C_(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return P_(e[we.SchemaType.AnalyticalListPage],t,n)}o(GA,"exportConfigEntityByPathV2");var Na=te(ce());function R_(e,t){e.anyOf&&e.anyOf.forEach(function(n){Bc(n,t)})}o(R_,"addAnyOfToReferredTypes");function ry(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}o(ry,"getSingleItem");function Bc(e,t){if(typeof e!="object")return;let n=Ta(e);n&&L_(n,t),R_(e,t),Bc(e.additionalProperties,t),Bc(ry(e),t)}o(Bc,"addReferredTypesFromElement");function L_(e,t){t.referredTypeNames.add(e);let n=t.types[e];Bc(n,t);let i=n.properties;i?Object.values(i).forEach(r=>Bc(r,t)):Bc(ry(n),t),Bc(n.additionalProperties,t)}o(L_,"addReferredTypesFromType");function iy(e,t,n,i,r){if(typeof t!="object")return;let a=Ta(t);if(a){let s=r.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,r.types[a]=s),e){let l;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=dm(p),l=structuredClone(s),r.types[p]=l,r.referredTypeNames.add(p)}else r.referredTypeNames.add(a),l=s;let u={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};KA(n,u,e.syncRuleProvider,l,r)}else L_(a,r)}else KA(n,i,e==null?void 0:e.syncRuleProvider,t,r)}o(iy,"applyAdaptationInfoToElement");function O_(e,t,n,i){let r=i==null?void 0:i.elementAdapter;return r?r(n,t,e):{}}o(O_,"applySyncRuleToElement");function KA(e,t,n,i,r){var h,E;let a=ED(n),s=O_(e,t,i,a);if(!s)return;iy(s.additionalPropertiesAdaptation,i.additionalProperties,e,t,r);let l={pageInfo:t.pageInfo,specificParams:((h=s.referenceAdaptation)==null?void 0:h.specificParams)||t.specificParams},u=i.properties,p;if(u)p=u;else{let b=ry(i);if(b)u={items:b},p=i;else return}let g,m=((E=s.referenceAdaptation)==null?void 0:E.processingRuleProvider)||function(b,O){g=g||n&&new n;let N=Dn(g,b);return O_(e,l,O,N)};for(let b in u){let O=u[b];if(typeof O!="object"){p[b]=O;continue}let N={...O},M=m(b,N);M?(M.controlId?N[Na.SchemaTag.controlId]=`${t.pageInfo.controlId}--${M.controlId}`:M.manifestPath&&(N[Na.SchemaTag.artifactType]="Manifest",N[Na.SchemaTag.manifestPath]=M.manifestPath),R_(N,r),iy(M.referenceAdaptation,N,e,l,r),iy(M.additionalPropertiesAdaptation,N.additionalProperties,e,l,r),iy(M.itemsAdaptation,ry(N),e,l,r),p[b]=N):delete p[b]}}o(KA,"adjustElement");function Y7(e,t,n){let i=t.split("."),r=i[i.length-1],a=t+".view."+(r==="ObjectPage"?"Details":r);return`${e}::${a}::${n}`}o(Y7,"getViewId");function N_(e,t,n){var re;Qt();let i=uc(e.manifest,Na.FioriElementsVersion.v2,n);if(!i||i===Na.TemplateType.OverviewPageV2)return;let r=Zl(e.pagePath,!1),{parent:a}=Wo(e.manifest,r);if(!a)return;let s=a.component;if(Uc(a,"entitySet",n,"string",!0)||Uc(s,"name",n,"string",!0))return;let l=a.entitySet,u=s.name,p=t(u),g=p==null?void 0:p.genericSchema,m=p==null?void 0:p.syncRuleProvider;if(!m||!g)return g;let h=e.parsedAnnotations||jr(e.annotations,n),E=(re=h==null?void 0:h.entitySets)==null?void 0:re.find(Z=>Z.name===l);if(!E)return g;let b=structuredClone(g),O=Y7(e.appId,u,l),M={pageInfo:{appId:e.appId,componentName:u,entitySet:l,controlId:O,pagePath:e.pagePath}},H={templateType:i,manifest:e.manifest,serviceAVT:h,fioriElementsVersion:Na.FioriElementsVersion.v2,entitySet:E,fragments:e.fragments,logger:n,entityType:E.entityType},$={types:b.definitions,referredTypeNames:new Set};KA(H,M,m,b,$);for(let Z in b.definitions)$.referredTypeNames.has(Z)||delete b.definitions[Z];return b}o(N_,"getAdaptedSchema");var F_=te(ce());var Xo=class{};o(Xo,"ListReportNew"),y([v({flex:{controlType:o(()=>F_.ControlType.DynamicPage,"controlType")},elementAdapter(){return{controlId:"page"}}})],Xo.prototype,"fitContent",2),Xo=y([Ji({id:o_,pageId:hp}),v({elementAdapter(e,t,n){let i=Zl(t.pageInfo.pagePath),{entityType:r,uIAnnotations:a}=wl(n),{value:s}=Wo(n.manifest,i);return{referenceAdaptation:{specificParams:{settings:s,entityType:r,uIAnnotations:a}}}}})],Xo);var YA=require("path"),j_=require("fs");var br=te(ce());function z7(e){let t={};return e.flex.forEach(function(i){let r=yr(i);if(r){let a=r,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}o(z7,"getChangeMapFormImportParameters");function XA(e,t,n,i,r){if(e===void 0)return;let a=Ta(t),s=a?n[a]:void 0;if(t[br.SchemaTag.conversionExit]&&(e=qh(!0,r.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return XA(e,s,n,i,r);if(t.type==="object"&&t.properties&&typeof e=="object"){let l={},u=!1;for(let p in t.properties){let g=t.properties[p],m=XA(e[p],g,n,i,r);m!==void 0&&(u=!0,l[p]=m)}return u?l:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}o(XA,"getConfigRep");function D_(e,t,n,i,r,a,s,l){let u=XA(r,a,s,l,t);if(u===void 0)return;let p=e,g=[];n.forEach(function(m){g.push(m);let h=m.propertyName;p[h]=p[h]||t.propertyInstanceProvider(g),p=p[h]}),p[i]=u}o(D_,"transferValueToConfig");function J7(e,t,n,i,r,a,s,l){let u=r[br.SchemaTag.controlId],p=l[u];if(!p)return;let g=-1,m=p.find(function(h,E){return h.content.property===i?(g=E,!0):!1});m&&(D_(e,t,n,i,m.type==="propertyBindingChange"?m.content.newBinding:m.content.newValue,r,a,s),p.length===1?delete l[u]:p.splice(g,1))}o(J7,"importFlexChangesToConfigProperty");function Z7(e,t,n,i,r,a,s){let l=r[br.SchemaTag.manifestPath],u,p;Array.isArray(l)?(p=l,u=!0):(p=l.path,u=l.addTargetPropertyToPath);let{hasPath:g,value:m,parent:h}=Wo(s.manifest,p,u?i:void 0);if(!g)return;D_(e,t,n,i,u?m:h,r,a,s)}o(Z7,"importManifestToConfigProperty");function __(e,t,n,i,r,a,s){if(La(n.properties))for(let l in n.properties){let u=n.properties[l];if(!La(u))continue;let p=u[br.SchemaTag.artifactType];if(p===br.ArtifactType.FlexChange)J7(e,t,i,l,u,r,a,s);else if(p===br.ArtifactType.Manifest&&u[br.SchemaTag.manifestPath])Z7(e,t,i,l,u,r,a);else{let g=Ta(u),m=g?r[g]:void 0;if(La(m)){let h=i.concat([{propertyName:l,propertyType:g.split("<")[0]}]);__(e,t,m,h,r,a,s)}}}}o(__,"importDefinitionIntoConfig");function V_(e,t,n){var h;let i=uc(e.manifest,br.FioriElementsVersion.v2,e.logger);if(!i||i===br.TemplateType.OverviewPageV2)return;let r=Zl(t,!1),{parent:a}=Wo(e.manifest,r),s=(h=a==null?void 0:a.component)==null?void 0:h.name,l=typeof s=="string"?n(s):void 0;if(!l)return;let u=z7(e),p=e.jsonSchema,g=p.definitions,m=l.propertyInstanceProvider([]);return __(m,l,p,[],g,e,u),m}o(V_,"getConfigForPage");var Si=te(ce());function e6(e,t,n,i){let r=t===void 0?null:t,a=typeof r=="string"&&r.startsWith("{");i.push({controlId:e[Si.SchemaTag.controlId],controlType:e[Si.SchemaTag.controlType],propertyName:n,newValue:r,isBinding:a})}o(e6,"addFlexChangeInfoToList");function w_(e,t,n,i){var l;if(n[Si.SchemaTag.conversionExit])return qh(!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 r=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let u in n.properties){let p=n.properties[u];if(!La(p))continue;let g=Ta(p);p=g&&i.globalTypeDefinitions[g]||p;let m=r[u];s=s||m!==void 0;let h=w_(e?e[u]:void 0,m,p,i);h===void 0?delete r[u]:(r[u]=h,a=!0)}return a?r:s?Object.keys(t).every(u=>La(n.properties[u]))?void 0:r:t}o(w_,"getValueForManifest");function QA(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(r,a){return QA(r,t[a])}):!0;let n=Object.keys(e).filter(r=>e[r]!==void 0),i=Object.keys(t).filter(r=>t[r]!==void 0);return n.length!==i.length||n.some(function(r){return QA(e[r],t[r])})}o(QA,"isDifferent");function t6(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}o(t6,"isEmpty");function n6(e,t,n,i,r){let a=n.manifest,s=e.length-1,l=e[s],u=[];e.some(function(m,h){if(h===s)return!0;let E=a[m];if(typeof E!="object"||E===null)return!0;a=E,u.push(a)});let p=u.length===s?a[l]:void 0,g=w_(t,p,i,r);if(QA(g,p))if(g===void 0){n.manifestChangeIndicator=Si.ChangeIndicator.Deleted;for(let m=s;m>0;m--){let h=u[m];if(!t6(h))break;let E=u[m-1],b=e[m];delete E[b]}}else{for(let m=u.length;m<s;m++){let h={};a[e[m]]=h,a=h}a[l]=g,n.manifestChangeIndicator=p===void 0?Si.ChangeIndicator.Created:Si.ChangeIndicator.Updated}}o(n6,"applyManifestChange");function i6(e,t,n,i,r){let a=e==null?void 0:e[n],s=i[Si.SchemaTag.artifactType];if(s===Si.ArtifactType.FlexChange)e6(i,a,n,t.flexList);else if(s===Si.ArtifactType.Manifest&&i[Si.SchemaTag.manifestPath]){let l,u=i[Si.SchemaTag.manifestPath];Array.isArray(u)?l=u.concat([n]):(l=u.path,u.addTargetPropertyToPath&&(l=l.concat([n]))),n6(l,a,t,i,r)}else{let l=Ta(i),u=l?r.globalTypeDefinitions[l]:void 0;La(u)&&M_(a,t,u,r)}}o(i6,"transferConfigPropertyToExportResults");function M_(e,t,n,i){let r=n.properties||{};for(let a in r){let s=n.properties[a];La(s)&&i6(e,t,a,s,i)}}o(M_,"transferConfigToExportResults");function k_(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:Si.ChangeIndicator.NoChange}}),r={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:Si.ChangeIndicator.NoChange,flexList:[],fragments:i};return M_(t,a,e.jsonSchema,r),a}o(k_,"exportPage");var r6=!1,o6={generateListReportSchemaV2(e,t){return b_(e,t)},createListReportConfig(e){return p_(e)},exportListReportPage(e,t,n){return A_(e,t,n)}},qA;function a6(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,YA.join)(__dirname.substring(0,i+13),"dist")}let t=(0,YA.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,j_.readFileSync)(t,"utf8"))}o(a6,"getPersistentListReportNewSchema");function s6(){let e=a6();return function(t){return t===hp?{genericSchema:e,syncRuleProvider:Xo}:void 0}}o(s6,"createGenericSchemaInfoProvider");function c6(e){return e===hp?{propertyInstanceProvider:o(function(t){return new Xo},"propertyInstanceProvider")}:void 0}o(c6,"getConfigInfo");function U_(e){let{value:t}=Wo(e,[Is.ManifestSection.generic],"pages");return Array.isArray(t)?[0]:t&&typeof t=="object"?[Object.keys(t)[0]]:void 0}o(U_,"getPagePathForRootPage");function l6(e,t,n){let i=!e.layer||e.layer===Is.FlexChangeLayer.Customer,r={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(r.content.newBinding=n.newValue,r.type="propertyBindingChange"):r.content.newValue=n.newValue,bm(r,t)}o(l6,"flexInfoToChangeString");function f6(){let e=s6(),t=o(function(n,i,r){let a=structuredClone(i.manifest);return a[Is.ManifestSection.app].id=n,i.flexList.map(l6.bind(null,r,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,r=U_(i);if(!r)return null;let a={appId:((s=i[Is.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:r,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return N_(a,e,n.logger)},createListReportConfig(n){let i=U_(n.manifest);return V_(n,i,c6)},exportListReportPage(n,i,r){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:Is.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},l=k_(s),u=t(n.appId,l,i);return{manifest:l.manifest,fragments:l.fragments,flexChanges:u,manifestChangeIndicator:l.manifestChangeIndicator}}}}o(f6,"createPageHandlerLRGeneric");function zA(){return r6?(qA=qA||f6(),qA):o6}o(zA,"getPageHandlerLR");function Ep(e,t){return zA().generateListReportSchemaV2(e,t)}o(Ep,"generateListReportSchemaV2");function oy(e){return zA().createListReportConfig(e)}o(oy,"createListReportConfig");function WA(e,t,n=!1){return zA().exportListReportPage(e,t,n)}o(WA,"exportListReportPage");function sy(e,t){var n,i;return(n=e.component)!=null&&n.name?um(ma((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(sy,"generateId");function u6(e,t,n,i){e.navigation={};let r=$_(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=sy(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(u6,"getPageConfigsAndNavigations");function $_(e,t){var i;let n={};for(let r in e){let a=e[r],s=sy(a,r);if(!s)continue;let l={pageType:ma((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let u=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(u)if(l.pageType===Vn.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=oy(p)}else if(l.pageType===Vn.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=ny(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=ey(p)}a.pages&&u6(l,a,t,n)}return n}o($_,"getPagesAndConfigs");var JA=class JA extends ls{constructor(t){Qt();let n;t.manifest[Vn.ManifestSection.generic]?n=t.manifest[Vn.ManifestSection.generic].pages:ae(t.logger,{severity:Vn.LogSeverity.Error,message:Q.t("NOFE"),location:{path:Vn.MANIFESTPATH,range:[Vn.ManifestSection.generic]}}),n||ae(t.logger,{severity:Vn.LogSeverity.Error,message:Q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:Vn.MANIFESTPATH,range:[Vn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&sy(n[i],i),a=new fs,s=Dt(Vn.SchemaType.Application),l=t.appSchemas[s.filename];_n(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,$_(n,t),a)}};o(JA,"V2AppProvider");var ay=JA;function Sp(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||ae(n,{severity:Vn.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:Vn.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=sy(l,s);i[u]=l}if(t===Vn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Sp(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(Sp,"getPages");var Hc=te(ce());var ZA=class ZA extends ls{constructor(t){let n={},i=t.manifest[Hc.ManifestSection.ovp],r=new fs,a=Dt(Hc.SchemaType.Application);_n(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Hc.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Hc.PageTypeV2.OverviewPage,config:ty(l),entitySet:i.globalFilterEntitySet},p=um(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(ZA,"V2OvpProvider");var cy=ZA;var _=te(ce()),Gc=require("@sap-ux/vocabularies-types/vocabularies/UI");var p6=["header","filterBar","chart","table"],eP="@UI.LineItem";function tP(e,t,n,i,r){i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=hr(e.fullyQualifiedName,Gc.UIAnnotationTerms.SelectionFields,r));let a=0;return n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+ct(s.value);s.type==="PropertyPath"&&(l=sm(s,e)),i.properties[u]={$ref:j+u},i.properties[u][_.SchemaTag.propertyIndex]=a;let p=Hr(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][_.SchemaTag.isViewNode]=!0,t.definitions[u][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][_.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${a}`,a++}),i}o(tP,"addSelectionFields");function d6(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Gc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(d6,"getVisualFilters");function g6(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}o(g6,"getPropertiesIndex");function m6(e,t,n,i){var s,l,u,p,g,m;let r=g6(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let h in n){let E=n[h];if(!E.template){let b=a.properties[h]={$ref:oi(_.DefinitionName.VisualFilter,h)},O=r.indexOf(h);O!==-1&&(b[_.SchemaTag.propertyIndex]=O);let N=vt(_.DefinitionName.VisualFilter,h,t);(s=E.visualFilter)!=null&&s.valueList&&(N[_.SchemaTag.annotationPath]=`${h}/@${E.visualFilter.valueList}`);let M=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(H=>H.name===h))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();N.description=M||h,N[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:h}]}}}o(m6,"addVisualFilters");function h6(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},HD(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&rs(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(h6,"applyCustomFilterFields");function y6(e,t,n,i){var l,u;let r=d6(n),a=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[_.DefinitionName.SelectionFields][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.SelectionFields].properties={},s=t.definitions[_.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},m6(e,t,r,a);else{let p=t.definitions[_.DefinitionName.FilterBar];p.properties.initialLayout[_.SchemaTag.hidden]=!0,p.properties.layout[_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.CompactFilters][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.VisualFilters][_.SchemaTag.hidden]=!0}s=tP(e,t,a,s),h6(t,s,n)}o(y6,"addFilterBar");function B_(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${_.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=ct(`${_.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=ai(u,r),m=u.$Type.split(`${_.UIVOCABULARY}.`)[1],h=a.properties[`${m}::${u.Action}`]={$ref:j+p,description:g};h[_.SchemaTag.propertyIndex]=l,h[_.SchemaTag.annotationType]=u.$Type,h[_.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[_.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][_.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}o(B_,"defineActions");function H_(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(u=>u.value.indexOf(_.FacetBase.LineItem)>-1):i?a=e.find(u=>u.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?Rl(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(H_,"findTheRightVisualization");function T6(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(T6,"analyzeChartAnnotation");function v6(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=H_((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(ae(r,{severity:_.LogSeverity.Error,message:Q.t("NOVISUALIZATIONS")}),s=eP,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(v6,"analyzeSPVforView");function sf(e,t,n,i,r,a){let s,l,u=e==null?void 0:e.split(`${_.UIVOCABULARY}.`)[1],p=u&&t[u];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(_.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=H_(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return v6(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=eP,m=`/${s}/@${Gc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=eP;p.qualifier&&(g+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("Chart")){let{visualization:g,targetAnnotation:m,chartTitle:h}=T6(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:h}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(sf,"analyzeViewAnnotation");function b6(e,t,n,i){let r=e.definitions[_.DefinitionName.ALPChartView];if(e.definitions[_.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.isViewNode],n&&(e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.annotationPath]=n),e.definitions[_.DefinitionName.ALPChart].properties.annotationPath[_.SchemaTag.hidden]=!0,r.properties.annotationPath[_.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${j}${_.DefinitionName.ALPChart}`,t){let a=t.split(_.UIVOCABULARYDOT)[1];if(i[a]){let s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else Aa(r,Q.t("UNEXISTING_ANNOTATION_PATH"))}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(b6,"addALPChartView");function E6(e,t,n,i,r,a){var M,H,$,re,Z,oe,Ae,D;let s=(M=n.entityType)==null?void 0:M.annotations.UI,l=(re=($=(H=t==null?void 0:t[0])==null?void 0:H.primary)==null?void 0:$[0])==null?void 0:re[_.SchemaTag.annotationPath],{targetAnnotation:u}=sf(l,s,n.serviceAVT,"primary",void 0,n.logger);b6(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=j+p,B_(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=sf((Ae=(oe=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:oe[0])==null?void 0:Ae[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),h=e.definitions[a];g||i?(h.properties.toolBar.$ref=`${j}${_.DefinitionName.ToolBarLR}`,h.properties.columns={$ref:j+_.DefinitionName.LineItems},h.properties.annotationPath[_.SchemaTag.hidden]=!0):h.properties={};let E=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(E)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],E.additionalProperties=!1,E.description="Table (key: secondary)",E.title="Table",g?(delete E.properties,E.$ref=`${j}${_.DefinitionName.ALPTable}`):i||(E.properties={}),E[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let b,O;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(b=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=O=i.split(_.UIVOCABULARYDOT)[1]),b){let ut={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};hc(ut,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let ht=s[O].fullyQualifiedName.split("@");E[_.SchemaTag.annotationPath]=`/${ht[0]}/@${ht[1]}`,E[_.SchemaTag.key]="secondary",E[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}mc(e,r,n.logger);let N=`${_.DefinitionName.Actions}<${ct(_.DefinitionName.LineItems)}>`;Ea(e,r,n.logger,void 0,N),lo(e,N,_.DefinitionName.CustomActionPosition)}o(E6,"addALPViews");function S6(e,t){let n=`${_.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][_.SchemaTag.isViewNode],e.appSchema.definitions[n][_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${_.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${j}${i}`;let r=`${_.DefinitionName.Actions}<${e.viewKey}>`;return B_(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${j}${r}`,n}o(S6,"addViewChartDefinitions");function A6(e,t,n,i,r,a){let s=S6(e,t);n.definitions[s].properties.annotationPath[_.SchemaTag.hidden]=!0,n.definitions[s].properties.index[_.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[_.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${j}${s}`,description:a||l,title:l}}o(A6,"addViewChart");function P6(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=vt(_.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[_.SchemaTag.isViewNode],l[_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),ss(l.properties.toolBar,_.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${j}${a}`,description:e.title||u,title:u},ss(l.properties.columns,s),l.properties.annotationPath[_.SchemaTag.hidden]=!0,l.properties.index[_.SchemaTag.hidden]=!0,l.properties.entitySet[_.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(_.UIVOCABULARYDOT)[1],g={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};hc(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(P6,"addViewLineItems");function x6(e,t,n,i){e.properties[t][_.SchemaTag.isViewNode]=!0,e.properties[t][_.SchemaTag.annotationPath]=n?`/${n}/@${i[_.SchemaTag.annotationPath]}`:void 0,e.properties[t][_.SchemaTag.artifactType]=_.ArtifactType.Manifest,e.properties[t][_.SchemaTag.key]=t,e.properties[t][_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:t}]}o(x6,"addTagsToView");function C6(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(C6,"getTargetEntityType");function I6(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Gc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=vt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);ss(l.properties.position,_.DefinitionName.ViewPosition,r),vt(_.DefinitionName.ViewPosition,r,e.appSchema),mc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),yc(e.appSchema,r,i,`${_.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let u=`${_.DefinitionName.Actions}<${r}>`,p=`${_.DefinitionName.ViewCustomAction}<${r}>`;Ea(e.appSchema,i,t.logger,p,u,s),vt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${j}${g}`,lo(e.appSchema,u,g)}o(I6,"addViewCustomExtensions");function O6(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)P6(n,t,e,n.targetAnnotation,i),I6(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)A6(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:`${j}${_.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${j}${_.DefinitionName.LRTableView}`}}}o(O6,"addLRViewParts");function R6(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let u of t){if(!u[_.SchemaTag.key])continue;let p,g=C6(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:h,targetAnnotation:E,namespace:b,title:O}=sf(u==null?void 0:u[_.SchemaTag.annotationPath],m,n.serviceAVT,u[_.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(H=>H.targetTypeName===b))==null?void 0:l.name);let N=ct(u[_.SchemaTag.key]),M={viewKey:N,appSchema:e,targetAnnotation:E,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};O6(h,s,M,n,i,m,u),x6(s,N,b,u)}}o(R6,"addLRViews");function L6(e,t,n,i,r,a){var g,m,h,E,b,O,N,M,H,$,re,Z,oe;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=sf(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Ae=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${ct(Ae)}`,ut=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ut[_.SchemaTag.isViewNode],ss(ut.properties.toolBar,_.DefinitionName.ToolBar,D),ut[_.SchemaTag.annotationPath]=u,ut.properties.columns={},ss(ut.properties.columns,D),delete s.properties,ss(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let ht=(m=t.entityType)==null?void 0:m.annotations.UI[Ae];ht||ae(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOTARGET",{target:Ae})});let je={isObjectPage:!1,appSchema:e,lineItemAnnotation:ht,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};hc(je);let sn=(h=Ae.split("#"))==null?void 0:h[1],Wn=sn?`@${Gc.UIAnnotationTerms.LineItem}#${sn}`:`@${Gc.UIAnnotationTerms.LineItem}`;mc(e,i,t.logger,void 0,D,Wn),yc(e,D,i,void 0,Wn);let tn=`${_.DefinitionName.Actions}<${D}>`,Lt=$m(e,D,_.DefinitionName.CustomTableAction);Ea(e,i,t.logger,rn(Lt),tn,Wn),lo(e,tn,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${j}${_.DefinitionName.ToolBarLR}`,ss(s.properties.columns,_.DefinitionName.LineItems);let Ae=(O=(b=(E=t.entityType)==null?void 0:E.annotations)==null?void 0:b[r])==null?void 0:O.LineItem;!Ae&&!((H=(M=(N=i.options)==null?void 0:N.settings)==null?void 0:M.views)!=null&&H.paths)&&ae(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Ae,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};hc(D),mc(e,i,t.logger),yc(e,_.DefinitionName.LineItems,i),Ae&&!((Z=(re=($=i.options)==null?void 0:$.settings)==null?void 0:re.views)!=null&&Z.paths)&&(s[_.SchemaTag.annotationPath]=hr((oe=t.entityType)==null?void 0:oe.fullyQualifiedName,Ae.term,Ae.qualifier));let ut=`${_.DefinitionName.Actions}<${ct(_.DefinitionName.LineItems)}>`;Ea(e,i,t.logger,void 0,ut),lo(e,ut,_.DefinitionName.CustomActionPosition)}}o(L6,"adaptTableDefinition");function N6(e,t,n){var i,r,a,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===_.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===_.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(u=t==null?void 0:t.annotations.UI)==null?void 0:u.PresentationVariant)==null?void 0:p.term)}}o(N6,"getDefaultAnnotationPath");function F6(e,t,n,i){var u,p,g,m,h;let r=(g=(p=(u=t.options)==null?void 0:u.settings)==null?void 0:p.views)==null?void 0:g.paths,a=n.entityType,s=N6(t,n.entityType,n.templateType),l=$D(e,n);y6(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(L6(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],R6(e,r,n,t,l)):(h=(m=t.options)==null?void 0:m.settings)!=null&&h.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[_.PropertyName.chart][_.SchemaTag.hidden]=!0):n.templateType===_.TemplateType.AnalyticalListPageV4&&(E6(e,r,n,s,t,l),yc(e,_.DefinitionName.LineItems,t))}o(F6,"addTableAndViews");function D6(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=_.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",Pm(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;vt(l,l,e,!1),s.properties.position.$ref=`${j}${l}`,lo(e,i,l)}o(D6,"addHeaderActions");function Ap(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ii(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,as(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return ae(e.logger,{severity:_.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=Am(l,n,e.entitySet,i);if(!u)return r;D6(r,u,e.logger),F6(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,ko(r,p6),r}o(Ap,"generateListReportSchemaV4");var Ui=require("@sap-ux/vocabularies-types/vocabularies/UI"),R=te(ce());var VM=te(lc()),wM=te(_M()),MM=te(kP());var kM=te(ce()),UM=te(ce());function o9(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o(o9,"findElementByXMLPath");function jM(e,t){return e[t]?!1:(e[t]={},!0)}o(jM,"ensureObjectExists");function a9(e,t){let n={},i=rn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(a9,"getPropertiesFromRef");function s9(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=jM(l,i),m=l[i];return zc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(s9,"traverseDefaultAggregation");function c9(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}o(c9,"isDefaultAggregationAppliable");function zc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=a9(s,n.$ref));for(let h in u){let E=u[h],b=typeof E=="object";if(b&&(p==null?void 0:p.defaultAggregation)===h&&c9(u,p)&&(l=s9(e,t,p)||l,b=!1),!!b)if((m=(g=E.metadata)==null?void 0:g.path)!=null&&m.length){let O=E.metadata.path,N=O.slice(r.length),M=o9(i,N);l=jM(a,h)||l;let H=a[h];l=zc({fullSchema:e.fullSchema,schema:E,element:M,contextPath:O,config:H,parent:e},t)||l}else l=t(e,E,a,h)||l}return l}o(zc,"traverseSchema");function Pf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,MM.parse)(e.fileContent),s=(0,wM.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,VM.xml2js)(e.fileContent)}catch(r){ae(n,{severity:UM.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:gm(r)}),location:{path:e.dataSourceUri}})}return i}o(Pf,"parseXML");function xf(e){return`${kM.DefinitionName.CustomExtensionFragment}<${e}>`}o(xf,"getCustomExtensionFragmentDefinitionKey");function eT(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(eT,"getRootElement");var qP=te(ce()),YP=te(ce());var Yp=te(ce());function _s(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(_s,"getAttribute");function $M(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o($M,"getNodeByName");function l9(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}o(l9,"resolveMetaPath");function GP(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=_s(t,"contextPath")||i.contextPath,a=_s(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let O=l9(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,h=a.split("#");h.length&&(m=h[1]);let E;if(a){let O=a.split(".");O.length&&(E=O[O.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:E}:void 0}o(GP,"getEntityTypeResolution");function BM(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(BM,"applyAnnotationPath");function f9(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=sf(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=Wb(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(f9,"getTableLineItemAnnotationData");var HM={"sap.fe.macros.Chart":o(e=>{let t=GP(e);BM(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=GP(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ii(Yp.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);tP(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=GP(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=ii(Yp.UIVOCABULARY,n);if(BM(t,r),t.annotationPath){let u=f9(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:Yp.DefinitionName.LineItems,isMacro:!0};sE(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var GM=te(ce());var u9=new Map([["filterFields","SelectionField::"]]),p9=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),zp={anchor:"anchor",placement:"placement",key:"key"};function d9(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[rn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return zp.anchor in r&&zp.placement in r}return!1}o(d9,"isCustomExtensionSchema");function WM(e){let t=u9.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=p9.get(e),t&&(n.prefix=t)),n}o(WM,"getAnnotationPrefix");function g9(e,t,n,i){let r=t.properties[n],a=WM(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=_s(l,zp.key)||n,p=_s(l,zp.anchor),g=_s(l,zp.placement)||GM.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,h={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:h}}o(g9,"getExtensionData");function m9(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=g9(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}va(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],u=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in a&&(u=t.properties[a[l]]),u&&(u.propertyIndex=s)}}o(m9,"updatePropertyIndices");function h9(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=_s(e.subElements[s],"key")||r}return r}o(h9,"getCorrectedAnchorEnumKey");function y9(e,t,n,i){var a,s;let r=WM(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;rs(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let g=((s=(a=p.properties)==null?void 0:a[u])==null?void 0:s.oneOf)||[];for(let m of g)typeof m=="object"&&typeof m.const=="string"&&(m.const=h9(e,m.const,r,t.properties[m.const]))}}o(y9,"applyEnumsForAnchors");function KM(e,t,n,i){d9(t,n)&&(i=i||e.name,m9(e,t,i),y9(e,t,n,i))}o(KM,"handleExtensions");var ui=[];for(let e=0;e<256;++e)ui.push((e+256).toString(16).slice(1));function XM(e,t=0){return(ui[e[t+0]]+ui[e[t+1]]+ui[e[t+2]]+ui[e[t+3]]+"-"+ui[e[t+4]]+ui[e[t+5]]+"-"+ui[e[t+6]]+ui[e[t+7]]+"-"+ui[e[t+8]]+ui[e[t+9]]+"-"+ui[e[t+10]]+ui[e[t+11]]+ui[e[t+12]]+ui[e[t+13]]+ui[e[t+14]]+ui[e[t+15]]).toLowerCase()}o(XM,"unsafeStringify");var QM=require("crypto");var nT=new Uint8Array(256),tT=nT.length;function WP(){return tT>nT.length-16&&((0,QM.randomFillSync)(nT),tT=0),nT.slice(tT,tT+=16)}o(WP,"rng");var qM=require("crypto"),KP={randomUUID:qM.randomUUID};function T9(e,t,n){var r;if(KP.randomUUID&&!t&&!e)return KP.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??WP();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=i[a];return t}return XM(i)}o(T9,"v4");var XP=T9;var QP="sap.fe.macros",v9=["id","key","title","text","label","header"];function YM(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(YM,"getElementName");function b9(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(b9,"isElementWithNamespace");function E9(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(E9,"getDependencies");function S9(e,t){let n="",i=e.attributes||[];for(let r of v9){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(S9,"getViewNodeDescription");function A9(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(A9,"findAvailableName");function zM(e,t){if(e.properties={},e.$ref){let n=rn(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(zM,"prepareSchemaProperties");function P9(e,t,n){t.properties||zM(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(P9,"handleAttributes");function x9(e){e.type===YP.MacrosPropertyType.Control&&(e.internalId=XP())}o(x9,"applyIdForMacros");function C9(e,t,n){var i,r;try{(r=(i=HM)[e])==null||r.call(i,t)}catch{ae(n,{severity:qP.LogSeverity.Error,message:Q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(C9,"callAnnotationHandler");function I9(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===YP.MacrosPropertyType.Control&&(e.controlName=n)}o(I9,"updateMetadataByReference");function O9(e,t,n,i){var h,E,b,O,N;let r=n.schema;t.properties||zM(t,r);let a=t.properties[i],s=(h=a==null?void 0:a.metadata)==null?void 0:h.type,l=(E=a==null?void 0:a.metadata)==null?void 0:E.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&O.length?A9(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(rn(a.$ref)):g=[`${QP}.${i}`,`${QP}.table.${i}`,`${QP}.filterBar.${i}`];let m=!1;for(let M of g){let H=(N=r.definitions)==null?void 0:N[M];if(typeof H!="object")continue;I9(u,H,M);let $=S9(e,i),re={$ref:dm(M),description:$,propertyIndex:n.index,metadata:u};P9(e,re,r),t.properties[p]=re,m=!0,C9(M,{...n,node:e,schema:re,rootSchema:n.schema},n.logger);break}if(x9(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let M={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=M}return p}o(O9,"addControlToSchema");function JM(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split(j)[1];a&&t.indexOf(a)===-1&&t.push(a)}JM(r,t)}}o(JM,"populateUsedDefinitionKeys");function R9(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let i=t.additionalProperties.$ref.split(".");if(i[i.length-1]===e.name)return!0}return!1}o(R9,"isElementAddableToSchema");function L9(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!$M(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(L9,"getDefaultAggregation");function N9(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,ZM(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:YM(s),index:a}]},i)}}o(N9,"handleSubElementsOfXMLNode");function ZM(e,t,n,i){var g,m,h;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[rn(t.$ref)]:t;if(b9(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let E=(h=t.metadata)==null?void 0:h.defaultAggregation;E&&R9(e,t.properties[E])&&(t=t.properties[E]);let b=e.name.split(":"),O=O9(e,t,n,b[b.length-1]);if(t.properties[O])t=t.properties[O];else return}let{subElements:l=[]}=e,u=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&u&&n.schema.definitions[u]&&i.indexOf(u)===-1&&(i.push(u),JM(t,i));let p=L9(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),N9(l,t,n,i),r.push({node:e,schema:t});for(let E of r)KM(E.node,E.schema,n.schema,E.name)}o(ZM,"handleXMLNode");function F9(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}o(F9,"getMacrosPrefixes");function Jc(e,t,n,i){let r=Pf(t.file,!0,i),a=[];if(!r)return;Qt();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){ae(i,{severity:qP.LogSeverity.Error,message:Q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=E9(l),p=F9(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let h=l.subElements[m],E=!g[h.name];g[h.name]=!0,ZM(h,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:E,path:[{name:YM(h),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(Jc,"generateMacrosSchemaDefinition");function ek(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&ek(i.subSections,t)}}o(ek,"populateTemplates");function tk(e,t,n,i){var s,l,u;let r=Tc(n.manifest,i),a=[];ek(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=xf(p);e.definitions[m]=g;let h=vc(n.fragments,r,n.manifest,"fragment",p);if(h){g.metadata.filePath=h.relativeFilePath;let{properties:E={},definitions:b={}}=Jc(t,h,n.serviceAVT,n.logger)||{};g.properties=E;for(let O in b)e.definitions[O]||(e.definitions[O]=b[O])}}return t}o(tk,"resolveFragments");var D9=["header","layout","sections","footer"],_9=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],JP="Custom Action";function ak(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=Mm(t.item,e),p=Br(t.item),m=t.item.$Type===Ui.UIAnnotationTypes.DataFieldForActionGroup,h=m?R.DefinitionName.ObjectPageHeaderActionGroup:R.DefinitionName.ObjectPageHeaderAction,E=t.item.fullyQualifiedName.replace(`@${Ui.UIAnnotationTerms.Identification}`,`/@${Ui.UIAnnotationTerms.Identification}`),b=`${h}<${ct(p)}>`,O=i.definitions[b]={type:"object",$ref:`${j}${h}`,description:ai(t.item,r)};if(O[R.SchemaTag.isViewNode]=!0,O[R.SchemaTag.dataType]=Hr(t.item),O[R.SchemaTag.propertyIndex]=s,m){O.properties={},Aa(O,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let N=(t.item.Actions??[]).map((M,H)=>({item:M,index:H}));zP(N,e,i,r,O,R.ActionType.Annotation)}else O[R.SchemaTag.keys]=[],t.item[R.SchemaKeyName.semanticObject]&&O[R.SchemaTag.keys].push({name:R.SchemaKeyName.semanticObject,value:t.item[R.SchemaKeyName.semanticObject]}),O[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:l});u&&(i.definitions[b][R.SchemaTag.target]=u),O[R.SchemaTag.actionType]=n,O[R.SchemaTag.annotationPath]=`/${E}`,a.properties[p]={$ref:`${j}${b}`},a.properties[p][R.SchemaTag.propertyIndex]=s}o(ak,"addSingleHeaderActionV4");function nk(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[R.SchemaTag.isViewNode]=!0,s[R.SchemaTag.propertyIndex]=i,s[R.SchemaTag.keys]=[],s[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:e}),s[R.SchemaTag.actionType]=R.ActionType.Standard,n.properties[r]={$ref:`${j}${a}`},n.properties[r][R.SchemaTag.propertyIndex]=i,s}o(nk,"addStandardHeaderAction");function ik(e,t,n,i,r,a){let s=Br(e.item),l=ai(e.item,n),u=ct(`${R.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Ui.UIAnnotationTerms.Identification}`,`/@${Ui.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${j}${R.DefinitionName.FooterActionV4}`,description:l};g[R.SchemaTag.isViewNode]=!0,g[R.SchemaTag.actionType]=t,g[R.SchemaTag.propertyIndex]=a,g[R.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${j}${u}`}}o(ik,"addSingleFooterAction");function V9(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Ui.UIAnnotationTypes.DataFieldForAction||i.$Type===Ui.UIAnnotationTypes.DataFieldForActionGroup||i.$Type===Ui.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(_9.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(V9,"groupByCriticality");function w9(e,t,n,i,r,a){let s=e.findIndex(l=>{var u,p;return((p=(u=l.item.annotations)==null?void 0:u.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(ak(t,e[s],R.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(w9,"addCopyAction");function zP(e,t,n,i,r,a,s=0){let l=s;for(let u of e)ak(t,u,a,n,i,r,l),l++}o(zP,"addGroupedHeaderActions");function M9(e){let t="RelatedApps",n=e.properties[t]={$ref:`${j}${t}`,description:"Related Apps"};n[R.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[R.SchemaTag.artifactType]=R.ArtifactType.Manifest,n[R.SchemaTag.actionType]=R.ActionType.Standard,n[R.SchemaTag.isViewNode]=!0,n[R.SchemaTag.keys]=[{name:R.SchemaKeyName.action,value:t}]}o(M9,"addRelatedAppsButton");function rk(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[R.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`:e[R.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`}o(rk,"setAnnotationPathFromEntitySetOrEntityType");function k9(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?V9(n):{};if(zP(s,r.serviceAVT,t,e,i,R.ActionType.Criticality),r.entitySet){let p=e1(r.entitySet),g=t1(r.entitySet);if(_m(r.entitySet)&&g){let m=nk("Edit",t,i,s.length);rk(m,r.entitySet,e,"UpdateHidden")}if(p){let m=nk("Delete",t,i,s.length+1);rk(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;w9(l,r.serviceAVT,t,e,i,u),zP(l,r.serviceAVT,t,e,i,R.ActionType.Annotation,u),sk(t,a,R.DefinitionName.CustomHeaderActionOP,r.logger),M9(i)}o(k9,"addHeaderActionCallBackV4");function U9(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Ui.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];ik(l,R.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];ik(l,R.ActionType.Annotation,e,t,n,r.length+s)}}o(U9,"addFooterActionCallBackV4");function j9(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Ui.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomColumnOP}<${n}>`:R.DefinitionName.CustomColumnOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${R.DefinitionName.CustomColumnOP}<${n}>`;mc(e,t,r,u,n,i);let p=a?n:R.DefinitionName.PositionOP;vt(R.DefinitionName.PositionOP,p,e,a);let g=a?`${R.DefinitionName.PositionOP}<${n}>`:R.DefinitionName.PositionOP;l.properties.position.$ref=`${j}${g}`,yc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&rE(m,l)}o(j9,"addCustomColumnsOP");function $9(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Ui.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomTableActionOP}<${n}>`:R.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description=JP;let u=`${R.DefinitionName.CustomTableActionOP}<${n}>`,p=`${R.DefinitionName.Actions}<${ct(n)}>`;Ea(e,t,r,u,p,i);let g=a?n:R.DefinitionName.CustomActionPositionOP;vt(R.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${R.DefinitionName.CustomActionPositionOP}<${n}>`:R.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${j}${m}`,lo(e,p,m)}o($9,"addTableCustomActionsOP");function sk(e,t,n,i){let r=e.definitions[n];r[R.SchemaTag.isViewNode]=!0,r.description=JP;let a=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.ObjectPageHeaderActions:R.DefinitionName.FooterActions;Pm(e,t,i,n,a);let s=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.CustomHeaderActionPositionOP:R.DefinitionName.CustomFooterActionPositionOP;vt(s,s,e,!1),r.properties.position.$ref=`${j}${s}`,lo(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${j}${n}`})}o(sk,"addHeaderFooterCustomActionsOP");function B9(e,t,n,i,r){let a=`${R.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[R.SchemaTag.isViewNode]=!0,s.description=JP;let l=`${R.DefinitionName.CustomFormActionOP}<${n}>`,u=`${R.DefinitionName.SectionActions}<${ct(n)}>`;Ea(e,t,r,l,u,i),vt(R.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${R.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${j}${p}`,lo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${j}${a}`})}o(B9,"addFormCustomActionsOP");function H9(e,t,n,i,r,a,s){let l=Ec(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=vt(R.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${j}${l}`},g.properties.toolBar.$ref=oi(R.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=oi(R.DefinitionName.QuickVariantSelectionV4OP,t);let m=vt(R.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=oi(R.DefinitionName.AnnotationPathAsObject,t),vt(R.DefinitionName.AnnotationPathAsObject,t,n),as(e.entityType,n,`${R.DefinitionName.AnnotationPathAsObject}<${l}>`);let h={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return hc(h,R.DefinitionName.ObjectPageTableColumn,R.DefinitionName.CustomColumnOP,R.DefinitionName.CustomTableActionOP),j9(n,a,l,t,s),$9(n,a,l,t,s),g}o(H9,"handleLineItem");function ck(e,t,n,i,r,a,s){s&&iT(s,t,R.DefinitionName.ObjectPageSectionTableV4);let l=vt(R.DefinitionName.ObjectPageSectionTableV4,t,n);ya(e,l,Ec(t)),ts(e,l,Ec(t)),l[R.SchemaTag.annotationPath]=e.annotationPath,l[R.SchemaTag.target]=e.namespace,l.properties.table.$ref=oi(R.DefinitionName.ObjectPageTable,t);let u=H9(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(ck,"handleSectionTable");function G9(e,t,n,i,r,a,s){let l;a===R.SectionType.Section?l=R.DefinitionName.ObjectPageSectionForm:a===R.SectionType.HeaderSection&&(l=R.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:oi(l,n)};let u=vt(l,n,r);e.ID||(u.properties={}),ya(e,u,n),ts(e,u,n),u[R.SchemaTag.annotationPath]=e.annotationPath,u[R.SchemaTag.target]=e.namespace,u[R.SchemaTag.isViewNode]=!0;let p=wm(a,e,u,r,R.FioriElementsVersion.v4,n);if(e.base===R.FacetBase.Form){let g=Ec(n);vt(R.DefinitionName.CustomFormActionOP,p,r),B9(r,t,p,g,s)}}o(G9,"handleFormIdentification");function ok(e,t,n,i,r){n.properties[t]={$ref:`${j}${r}`};let a=vt(R.DefinitionName.CommonHeaderFacetSettings,r,i,!1);Ol(e,a,t),a[R.SchemaTag.annotationPath]=e.annotationPath,a[R.SchemaTag.target]=e.namespace,a[R.SchemaTag.dataType]=Sc(e==null?void 0:e.target),a[R.SchemaTag.isViewNode]=!0}o(ok,"handleHeaderFacet");function W9(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,u=ai(l,i),p=l.$Type.split(R.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:oi(R.DefinitionName.ObjectPageToolBarAction,g),description:u};m[R.SchemaTag.propertyIndex]=a,m[R.SchemaTag.annotationType]=l.$Type;let h=vt(R.DefinitionName.ObjectPageToolBarAction,ct(g),n);h[R.SchemaTag.annotationPath]=Bm(l),h[R.SchemaTag.dataType]=Hr(l),h.properties={},a++})}return r}o(W9,"handleChartActions");function K9(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[R.SchemaTag.annotationPath]=Bm(e),r[R.SchemaTag.dataType]=Sc(e.target||e),r[R.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=oi(R.DefinitionName.ObjectPageToolBar,t);let a=vt(R.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=oi(R.DefinitionName.ObjectPageToolBarActions,t);let s=W9(e,t,n,i);return{chart:r,chartActions:s}}o(K9,"handleChart");function lk(e,t,n,i,r=e.entityType,a=!1,s){let l=a?R.DefinitionName.CommonHeaderFacetSettings:R.DefinitionName.ObjectPageSectionChart,u=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart;i&&iT(i,t,l);let p=Ou(u,t),g=vt(l,p,n,!1);if(Ol(e,g,t),a)return delete g.properties.chart,{parentChartRef:g};g[R.SchemaTag.annotationPath]=Bm(e),g.properties.chart.$ref=oi(R.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:h}=K9(e.target||e,t,n,r);return m[R.SchemaTag.target]=s,{parentChartRef:g,chart:m,chartActions:h}}o(lk,"handleSectionChart");function X9(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${VE(r,n.serviceAVT)}`,l=s.split(R.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(X9,"getVisualizationKeyAndType");function Q9(e,t,n){var r,a;return(a=(r=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:r.annotations)==null?void 0:a.UI[n]}o(Q9,"getTargetFromNavigation");function q9(e,t,n){let i=e.target[R.FacetBase.PresentationVariant]?e.target[R.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:u}=X9(!!r,a,n),p=r?a:Q9(n,s,u),g=e.target[R.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:u,target:p,namespace:g,navigationPath:s}}o(q9,"getVisualizationProps");function iT(e,t,n,i){e.properties[t]={$ref:oi(n,i||t)}}o(iT,"addPropertyRef");function fk(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(fk,"getSectionPropertyRef");function Y9(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:u}=fk(t,r);iT(i,l,R.DefinitionName.ObjectPageSectionTableV4,u);let{sectionTable:p,table:g}=ck(e,u,n,{target:r.target,entityType:e.entityType},a,s);p[R.SchemaTag.annotationPath]=e.annotationPath,Ol(e,p,t),delete p[R.SchemaTag.isViewNode],g[R.SchemaTag.annotationPath]=`/${r.namespace}/${r.key}`,g[R.SchemaTag.target]=r.namespace}o(Y9,"addPVLineItemSection");function z9(e,t,n,i,r,a=!1){let s=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:u}=fk(t,r);iT(i,l,s,u);let{parentChartRef:p}=lk(r.target,u,n,void 0,e.entityType,a,r.namespace);p[R.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(ya(e,p,t),gD(e,p)):Ol(e,p,t)}o(z9,"addPVChartSection");function J9(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){ae(a.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=q9(e,t,a),u=r===R.SectionType.HeaderSection;l&&(l.type.startsWith(R.Visualization.Chart)?z9(e,t,n,i,l,u):l.type.startsWith(R.Visualization.LineItem)&&Y9(e,t,n,i,l,a,s))}o(J9,"handleSectionPresentationVariant");function Z9(e){let t=e.facets||{};for(let n in t)if(t[n].base===R.FacetBase.CollectionFacet)return!0;return!1}o(Z9,"containsCollectionFacet");function ez(e,t,n){var a;let i=`${R.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[R.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};pc(n,R.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(ez,"createCustomSubSectionReference");function tz(e,t,n,i){var a,s,l,u;let r=(u=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:u.sections;if(r)for(let p in r){let g=vt(n,p,e),m=vt(R.DefinitionName.ObjectPageCustomSectionActions,p,e),h=vt(R.DefinitionName.CustomSectionActionOP,p,e),E=`${R.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${j}${E}`};let b=`${R.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${j}${b}`},vt(R.DefinitionName.CustomSectionActionPositionOP,p,e);let O=`${R.DefinitionName.CustomSectionActionPositionOP}<${p}>`;h.properties.position.$ref=`${j}${O}`,h[R.SchemaTag.isViewNode]=!0,Ea(e,t,i,b,E,p),lo(e,E,O)}}o(tz,"applyCustomActionsToCustomSections");function ZP(e,t,n,i,r,a,s){var m,h,E,b,O;let l=!1,u;a&&s?(l=!Z9(a),u=ez(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${j}${u}`},BD(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&rs(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[R.SchemaKeyName.id,R.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(R.DefinitionName.ObjectPageCustomSectionFragment)){let N=t.definitions[R.DefinitionName.ObjectPageCustomSectionActions];N.properties={},tz(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(R.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let N=(O=(b=(E=(h=(m=i.options)==null?void 0:m.settings)==null?void 0:h.content)==null?void 0:E.body)==null?void 0:b.sections)==null?void 0:O[s],M=N&&"subSections"in N?N.subSections:{};for(let H=g.oneOf.length-1;H>=0;H--){let $=g.oneOf[H];M[$.const]||($.hidden=!0)}}}o(ZP,"applyCustomSections");function nz(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=wo(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[R.SchemaTag.annotationPath]=e.annotationPath,g[R.SchemaTag.target]=e.namespace,g[R.SchemaTag.keys]=[{name:R.SchemaKeyName.id,value:e.ID}],g[R.SchemaTag.isViewNode]=!0;let m=l+1;for(let h in e.facets)ex(a,e.facets,h,g,n,r,s,m);u&&ZP(g,n,a,s,R.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(nz,"handleCollection");function ex(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${Ec(n)}>`;switch(u.base){case R.FacetBase.PresentationVariant:case R.FacetBase.SelectionPresentationVariant:{J9(u,n,r,i,a,e,s);break}case R.FacetBase.CollectionFacet:{nz(u,n,r,i,a,e,s,l);break}case R.FacetBase.LineItem:{if(a===R.SectionType.Section){let g=t[n];ck(u,n,r,g,e,s,i)}break}case R.FacetBase.Form:case R.FacetBase.Identification:{G9(u,s,n,i,r,a,e.logger);break}case R.FacetBase.DataPoint:{ok(u,n,i,r,p);break}case R.FacetBase.Chart:{a===R.SectionType.HeaderSection?ok(u,n,i,r,p):a===R.SectionType.Section&&lk(u,n,r,i);break}case R.FacetBase.Address:case R.FacetBase.Contact:{Ru(u,n,i,r,a);break}default:i.properties[n]=wo(r,u,n)}}o(ex,"addSection");function iz(e,t,n){let i=fm(e.entityType,e.serviceAVT,R.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[R.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[R.DefinitionName.Sections];for(let a in i)ex(e,i,a,r,t,R.SectionType.Section,n);ZP(r,t,e,n,R.DefinitionName.ObjectPageCustomSectionFragment)}o(iz,"addSections");function rz(e,t,n,i){let r=lm(n,e.serviceAVT,R.FioriElementsVersion.v4,e.logger),a=t.definitions[R.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)ex(e,r,s,a,t,R.SectionType.HeaderSection,i);ZP(a,t,e,i,R.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionAddress]}}o(rz,"addHeaderSections");function oz(e,t,n){let i=e.entityType;jm(t,i),Um(t,i,e,k9,n),i&&(t.definitions[R.DefinitionName.HeaderSections][R.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Ui.UIAnnotationTerms.HeaderFacets}`),rz(e,t,i,n)}o(oz,"addHeader");function Jp(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${j}${R.DefinitionName.Sections}`},!e.manifest[R.ManifestSection.ui5].routing||!e.manifest[R.ManifestSection.ui5].routing.targets)return ae(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:R.MANIFESTPATH}}),r;let a=r.definitions[R.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:R.DefinitionName.Sections};if(a[R.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[R.ManifestSection.ui5].routing.targets;if(!s)return ae(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:R.MANIFESTPATH,range:[R.ManifestSection.generic]}}),r;let l=Am(s,R.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(oz(e,r,l),a[R.SchemaTag.isViewNode]=!0,e.entityType&&(a[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Ui.UIAnnotationTerms.Facets}`),pc(e.featureToggles,R.Features.BuildingBlocks)&&i){r.definitions[R.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{tk(r,i,e,l.id)}catch(u){ae(e.logger,{severity:R.LogSeverity.Error,message:u})}}iz(e,r,l),km(r,e,R.FioriElementsVersion.v4,U9),sk(r,l,R.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[R.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[R.DefinitionName.GenericColumnsOP],delete r.definitions[R.DefinitionName.GenericSections],delete r.definitions[R.DefinitionName.GenericSubSections],delete r.definitions[R.DefinitionName.ObjectPageChart],delete r.definitions[R.DefinitionName.ObjectPageSectionAddress],delete r.definitions[R.DefinitionName.ObjectPageSectionChart],delete r.definitions[R.DefinitionName.ObjectPageSectionContact],delete r.definitions[R.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[R.DefinitionName.ObjectPageSectionForm],delete r.definitions[R.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[R.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[R.DefinitionName.ObjectPageSubSections],delete r.definitions[R.DefinitionName.ObjectPageTable],delete r.definitions[R.DefinitionName.ObjectPageToolBar],delete r.definitions[R.DefinitionName.ObjectPageToolBarAction],delete r.definitions[R.DefinitionName.ObjectPageToolBarActions],delete r.definitions[R.DefinitionName.QuickVariantSelectionV4OP],ko(r,D9),r}o(Jp,"generateObjectPageSchemaV4");function tx(e,t){return JSON.parse(JSON.stringify(t))}o(tx,"generateFreestyleSchemaV4");var Jr=te(ce());function nx(e,t,n,i,r,a,s,l,u){let p=jr(n,r),{entitySet:g,entityType:m}=Zc(p,s,t,r),h={templateType:Jr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Jr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Jp(h,e,s,l)}o(nx,"generateObjectPageInterfaceV4");function rT(e,t,n,i,r,a,s){Qt();let l=jr(i,r),{entitySet:u,entityType:p}=Zc(l,s,n,r),g={templateType:e,fioriElementsVersion:Jr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Jr.TemplateType.ListReportObjectPageV4?Jr.v4.FE_TEMPLATE_V4_LIST_REPORT:Jr.v4.FE_TEMPLATE_V4_ALP;return Ap(g,t,m,s)}o(rT,"generateListReportInterfaceV4");function ix(e,t,n,i,r,a){let s=jr(n,a),l={templateType:e,fioriElementsVersion:Jr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return tx(l,t)}o(ix,"generateFreestyleInterfaceV4");function rx(e,t,n,i,r,a,s){let l={};if(pc(a,Jr.Features.BuildingBlocks)){let u=jr(r,s),p=Uo(i||[],t,n,s);l=p!=null&&p.file.fileContent?Jc(e,p,u,s):{}}return l}o(rx,"generateFPMCustomPageInterfaceV4");var tl=require("@sap-ux/vocabularies-types/vocabularies/UI"),mk=te(ce());var el=te(ce());var dk=new Map([[el.PageTypeV2.ListReport,el.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[el.PageTypeV2.ObjectPage,el.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),uk=o((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),pk=o(e=>{var t;for(let[n,i]of dk)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),az=o((e,t)=>{let n="";for(let[r,a]of dk)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),gk={manifest:{path:o(()=>`sap.ui5/extends/extensions/${el.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=pk(n);i&&(t[i]={},uk(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=az(s,i);e[l]||(e[l]={}),uk(r[s],e[l])}for(let s in e){let l=pk(s);l&&!r[l]&&delete e[s]}},"export")}};var ft=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),sT=o(e=>ft(e)+"/views/paths","getSettingsPathForLRViewsPaths"),cT=o(e=>ft(e)+"/content/header","getSettingsPathForHeaderOP"),sz=o(e=>ft(e)+"/content/footer","getSettingsPathForFooterOP"),eo=o(e=>ft(e)+"/controlConfiguration","getControlConfigurationPath"),lT=o((e,t,n)=>eo(e)+`/@${tl.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),fT=o(e=>eo(e)+`/@${tl.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Vs=o((e,t,n,i)=>eo(e)+`/@${tl.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),ox=o((e,t,n,i)=>fT(e)+`/filterFields/${i}`,"getFilterFieldPath"),Cr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?eo(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),nr=o((e,t,n,i,r)=>r?Cr(e,t,n,i,r):eo(e)+`/@${tl.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),uT=o((e,t,n,i,r)=>nr(e,t,n,i,r)+mk.QUICKVARPATH,"getQuickVariantPath"),ir=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?eo(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),ji=o((e,t,n,i,r)=>r?ir(e,t,n,i,r):eo(e)+`/@${tl.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),to=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?eo(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Ir=o((e,t,n,i,r)=>r?to(e,t,n,i,r):eo(e)+`/@${tl.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),rr=o((e,t,n,i)=>eo(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),Un=o((e,t,n,i)=>eo(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),pi=o((e,t,n,i)=>cT(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),pT=o((e,t,n,i)=>ft(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),So=o((e,t,n,i)=>sz(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Fn=o((e,t,n)=>eo(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),If=o((e,t,n,i)=>{let r=ft(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),ws=o((e,t,n,i)=>ft(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Or=o((e,t,n,i)=>{let r=ft(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),Of=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=ft(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),aT=class aT{};o(aT,"ApplicationV4"),y([jt("settings")],aT.prototype,"settings",2);var oT=aT,Zr=class Zr{};o(Zr,"AppSettings"),y([v({manifest:{path:o(()=>"sap.app","path")}})],Zr.prototype,"title",2),y([v({manifest:{path:o(()=>"sap.app","path")}})],Zr.prototype,"description",2),y([v({manifest:{path:o(()=>"sap.fiori","path")}})],Zr.prototype,"cloudDevAdaptationStatus",2),y([v({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),x({since:"1.78.0"})],Zr.prototype,"flexibleColumnLayout",2),y([v({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"})],Zr.prototype,"flexEnabled",2),y([v({manifest:{path:o(()=>"sap.ui5","path")}})],Zr.prototype,"dependencies",2),y([v({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Zr.prototype,"viewType",2),y([v({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Zr.prototype,"path",2),y([v(gk)],Zr.prototype,"controllerExtensions",2);var Cf=Zr;var he=te(ce());var oI={};sc(oI,{ALPChart:()=>dC,ALPTable:()=>Mf,ActionAfterExecutionConfiguration:()=>MC,ActionAfterExecutionConfigurationFooter:()=>Cx,ActionAfterExecutionConfigurationForm:()=>Lx,ActionAfterExecutionConfigurationOP:()=>Td,ActionAfterExecutionConfigurationObjectPageHeader:()=>Bx,ActionAfterExecutionConfigurationToolBarLR:()=>QC,Actions:()=>GC,AdditionalSemanticObject:()=>VC,CommonHeaderFacetSettings:()=>Ws,CommonViewSettings:()=>wf,CustomActionPosition:()=>ZC,CustomActionPositionOP:()=>LC,CustomFilterField:()=>lx,CustomFilterFieldPosition:()=>cx,CustomFooterActionOP:()=>Rx,CustomFooterActionPositionOP:()=>Ox,CustomFormActionOP:()=>kx,CustomHeaderAction:()=>gx,CustomHeaderActionOP:()=>Kx,CustomHeaderActionPosition:()=>nd,CustomHeaderActionPositionOP:()=>Wx,CustomSectionActionOP:()=>Ex,CustomSectionActionPositionOP:()=>bx,CustomTableAction:()=>eI,CustomTableActionOP:()=>NC,FilterBar:()=>ax,FlexSettings:()=>qx,FooterActionV4:()=>Ix,FormAction:()=>Nx,Header:()=>ux,HeaderActions:()=>fx,HeaderSections:()=>tC,LRChartView:()=>gC,LRTableView:()=>mC,MultiTableModeV4:()=>yC,ObjectPageCustomHeaderSectionFlexSettings:()=>mx,ObjectPageCustomHeaderSectionFragment:()=>hx,ObjectPageCustomSectionActions:()=>yx,ObjectPageCustomSectionFragment:()=>Lf,ObjectPageCustomSubSectionFragment:()=>Tx,ObjectPageFooter:()=>Ax,ObjectPageFooterActions:()=>Sx,ObjectPageForm:()=>_x,ObjectPageFormActionGroup:()=>Fx,ObjectPageFormActions:()=>Dx,ObjectPageHeader:()=>jx,ObjectPageHeaderAction:()=>Hx,ObjectPageHeaderActionGroup:()=>Gx,ObjectPageHeaderActions:()=>Ux,ObjectPageHeaderSectionAddress:()=>eC,ObjectPageHeaderSectionChart:()=>zx,ObjectPageHeaderSectionContact:()=>Zx,ObjectPageHeaderSectionDataPoint:()=>Jx,ObjectPageHeaderSectionForm:()=>Yx,ObjectPageLayout:()=>cC,ObjectPageTable:()=>gd,ObjectPageTableColumn:()=>$f,ObjectPageTableColumnAction:()=>PC,ObjectPageToolBarAction:()=>OC,ObjectPageToolBarActionGroup:()=>RC,ObjectPageToolBarActions:()=>FC,PersonalizationType:()=>fC,PersonalizationTypeOP:()=>SC,Position:()=>jC,PositionOP:()=>xC,QuickVariantSelectionV4:()=>pC,QuickVariantSelectionV4OP:()=>AC,RelatedApps:()=>wC,Table:()=>TC,TableColumn:()=>CT,TableColumnAction:()=>kC,TableCreationModeOP:()=>EC,TableCustomColumn:()=>BC,TableCustomColumnOP:()=>CC,TableSettings:()=>vT,TableViewExtension:()=>hC,TableViewSettings:()=>ud,ToolBar:()=>WC,ToolBarAction:()=>qC,ToolBarActionGroup:()=>YC,ViewCustomActionPosition:()=>tI,ViewPersonalizationType:()=>uC,ViewPosition:()=>$C,ViewTableColumn:()=>IT,ViewTableColumnAction:()=>UC,ViewTableCustomAction:()=>nI,ViewTableCustomColumn:()=>HC,ViewToolBarAction:()=>JC,ViewToolBarActionGroup:()=>zC,VisualFilter:()=>sx,checkViewOrder:()=>vC,deleteCreationModeProperty:()=>dd,deletePersonalizationProperty:()=>Co,exportCreationModeProperty:()=>pd,exportPersonalization:()=>AT,exportPersonalizationProperty:()=>xo});function cz(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(cz,"exportVisualFilterValueList");var Rf=class Rf{};o(Rf,"FilterBar"),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.99.0"}),Re("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],Rf.prototype,"hideFilterBar",2),y([v({manifest:{path:fT}}),x({since:"1.93.0"}),Re("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Rf.prototype,"initialLayout",2),y([v({manifest:{path:fT}}),x({since:"1.93.0"}),Re("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Rf.prototype,"layout",2);var ax=Rf,Zp=class Zp{};o(Zp,"VisualFilter"),y([v({manifest:{path:ox}}),x({since:"1.93.0"}),Re("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Zp.prototype,"availability",2),y([v({manifest:{path:ox,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:cz,key:"visualFilter"}}),x({since:"1.93.0"})],Zp.prototype,"visualFilterValueList",2);var sx=Zp,ed=class ed{};o(ed,"CustomFilterFieldPosition"),y([v({manifest:{path:o((t,n,i,r)=>Vs(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],ed.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r)=>Vs(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],ed.prototype,"placement",2);var cx=ed,Ms=class Ms{};o(Ms,"CustomFilterField"),y([v({manifest:{path:Vs}}),x({since:"1.77.0"})],Ms.prototype,"label",2),y([v({manifest:{path:Vs}}),x({since:"1.77.0"})],Ms.prototype,"property",2),y([v({manifest:{path:Vs}}),x({since:"1.77.0"})],Ms.prototype,"template",2),y([v({manifest:{path:Vs}}),x({since:"1.77.0"})],Ms.prototype,"required",2),y([v({manifest:{path:Vs}}),x({since:"1.77.0"})],Ms.prototype,"position",2);var lx=Ms;var px=class px{};o(px,"HeaderActions");var fx=px,dx=class dx{};o(dx,"Header");var ux=dx;var td=class td{};o(td,"CustomHeaderActionPosition"),y([v({manifest:{path:o((t,n,i,r)=>pi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],td.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r)=>pi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],td.prototype,"placement",2);var nd=td,ks=class ks{};o(ks,"CustomHeaderAction"),y([v({manifest:{path:pi}}),x({since:"1.84.0"})],ks.prototype,"text",2),y([v({manifest:{path:pi}}),x({since:"1.84.0"})],ks.prototype,"position",2),y([v({manifest:{path:pi}}),x({since:"1.84.0"})],ks.prototype,"press",2),y([v({manifest:{path:pi},generate:Yn}),x({since:"1.84.0"})],ks.prototype,"visible",2),y([v({manifest:{path:pi},generate:Yn}),x({since:"1.84.0"})],ks.prototype,"enabled",2);var gx=ks;var dT=class dT{};o(dT,"ObjectPageCustomHeaderSectionFlexSettings"),y([v({manifest:{path:o((t,n,i)=>Or(t,n,i,"flexSettings"),"path")}}),x({since:"1.81.0"})],dT.prototype,"designtime",2);var mx=dT,or=class or{};o(or,"ObjectPageCustomHeaderSectionFragment"),y([v({manifest:{path:o((t,n,i)=>Or(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],or.prototype,"relatedFacet",2),y([v({manifest:{path:o((t,n,i)=>Or(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],or.prototype,"relativePosition",2),y([v({manifest:{path:Or},generate:ri}),x({since:"1.84.0"})],or.prototype,"visible",2),y([v({manifest:{path:Or}}),x({since:"1.77.0"})],or.prototype,"title",2),y([v({manifest:{path:Or}}),x({since:"1.77.0"})],or.prototype,"subTitle",2),y([v({manifest:{path:Or,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],or.prototype,"fragmentName",2),y([v({manifest:{path:Or,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),x({since:"1.86.0"})],or.prototype,"templateEdit",2),y([v({manifest:{path:Or}}),x({since:"1.81.0"})],or.prototype,"stashed",2),y([v({manifest:{path:Or}}),x({since:"1.81.0"})],or.prototype,"flexSettings",2),y([v({manifest:{path:Or}}),x({since:"1.81.0"})],or.prototype,"requestGroupId",2),y([v({manifest:{path:Or,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],or.prototype,"controls",2);var hx=or;var vx=class vx{};o(vx,"ObjectPageCustomSectionActions");var yx=vx,Us=class Us{};o(Us,"ObjectPageCustomSectionFragment"),y([v({manifest:{path:o((t,n,i)=>If(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],Us.prototype,"relatedFacet",2),y([v({manifest:{path:o((t,n,i)=>If(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],Us.prototype,"relativePosition",2),y([v({manifest:{path:If}}),x({since:"1.77.0"})],Us.prototype,"title",2),y([v({manifest:{path:If,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Us.prototype,"fragmentName",2),y([v({manifest:{path:If,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Us.prototype,"controls",2);var Lf=Us,js=class js extends Lf{};o(js,"ObjectPageCustomSubSectionFragment"),y([v({manifest:{path:o((...t)=>`${Of.apply({},t)}/position`,"path"),key:"anchor"}}),x({since:"1.77.0"})],js.prototype,"relatedFacet",2),y([v({manifest:{path:o((...t)=>`${Of.apply({},t)}/position`,"path"),key:"placement"}}),x({since:"1.77.0"})],js.prototype,"relativePosition",2),y([v({manifest:{path:Of}}),x({since:"1.77.0"})],js.prototype,"title",2),y([v({manifest:{path:Of,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],js.prototype,"fragmentName",2),y([v({manifest:{path:Of,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],js.prototype,"controls",2);var Tx=js;var id=class id{};o(id,"CustomSectionActionPositionOP"),y([v({manifest:{path:o((t,n,i,r)=>ws(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],id.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r)=>ws(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],id.prototype,"placement",2);var bx=id,$s=class $s{};o($s,"CustomSectionActionOP"),y([v({manifest:{path:ws}}),x({since:"1.84.0"})],$s.prototype,"text",2),y([v({manifest:{path:ws}}),x({since:"1.84.0"})],$s.prototype,"position",2),y([v({manifest:{path:ws}}),x({since:"1.84.0"})],$s.prototype,"press",2),y([v({manifest:{path:ws},generate:ri}),x({since:"1.84.0"})],$s.prototype,"visible",2),y([v({manifest:{path:ws},generate:ri}),x({since:"1.84.0"})],$s.prototype,"enabled",2);var Ex=$s;var Px=class Px{};o(Px,"ObjectPageFooterActions");var Sx=Px,xx=class xx{};o(xx,"ObjectPageFooter");var Ax=xx;var rd=class rd{};o(rd,"ActionAfterExecutionConfigurationFooter"),y([v({manifest:{path:o((t,n,i,r)=>So(t,n,i,r)+"/afterExecution","path")}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],rd.prototype,"navigateToInstance",2),y([v({manifest:{path:o((t,n,i,r)=>So(t,n,i,r)+"/afterExecution","path")}})],rd.prototype,"enableAutoScroll",2);var Cx=rd,gT=class gT{};o(gT,"FooterActionV4"),y([v({manifest:{path:So}}),x({since:"1.84.0"})],gT.prototype,"afterExecution",2);var Ix=gT,od=class od{};o(od,"CustomFooterActionPositionOP"),y([v({manifest:{path:o((t,n,i,r)=>So(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],od.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r)=>So(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],od.prototype,"placement",2);var Ox=od,Bs=class Bs{};o(Bs,"CustomFooterActionOP"),y([v({manifest:{path:So}}),x({since:"1.84.0"})],Bs.prototype,"text",2),y([v({manifest:{path:So}}),x({since:"1.84.0"})],Bs.prototype,"position",2),y([v({manifest:{path:So}}),x({since:"1.84.0"})],Bs.prototype,"press",2),y([v({manifest:{path:So},generate:ri}),x({since:"1.84.0"})],Bs.prototype,"visible",2),y([v({manifest:{path:So},generate:ri}),x({since:"1.84.0"})],Bs.prototype,"enabled",2);var Rx=Bs;var ad=class ad{};o(ad,"ActionAfterExecutionConfigurationForm"),y([v({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/afterExecution","path")}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ad.prototype,"navigateToInstance",2),y([v({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/afterExecution","path")}})],ad.prototype,"enableAutoScroll",2);var Lx=ad,mT=class mT{};o(mT,"FormAction"),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],mT.prototype,"afterExecution",2);var Nx=mT,Vx=class Vx{};o(Vx,"ObjectPageFormActionGroup");var Fx=Vx,wx=class wx{};o(wx,"ObjectPageFormActions");var Dx=wx,Mx=class Mx{};o(Mx,"ObjectPageForm");var _x=Mx;var Hs=class Hs{};o(Hs,"CustomFormActionOP"),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],Hs.prototype,"text",2),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],Hs.prototype,"position",2),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],Hs.prototype,"press",2),y([v({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Hs.prototype,"visible",2),y([v({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Hs.prototype,"enabled",2);var kx=Hs;var $x=class $x{};o($x,"ObjectPageHeaderActions");var Ux=$x,Nf=class Nf{};o(Nf,"ObjectPageHeader"),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],Nf.prototype,"editableHeaderContent",2),y([v({manifest:{path:cT}}),x({since:"1.84.0"})],Nf.prototype,"visible",2),y([v({manifest:{path:cT}}),x({since:"1.84.0"})],Nf.prototype,"anchorBarVisible",2);var jx=Nf;var sd=class sd{};o(sd,"ActionAfterExecutionConfigurationObjectPageHeader"),y([v({manifest:{path:o((t,n,i,r)=>pi(t,n,i,r)+"/afterExecution","path")}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],sd.prototype,"navigateToInstance",2),y([v({manifest:{path:o((t,n,i,r)=>pi(t,n,i,r)+"/afterExecution","path")}})],sd.prototype,"enableAutoScroll",2);var Bx=sd,hT=class hT{};o(hT,"ObjectPageHeaderAction"),y([v({manifest:{path:pi}}),x({since:"1.84.0"})],hT.prototype,"afterExecution",2);var Hx=hT,Xx=class Xx{};o(Xx,"ObjectPageHeaderActionGroup");var Gx=Xx,Qx=class Qx extends nd{};o(Qx,"CustomHeaderActionPositionOP");var Wx=Qx,Gs=class Gs{};o(Gs,"CustomHeaderActionOP"),y([v({manifest:{path:pi}}),x({since:"1.84.0"})],Gs.prototype,"text",2),y([v({manifest:{path:pi}}),x({since:"1.84.0"})],Gs.prototype,"position",2),y([v({manifest:{path:pi}}),x({since:"1.84.0"})],Gs.prototype,"press",2),y([v({manifest:{path:pi},generate:ri}),x({since:"1.84.0"})],Gs.prototype,"visible",2),y([v({manifest:{path:pi},generate:ri}),x({since:"1.84.0"})],Gs.prototype,"enabled",2);var Kx=Gs;var yT=class yT{};o(yT,"FlexSettings"),y([v({manifest:{path:o((t,n,i)=>lT(t,n,i)+"/flexSettings","path")}}),x({since:"1.81.0"}),Re("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],yT.prototype,"designtime",2);var qx=yT,cd=class cd{};o(cd,"CommonHeaderFacetSettings"),y([v({manifest:{path:lT}}),x({since:"1.81.0"})],cd.prototype,"stashed",2),y([v({manifest:{path:lT}}),x({since:"1.81.0"})],cd.prototype,"flexSettings",2);var Ws=cd,nC=class nC extends Ws{};o(nC,"ObjectPageHeaderSectionForm");var Yx=nC,iC=class iC extends Ws{};o(iC,"ObjectPageHeaderSectionChart");var zx=iC,rC=class rC extends Ws{};o(rC,"ObjectPageHeaderSectionDataPoint");var Jx=rC,oC=class oC extends Ws{};o(oC,"ObjectPageHeaderSectionContact");var Zx=oC,aC=class aC extends Ws{};o(aC,"ObjectPageHeaderSectionAddress");var eC=aC,sC=class sC{};o(sC,"HeaderSections");var tC=sC;var TT=class TT{};o(TT,"ObjectPageLayout"),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],TT.prototype,"sectionLayout",2);var cC=TT;var PT=te(ce());var lC=te(ce());var lz=o((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function Po(e,t,n,i,r,a){let s=sT(e),l=lz(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[lC.SchemaTag.key]===(a==null?void 0:a.key)||g[lC.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(Po,"getSettingsPathForLRViewsPath");function fz(e,t,n,i,r,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let u of l){let p=Number(u),g=e[u];t===g.key?s[n]=g:p>=i&&p<=r?s[Math.max(0,p+a)]=g:s[u]=g}return s}o(fz,"fillNewlyOrderedViews");function vC(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=fz(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(vC,"checkViewOrder");function AT(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(AT,"exportPersonalization");function xo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(xo,"exportPersonalizationProperty");function Co(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}o(Co,"deletePersonalizationProperty");function bC(e,t,n,i,r,a){var l;let s;if(!t||Object.keys(t).length===0){let u=e;Object.keys(u).forEach(p=>{u[p]&&u[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let u=(l=a.table)==null?void 0:l.views;for(let p in u)u[p].index>s&&u[p].index--}}o(bC,"deleteView");function pd(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(pd,"exportCreationModeProperty");function dd(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}o(dd,"deleteCreationModeProperty");function hk(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(hk,"importPersonalization");function yk(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(yk,"determineIndexOfView");var Ff=class Ff{};o(Ff,"PersonalizationType"),y([v({manifest:{path:nr,export:xo,delete:Co}})],Ff.prototype,"column",2),y([v({manifest:{path:nr,export:xo,delete:Co}})],Ff.prototype,"sort",2),y([v({manifest:{path:nr,export:xo,delete:Co}})],Ff.prototype,"filter",2);var fC=Ff,Df=class Df{};o(Df,"ViewPersonalizationType"),y([v({manifest:{path:Cr,export:xo,delete:Co}})],Df.prototype,"column",2),y([v({manifest:{path:Cr,export:xo,delete:Co}})],Df.prototype,"sort",2),y([v({manifest:{path:nr,export:xo,delete:Co}})],Df.prototype,"filter",2);var uC=Df,_f=class _f{};o(_f,"QuickVariantSelectionV4"),y([v({manifest:{path:uT}})],_f.prototype,"paths",2),y([v({manifest:{path:uT}})],_f.prototype,"hideTableTitle",2),y([v({manifest:{path:uT}})],_f.prototype,"showCounts",2);var pC=_f,Ao=class Ao{};o(Ao,"TableSettings"),y([v({manifest:{path:nr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ao.prototype,"type",2),y([v({manifest:{path:nr,import:hk,export:AT}}),x({since:"1.86.0"})],Ao.prototype,"personalization",2),y([v({manifest:{path:nr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],Ao.prototype,"selectionMode",2),y([v({manifest:{path:nr}}),x({since:"1.84.0"})],Ao.prototype,"selectAll",2),y([v({manifest:{path:nr}}),x({since:"1.84.0"})],Ao.prototype,"selectionLimit",2),y([v({manifest:{path:nr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Ao.prototype,"enableExport",2),y([v({manifest:{path:nr}}),x({since:"1.84.0"})],Ao.prototype,"quickVariantSelection",2),y([v({manifest:{path:nr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Ao.prototype,"condensedTableLayout",2);var vT=Ao,bT=class bT{};o(bT,"ALPChart"),y([v({manifest:{path:o(t=>ft(t)+"/views/paths/0/primary/0","path"),delete:bC}})],bT.prototype,"annotationPath",2);var dC=bT,nl=class nl{};o(nl,"CommonViewSettings"),y([v({manifest:{path:Po,delete:dc}})],nl.prototype,"key",2),y([v({manifest:{path:sT,import:yk,export:o((t,n)=>{vC(t,n)},"export"),delete:bC}})],nl.prototype,"index",2),y([v({manifest:{path:Po,delete:dc}})],nl.prototype,"annotationPath",2),y([v({manifest:{path:Po}})],nl.prototype,"entitySet",2);var wf=nl,no=class no extends wf{};o(no,"TableViewSettings"),y([v({manifest:{path:Cr}}),x({since:"1.84.0"})],no.prototype,"type",2),y([v({manifest:{path:Cr,import:hk}}),x({since:"1.86.0"})],no.prototype,"personalization",2),y([v({manifest:{path:Cr}}),x({since:"1.84.0"})],no.prototype,"selectionMode",2),y([v({manifest:{path:Cr}}),x({since:"1.84.0"})],no.prototype,"selectAll",2),y([v({manifest:{path:Cr}}),x({since:"1.84.0"})],no.prototype,"selectionLimit",2),y([v({manifest:{path:Cr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],no.prototype,"enableExport",2),y([v({manifest:{path:Cr}}),x({since:"1.84.0"})],no.prototype,"quickVariantSelection",2),y([v({manifest:{path:Cr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],no.prototype,"condensedTableLayout",2),y([v({manifest:{path:Cr}}),x({since:"1.117.0"}),Re("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],no.prototype,"hierarchyQualifier",2);var ud=no;function uz(e){return ud}o(uz,"getTableViewSettings");var ld=class ld extends ud{};o(ld,"ALPTable"),y([v({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:dc}})],ld.prototype,"annotationPath",2),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],ld.prototype,"initialLoad",2);var Mf=ld,ET=class ET extends wf{};o(ET,"LRChartView"),y([v({manifest:{path:Po},generate:Yn})],ET.prototype,"visible",2);var gC=ET,Vf=class Vf extends uz(wf){};o(Vf,"LRTableView"),y([v({manifest:{path:Po}})],Vf.prototype,"keepPreviousPersonalization",2),y([v({manifest:{path:Po}})],Vf.prototype,"entitySet",2),y([v({manifest:{path:Po},generate:Yn})],Vf.prototype,"visible",2);var mC=Vf,Ks=class Ks{};o(Ks,"TableViewExtension"),y([v({manifest:{path:Po}})],Ks.prototype,"key",2),y([v({manifest:{path:sT,import:yk,export:o((t,n)=>{vC(t,n)},"export"),delete:bC}})],Ks.prototype,"index",2),y([v({manifest:{path:Po}})],Ks.prototype,"label",2),y([v({manifest:{path:Po}})],Ks.prototype,"template",2),y([v({manifest:{path:Po},generate:Yn})],Ks.prototype,"visible",2);var hC=Ks,ST=class ST{};o(ST,"MultiTableModeV4"),y([v({manifest:{path:o(t=>ft(t)+"/views","path")}})],ST.prototype,"showCounts",2);var yC=ST,fd=class fd extends vT{};o(fd,"Table"),y([v({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:dc}})],fd.prototype,"annotationPath",2),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],fd.prototype,"initialLoad",2);var TC=fd;var kf=class kf{};o(kf,"TableCreationModeOP"),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:o((t,n,i)=>{pd(t,n,i)},"export"),delete:o((t,n,i,r)=>{dd(t,r)},"delete")}})],kf.prototype,"name",2),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:o((t,n,i)=>{pd(t,n,i)},"export"),delete:o((t,n,i,r)=>{dd(t,r)},"delete")}})],kf.prototype,"createAtEnd",2),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:o((t,n,i)=>{pd(t,n,i)},"export"),delete:o((t,n,i,r)=>{dd(t,r)},"delete")}})],kf.prototype,"inlineCreationRowsHiddenInEditMode",2);var EC=kf,Uf=class Uf{};o(Uf,"PersonalizationTypeOP"),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:xo,delete:Co}})],Uf.prototype,"column",2),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:xo,delete:Co}})],Uf.prototype,"sort",2),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:xo,delete:Co}})],Uf.prototype,"filter",2);var SC=Uf,jf=class jf{};o(jf,"QuickVariantSelectionV4OP"),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i)+PT.QUICKVARPATH,"path")}})],jf.prototype,"paths",2),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i)+PT.QUICKVARPATH,"path")}})],jf.prototype,"hideTableTitle",2),y([v({manifest:{path:o((t,n,i)=>Fn(t,n,i)+PT.QUICKVARPATH,"path")}})],jf.prototype,"showCounts",2);var AC=jf,ar=class ar{};o(ar,"ObjectPageTable"),y([v({manifest:{path:Fn}}),x({since:"1.84.0"})],ar.prototype,"type",2),y([v({manifest:{path:Fn,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),x({since:"1.84.0"})],ar.prototype,"creationMode",2),y([v({manifest:{path:Fn,import:o(t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},"import"),export:AT}}),x({since:"1.86.0"})],ar.prototype,"personalization",2),y([v({manifest:{path:Fn}}),x({since:"1.84.0"})],ar.prototype,"selectionMode",2),y([v({manifest:{path:Fn}}),x({since:"1.84.0"})],ar.prototype,"selectAll",2),y([v({manifest:{path:Fn}}),x({since:"1.84.0"})],ar.prototype,"selectionLimit",2),y([v({manifest:{path:Fn}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],ar.prototype,"enableExport",2),y([v({manifest:{path:Fn}}),x({since:"1.84.0"})],ar.prototype,"quickVariantSelection",2),y([v({manifest:{path:Fn}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],ar.prototype,"condensedTableLayout",2),y([v({manifest:{path:Fn}}),x({since:"1.86.0"})],ar.prototype,"enableFullScreen",2),y([v({manifest:{path:Fn}}),x({since:"1.84.0"})],ar.prototype,"enablePaste",2);var gd=ar;var md=class md{};o(md,"ActionAfterExecutionConfigurationOP"),y([v({manifest:{path:o((t,n,i,r)=>rr(t,n,i,r)+"/afterExecution","path")}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],md.prototype,"navigateToInstance",2),y([v({manifest:{path:o((t,n,i,r)=>rr(t,n,i,r)+"/afterExecution","path")}})],md.prototype,"enableAutoScroll",2);var Td=md,hd=class hd{};o(hd,"ObjectPageTableColumn"),y([v({manifest:{path:rr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],hd.prototype,"width",2),y([v({manifest:{path:rr}}),x({since:"1.85.0"})],hd.prototype,"availability",2);var $f=hd,IC=class IC extends $f{};o(IC,"ObjectPageTableColumnAction");var PC=IC,yd=class yd{};o(yd,"PositionOP"),y([v({manifest:{path:o((t,n,i,r)=>rr(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],yd.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r)=>rr(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],yd.prototype,"placement",2);var xC=yd,Jo=class Jo{};o(Jo,"TableCustomColumnOP"),y([v({manifest:{path:rr}}),x({since:"1.84.0"})],Jo.prototype,"position",2),y([v({manifest:{path:rr}}),x({since:"1.84.0"})],Jo.prototype,"header",2),y([v({manifest:{path:rr}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Jo.prototype,"width",2),y([v({manifest:{path:rr}}),x({since:"1.84.0"})],Jo.prototype,"template",2),y([v({manifest:{path:rr}}),x({since:"1.86.0"})],Jo.prototype,"horizontalAlign",2),y([v({manifest:{path:rr}}),x({since:"1.84.0"})],Jo.prototype,"availability",2),y([v({manifest:{path:rr}}),x({since:"1.85.0"})],Jo.prototype,"properties",2);var CC=Jo;var xT=class xT{};o(xT,"ObjectPageToolBarAction"),y([v({manifest:{path:Un}})],xT.prototype,"enableOnSelect",2);var OC=xT,DC=class DC{};o(DC,"ObjectPageToolBarActionGroup");var RC=DC,vd=class vd{};o(vd,"CustomActionPositionOP"),y([v({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],vd.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],vd.prototype,"placement",2);var LC=vd,Ua=class Ua{};o(Ua,"CustomTableActionOP"),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"text",2),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"position",2),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"press",2),y([v({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"requiresSelection",2),y([v({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Ua.prototype,"visible",2),y([v({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Ua.prototype,"enabled",2);var NC=Ua,_C=class _C{};o(_C,"ObjectPageToolBarActions");var FC=_C;var Bf=class Bf{};o(Bf,"AdditionalSemanticObject"),y([v({manifest:{path:pT}}),Re("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.108.0"})],Bf.prototype,"allowedActions",2),y([v({manifest:{path:pT}}),Re("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Bf.prototype,"unavailableActions",2),y([v({manifest:{path:pT}}),Re("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Bf.prototype,"mapping",2);var VC=Bf,bd=class bd{};o(bd,"RelatedApps"),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],bd.prototype,"showRelatedApps",2),y([v({manifest:{path:ft}})],bd.prototype,"additionalSemanticObjects",2);var wC=bd;var Ed=class Ed{};o(Ed,"ActionAfterExecutionConfiguration"),y([v({manifest:{path:o((t,n,i,r,a)=>ji(t,n,i,r,a)+"/afterExecution","path")}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Ed.prototype,"navigateToInstance",2),y([v({manifest:{path:o((t,n,i,r,a)=>ji(t,n,i,r,a)+"/afterExecution","path")}})],Ed.prototype,"enableAutoScroll",2);var MC=Ed,Sd=class Sd{};o(Sd,"TableColumn"),y([v({manifest:{path:ji}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Sd.prototype,"width",2),y([v({manifest:{path:ji}}),x({since:"1.85.0"})],Sd.prototype,"availability",2);var CT=Sd,Ad=class Ad{};o(Ad,"ViewTableColumn"),y([v({manifest:{path:ir}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ad.prototype,"width",2),y([v({manifest:{path:ir}}),x({since:"1.85.0"})],Ad.prototype,"availability",2);var IT=Ad,OT=class OT extends CT{};o(OT,"TableColumnAction"),y([v({manifest:{path:ji}}),x({since:"1.84.0"})],OT.prototype,"afterExecution",2);var kC=OT,RT=class RT extends IT{};o(RT,"ViewTableColumnAction"),y([v({manifest:{path:ir}}),x({since:"1.84.0"})],RT.prototype,"afterExecution",2);var UC=RT,Pd=class Pd{};o(Pd,"Position"),y([v({manifest:{path:o((t,n,i,r,a)=>ji(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Pd.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r,a)=>ji(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Pd.prototype,"placement",2);var jC=Pd,xd=class xd{};o(xd,"ViewPosition"),y([v({manifest:{path:o((t,n,i,r,a)=>ir(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],xd.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r,a)=>ir(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],xd.prototype,"placement",2);var $C=xd,Zo=class Zo{};o(Zo,"TableCustomColumn"),y([v({manifest:{path:ji}}),x({since:"1.84.0"})],Zo.prototype,"position",2),y([v({manifest:{path:ji}}),x({since:"1.84.0"})],Zo.prototype,"header",2),y([v({manifest:{path:ji}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Zo.prototype,"width",2),y([v({manifest:{path:ji}}),x({since:"1.84.0"})],Zo.prototype,"template",2),y([v({manifest:{path:ji}}),x({since:"1.86.0"})],Zo.prototype,"horizontalAlign",2),y([v({manifest:{path:ji}}),x({since:"1.84.0"})],Zo.prototype,"availability",2),y([v({manifest:{path:ji}}),x({since:"1.85.0"})],Zo.prototype,"properties",2);var BC=Zo,ea=class ea{};o(ea,"ViewTableCustomColumn"),y([v({manifest:{path:ir}}),x({since:"1.84.0"})],ea.prototype,"position",2),y([v({manifest:{path:ir}}),x({since:"1.84.0"})],ea.prototype,"header",2),y([v({manifest:{path:ir}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ea.prototype,"width",2),y([v({manifest:{path:ir}}),x({since:"1.84.0"})],ea.prototype,"template",2),y([v({manifest:{path:ir}}),x({since:"1.86.0"})],ea.prototype,"horizontalAlign",2),y([v({manifest:{path:ir}}),x({since:"1.84.0"})],ea.prototype,"availability",2),y([v({manifest:{path:ir}}),x({since:"1.85.0"})],ea.prototype,"properties",2);var HC=ea;var KC=class KC{};o(KC,"Actions");var GC=KC,XC=class XC{};o(XC,"ToolBar");var WC=XC;var Cd=class Cd{};o(Cd,"ActionAfterExecutionConfigurationToolBarLR"),y([v({manifest:{path:o((t,n,i,r,a)=>Ir(t,n,i,r,a)+"/afterExecution","path")}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Cd.prototype,"navigateToInstance",2),y([v({manifest:{path:o((t,n,i,r,a)=>Ir(t,n,i,r,a)+"/afterExecution","path")}})],Cd.prototype,"enableAutoScroll",2);var QC=Cd,Id=class Id{};o(Id,"ToolBarAction"),y([v({manifest:{path:Ir}})],Id.prototype,"enableOnSelect",2),y([v({manifest:{path:Ir}})],Id.prototype,"afterExecution",2);var qC=Id,iI=class iI{};o(iI,"ToolBarActionGroup");var YC=iI,rI=class rI{};o(rI,"ViewToolBarActionGroup");var zC=rI,Od=class Od{};o(Od,"ViewToolBarAction"),y([v({manifest:{path:to}})],Od.prototype,"enableOnSelect",2),y([v({manifest:{path:to}})],Od.prototype,"afterExecution",2);var JC=Od,Rd=class Rd{};o(Rd,"CustomActionPosition"),y([v({manifest:{path:o((t,n,i,r,a)=>Ir(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Rd.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r,a)=>Ir(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Rd.prototype,"placement",2);var ZC=Rd,ja=class ja{};o(ja,"CustomTableAction"),y([v({manifest:{path:Ir}}),x({since:"1.84.0"})],ja.prototype,"text",2),y([v({manifest:{path:Ir}}),x({since:"1.84.0"})],ja.prototype,"position",2),y([v({manifest:{path:Ir}}),x({since:"1.84.0"})],ja.prototype,"press",2),y([v({manifest:{path:Ir}}),x({since:"1.84.0"})],ja.prototype,"requiresSelection",2),y([v({manifest:{path:Ir},generate:Yn}),x({since:"1.84.0"})],ja.prototype,"visible",2),y([v({manifest:{path:Ir},generate:Yn}),x({since:"1.84.0"})],ja.prototype,"enabled",2);var eI=ja,Ld=class Ld{};o(Ld,"ViewCustomActionPosition"),y([v({manifest:{path:o((t,n,i,r,a)=>to(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Ld.prototype,"anchor",2),y([v({manifest:{path:o((t,n,i,r,a)=>to(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Ld.prototype,"placement",2);var tI=Ld,$a=class $a{};o($a,"ViewTableCustomAction"),y([v({manifest:{path:to}}),x({since:"1.84.0"})],$a.prototype,"text",2),y([v({manifest:{path:to}}),x({since:"1.84.0"})],$a.prototype,"position",2),y([v({manifest:{path:to}}),x({since:"1.84.0"})],$a.prototype,"press",2),y([v({manifest:{path:to}}),x({since:"1.84.0"})],$a.prototype,"requiresSelection",2),y([v({manifest:{path:to},generate:Yn}),x({since:"1.84.0"})],$a.prototype,"visible",2),y([v({manifest:{path:to},generate:Yn}),x({since:"1.84.0"})],$a.prototype,"enabled",2);var nI=$a;var lI={};sc(lI,{FreestylePage:()=>sI,ListReport:()=>Rr,ObjectPage:()=>Io});function pz(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(a=>delete e[a])}o(pz,"deleteAllALPViews");function dz(){}o(dz,"doNotExport");function gz(){}o(gz,"doNotImport");var Rr=class{};o(Rr,"ListReport"),y([v({manifest:{path:o(t=>ft(t)+"/views","path"),import:gz,export:dz,delete:pz}})],Rr.prototype,"chart",2),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],Rr.prototype,"variantManagement",2),y([v({manifest:{path:o(t=>ft(t)+"/views/paths/[]/0","path")}}),Re("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Rr.prototype,"defaultPath",2),y([v({manifest:{path:o(t=>ft(t),"path")}})],Rr.prototype,"defaultTemplateAnnotationPath",2),y([jt("header")],Rr.prototype,"header",2),y([jt("fe::FilterBar")],Rr.prototype,"filterBar",2),Rr=y([Ji({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Rr);var aI=te(ce());var Io=class{};o(Io,"ObjectPage"),y([jt("header")],Io.prototype,"header",2),y([jt("layout")],Io.prototype,"layout",2),y([v({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],Io.prototype,"variantManagement",2),y([jt("sections")],Io.prototype,"sections",2),Io=y([Ji({id:`${aI.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:aI.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Io);var cI=class cI{};o(cI,"FreestylePage");var sI=cI;var LT=te(ce());var mz={ALPTableView:Mf},hz={ALPTableView:Mf},yz={Table:gd,TableColumn:$f,ObjectPageCustomSectionView:Lf,ActionAfterExecutionConfiguration:Td},Tz={[LT.PageTypeV4.AnalyticalListPage]:mz,[LT.PageTypeV4.ListReport]:hz,[LT.PageTypeV4.ObjectPage]:yz},fI=class fI extends of{constructor(){super(oI,lI,Tz)}};o(fI,"MetadataInstanceFactoryV4");var Ba=fI;var uI=require("@sap-ux/vocabularies-types/vocabularies/UI");function pI(e,t,n,i,r,a,s){var g,m,h,E,b,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${uI.UIAnnotationTerms.LineItem}`?a:he.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let N in p.properties){let H=l[u].properties[N].$ref.split(j)[1].split("<")[0];e.columns[N]=n.createInstance(i,H);let $=s||a;Ot(e.columns[N],t.manifest,l[H],r,[N,$],$,t.logger),$r(e.columns,N)}$r(e,"columns")}else{let N=(O=(b=(E=(h=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:h[r])==null?void 0:E.options)==null?void 0:b.settings)==null?void 0:O.views;(!N||N.paths.length<1)&&ae(t.logger,{severity:he.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}}o(pI,"transferColumns");function vz(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[he.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let u=s.properties[l];if(typeof u=="object"&&u.$ref){let p=rn(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),Ot(t.visualFilters[l],e.manifest,a[p],r,[l])}}$r(t,"visualFilters")}}o(vz,"importVisualFilters");function bz(e,t,n,i,r,a=he.DefinitionName.LineItems,s){var g;let l=e.jsonSchema.definitions,u=s;!u&&[he.DefinitionName.LineItems,`${he.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${uI.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${he.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let m in p.properties){let h=p.properties[m];if(typeof h=="object"&&h.$ref){let b={actionPropertyDefinition:(g=p==null?void 0:p.properties)==null?void 0:g[m],appSchema:e.jsonSchema,factory:n,actionsInConfig:t.toolBar.actions,actionKey:m,manifest:e.manifest,routingId:r,targetAnnotation:u};Fl(b)}}}o(bz,"importActions");function dI(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,Ot(u.toolBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.ToolBarLR],r,[]),bz(e,u,n,i,r,a,s),$r(u.toolBar,"actions"),$r(u,"toolBar")}o(dI,"transferToolBar");function Tk(e,t,n){var s;let i=(s=e[t])==null?void 0:s[he.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(Tk,"determineTargetAnnotationOfView");function Ez(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,he.DefinitionName.ALPChart);let s=a[he.DefinitionName.ALPChart],l=s[he.SchemaTag.annotationPath];Ot(t.chart,e.manifest,s,r,[s[he.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),Ot(t.chart.toolBar,e.manifest,a[he.DefinitionName.ViewChartToolBar],r,[]);let u=a[he.DefinitionName.ALPTable][he.SchemaTag.annotationPath];if(u){let p=a[he.DefinitionName.ALPTable],g=t.table=n.createInstance(i,he.DefinitionName.ALPTable);dI(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));Ot(g,e.manifest,p,r,[p[he.SchemaTag.key],m]),pI(g,e,n,i,r,void 0,m)}}o(Ez,"importALPViews");function Sz(e){let t;return e.indexOf(he.DefinitionName.LRTableView)>-1?t=he.DefinitionName.LRTableView:e.indexOf(he.DefinitionName.LRChartView)>-1?t=he.DefinitionName.LRChartView:e===he.DefinitionName.TableViewExtension&&(t=he.DefinitionName.TableViewExtension),t}o(Sz,"getViewTypeByDefinition");function Az(e,t,n,i,r){let a=t.table.views=n.createInstance(i,he.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Ot(a,e.manifest,s[he.DefinitionName.MultiTableModeV4],r,[]);let l=s[he.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][he.SchemaTag.propertyIndex]-g[1][he.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split(j)[1],m=Sz(g),h=a[p[0]]=n.createInstance(i,m),E=s[g].entitySet,b=Tk(s,g,E);if(Ot(h,e.manifest,s[g],r,[p[0],b]),m===he.DefinitionName.LRTableView){let O=`${he.DefinitionName.LineItemsOfView}::${p[0]}`;dI(e,h,n,i,r,O,b),pI(h,e,n,i,r,O,b)}Object.keys(h).length===0&&delete a[p[0]]}$r(t.table,"views")}o(Az,"importLRViews");function Pz(e,t,n,i,r){let a=he.DefinitionName.HeaderActions,s=he.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let u in l.properties){let p=l.properties[u];if(typeof p=="object"&&p.$ref){let g=rn(p.$ref),m=e.definitions[g],h=rn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(he.PageTypeV4.ObjectPage,h),Ot(t[s].actions[u],i,e.definitions[h],r,[u.replace("/","??")]),$r(t.header,"actions"),$r(t,"header")}}}}o(Pz,"transferHeaderActions");function xz(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[he.DefinitionName.SelectionFields,he.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==j+he.DefinitionName.CustomFilterField)continue;let u=n.createInstance(he.PageTypeV4.ListReport,he.DefinitionName.CustomFilterField),p=l.$ref.split(j)[1];Ot(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(xz,"importCustomFilterFields");function Cz(e,t,n,i,r,a){if(Ot(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,he.DefinitionName.Header),Ot(t.header,e.manifest,e.jsonSchema.definitions[he.DefinitionName.Header],r,[]),Pz(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,he.DefinitionName.FilterBar),Ot(t.filterBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.FilterBar],r,[]),vz(e,t.filterBar,n,i,r),xz(e,t.filterBar,n,r),a===he.SchemaType.ListReport){let s=he.DefinitionName.Table,l=e.jsonSchema.definitions[s],u;l.$ref&&(s=l.$ref.split(j)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split(j)[1]),t.table=n.createInstance(i,he.DefinitionName.Table);let p=Tk(e.jsonSchema.definitions,s);Ot(t.table,e.manifest,l,r,[s,p]),dI(e,t,n,i,r,u),pI(t.table,e,n,i,r,u,p),Az(e,t,n,i,r)}else a===he.SchemaType.AnalyticalListPage&&Ez(e,t,n,i,r)}o(Cz,"addSettings");function il(e,t){if(Qt(),!e.jsonSchema)return;if(!e.manifest[he.ManifestSection.ui5]||!e.manifest[he.ManifestSection.ui5].routing){ae(e.logger,{severity:he.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let n=e.manifest[he.ManifestSection.ui5].routing.targets;if(!n){ae(e.logger,{severity:he.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let i=new Ba,r=i.createPageInstance(he.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=Bb(s);if("name"in s&&(l===he.PageTypeV4.ListReport||l===he.PageTypeV4.AnalyticalListPage)){Cz(e,r,i,he.PageTypeV4.ListReport,a,t);break}}return r}o(il,"createListReportConfig");var be=te(ce()),Xs=require("@sap-ux/vocabularies-types/vocabularies/UI");function Iz(e,t){var i;let n="boolean";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?e==="true"||e==="false":!1}o(Iz,"isBoolean");function Oz(e,t){var i;let n="number";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?!isNaN(parseFloat(e.toString())):!1}o(Oz,"isNumber");function Rz(e,t){let n=e.toString();return Iz(n,t)?n==="true":Oz(n,t)?parseFloat(n):e}o(Rz,"convertValue");function Lz(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=Rz(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(Lz,"importProperty");function vk(e,t,n){let i,r=Pf(e.file,!1,n);if(r){let a=eT(r);i={},zc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},Lz)}return i}o(vk,"convertXmlFileToConfig");function NT(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=Uo(t||[],r,n,a),l;return s&&(l=vk(s,i,e.logger)),l}o(NT,"createCustomPageConfig");function Nd(e,t){var h;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=xf(t),u=(h=r.definitions)==null?void 0:h[l];if(!r||!u)return;let p=Tc(i,a),g=vc(n||[],p,i,"fragment",t),m;if(g){let E={...u,definitions:r.definitions};m=vk(g,E,s)}return m}o(Nd,"createCustomFragmentConfig");function gI(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(gI,"getManifestId");function Fd(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(Fd,"getDefinitionId");function Nz(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Fd(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(be.DefinitionName.CustomColumnOP)>-1?s=be.DefinitionName.CustomColumnOP:s=be.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(be.PageTypeV4.ObjectPage,s);Ot(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(Nz,"fillTableColumnsInConfig");function Sk(e,t,n,i,r,a=n){var s;if(typeof t=="object")for(let l in t.properties){let u=t.properties[l];if(typeof u=="object"&&u.$ref){let p=rn(u.$ref),g=(s=t==null?void 0:t.properties)==null?void 0:s[l],m=p.split("<")[0],h;m.includes(be.DefinitionName.CustomSectionActionOP)?h=i.actions:h=i[n].table.toolBar.actions;let E={actionPropertyDefinition:g,appSchema:e.jsonSchema,factory:r,actionsInConfig:h,actionKey:l,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Fl(E)}}}o(Sk,"fillSectionActionsInConfig");function Fz(e,t,n,i,r,a=n){if(t.actions){let s=i[n].form.actions={},u=e.jsonSchema.definitions[`${be.DefinitionName.ObjectPageSectionForm}<${Fd(a)}>`].properties.form.$ref.split(j)[1],m=e.jsonSchema.definitions[u].properties.actions.$ref.split(j)[1],h=e.jsonSchema.definitions[m];for(let E in h.properties){let b=h.properties[E],O=rn(b.$ref),N=e.jsonSchema.definitions[O];if(N.annotationType===Xs.UIAnnotationTypes.DataFieldForAction||N.annotationType===Xs.UIAnnotationTypes.DataFieldForActionGroup||N.description==="Custom Action"){let M={actionPropertyDefinition:b,appSchema:e.jsonSchema,factory:r,actionsInConfig:s,actionKey:E,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Fl(M)}}}}o(Fz,"fillFormActionsInConfig");function bk(e,t,n,i,r,a){var u;let s=a||gI(i,!1,Xs.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageTable);let p=`${be.DefinitionName.ObjectPageTable}<${a?Fd(a):i.replace("#","::")}>`;Ot(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${be.DefinitionName.Actions}<${Fd(s)}>`];Sk(e,g,i,n,r,s),Nz(e,l,n,i,r,s)}}o(bk,"fillTableInConfig");function Dz(e,t,n,i,r){var l;let a=gI(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageForm,{actions:{}}),Fz(e,s,i,n,r,a))}o(Dz,"fillFormInConfig");function _z(e,t,n,i,r,a){let s=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(j)[1];if(Ot(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=Nd(e,s.fragmentName);s.controls=u}n[i]=s}o(_z,"fillCustomSubSectionInConfig");function Ak(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let h=t[m],E=m;if(m.includes(Xs.UIAnnotationTerms.PresentationVariant)&&((s=h.$ref)!=null&&s.startsWith(j+be.DefinitionName.ObjectPageSectionTableV4))){let b=h.$ref.split(j)[1];E=b?gI(b,!0,Xs.UIAnnotationTerms.LineItem):m,bk(e,n,i,m,r,E)}else(l=h.$ref)!=null&&l.startsWith(j+be.DefinitionName.ObjectPageSectionTableV4)?bk(e,n,i,m,r):h.properties&&h.properties.subsections?(i[m]={subsections:{}},Ak(e,h.properties.subsections.properties,n,i[m].subsections,r,m)):(u=h.$ref)!=null&&u.startsWith(j+be.DefinitionName.ObjectPageSectionForm)&&((p=h.$ref)!=null&&p.includes(`@${Xs.UIAnnotationTerms.FieldGroup}::`))?Dz(e,n,i,m,r):(g=h.$ref)!=null&&g.startsWith(j+be.DefinitionName.ObjectPageCustomSubSectionFragment)&&_z(e,h,i,m,r,a)}}o(Ak,"fillSectionsInConfig");function Vz(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSectionFragment);if(Ot(p,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${be.DefinitionName.ObjectPageCustomSectionActions}<${Fd(l)}>`];Sk(e,m,l,p,i,l)}let g=u.template;if(g){let m=Nd(e,g);p.controls=m}n.sections[l]=p}}o(Vz,"fillCustomSectionsInConfig");function wz(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomHeaderSectionFragment);Ot(p,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let h=Nd(e,g);p.controls=h}let m=u.templateEdit;if(m){let h=Nd(e,m);p.controlsEditMode=h}n.header.sections[l]=p}}o(wz,"fillCustomHeaderSectionsInConfig");function Mz(e,t,n,i,r){var s,l;let a=e.definitions[be.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split(j)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(be.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=g?n.createInstance(be.PageTypeV4.ObjectPage,g):{},Ot(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(be.FACETTITLEPREFIX)[1]))}}}o(Mz,"fillHeaderFacets");function Ek(e,t,n,i,r,a,s){let l=e.definitions[a];if(typeof l=="object"){let u=t[s].actions={};for(let p in l.properties){let g=l.properties[p];typeof g=="object"&&g.$ref&&Fl({actionPropertyDefinition:g,appSchema:e,factory:n,actionsInConfig:u,actionKey:p,manifest:i,routingId:r})}}}o(Ek,"fillHeaderFooterActions");function kz(e,t,n){var a,s;let i=n.createPageInstance(be.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageHeader),Ot(i.header,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageFooter),Ot(i.footer,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageLayout),Ot(i.layout,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageLayout],e.routingId,[]),Ot(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[be.DefinitionName.Sections]&&(i.sections={},Ak(e,e.jsonSchema.definitions[be.DefinitionName.Sections].properties,r,i.sections,n)),Vz(e,r,i,n),Mz(e.jsonSchema,i,n,e.manifest,e.routingId),wz(e,r,i,n),Ek(e.jsonSchema,i,n,e.manifest,e.routingId,be.DefinitionName.ObjectPageHeaderActions,be.PropertyName.header),Ek(e.jsonSchema,i,n,e.manifest,e.routingId,be.DefinitionName.FooterActions,be.PropertyName.footer)),i}o(kz,"fillObjectPageConfig");function FT(e){if(Qt(),!e.manifest[be.ManifestSection.ui5]||!e.manifest[be.ManifestSection.ui5].routing){ae(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5]}});return}let t=e.manifest[be.ManifestSection.ui5].routing.targets;if(!t){ae(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){ae(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5,"routing"]}});return}let i=new Ba;return kz(e,n,i)}o(FT,"createObjectPageConfigV4");var Ge=te(ce());var mI=[],DT={};function Uz(e,t){let n=e.target,i=t.target,r=Array.isArray(n),a=Array.isArray(i);return r&&a?n.length-i.length:!r&&!a?0:r?1:-1}o(Uz,"routesSorter");function hI(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}o(hI,"resolveTarget");function jz(e){let t={};e=e.concat().sort(Uz);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=hI(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(jz,"populateAssociations");function $z(e,t,n){let i;return e.name?e.name===Ge.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ge.PageTypeV4.FPMCustomPage:e.name.endsWith(Ge.PageTypeV4.ListReport)||e.name.endsWith(Ge.PageTypeV4.AnalyticalListPage)?i=Ge.PageTypeV4.ListReport:e.name.endsWith(Ge.PageTypeV4.ObjectPage)?i=Ge.PageTypeV4.ObjectPage:i=Ge.PageTypeV4.CustomPage:"viewId"in e?i=Ge.PageTypeV4.CustomPage:(ae(t,{severity:Ge.LogSeverity.Error,message:Q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ge.MANIFESTPATH,range:[`${Ge.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ge.ViewTypes&&"viewName"in e&&(i=Ge.PageTypeV4.CustomPage)),i}o($z,"determinePageType");function Bz(e){let t=e.target.viewId||e.target.id,n=Dt(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ge.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===Ge.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=FT(r)}else if(e.page.pageType===Ge.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=NT(r)}else if(e.templateType===Ge.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=il(r,Ge.SchemaType.ListReport)}else if(e.templateType===Ge.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=il(r,Ge.SchemaType.AnalyticalListPage)}else if(e.templateType===Ge.TemplateType.FreestylePageV4&&e.page.pageType===Ge.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=Au(e.target)===Ge.TemplateType.AnalyticalListPageV4?Ge.SchemaType.AnalyticalListPage:Ge.SchemaType.ListReport;e.page.config=il(r,s)}}}o(Bz,"convertSettingsToConfig");function Hz(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");mI.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");mI.push(t[t.length-1])}}o(Hz,"updateUnhandledControllers");function Gz(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}o(Gz,"setVariantManagmentAndNavigation");function Wz(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=Zc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(Wz,"setEntitySetEntityTypeContextPath");function Kz(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.viewPath&&{path:e.viewPath},...e.path&&{path:e.path}};else if([Ge.PageTypeV4.CustomPage,Ge.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName,s=e.name;!a&&n===Ge.PageTypeV4.CustomPage&&(a=s,s=void 0),t.view={...e.id&&{id:e.id},...a&&{name:a},...s&&{template:s},...e.viewType&&{viewType:e.viewType}}}}o(Kz,"evaluateCustomPageSettings");function Xz(e,t,n,i){var p;let r=e.targets[t],a=$z(r,i.logger,t),s={pageType:a};if(Wz(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),DT[t]&&DT[t].indexOf(".")!==-1){let g=DT[t].split(".");s.navigationProperty=g[g.length-1]}Kz(r,s,a),Gz(r,s),Hz(r);let l=e.routes.find(g=>(g==null?void 0:g.target)&&g.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),!((p=s.view)!=null&&p.template)&&"name"in r&&r.name&&(s.template=r.name),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};Bz(u)}o(Xz,"getSinglePageAndConfig");function Pk(e){let t={},n=e.manifest[Ge.ManifestSection.ui5].routing;if(!n||!n.routes){let i=Q.t("NOROUTING");return ae(e.logger,{severity:Ge.LogSeverity.Error,message:i,location:{path:Ge.MANIFESTPATH,range:[Ge.ManifestSection.ui5]}}),t}DT=jz(n.routes||[]);for(let i in n.targets)Xz(n,i,t,e);return t}o(Pk,"getPagesAndConfigs");function xk(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 hI(t?t.target:e.routes[0].target)}else return}o(xk,"getHome");function Ck(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.viewPath&&{path:t.viewPath},...t.path&&{path:t.path}}:{}}o(Ck,"getSettings");function Gf(e,t){let n=e[Ge.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];hm(t,a.name)&&(i[r]=a)}return i}o(Gf,"getPages");var yI=class yI extends ls{constructor(t){Qt();let n=new Cf,i=Dt(Ge.SchemaType.Application),r=t.appSchemas[i.filename];Ot(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,xk(t.manifest[Ge.ManifestSection.ui5].routing),Pk(t),{...Ck(t.manifest[Ge.ManifestSection.ui5].routing),...n}),this.unhandledControllers=mI}};o(yI,"V4AppProvider");var Hf=yI;var Ik=require("fs"),rl=require("path"),Ok=te(ce()),Dd=te(ce());var Rk=o((e,t,n=__dirname)=>{let i;switch(t){case Dd.SchemaType.Application:{i=`${Dd.SchemaType.Application}${e.toUpperCase()}.json`;break}case Dd.SchemaType.FPMCustomPage:{i=`${Dd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,rl.join)(n,"schemas",e,i);if(n.endsWith((0,rl.join)("specification","packages","specification")))return(0,rl.join)(n,"dist","schemas",e,i);if(n.endsWith((0,rl.join)("src","specification")))return(0,rl.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,rl.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),Qz=o(async e=>new Promise((t,n)=>{(0,Ik.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),_T=o(async(e,t)=>{try{let n=Rk(e||Ok.FioriElementsVersion.v4,t,__dirname);return await Qz(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function qz(e,t){let n={},i=[];switch(i=[ue.SchemaType.Application],e){case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.AnalyticalListPageV4:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.FreestylePageV4:i.push(ue.SchemaType.FreestylePage),t===ue.FioriElementsVersion.v4&&i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.ListReportObjectPageV2:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage);break;case ue.TemplateType.AnalyticalListPageV2:i.push(ue.SchemaType.AnalyticalListPage,ue.SchemaType.ObjectPage);break;case ue.TemplateType.OverviewPageV2:i.push(ue.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Dt(r);n[a.filename]=await _T(t,r)}return n}o(qz,"getGenericSchemas");function Nk(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ii(ue.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(Nk,"getAnnotationsForUi");function _d(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(_d,"getEntitySetByEntitySetName");function Yz(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let a=2;a<e.objectPath.length;a++){let s=e.objectPath[a];if(i&&s._type==="NavigationProperty"){let l=s.containsTarget?`${s.name}/${s.partner}`:s.name,u=(r=i.navigationPropertyBinding)==null?void 0:r[l];i=t.entitySets.find(p=>p.name===(u==null?void 0:u.name))}}return{entityType:n,entitySet:i}}o(Yz,"resolveNavigationProperty");function Zc(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(u=r.target)==null?void 0:u.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=Yz(r,e):ae(i,{severity:ue.LogSeverity.Error,message:Q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:ue.MANIFESTPATH}}),n&&!a&&ae(i,{severity:ue.LogSeverity.Error,message:Q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(Zc,"getEntityTypeEntitySetFromContextPath");function Lk(e,t,n){let i=Sp(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=_d(a,e.serviceAVT);s||ae(e.logger,{severity:ue.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Dt(ue.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=Dt(ue.SchemaType.ObjectPage);n[l.filename]=Vd(e,t[u.filename])}}o(Lk,"generateObjectPageSchemasV2");function zz(e,t,n){var l,u;let i=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:h,entityType:E}=Zc(s,m,g,e.logger);e.entityType=E,e.entitySet=h;let b=Dt(ue.SchemaType.ListReport,p),O=Dt(ue.SchemaType.ListReport);e.templateType===ue.TemplateType.FreestylePageV4&&(e.templateType=Au(a[p])),n[b.filename]=Ap(e,t[O.filename],a[p].name,m)}}o(zz,"generateListReportSchemasV4");function Jz(e,t,n){var r;let i=Sp(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=_d(s,e.serviceAVT);let l=Dt(ue.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Dt(ue.SchemaType.ListReport);t[l.filename]=Ep(e,n[u.filename])}}o(Jz,"generateAppSchemaV2LR");function Zz(e,t,n){var a,s;let i=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=Zc(r,p,u);e.entitySet=m,e.entityType=g;let h=Dt(ue.SchemaType.ObjectPage,l),E=Dt(ue.SchemaType.ObjectPage),b=Dt(ue.SchemaType.FPMCustomPage);n[h.filename]=Jp(e,t[E.filename],p,t[b.filename])}}o(Zz,"generateObjectPageSchemasV4");function eJ(e,t,n,i){var a;let r={};if(i===ue.TemplateType.ListReportObjectPageV2&&n)Jz(e,r,t),Lk(e,t,r);else if(i===ue.TemplateType.AnalyticalListPageV2&&n){let s=Sp(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=_d(u,e.serviceAVT);let p=Dt(ue.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=Dt(ue.SchemaType.AnalyticalListPage);r[p.filename]=wd(e,t[g.filename])}Lk(e,t,r)}else if(i===ue.TemplateType.OverviewPageV2){let s=Dt(ue.SchemaType.OverviewPage),l=Dt(ue.SchemaType.OverviewPage);r[s.filename]=Md(t[l.filename],e.manifest)}return{...t,...r}}o(eJ,"generateAppSchemasV2");function tJ(e,t,n){if(!pc(e.featureToggles,ue.Features.BuildingBlocks))return;let i=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=Uo(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=Dt(ue.SchemaType.FPMCustomPage,void 0,l),p=Dt(ue.SchemaType.FPMCustomPage);n[u.filename]=Jc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(tJ,"generateCustomPageSchemasV4");function nJ(e,t,n){let i={};return n&&(zz(e,t,i),Zz(e,t,i),tJ(e,t,i)),{...t,...i}}o(nJ,"generateAppSchemasV4");async function Fk(e,t,n){let i=await qz(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===ue.FioriElementsVersion.v4?nJ(e,i,t):eJ(e,i,t,n)}o(Fk,"generateAppSchemas");function iJ(e){let t,n=[];switch(e.templateType){case ue.TemplateType.ListReportObjectPageV2:case ue.TemplateType.AnalyticalListPageV2:t=new ay(e);break;case ue.TemplateType.AnalyticalListPageV4:case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.FreestylePageV4:t=new Hf(e);break;case ue.TemplateType.OverviewPageV2:t=new cy(e);break;default:t=new Hf(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(iJ,"importConfigs");function Dk(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===ue.SchemaType.Application?r=`${ue.DirName.Schemas}/${ue.FileName.App[0].toUpperCase()}${ue.FileName.App.slice(1)}`:r=`${ue.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(Dk,"getFileList");async function TI(e){var b,O;Qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new Lu().doesUi5VersionFitDistTags((O=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:O.minUI5Version,i);let u=Xb(t),p=jr(n,i),g=Nk(p),m=uc(t,u,i),E=await Fk({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return Dk(E)}o(TI,"importProjectSchema");async function vI(e){var H,$;Qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new Lu().doesUi5VersionFitDistTags(($=(H=t["sap.ui5"])==null?void 0:H.dependencies)==null?void 0:$.minUI5Version,i);let p=Xb(t),g=dD(t),m=jr(n,i),h=uc(t,p,i),E={templateType:h,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=Nk(m),O=await Fk(E,b,h),M=iJ({manifest:t,flexChanges:s,appSchemas:O,templateType:h,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return Dk(O,M)}o(vI,"importProjectSchemaAndConfig");var rJ=["header","sections","footer"];function oJ(e,t,n,i){t.properties[n][se.SchemaTag.artifactType]=se.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=se.ControlType.Section;break;case"ObjectPageSubSectionV2":r=se.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=se.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=se.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=se.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=se.ControlType.ObjectPageHeaderSection;break}r&&(gt(e,t,n),t.properties[n][se.SchemaTag.controlType]=r)}o(oJ,"addFlexChangeForSection");function aJ(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Oo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=Mm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${ct(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Oo.UIAnnotationTerms.Identification}`,`/@${Oo.UIAnnotationTerms.Identification}`);t.definitions[g][se.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][se.SchemaTag.actionType]=se.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][se.SchemaTag.keys]=[{name:se.SchemaKeyName.action,value:s}],u&&(t.definitions[g][se.SchemaTag.target]=u),i.properties[l]={$ref:`${j}${g}`}}})}o(aJ,"addHeaderActionCallBackV2");function sJ(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Oo.UIAnnotationTypes.DataFieldForAction){let a=Br(r).split("::").splice(1).join("::"),s=ai(r,e),l=ct(`${se.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Oo.UIAnnotationTerms.Identification}`,`/@${Oo.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[se.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${j}${l}`}}})}o(sJ,"addFooterActionCallBackV2");function cJ(e,t,n,i,r,a,s,l){let u,p;if(a.ID&&a.Label?u=a.ID+a.Label.replace(/\s+/g,""):a.ID?u=a.ID:a.Label&&(u=a.Label.replace(/\s+/g,"")),u?p=`${se.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${se.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${se.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[g]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],h=r==null?void 0:r.entityTypes.find(b=>b.name===i),E=jc(t[se.ManifestSection.generic].pages,n,m);return _l(e,h,E,t,l,p,g,a.ID),p}o(cJ,"ensureCustomColumnDefinitionExists");function Ud(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&oJ(e,t,"visible",n)}o(Ud,"addAppSchemaDefinition");function lJ(e,t,n){e.properties[t]={$ref:`${j}${n}`}}o(lJ,"addSectionReference");function kd(e,t,n,i){let r=ct(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=j+t,i.definitions[r].properties.toolBar.$ref=`${j}ObjectPageToolBar<${t}>`,i.definitions[r][se.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=se.FACETTITLEPREFIX+n.ID,i.definitions[r][se.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=se.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${j}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=`${j}QuickVariant<${t}>`,as(n.entityType,i,`QuickVariant<${t}>`)}o(kd,"addTableDefinition");function fJ(e,t,n,i,r,a){if(i.base!==se.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=wo(n,i,t);let u=n.definitions[l];Ud(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[se.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${j}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${j}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${j}ObjectPageAnalyticalTable<${t}>`},{$ref:`${j}ObjectPageGridTable<${t}>`},{$ref:`${j}ObjectPageTreeTable<${t}>`}],u[se.SchemaTag.annotationPath]=i.annotationPath,ya(i,u,t),ts(i,u,t),kd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),kd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),kd("ObjectPageGridTable",t,i,n),kd("ObjectPageTreeTable",t,i,n),kd("ObjectPageAnalyticalTable",t,i,n);let p,g=o1(i.entityType,e.serviceAVT);g&&(p=cJ(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let h=r[m];h.base===se.FacetBase.LineItem&&(h.ID===s||m.includes(s))&&Dl(!0,n,h.target,h.entityType,h.ID||m,p)}}o(fJ,"handleLineItem");function uJ(e,t,n,i,r,a=!1){e.definitions[t]=wo(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Ud(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[se.SchemaTag.isViewNode]=!0}o(uJ,"handleSubSection");function pJ(e,t,n,i,r){e.definitions[t]=wo(e,n,i);let a=e.definitions[t];Ud(e,a,r,"ObjectPageSectionChartV2")}o(pJ,"handleSectionChart");function _k(e,t,n,i,r,a){e.definitions[t]=wo(e,n,i);let s=e.definitions[t];Ud(e,s,r,a||"CommonHeaderFacetSettings"),s[se.SchemaTag.annotationPath]=n.annotationPath,s[se.SchemaTag.isViewNode]=!0,s[se.SchemaTag.dataType]=Sc(n==null?void 0:n.target)}o(_k,"handleHeaderFacet");function dJ(e,t,n){let i=e.definitions[t],r=i[se.SchemaTag.dataType]=Sc(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}o(dJ,"addDataPointHeaderFacetDataType");function gJ(e,t,n,i,r){e.definitions[t]=wo(e,n,i);let a=e.definitions[t];return Ud(e,a,r,"ObjectPageSectionFormV2"),a[se.SchemaTag.annotationPath]=n.annotationPath,a[se.SchemaTag.isViewNode]=!0,a}o(gJ,"handleFormSection");function mJ(e,t,n){let i=new Map([[se.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[se.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[se.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[se.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[se.FacetBase.Form,"ObjectPageHeaderSectionForm"],[se.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[se.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[se.FacetBase.LineItem,"ObjectPageSectionTableV2"],[se.FacetBase.Chart,"ObjectPageSectionChartV2"],[se.FacetBase.Address,"ObjectPageSectionAddressV2"],[se.FacetBase.Contact,"ObjectPageSectionContactV2"],[se.FacetBase.Form,"ObjectPageSectionFormV2"],[se.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[se.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[se.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[se.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[se.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[se.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[se.FacetBase.Form,"ObjectPageSubSectionFormV2"],[se.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(mJ,"getSectionType");function hJ(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Oo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(hJ,"getReferenceKey");function wk(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=mJ(l.base,a,s),p=hJ(l,n,u),g=`${u}<${p}>`;switch(lJ(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,uJ(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let h in l.facets)wk(e,l.facets,h,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{fJ(e,p,r,l,t,u),Ml(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{pJ(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=gJ(r,g,l,p,u);wm(se.SectionType.Section,l,m,r,se.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{Ru(l,p,i,r,se.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{Ru(l,p,i,r,se.SectionType.Section,se.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{_k(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{_k(r,g,l,p,u),dJ(r,g,l);break}default:i.properties[n]=wo(r,l,p)}}o(wk,"addSection");function Vk(e,t,n,i,r,a=!1){if(e)for(let s in t)wk(i,t,s,n,r,!1,a)}o(Vk,"addSectionsFromFacets");function Mk(e,t,n){var g,m,h,E,b,O;let i=t.definitions[se.DefinitionName.Sections];i[se.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[se.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Oo.UIAnnotationTerms.Facets}`);let r=t.definitions[se.DefinitionName.HeaderSections];if(r[se.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[se.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Oo.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=fm((h=e.entitySet)==null?void 0:h.entityType,e.serviceAVT,se.FioriElementsVersion.v2,e.logger),s=lm((E=e.entitySet)==null?void 0:E.entityType,e.serviceAVT,se.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let N in n){let M=n[N];(O=(b=e.entitySet)==null?void 0:b.name)!=null&&O.includes(M.entitySet)?(Vk(l,a,i,e,t),Vk(u,s,r,e,t,!0)):Mk(e,t,M.pages)}let p=t.definitions.CustomSections;for(let N in p.properties)i.properties[N]=p.properties[N]}o(Mk,"addSections");function yJ(e,t,n){jm(e,n),Um(e,n,t,aJ,void 0,!0)}o(yJ,"addHeader");function TJ(e,t,n,i){let r=mD(t,n,i,void 0,!0);r&&f1(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(TJ,"addRelatedFacetKeysType");function Vd(e,t){var s;Qt();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[se.PropertyName.sections]={$ref:j+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[se.ManifestSection.generic].pages;return a?(yJ(n,e,r),n.definitions[se.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Mk(e,n,a),TJ(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[se.SchemaTag.isViewNode]=!0):delete n.properties[se.PropertyName.sections]),km(n,e,se.FioriElementsVersion.v2,sJ,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,ko(n,rJ),n):(ae(e.logger,{severity:se.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.generic]}}),n)}o(Vd,"generateObjectPageSchemaV2");var en=te(ce());var vJ=["filterBar","keyPerformanceIndicators","chart","table","footer"];function bJ(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(Uc(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(O){let N=O+(r?"#"+r:"");return t[N]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?Q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):Q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return ae(n,{severity:en.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||Cu("LineItem",O),g=g||Cu("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],h=t[g],E=(m||i.quickVariantSelectionX?0:1)+(h?0:2);if(E>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][E-1],N=Q.t(O);ae(n,{severity:en.LogSeverity.Warning,message:N})}return{lineItemAnnotation:m,chartAnnotation:h}}o(bJ,"getLineItemAndChartAnnotation");function EJ(e,t){let n=e.definitions[en.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[en.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(EJ,"addChart");function wd(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[en.PropertyName.table].anyOf[0].$ref=j+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${j}${en.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${j}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[en.PropertyName.table].anyOf[1].$ref=`${j}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${j}${en.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${j}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[en.PropertyName.table].anyOf[2].$ref=`${j}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${j}${en.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${j}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,JD(n.definitions.TableColumnExtensionTypeV2.enum,[en.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=wl(e);if(s){Vl(n);let l=[],u=rf(e.manifest[en.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=bJ(u,s,e.logger);p&&KD.forEach(h=>{n.definitions[h][en.SchemaTag.annotationPath]=hr(a.fullyQualifiedName,p.term,p.qualifier)}),Dl(!1,n,p,a),g&&EJ(n,g);let m=s.SelectionFields;if(Dm(n,m,a),Ml(n,a),!u)return ae(e.logger,{severity:en.LogSeverity.Error,message:Q.t("NOLR"),location:{path:en.MANIFESTPATH,range:[en.ManifestSection.generic]}}),n;_l(n,a,u,e.manifest,e.fragments),BA(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 ko(n,vJ),n}o(wd,"generateAnalyticalListReportSchemaV2");var kk=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function SJ(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}o(SJ,"getCardDefinitionNames");function AJ(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},Sa(a,s.CardModel);let l=SJ(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=j+"CardModel"}}o(AJ,"addModelsEnum");function PJ(e,t){let n=e.properties;for(let i in kk){let r=kk[i],a=r.key;n[a]&&(n[a].messages=[{text:Ll(a,{since:r.since,deprecated:{since:r.deprecated.since,text:r.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}o(PJ,"markDeprecatedProperties");function Uk(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},PJ(n,t),AJ(n,t),n}o(Uk,"generateOverviewPageSchemaV2");var Qs=te(ce());function bI(e,t,n,i,r,a){Qt();let s=jr(e,t),l={templateType:a,fioriElementsVersion:Qs.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=_d(r,l.serviceAVT),l.entitySet||ae(l.logger,{severity:Qs.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(bI,"prepareGenerationV2");function EI(e,t,n,i,r,a){let s=bI(n,a,i,r,t,Qs.TemplateType.ListReportObjectPageV2);return Vd(s,e)}o(EI,"generateObjectPageInterfaceV2");function SI(e,t,n,i,r,a){let s=bI(n,a,i,r,t,Qs.TemplateType.ListReportObjectPageV2);return Ep(s,e)}o(SI,"generateListReportInterfaceV2");function AI(e,t,n,i,r,a){let s=bI(n,a,i,r,t,Qs.TemplateType.AnalyticalListPageV2);return wd(s,e)}o(AI,"generateAnalyticalListPageInterfaceV2");function Md(e,t){return Uk(e,t)}o(Md,"generateOVPInterfaceV2");var Wf=te(ce()),$k=require("@sap-ux/vocabularies-types/vocabularies/UI");function jk(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}o(jk,"updateDependencyLib");function VT(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}o(VT,"extractLastIdPart");function Bk(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return ae(i,{severity:Wf.LogSeverity.Error,message:Q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(Wf.PropertyName.sections),s=a>-1?VT(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${$k.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},g={customExtension:Wf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return PI(g),!0}o(Bk,"createNewCustomColumn");var Ha=te(ce());var Gk=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),Hk=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function xJ(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(xJ,"initializeRouting");function CJ(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(CJ,"setTargetOptions");function IJ(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Ha.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(IJ,"calculateQueryPattern");function Wk(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(u=>n[s].navigation[u].route===i);l&&(t=l,a=n[s])}if(a){Wk(e,t,n,s);return}}}o(Wk,"fillNavigationParts");function OJ(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(OJ,"fillParentKeys");function RJ(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(CJ(n,a,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=l==null?void 0:l.routePattern;if(!u){let p=[];Wk(p,a,t,r,l==null?void 0:l.contextPath);let g=OJ(e.routePattern);u=IJ(p,l,g)}i.routes.push(Gk(u,s.route,s.route))}}}o(RJ,"handlePageNavigation");function LJ(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(LJ,"removeDeletedPages");function NJ(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=Hk({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=Hk({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(NJ,"transferEntitySetandContextPath");function FJ(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(FJ,"updateRouteLayout");function DJ(e,t,n){var i;return e.pageType&&![Ha.PageTypeV4.CustomPage,Ha.PageTypeV4.FPMCustomPage].includes(e.pageType)?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||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(e.pageType!==Ha.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Ha.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(i=t==null?void 0:t.options)==null?void 0:i.settings,viewName:e.view.name}}}),t}o(DJ,"fillTarget");function Kk(e,t,n){var r,a;let i=xJ(n[Ha.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(Gk(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=DJ(u,l,s),NJ(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),RJ(u,t,l,i,s),FJ(i,s,u),i.targets[s]=l}return LJ(i,t),i}o(Kk,"transformRoutingV4");var xi=te(ce());var Xk=[xi.FlexibleColumnLayoutAggregations.BeginColumnPages,xi.FlexibleColumnLayoutAggregations.MidColumnPages,xi.FlexibleColumnLayoutAggregations.EndColumnPages],Qk=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(g=>g.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:Xk[r]?s.controlAggregation=Xk[r]:s.controlAggregation=xi.FlexibleColumnLayoutAggregations.EndColumnPages;let u=a.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let g in l.navigation)Qk(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),_J=o((e,t)=>{e.routing.config.routerClass=xi.v4.FIORI_FCL_ROUTER_CLASS,Qk(e,t,t.home);let n={viewName:xi.FIORI_FCL_ROOT_VIEW_NAME,type:xi.ViewTypes.XML,async:!0,id:xi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,jk(e,xi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),VJ=o(e=>{var t;e.rootView&&e.rootView.viewName===xi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===xi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),qk=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?_J(e,t):VJ(e)},"updateFcl");var ie=te(ce()),jd=require("@sap-ux/vocabularies-types/vocabularies/UI");var Yk=te(lc()),wT=te(ce());function wJ(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(wJ,"isExportValueEquals");function MJ(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===wT.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(MJ,"deleteProperty");function zk(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),zc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},zk)}else wJ((u=s.attributes)==null?void 0:u[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(MJ(e,i),l=!0);return l}o(zk,"exportProperty");function MT(e,t,n,i,r,a){let s=Pf(e.file,!1,a);if(s){let l=eT(s);if(zc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},zk)){let p=(0,Yk.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:wT.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(MT,"getExtensionExportResult");var Jk=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},u;return r&&Object.keys(r).length>0&&(u=Uo(n||[],a.name,i,s)),u&&MT(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),Zk=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=Tc(u,s[0]);p=vc(a,m,u,g,t)}if(p){let m=xf(t),E={...i.definitions[m],definitions:i.definitions};MT(p,r,n,E,g,l)}},"exportXMLFragmentConfig");var e2=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],kJ=[...e2,"views","initialLoad","template"],kT=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function UJ(e,t,n){var s,l,u,p;let i=`@${jd.UIAnnotationTerms.LineItem}`,r=`@${jd.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ie.DefinitionName.TableSPV])==null?void 0:s[ie.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ie.DefinitionName.ALPTable])==null?void 0:u[ie.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ie.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(UJ,"determineTargetAnnotationOfTable");function jJ(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ie.DefinitionName.ALPChart])==null?void 0:a[ie.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(jJ,"determineTargetAnnotationOfChart");function $J(e,t,n,i,r){var a;if(e.length===3)t=n=i[ie.SchemaTag.annotationPath]&&i[ie.SchemaTag.annotationPath].substr(i[ie.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split(j)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ie.SchemaTag.annotationPath])&&l[ie.SchemaTag.annotationPath].substr(l[ie.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o($J,"determineTargetAnnotationBasedOnParentView");function BJ(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=$J(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ie.SchemaTag.annotationPath]&&l[ie.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ie.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ie.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(BJ,"determineTargetAnnotationOfView");function HJ(e,t,n){let i,r;return e[2].split(`@${ie.UIVOCABULARY}`)[1]?n&&n.indexOf(ie.FACETTITLEPREFIX)>-1?i=r=n.split(ie.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(HJ,"determineTargetAnnotationOfHeaderSections");function GJ(e,t){let n=e[1].split(`@${ie.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=VT(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(GJ,"determineTargetAnnotationOfSections");function WJ(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=UJ(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=jJ(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=GJ(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=HJ(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=BJ(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(WJ,"determineTargetAnnotation");function KJ(e){return e.includes(iE)}o(KJ,"isGroupingElement");function XJ(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ie.PropertyName.actions,ie.PropertyName.columns,ie.PropertyName.views,ie.PropertyName.visualFilters,ie.PropertyName.selectionFields].includes(ie.PropertyName[r])||KJ(r)){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(XJ,"determineKeyForSyncRule");function QJ(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}o(QJ,"createNewObjectInManifest");function t2(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(QJ(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}o(t2,"transferPropertyToManifest");function qJ(e,t,n,i,r,a,s){var p,g,m;let l=!1,u=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((g=n.config.table)!=null&&g.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&e2.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&kJ.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let h=t.syncRule.manifest.delete;typeof h=="function"&&(h(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 ns(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(qJ,"deleteFromManifest");function YJ(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:u,custom:p}=WJ(e,n.transferParameters,n.configObject),g=XJ(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),h=Vo(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(h){let E={syncRule:t,manifestSection:h,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:g};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&Il([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=qJ(e,E,n.transferParameters,h,m,u,l):r=t2(E,n.propertyDefinition,i)}return r}o(YJ,"exportManifestChange");function zJ(e,t,n){let i=Dn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);Zk(e.transferParameters,r,n.configObject)}else i.manifest&&YJ(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ie.ChangeIndicator.Updated)}o(zJ,"evaluateExportRule");function JJ(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,CI(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(JJ,"transferSubObject");function ZJ(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=ft(e.pageNameArray)+"/views",a=Vo(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(ZJ,"createALPTableView");function eZ(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=ft(e.transferParameters.pageNameArray)+"/views",r=Vo(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||jd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(eZ,"createALPChartView");function tZ(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ft(e.pageNameArray),r=Vo(e.exportResults.manifest,i),a=`@${jd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].filterFields;Object.keys(t).forEach(l=>{let u=t[l];s[l]={};for(let p in u)p==="visualFilterValueList"?s[l].visualFilter={valueList:u[p]}:s[l][p]=u[p]})}return n}o(tZ,"createVisualFilters");function nZ(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ft(t.pageNameArray)+"/views",s=Vo(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let u=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(u===-1)s.paths.push(l),r=!0;else if(u!==i.index){let p=JSON.parse(JSON.stringify(s.paths[u]));s.paths.splice(u,1),s.paths.splice(e,0,p),r=!0}}return r}o(nZ,"createLRTableView");function iZ(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ie.DefinitionName.CustomColumn))i=Bk(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ie.DefinitionName.ALPChartView&&e.key===ie.PropertyName.chart&&e.configObject)return eZ(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return ZJ(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=nZ(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ie.DefinitionName.VisualFilters)&&(i=tZ(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(iZ,"createNewElement");function rZ(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(rZ,"isDefinitionTraversable");function xI(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Tm(e.configObject,e.key),s=Mo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=iZ(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split(j)[1],i),p=a?[...t,a]:[...t,e.key];if(l||zJ(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||rZ(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;JJ(e,s,r,p,m)}}o(xI,"transferSortedListEntry");function oZ(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,u)=>l[1]&&l[1].index-u[1].index),s.forEach(l=>{var u;(u=n.properties)!=null&&u[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],xI(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,xI(e,i,r),a=!0)}),e.index++})}return a}o(oZ,"transferConfigEntriesWithAnyOfDefinitions");function aZ(e,t,n,i){let r=Qb(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(aZ,"mergeEntriesForInsert");function sZ(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ie.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ie.SchemaTag.propertyIndex]-r[1][ie.SchemaTag.propertyIndex])),t}o(sZ,"sortProperties");function cZ(e,t,n,i,r,a){var l,u;let s=!1;if(e){let p=e.anyOf;if(!p){let g=(l=e.$ref)==null?void 0:l.split(j)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=oZ(n,p,i,r,a)}return s}o(cZ,"checkIfAnyOfDefinition");function CI(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=a.additionalProperties,p=cZ(u,e,l,a,n,i),g=sZ(a.properties);u!=null&&u.$ref&&aZ(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!Il(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,xI(l,n,i,p),m[1].$ref&&s++)})}o(CI,"transferManifestEntriesAndFlexChange");function n2(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(n2,"getClassesForSingleSection");function i2(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],n2(n,i,t),i2(n,t)}}o(i2,"getSubsectionClasses");function lZ(e,t,n){let i;for(let r in e.sections)i=t.sections[r],n2(e,r,n),i2(i,n)}o(lZ,"getExportClassesForSections");function r2(e,t){let n=vm(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(r2,"calculateBaseId");var o2=o((e,t,n=!1)=>{var l;let i=kT(e.manifest),r=new Ba,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&lZ(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:r2(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ie.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return CI(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),fZ=o((e,t,n,i,r,a,s=!1)=>{var b,O;let l=kT(e.manifest),u=e.jsonSchema,p=(b=n.table)!=null&&b[ie.PropertyName.annotationPath]?ie.DefinitionName.ALPTableView:ie.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ie.DefinitionName.LineItems;u.definitions[ie.DefinitionName.TableSPV]&&(m=u.definitions[ie.DefinitionName.TableSPV].properties.columns.$ref.split(j)[1]);let h=u.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&h)for(let N in h.properties)g.toolBar.actions[N]=t.createInstance(i,ie.DefinitionName.ToolBarAction,g.toolBar.actions[N]);let E={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:r2(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return CI(E,n,[],[],[],u),l},"exportListPage"),II=o((e,t,n,i=!1)=>{let r=new Ba,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return fZ(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),a2=o((e,t,n=!1)=>II(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),uZ=o((e,t,n,i,r,a)=>{let s=Vo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=Hb());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];t2(u,p,{}),!l&&Object.keys(s).length&&pD(r,t,s)},"applyExportRule"),pZ=o((e,t,n)=>{var a;let i=kT(t),r=Object.assign(new oT,e);r.settings=Object.assign(new Cf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Dn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)uZ(l,u,s,e,i.manifest,n);else{let p=Vo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],ns(i.manifest,u,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=Kk(e.home,e.pages,i.manifest),qk(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),s2=o((e,t)=>{if(e[ie.SchemaType.ListReport])return II(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return o2(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return pZ(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return a2(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return Jk(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),dZ=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=kT(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Uo(n||[],i.name,r,e.logger)),l&&MT(l,s,i.config,t,"view",a),s},"exportCustomPage"),OI=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return II(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return o2(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return a2(e[ie.SchemaType.AnalyticalListPage],t,n);if(e[ie.SchemaType.FPMCustomPage])return dZ(e[ie.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Bt=require("@sap-ux/fe-fpm-writer");var gZ=new Map([[de.CustomExtensionType.CustomPage,Bt.generateCustomPage],[de.CustomExtensionType.CustomColumn,Bt.generateCustomColumn],[de.CustomExtensionType.CustomSection,Bt.generateCustomSection],[de.CustomExtensionType.ObjectPage,Bt.generateObjectPage],[de.CustomExtensionType.ListReport,Bt.generateListReport],[de.CustomExtensionType.CustomAction,Bt.generateCustomAction],[de.CustomExtensionType.CustomView,Bt.generateCustomView],[de.CustomExtensionType.ControllerExtension,Bt.generateControllerExtension],[de.CustomExtensionType.CustomSubSection,Bt.generateCustomSubSection],[de.CustomExtensionType.CustomFilterField,Bt.generateCustomFilter],[de.CustomExtensionType.CustomHeaderSection,Bt.generateCustomHeaderSection]]),mZ={api:Bt.PromptsAPI,types:Bt.PromptsType};function hZ(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];if(n[de.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.ListReport];t=SI(i,r,a,s,l,u)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.ObjectPage];t=EI(i,r,a,s,l,u)}else if(n[de.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[de.SchemaType.OverviewPage];t=Md(i,r)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.AnalyticalListPage];t=AI(i,r,a,s,l,u)}}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];if(n[de.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[de.SchemaType.ListReport];t=rT(de.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[de.SchemaType.ObjectPage];t=nx(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[de.SchemaType.AnalyticalListPage];t=rT(de.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[de.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[de.SchemaType.FreestylePage];t=ix(de.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[de.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[de.SchemaType.FPMCustomPage];t=rx(i,r,a,s,u,e.featureToggles,l)}}return t}o(hZ,"generateSchema");function yZ(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=I_(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=s2(i,n)}return t}o(yZ,"exportConfig");function TZ(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=GA(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=OI(i,n)}return t}o(TZ,"exportConfigEntityByPath");function vZ(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=GA(i,n,!0)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=OI(i,n,!0)}return t}o(vZ,"deleteConfigEntityByPath");function bZ(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];n[de.SchemaType.ListReport]?t=oy(n[de.SchemaType.ListReport]):n[de.SchemaType.ObjectPage]?t=ey(n[de.SchemaType.ObjectPage]):n[de.SchemaType.OverviewPage]?t=ty(n[de.SchemaType.OverviewPage]):n[de.SchemaType.AnalyticalListPage]&&(t=ny(n[de.SchemaType.AnalyticalListPage]))}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];n[de.SchemaType.ListReport]?t=il(n[de.SchemaType.ListReport],de.SchemaType.ListReport):n[de.SchemaType.ObjectPage]?t=FT(n[de.SchemaType.ObjectPage]):n[de.SchemaType.AnalyticalListPage]?t=il(n[de.SchemaType.AnalyticalListPage],de.SchemaType.AnalyticalListPage):n[de.SchemaType.FPMCustomPage]&&(t=NT(n[de.SchemaType.FPMCustomPage]))}return t}o(bZ,"importConfig");async function EZ(e){return vI(e)}o(EZ,"importProject");async function SZ(e){return TI(e)}o(SZ,"importProjectSchema");function AZ(){return{version:"22",fpmWriter:"30",moduleVersion:m1.version}}o(AZ,"getApiVersion");function PI(e){let t=gZ.get(e.customExtension);if(t&&typeof t=="function")return(0,Bt.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(PI,"generateCustomExtension");var io=require("path"),qs=require("fs");var Kf=o(async e=>new Promise((t,n)=>{(0,qs.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),PZ=o(async e=>JSON.parse(await Kf(e)),"readJSON"),RI=o(async e=>new Promise((t,n)=>{(0,qs.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),xZ=o(async e=>new Promise(t=>{(0,qs.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),l2=o(async e=>new Promise(t=>{(0,qs.exists)(e,n=>{t(n)})}),"resourceExists"),CZ=o(async e=>PZ((0,io.join)(e,"manifest.json")),"getManifest"),f2=o(async e=>{let t=[],n=(0,io.join)(e,"changes");if(!await l2(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await RI(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Kf((0,io.join)(n,a)));return t},"getChanges"),c2=o(async(e,t="fragments")=>{let n=[],i=(0,io.join)(e,"ext",t);if(!await l2(i))return n;let r=await RI(i);for(let a of r){let s=(0,io.join)(i,a),l=await Kf(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),IZ=o(async(e,t)=>{var r,a,s,l,u,p,g,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let h=(0,io.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:h,fileContent:await Kf(h)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let h of i.mainService.settings.annotations)if((g=(p=i[h])==null?void 0:p.settings)!=null&&g.localUri){let E=(0,io.join)(t,i[h].settings.localUri);n.push({dataSourceUri:E,fileContent:await Kf(E)})}}if(n.length===0)for(let h in i){let E=i[h];if((E==null?void 0:E.type)==="ODataAnnotation"&&((m=E==null?void 0:E.settings)!=null&&m.localUri)){let b=(0,io.join)(t,E.settings.localUri);n.push({dataSourceUri:b,fileContent:await Kf(b)})}}return n},"getAnnotations"),OZ=o(async e=>{let t=(0,io.basename)(e),n=(0,io.join)(e,"webapp"),i=await CZ(n),r=await IZ(i,n),a=await f2(n),s=await c2(n),l=await c2(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");cc(Li,te(ce()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
|
|
295
295
|
/*! Bundled license information:
|
|
296
296
|
|
|
297
297
|
sax/lib/sax.js:
|