@sap/ux-specification 1.108.48 → 1.108.49
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 +31 -0
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-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 +62 -62
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ApplicationV2.json +13 -0
- package/dist/schemas/v4/ApplicationV4.json +4 -4
- package/dist/specification/package.json +4 -4
- package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/tooltip.d.ts.map +1 -1
- package/dist/specification/scripts/macros/api.d.ts.map +1 -1
- package/dist/specification/src/extensionLogger.d.ts.map +1 -1
- package/dist/specification/src/project.d.ts.map +1 -1
- package/dist/specification/src/specification/schemaAccess.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/control.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/application.d.ts +2 -1
- package/dist/specification/src/sync/v2/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/application.js +7 -0
- package/dist/specification/src/sync/v2/application.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Action.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageSection.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/manifest.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/application.d.ts +2 -2
- package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/application.js.map +1 -1
- package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/flexibleColumnLayout.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/StableIdHelper.d.ts.map +1 -1
- package/dist/types/src/common/Application.d.ts +12 -0
- package/dist/types/src/common/Application.d.ts.map +1 -1
- package/dist/types/src/common/Application.js +10 -1
- package/dist/types/src/common/Application.js.map +1 -1
- package/dist/types/src/v4/application.d.ts +0 -12
- package/dist/types/src/v4/application.d.ts.map +1 -1
- package/dist/types/src/v4/application.js +0 -10
- package/dist/types/src/v4/application.js.map +1 -1
- package/package.json +4 -4
package/dist/index-min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var WB=Object.create;var il=Object.defineProperty;var DO=Object.getOwnPropertyDescriptor;var KB=Object.getOwnPropertyNames;var XB=Object.getPrototypeOf,QB=Object.prototype.hasOwnProperty;var o=(e,t)=>il(e,"name",{value:t,configurable:!0});var Qe=(e,t)=>()=>(e&&(t=e(e=0)),t);var qe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ks=(e,t)=>{for(var n in t)il(e,n,{get:t[n],enumerable:!0})},sg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of KB(t))!QB.call(e,r)&&r!==n&&il(e,r,{get:()=>t[r],enumerable:!(i=DO(t,r))||i.enumerable});return e},Xs=(e,t,n)=>(sg(e,t,"default"),n&&sg(n,t,"default")),ie=(e,t,n)=>(n=e!=null?WB(XB(e)):{},sg(t||!e||!e.__esModule?il(n,"default",{value:e,enumerable:!0}):n,e)),cg=e=>sg(il({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?DO(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&&il(t,n,r),r};var lL=qe((CY,cL)=>{var ST=Object.defineProperty,qB=Object.getOwnPropertyDescriptor,zB=Object.getOwnPropertyNames,YB=Object.prototype.hasOwnProperty,PT=o((e,t)=>{for(var n in t)ST(e,n,{get:t[n],enumerable:!0})},"C"),JB=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of zB(t))!YB.call(e,r)&&r!==n&&ST(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=qB(t,r))||i.enumerable});return e},"$e"),ZB=o(e=>JB(ST({},"__esModule",{value:!0}),e),"Ze"),_O={};PT(_O,{ACTIONTITLEPREFIX:o(()=>iH,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>$O,"ALPViewType"),ActionType:o(()=>GO,"ActionType"),ArtifactType:o(()=>HO,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>oH,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>qO,"ChangeIndicator"),ChartColor:o(()=>uN,"ChartColor"),ColorPaletteDefinitionType:o(()=>lN,"ColorPaletteDefinitionType"),ControlType:o(()=>WO,"ControlType"),CustomExtensionType:o(()=>gN,"CustomExtensionType"),DATESETTINGSPATH:o(()=>gH,"DATESETTINGSPATH"),DataSourceType:o(()=>sN,"DataSourceType"),DefinitionName:o(()=>JO,"DefinitionName"),DirName:o(()=>XO,"DirName"),DraftDiscardEnabledSettings:o(()=>iN,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>UO,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>nH,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>vH,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>yH,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>mH,"FRAGMENTNAMEPART"),FacetBase:o(()=>zO,"FacetBase"),Features:o(()=>mN,"Features"),FileName:o(()=>QO,"FileName"),FioriElementsVersion:o(()=>VO,"FioriElementsVersion"),FlexChangeLayer:o(()=>kO,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>aN,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>MO,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>hH,"GENERICAPPSETTINGS"),LogSeverity:o(()=>pN,"LogSeverity"),MANIFESTPATH:o(()=>aH,"MANIFESTPATH"),MacrosPropertyType:o(()=>nN,"MacrosPropertyType"),ManifestSection:o(()=>cN,"ManifestSection"),OdataVersion:o(()=>wO,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>tH,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>eH,"PageType"),PageTypeV2:o(()=>CT,"PageTypeV2"),PageTypeV4:o(()=>xT,"PageTypeV4"),PropertyName:o(()=>ZO,"PropertyName"),QUICKVARPATH:o(()=>pH,"QUICKVARPATH"),QUICKVARPATHX:o(()=>dH,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>EH,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>TH,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>tN,"SchemaKeyName"),SchemaTag:o(()=>eN,"SchemaTag"),SchemaType:o(()=>jO,"SchemaType"),SectionType:o(()=>BO,"SectionType"),StatePreservationMode:o(()=>oN,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>rN,"TableColumnVerticalAlignment"),TemplateType:o(()=>dN,"TemplateType"),UIVOCABULARY:o(()=>lH,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>uH,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>fH,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>cH,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>sH,"VOCWITHSLASH"),ViewTemplateType:o(()=>YO,"ViewTemplateType"),ViewTypes:o(()=>fN,"ViewTypes"),Visualization:o(()=>KO,"Visualization"),defaultExportResult:o(()=>rH,"defaultExportResult"),logSeverityLabel:o(()=>bH,"logSeverityLabel"),v2:o(()=>hN,"v2"),v4:o(()=>$N,"v4")});cL.exports=ZB(_O);var CT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(CT||{}),xT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(xT||{}),eH={...CT,...xT},tH=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"]]),VO=(e=>(e.v2="v2",e.v4="v4",e))(VO||{}),wO=(e=>(e.v2="v2",e.v4="v4",e))(wO||{}),MO=(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))(MO||{}),kO=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(kO||{}),jO=(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))(jO||{}),UO=(e=>(e.flex="flex",e.manifest="manifest",e))(UO||{}),$O=(e=>(e.Primary="primary",e.Secondary="secondary",e))($O||{}),BO=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(BO||{}),HO=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(HO||{}),GO=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(GO||{}),WO=(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))(WO||{}),KO=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(KO||{}),XO=(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))(XO||{}),QO=(e=>(e.App="app.json",e))(QO||{}),nH="Facet ID: ",iH="Action ID: ",qO=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(qO||{}),rH={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},zO=(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))(zO||{}),oH="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",YO=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(YO||{}),JO=(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.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.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))(JO||{}),ZO=(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))(ZO||{}),eN=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.dataType="dataType",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.propertyIndex="propertyIndex",e.target="target",e))(eN||{}),tN=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(tN||{}),aH="webapp/manifest.json",sH="/@com.sap.vocabularies",cH="::@com.sap.vocabularies",lH="com.sap.vocabularies.UI.v1",fH="com.sap.vocabularies.UI.v1.",uH="@com.sap.vocabularies.UI.v1.",pH="/quickVariantSelection",dH="/quickVariantSelectionX",gH="/filterSettings/dateSettings",mH=".fragment.",nN=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(nN||{}),iN=(e=>(e.restricted="restricted",e))(iN||{}),rN=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(rN||{}),oN=(e=>(e.persistence="persistence",e.discovery="discovery",e))(oN||{}),aN=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(aN||{}),sN=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(sN||{}),cN=(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))(cN||{}),hH="sap.ui.generic.app/settings",lN=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(lN||{}),yH="sap.fe.templates.RootContainer.view.Fcl",vH="appRootView",fN=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(fN||{}),TH="sap.ui.core.mvc.View",EH="sap.ui.core.Fragment",uN=(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))(uN||{}),pN=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(pN||{}),bH={error:"Error",warning:"Warning",info:"Information"},dN=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(dN||{}),gN=(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))(gN||{}),mN=(e=>(e.BuildingBlocks="BuildingBlocks",e))(mN||{}),hN={};PT(hN,{CardSettingsType:o(()=>TN,"CardSettingsType"),CardTemplateType:o(()=>vN,"CardTemplateType"),ChartCardType:o(()=>yN,"ChartCardType"),ChartType:o(()=>wN,"ChartType"),ContainerLayoutType:o(()=>UN,"ContainerLayoutType"),CreateMode:o(()=>jN,"CreateMode"),DateRangeType:o(()=>CN,"DateRangeType"),DefaultContentView:o(()=>DN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>xN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>_N,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>kN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>PH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>IH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>xH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>CH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>IN,"FilterPathType"),IgnoredFieldsType:o(()=>FN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>PN,"LinkListFlavorType"),ListFlavorType:o(()=>bN,"ListFlavorType"),ListTypeType:o(()=>AN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>VN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>EN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>NH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>OH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>FH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>RH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>LH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>MN,"SectionPosition"),SortOrderType:o(()=>SN,"SortOrderType"),Strategy:o(()=>RN,"Strategy"),TableColumnExtensionTypeV2:o(()=>LN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>NN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>SH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>AH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>ON,"customColumnViewTypes")});var yN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(yN||{}),vN=(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))(vN||{}),AH={"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"},SH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},TN=(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))(TN||{}),EN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(EN||{}),bN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(bN||{}),AN=(e=>(e.extended="extended",e.condensed="condensed",e))(AN||{}),SN=(e=>(e.ascending="ascending",e.descending="descending",e))(SN||{}),PN=(e=>(e.standard="standard",e.carousel="carousel",e))(PN||{}),CN=(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))(CN||{}),xN=(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))(xN||{}),IN=(e=>(e.key="key",e.catgory="category",e))(IN||{}),ON=(e=>(e.XML="XML",e))(ON||{}),NN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(NN||{}),LN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(LN||{}),RN=(e=>(e.extension="extension",e))(RN||{}),FN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(FN||{}),DN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(DN||{}),_N=(e=>(e.visual="visual",e.compact="compact",e))(_N||{}),VN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(VN||{}),wN=(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))(wN||{}),MN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(MN||{}),kN=(e=>(e.XML="XML",e))(kN||{}),jN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(jN||{}),PH="sap.suite.ui.generic.template",CH="sap.suite.ui.generic.template.ObjectPage",xH="sap.suite.ui.generic.template.ListReport",IH="sap.suite.ui.generic.template.AnalyticalListPage",OH="sap.ui.viewExtensions",NH="sap.ui.controllerExtensions",LH="sap.suite.ui.generic.template.ObjectPage.view.Details",RH="sap.suite.ui.generic.template.ListReport.view.ListReport",FH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",UN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(UN||{}),$N={};PT($N,{ActionPlacement:o(()=>BN,"ActionPlacement"),Availability:o(()=>iL,"Availability"),CloudDevAdaptationStatus:o(()=>sL,"CloudDevAdaptationStatus"),CustomSectionViewTypesV4:o(()=>ZN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>KN,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>DH,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>MH,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>_H,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>wH,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>VH,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>jH,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>qN,"FilterFieldPlacement"),HorizontalAlign:o(()=>rL,"HorizontalAlign"),InitialLayoutType:o(()=>QN,"InitialLayoutType"),InitialLoadType:o(()=>WN,"InitialLoadType"),LayoutType:o(()=>XN,"LayoutType"),Placement:o(()=>nL,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>$H,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>UH,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>kH,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>HH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>BH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>YN,"SectionLayoutType"),SectionPosition:o(()=>JN,"SectionPosition"),SectionPositionV4:o(()=>tL,"SectionPositionV4"),SelectType:o(()=>zN,"SelectType"),SelectionMode:o(()=>HN,"SelectionMode"),TableCreationModeType:o(()=>eL,"TableCreationModeType"),TableTypeV4:o(()=>GN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>aL,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>oL,"VariantManagementTypeObjectPage")});var BN=(e=>(e.After="After",e.Before="Before",e))(BN||{}),HN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(HN||{}),GN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(GN||{}),WN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(WN||{}),KN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(KN||{}),XN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(XN||{}),QN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(QN||{}),qN=(e=>(e.After="After",e.Before="Before",e))(qN||{}),zN=(e=>(e.single="single",e.multi="multi",e))(zN||{}),YN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(YN||{}),JN=(e=>(e.After="After",e.Before="Before",e))(JN||{}),ZN=(e=>(e.XML="XML",e))(ZN||{}),eL=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(eL||{}),DH="sap.fe.templates",_H="sap.fe.core.fpm",VH="sap.fe.templates.ObjectPage",wH="sap.fe.templates.ListReport",MH="sap.fe.templates.AnalyticalListPage",kH="XMLFragment",tL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(tL||{}),jH="sap.f.routing.Router",UH="sap.f",$H="sap.ui.controllerExtensions",BH="sap.fe.templates.ObjectPage.ObjectPageController",HH="sap.fe.templates.ListReport.ListReportController",nL=(e=>(e.After="After",e.Before="Before",e))(nL||{}),iL=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(iL||{}),rL=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(rL||{}),oL=(e=>(e.None="None",e.Control="Control",e))(oL||{}),aL=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(aL||{}),sL=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(sL||{})});var gL=qe(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.Features=Vr.CustomExtensionType=Vr.TemplateType=Vr.logSeverityLabel=Vr.LogSeverity=void 0;var fL;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(fL||(Vr.LogSeverity=fL={}));Vr.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var uL;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(uL||(Vr.TemplateType=uL={}));var pL;(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"})(pL||(Vr.CustomExtensionType=pL={}));var dL;(function(e){e.BuildingBlocks="BuildingBlocks"})(dL||(Vr.Features=dL={}))});var $L=qe((OY,UL)=>{var IT=Object.defineProperty,GH=Object.getOwnPropertyDescriptor,WH=Object.getOwnPropertyNames,KH=Object.prototype.hasOwnProperty,XH=o((e,t)=>{for(var n in t)IT(e,n,{get:t[n],enumerable:!0})},"h"),QH=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of WH(t))!KH.call(e,r)&&r!==n&&IT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=GH(t,r))||i.enumerable});return e},"M"),qH=o(e=>QH(IT({},"__esModule",{value:!0}),e),"Q"),mL={};XH(mL,{CardSettingsType:o(()=>vL,"CardSettingsType"),CardTemplateType:o(()=>yL,"CardTemplateType"),ChartCardType:o(()=>hL,"ChartCardType"),ChartType:o(()=>VL,"ChartType"),ContainerLayoutType:o(()=>jL,"ContainerLayoutType"),CreateMode:o(()=>kL,"CreateMode"),DateRangeType:o(()=>PL,"DateRangeType"),DefaultContentView:o(()=>FL,"DefaultContentView"),DefaultDateRangeValueType:o(()=>CL,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>DL,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>ML,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>JH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>tG,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>eG,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>ZH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>xL,"FilterPathType"),IgnoredFieldsType:o(()=>RL,"IgnoredFieldsType"),LinkListFlavorType:o(()=>SL,"LinkListFlavorType"),ListFlavorType:o(()=>EL,"ListFlavorType"),ListTypeType:o(()=>bL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>_L,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>TL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>iG,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>nG,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>aG,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>oG,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>rG,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>wL,"SectionPosition"),SortOrderType:o(()=>AL,"SortOrderType"),Strategy:o(()=>LL,"Strategy"),TableColumnExtensionTypeV2:o(()=>NL,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>OL,"TableTypeV2"),cardTemplateSettingsMap:o(()=>YH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>zH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>IL,"customColumnViewTypes")});UL.exports=qH(mL);var hL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(hL||{}),yL=(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))(yL||{}),zH={"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"},YH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},vL=(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))(vL||{}),TL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(TL||{}),EL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(EL||{}),bL=(e=>(e.extended="extended",e.condensed="condensed",e))(bL||{}),AL=(e=>(e.ascending="ascending",e.descending="descending",e))(AL||{}),SL=(e=>(e.standard="standard",e.carousel="carousel",e))(SL||{}),PL=(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))(PL||{}),CL=(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))(CL||{}),xL=(e=>(e.key="key",e.catgory="category",e))(xL||{}),IL=(e=>(e.XML="XML",e))(IL||{}),OL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(OL||{}),NL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(NL||{}),LL=(e=>(e.extension="extension",e))(LL||{}),RL=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(RL||{}),FL=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(FL||{}),DL=(e=>(e.visual="visual",e.compact="compact",e))(DL||{}),_L=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(_L||{}),VL=(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))(VL||{}),wL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(wL||{}),ML=(e=>(e.XML="XML",e))(ML||{}),kL=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(kL||{}),JH="sap.suite.ui.generic.template",ZH="sap.suite.ui.generic.template.ObjectPage",eG="sap.suite.ui.generic.template.ListReport",tG="sap.suite.ui.generic.template.AnalyticalListPage",nG="sap.ui.viewExtensions",iG="sap.ui.controllerExtensions",rG="sap.suite.ui.generic.template.ObjectPage.view.Details",oG="sap.suite.ui.generic.template.ListReport.view.ListReport",aG="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",jL=(e=>(e.fixed="fixed",e.resizable="resizable",e))(jL||{})});var fR=qe((LY,lR)=>{var OT=Object.defineProperty,sG=Object.getOwnPropertyDescriptor,cG=Object.getOwnPropertyNames,lG=Object.prototype.hasOwnProperty,fG=o((e,t)=>{for(var n in t)OT(e,n,{get:t[n],enumerable:!0})},"R"),uG=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of cG(t))!lG.call(e,r)&&r!==n&&OT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=sG(t,r))||i.enumerable});return e},"h"),pG=o(e=>uG(OT({},"__esModule",{value:!0}),e),"j"),BL={};fG(BL,{ActionPlacement:o(()=>HL,"ActionPlacement"),Availability:o(()=>rR,"Availability"),CloudDevAdaptationStatus:o(()=>cR,"CloudDevAdaptationStatus"),CustomSectionViewTypesV4:o(()=>eR,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>XL,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>dG,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>yG,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>gG,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>hG,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>mG,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>TG,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>zL,"FilterFieldPlacement"),HorizontalAlign:o(()=>oR,"HorizontalAlign"),InitialLayoutType:o(()=>qL,"InitialLayoutType"),InitialLoadType:o(()=>KL,"InitialLoadType"),LayoutType:o(()=>QL,"LayoutType"),Placement:o(()=>iR,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>bG,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>EG,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>vG,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>SG,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>AG,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>JL,"SectionLayoutType"),SectionPosition:o(()=>ZL,"SectionPosition"),SectionPositionV4:o(()=>nR,"SectionPositionV4"),SelectType:o(()=>YL,"SelectType"),SelectionMode:o(()=>GL,"SelectionMode"),TableCreationModeType:o(()=>tR,"TableCreationModeType"),TableTypeV4:o(()=>WL,"TableTypeV4"),VariantManagementTypeListReport:o(()=>sR,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>aR,"VariantManagementTypeObjectPage")});lR.exports=pG(BL);var HL=(e=>(e.After="After",e.Before="Before",e))(HL||{}),GL=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(GL||{}),WL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(WL||{}),KL=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(KL||{}),XL=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(XL||{}),QL=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(QL||{}),qL=(e=>(e.Compact="Compact",e.Visual="Visual",e))(qL||{}),zL=(e=>(e.After="After",e.Before="Before",e))(zL||{}),YL=(e=>(e.single="single",e.multi="multi",e))(YL||{}),JL=(e=>(e.Tabs="Tabs",e.Page="Page",e))(JL||{}),ZL=(e=>(e.After="After",e.Before="Before",e))(ZL||{}),eR=(e=>(e.XML="XML",e))(eR||{}),tR=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(tR||{}),dG="sap.fe.templates",gG="sap.fe.core.fpm",mG="sap.fe.templates.ObjectPage",hG="sap.fe.templates.ListReport",yG="sap.fe.templates.AnalyticalListPage",vG="XMLFragment",nR=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(nR||{}),TG="sap.f.routing.Router",EG="sap.f",bG="sap.ui.controllerExtensions",AG="sap.fe.templates.ObjectPage.ObjectPageController",SG="sap.fe.templates.ListReport.ListReportController",iR=(e=>(e.After="After",e.Before="Before",e))(iR||{}),rR=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(rR||{}),oR=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(oR||{}),aR=(e=>(e.None="None",e.Control="Control",e))(aR||{}),sR=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(sR||{}),cR=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(cR||{})});var le=qe(gi=>{"use strict";var uR=gi&&gi.__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]}),PG=gi&&gi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),pR=gi&&gi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&uR(t,e,n)},dR=gi&&gi.__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"&&uR(n,t,i[r]);return PG(n,t),n}}();Object.defineProperty(gi,"__esModule",{value:!0});gi.v4=gi.v2=void 0;pR(lL(),gi);pR(gL(),gi);gi.v2=dR($L());gi.v4=dR(fR())});var KT=qe((zY,IR)=>{"use strict";var HG=o(function(t){return GG(t)&&!WG(t)},"isMergeableObject");function GG(e){return!!e&&typeof e=="object"}o(GG,"isNonNullObject");function WG(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||QG(e)}o(WG,"isSpecial");var KG=typeof Symbol=="function"&&Symbol.for,XG=KG?Symbol.for("react.element"):60103;function QG(e){return e.$$typeof===XG}o(QG,"isReactElement");function qG(e){return Array.isArray(e)?[]:{}}o(qG,"emptyTarget");function Jf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?sl(qG(e),e,t):e}o(Jf,"cloneUnlessOtherwiseSpecified");function zG(e,t,n){return e.concat(t).map(function(i){return Jf(i,n)})}o(zG,"defaultArrayMerge");function YG(e,t){if(!t.customMerge)return sl;var n=t.customMerge(e);return typeof n=="function"?n:sl}o(YG,"getMergeFunction");function JG(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(JG,"getEnumerableOwnPropertySymbols");function CR(e){return Object.keys(e).concat(JG(e))}o(CR,"getKeys");function xR(e,t){try{return t in e}catch{return!1}}o(xR,"propertyIsOnObject");function ZG(e,t){return xR(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(ZG,"propertyIsUnsafe");function e5(e,t,n){var i={};return n.isMergeableObject(e)&&CR(e).forEach(function(r){i[r]=Jf(e[r],n)}),CR(t).forEach(function(r){ZG(e,r)||(xR(e,r)&&n.isMergeableObject(t[r])?i[r]=YG(r,n)(e[r],t[r],n):i[r]=Jf(t[r],n))}),i}o(e5,"mergeObject");function sl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||zG,n.isMergeableObject=n.isMergeableObject||HG,n.cloneUnlessOtherwiseSpecified=Jf;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):e5(e,t,n):Jf(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 t5=sl;IR.exports=t5});var vg=qe(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.mergeAnnotations=vt.addGetByValue=vt.createIndexedFind=vt.lazy=vt.Decimal=vt.Double=vt.isComplexTypeDefinition=vt.unalias=vt.alias=vt.substringBeforeLast=vt.substringBeforeFirst=vt.splitAtLast=vt.splitAtFirst=vt.defaultReferences=vt.TermToTypes=vt.EnumIsFlag=void 0;var n5=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(vt,"EnumIsFlag",{enumerable:!0,get:o(function(){return n5.EnumIsFlag},"get")});var i5=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(vt,"TermToTypes",{enumerable:!0,get:o(function(){return i5.TermToTypes},"get")});var r5=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(vt,"defaultReferences",{enumerable:!0,get:o(function(){return r5.VocabularyReferences},"get")});function OR(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(OR,"splitAt");function NR(e,t){return t<0?e:e.substring(0,t)}o(NR,"substringAt");function yg(e,t){return OR(e,e.indexOf(t))}o(yg,"splitAtFirst");vt.splitAtFirst=yg;function LR(e,t){return OR(e,e.lastIndexOf(t))}o(LR,"splitAtLast");vt.splitAtLast=LR;function o5(e,t){return NR(e,e.indexOf(t))}o(o5,"substringBeforeFirst");vt.substringBeforeFirst=o5;function a5(e,t){return NR(e,e.lastIndexOf(t))}o(a5,"substringBeforeLast");vt.substringBeforeLast=a5;function RR(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=LR(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=yg(t,"@");return`${a}@${RR(e,s)}`}else return t}o(RR,"alias");vt.alias=RR;function XT(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=yg(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]=yg(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(XT,"unalias");vt.unalias=XT;function s5(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(s5,"isComplexTypeDefinition");vt.isComplexTypeDefinition=s5;function c5(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(c5,"Double");vt.Double=c5;function l5(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(l5,"Decimal");vt.Decimal=l5;function f5(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(f5,"lazy");vt.lazy=f5;function FR(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(FR,"createIndexedFind");vt.createIndexedFind=FR;function u5(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:FR(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(u5,"addGetByValue");vt.addGetByValue=u5;function p5(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=XT(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=XT(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(p5,"mergeAnnotations");vt.mergeAnnotations=p5});var KR=qe(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.convert=void 0;var Tg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Ae=vg(),eo=Symbol("Annotation Target");function oa(e,t){return e[e.length-1]!==t&&e.push(t),e}o(oa,"appendObjectPath");function ur(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,v)=>{if(v.includes("@")){let[A,E]=(0,Ae.splitAtFirst)(v,"@");m.push(A),m.push(`@${E}`)}else m.push(v);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[eo]!==void 0)t=t[eo];else if(t._type==="Property"){let m=(0,Ae.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,v)=>{var A,E,O,F,j;let G=o(B=>(m.messages.push({message:B}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=oa(m.objectPath,m.target),v.startsWith("@")&&v!=="@$ui5.overload"){let[B,ae]=e.splitTerm(v),Z=(A=m.target.annotations[B.substring(1)])===null||A===void 0?void 0:A[ae];return Z!==void 0?(m.target=Z,m):G(`Annotation '${v.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let B;if(v==="$AnnotationPath"?B=m.target.value:v==="$Path"&&(B=m.target.path),B!==void 0){let ae=ur(e,m.target[eo],B);return ae.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=oa(m.objectPath,Z))}),m.target=ae.target,m.objectPath=oa(m.objectPath,m.target),m}}switch((E=m.target)===null||E===void 0?void 0:E._type){case"Schema":break;case"EntityContainer":{let Z=m.target;if(v===""||e.unalias(v)===Z.fullyQualifiedName)return m;let re=(F=(O=Z.entitySets.by_name(v))!==null&&O!==void 0?O:Z.singletons.by_name(v))!==null&&F!==void 0?F:Z.actionImports.by_name(v);if(re)return m.target=re,m}break;case"EntitySet":case"Singleton":{let Z=m.target;if(v===""||v==="$Type")return m.target=Z.entityType,m;if(v==="$")return m;if(v==="$NavigationPropertyBinding"){let Se=Z.navigationPropertyBinding;return m.target=Se,m}let re=ur(e,Z.entityType,v);return m.target=re.target,m.objectPath=re.objectPath.reduce(oa,m.objectPath),m}case"EntityType":{let Z=m.target;if(v===""||v==="$Type")return m;let re=Z.entityProperties.by_name(v);if(re)return m.target=re,m;let Se=Z.navigationProperties.by_name(v);if(Se)return m.target=Se,m;let D=(0,Ae.substringBeforeFirst)(e.unalias(v),"("),ut=Z.actions[D];if(ut)return m.target=ut,m}break;case"ActionImport":{let Z=ur(e,m.target.action,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(oa,m.objectPath),m}case"Action":{let Z=m.target;if(v===""||v==="@$ui5.overload"||v==="0")return m;if(v==="$Parameter"&&Z.isBound)return m.target=Z.parameters,m;let re=(j=Z.parameters[v])!==null&&j!==void 0?j:Z.parameters.find(Se=>Se.name===v);if(re)return m.target=re,m;break}case"Property":{let re=m.target.targetType;if(re!==void 0){let Se=re.properties.by_name(v);if(Se)return m.target=Se,m;let D=re.navigationProperties.by_name(v);if(D)return m.target=D,m}}break;case"ActionParameter":let B=m.target.typeReference;if(B!==void 0){let Z=ur(e,B,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(oa,m.objectPath),m}break;case"NavigationProperty":let ae=ur(e,m.target.targetType,v);return m.target=ae.target,m.objectPath=ae.objectPath.reduce(oa,m.objectPath),m;default:if(v==="")return m;if(m.target[v])return m.target=m.target[v],m.objectPath=oa(m.objectPath,m.target),m}return G(`Element '${v}' 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=MR(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
1
|
+
var GB=Object.create;var il=Object.defineProperty;var DO=Object.getOwnPropertyDescriptor;var WB=Object.getOwnPropertyNames;var KB=Object.getPrototypeOf,XB=Object.prototype.hasOwnProperty;var o=(e,t)=>il(e,"name",{value:t,configurable:!0});var Qe=(e,t)=>()=>(e&&(t=e(e=0)),t);var qe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ks=(e,t)=>{for(var n in t)il(e,n,{get:t[n],enumerable:!0})},sg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of WB(t))!XB.call(e,r)&&r!==n&&il(e,r,{get:()=>t[r],enumerable:!(i=DO(t,r))||i.enumerable});return e},Xs=(e,t,n)=>(sg(e,t,"default"),n&&sg(n,t,"default")),ie=(e,t,n)=>(n=e!=null?GB(KB(e)):{},sg(t||!e||!e.__esModule?il(n,"default",{value:e,enumerable:!0}):n,e)),cg=e=>sg(il({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?DO(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&&il(t,n,r),r};var lL=qe((PY,cL)=>{var ST=Object.defineProperty,QB=Object.getOwnPropertyDescriptor,qB=Object.getOwnPropertyNames,zB=Object.prototype.hasOwnProperty,PT=o((e,t)=>{for(var n in t)ST(e,n,{get:t[n],enumerable:!0})},"C"),YB=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of qB(t))!zB.call(e,r)&&r!==n&&ST(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=QB(t,r))||i.enumerable});return e},"$e"),JB=o(e=>YB(ST({},"__esModule",{value:!0}),e),"Ze"),_O={};PT(_O,{ACTIONTITLEPREFIX:o(()=>nH,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>$O,"ALPViewType"),ActionType:o(()=>GO,"ActionType"),ArtifactType:o(()=>HO,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>rH,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>qO,"ChangeIndicator"),ChartColor:o(()=>pN,"ChartColor"),CloudDevAdaptationStatus:o(()=>sN,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:o(()=>fN,"ColorPaletteDefinitionType"),ControlType:o(()=>WO,"ControlType"),CustomExtensionType:o(()=>mN,"CustomExtensionType"),DATESETTINGSPATH:o(()=>dH,"DATESETTINGSPATH"),DataSourceType:o(()=>cN,"DataSourceType"),DefinitionName:o(()=>JO,"DefinitionName"),DirName:o(()=>XO,"DirName"),DraftDiscardEnabledSettings:o(()=>iN,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>UO,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>tH,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>yH,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>hH,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>gH,"FRAGMENTNAMEPART"),FacetBase:o(()=>zO,"FacetBase"),Features:o(()=>hN,"Features"),FileName:o(()=>QO,"FileName"),FioriElementsVersion:o(()=>VO,"FioriElementsVersion"),FlexChangeLayer:o(()=>kO,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>aN,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>MO,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>mH,"GENERICAPPSETTINGS"),LogSeverity:o(()=>dN,"LogSeverity"),MANIFESTPATH:o(()=>oH,"MANIFESTPATH"),MacrosPropertyType:o(()=>nN,"MacrosPropertyType"),ManifestSection:o(()=>lN,"ManifestSection"),OdataVersion:o(()=>wO,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>eH,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>ZB,"PageType"),PageTypeV2:o(()=>CT,"PageTypeV2"),PageTypeV4:o(()=>xT,"PageTypeV4"),PropertyName:o(()=>ZO,"PropertyName"),QUICKVARPATH:o(()=>uH,"QUICKVARPATH"),QUICKVARPATHX:o(()=>pH,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>TH,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>vH,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>tN,"SchemaKeyName"),SchemaTag:o(()=>eN,"SchemaTag"),SchemaType:o(()=>jO,"SchemaType"),SectionType:o(()=>BO,"SectionType"),StatePreservationMode:o(()=>oN,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>rN,"TableColumnVerticalAlignment"),TemplateType:o(()=>gN,"TemplateType"),UIVOCABULARY:o(()=>cH,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>fH,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>lH,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>sH,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>aH,"VOCWITHSLASH"),ViewTemplateType:o(()=>YO,"ViewTemplateType"),ViewTypes:o(()=>uN,"ViewTypes"),Visualization:o(()=>KO,"Visualization"),defaultExportResult:o(()=>iH,"defaultExportResult"),logSeverityLabel:o(()=>EH,"logSeverityLabel"),v2:o(()=>yN,"v2"),v4:o(()=>BN,"v4")});cL.exports=JB(_O);var CT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(CT||{}),xT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(xT||{}),ZB={...CT,...xT},eH=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"]]),VO=(e=>(e.v2="v2",e.v4="v4",e))(VO||{}),wO=(e=>(e.v2="v2",e.v4="v4",e))(wO||{}),MO=(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))(MO||{}),kO=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(kO||{}),jO=(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))(jO||{}),UO=(e=>(e.flex="flex",e.manifest="manifest",e))(UO||{}),$O=(e=>(e.Primary="primary",e.Secondary="secondary",e))($O||{}),BO=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(BO||{}),HO=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(HO||{}),GO=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(GO||{}),WO=(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))(WO||{}),KO=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(KO||{}),XO=(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))(XO||{}),QO=(e=>(e.App="app.json",e))(QO||{}),tH="Facet ID: ",nH="Action ID: ",qO=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(qO||{}),iH={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},zO=(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))(zO||{}),rH="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",YO=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(YO||{}),JO=(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.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.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))(JO||{}),ZO=(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))(ZO||{}),eN=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.dataType="dataType",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.propertyIndex="propertyIndex",e.target="target",e))(eN||{}),tN=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(tN||{}),oH="webapp/manifest.json",aH="/@com.sap.vocabularies",sH="::@com.sap.vocabularies",cH="com.sap.vocabularies.UI.v1",lH="com.sap.vocabularies.UI.v1.",fH="@com.sap.vocabularies.UI.v1.",uH="/quickVariantSelection",pH="/quickVariantSelectionX",dH="/filterSettings/dateSettings",gH=".fragment.",nN=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(nN||{}),iN=(e=>(e.restricted="restricted",e))(iN||{}),rN=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(rN||{}),oN=(e=>(e.persistence="persistence",e.discovery="discovery",e))(oN||{}),aN=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(aN||{}),sN=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(sN||{}),cN=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(cN||{}),lN=(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))(lN||{}),mH="sap.ui.generic.app/settings",fN=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(fN||{}),hH="sap.fe.templates.RootContainer.view.Fcl",yH="appRootView",uN=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(uN||{}),vH="sap.ui.core.mvc.View",TH="sap.ui.core.Fragment",pN=(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))(pN||{}),dN=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(dN||{}),EH={error:"Error",warning:"Warning",info:"Information"},gN=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(gN||{}),mN=(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))(mN||{}),hN=(e=>(e.BuildingBlocks="BuildingBlocks",e))(hN||{}),yN={};PT(yN,{CardSettingsType:o(()=>EN,"CardSettingsType"),CardTemplateType:o(()=>TN,"CardTemplateType"),ChartCardType:o(()=>vN,"ChartCardType"),ChartType:o(()=>MN,"ChartType"),ContainerLayoutType:o(()=>$N,"ContainerLayoutType"),CreateMode:o(()=>UN,"CreateMode"),DateRangeType:o(()=>xN,"DateRangeType"),DefaultContentView:o(()=>_N,"DefaultContentView"),DefaultDateRangeValueType:o(()=>IN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>VN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>jN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>SH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>xH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>CH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>PH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>ON,"FilterPathType"),IgnoredFieldsType:o(()=>DN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>CN,"LinkListFlavorType"),ListFlavorType:o(()=>AN,"ListFlavorType"),ListTypeType:o(()=>SN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>wN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>bN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>OH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>IH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>RH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>LH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>NH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>kN,"SectionPosition"),SortOrderType:o(()=>PN,"SortOrderType"),Strategy:o(()=>FN,"Strategy"),TableColumnExtensionTypeV2:o(()=>RN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>LN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>AH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>bH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>NN,"customColumnViewTypes")});var vN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(vN||{}),TN=(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))(TN||{}),bH={"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"},AH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},EN=(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))(EN||{}),bN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(bN||{}),AN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(AN||{}),SN=(e=>(e.extended="extended",e.condensed="condensed",e))(SN||{}),PN=(e=>(e.ascending="ascending",e.descending="descending",e))(PN||{}),CN=(e=>(e.standard="standard",e.carousel="carousel",e))(CN||{}),xN=(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))(xN||{}),IN=(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))(IN||{}),ON=(e=>(e.key="key",e.catgory="category",e))(ON||{}),NN=(e=>(e.XML="XML",e))(NN||{}),LN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(LN||{}),RN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(RN||{}),FN=(e=>(e.extension="extension",e))(FN||{}),DN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(DN||{}),_N=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(_N||{}),VN=(e=>(e.visual="visual",e.compact="compact",e))(VN||{}),wN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(wN||{}),MN=(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))(MN||{}),kN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(kN||{}),jN=(e=>(e.XML="XML",e))(jN||{}),UN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(UN||{}),SH="sap.suite.ui.generic.template",PH="sap.suite.ui.generic.template.ObjectPage",CH="sap.suite.ui.generic.template.ListReport",xH="sap.suite.ui.generic.template.AnalyticalListPage",IH="sap.ui.viewExtensions",OH="sap.ui.controllerExtensions",NH="sap.suite.ui.generic.template.ObjectPage.view.Details",LH="sap.suite.ui.generic.template.ListReport.view.ListReport",RH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",$N=(e=>(e.fixed="fixed",e.resizable="resizable",e))($N||{}),BN={};PT(BN,{ActionPlacement:o(()=>HN,"ActionPlacement"),Availability:o(()=>rL,"Availability"),CustomSectionViewTypesV4:o(()=>eL,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>XN,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>FH,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>wH,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>DH,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>VH,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>_H,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>kH,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>zN,"FilterFieldPlacement"),HorizontalAlign:o(()=>oL,"HorizontalAlign"),InitialLayoutType:o(()=>qN,"InitialLayoutType"),InitialLoadType:o(()=>KN,"InitialLoadType"),LayoutType:o(()=>QN,"LayoutType"),Placement:o(()=>iL,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>UH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>jH,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>MH,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>BH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>$H,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>JN,"SectionLayoutType"),SectionPosition:o(()=>ZN,"SectionPosition"),SectionPositionV4:o(()=>nL,"SectionPositionV4"),SelectType:o(()=>YN,"SelectType"),SelectionMode:o(()=>GN,"SelectionMode"),TableCreationModeType:o(()=>tL,"TableCreationModeType"),TableTypeV4:o(()=>WN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>sL,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>aL,"VariantManagementTypeObjectPage")});var HN=(e=>(e.After="After",e.Before="Before",e))(HN||{}),GN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(GN||{}),WN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(WN||{}),KN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(KN||{}),XN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(XN||{}),QN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(QN||{}),qN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(qN||{}),zN=(e=>(e.After="After",e.Before="Before",e))(zN||{}),YN=(e=>(e.single="single",e.multi="multi",e))(YN||{}),JN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(JN||{}),ZN=(e=>(e.After="After",e.Before="Before",e))(ZN||{}),eL=(e=>(e.XML="XML",e))(eL||{}),tL=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(tL||{}),FH="sap.fe.templates",DH="sap.fe.core.fpm",_H="sap.fe.templates.ObjectPage",VH="sap.fe.templates.ListReport",wH="sap.fe.templates.AnalyticalListPage",MH="XMLFragment",nL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(nL||{}),kH="sap.f.routing.Router",jH="sap.f",UH="sap.ui.controllerExtensions",$H="sap.fe.templates.ObjectPage.ObjectPageController",BH="sap.fe.templates.ListReport.ListReportController",iL=(e=>(e.After="After",e.Before="Before",e))(iL||{}),rL=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(rL||{}),oL=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(oL||{}),aL=(e=>(e.None="None",e.Control="Control",e))(aL||{}),sL=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(sL||{})});var gL=qe(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.Features=Vr.CustomExtensionType=Vr.TemplateType=Vr.logSeverityLabel=Vr.LogSeverity=void 0;var fL;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(fL||(Vr.LogSeverity=fL={}));Vr.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var uL;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(uL||(Vr.TemplateType=uL={}));var pL;(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"})(pL||(Vr.CustomExtensionType=pL={}));var dL;(function(e){e.BuildingBlocks="BuildingBlocks"})(dL||(Vr.Features=dL={}))});var $L=qe((IY,UL)=>{var IT=Object.defineProperty,HH=Object.getOwnPropertyDescriptor,GH=Object.getOwnPropertyNames,WH=Object.prototype.hasOwnProperty,KH=o((e,t)=>{for(var n in t)IT(e,n,{get:t[n],enumerable:!0})},"h"),XH=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of GH(t))!WH.call(e,r)&&r!==n&&IT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=HH(t,r))||i.enumerable});return e},"M"),QH=o(e=>XH(IT({},"__esModule",{value:!0}),e),"Q"),mL={};KH(mL,{CardSettingsType:o(()=>vL,"CardSettingsType"),CardTemplateType:o(()=>yL,"CardTemplateType"),ChartCardType:o(()=>hL,"ChartCardType"),ChartType:o(()=>VL,"ChartType"),ContainerLayoutType:o(()=>jL,"ContainerLayoutType"),CreateMode:o(()=>kL,"CreateMode"),DateRangeType:o(()=>PL,"DateRangeType"),DefaultContentView:o(()=>FL,"DefaultContentView"),DefaultDateRangeValueType:o(()=>CL,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>DL,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>ML,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>YH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>eG,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>ZH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>JH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>xL,"FilterPathType"),IgnoredFieldsType:o(()=>RL,"IgnoredFieldsType"),LinkListFlavorType:o(()=>SL,"LinkListFlavorType"),ListFlavorType:o(()=>EL,"ListFlavorType"),ListTypeType:o(()=>bL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>_L,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>TL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>nG,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>tG,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>oG,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>rG,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>iG,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>wL,"SectionPosition"),SortOrderType:o(()=>AL,"SortOrderType"),Strategy:o(()=>LL,"Strategy"),TableColumnExtensionTypeV2:o(()=>NL,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>OL,"TableTypeV2"),cardTemplateSettingsMap:o(()=>zH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>qH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>IL,"customColumnViewTypes")});UL.exports=QH(mL);var hL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(hL||{}),yL=(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))(yL||{}),qH={"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"},zH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},vL=(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))(vL||{}),TL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(TL||{}),EL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(EL||{}),bL=(e=>(e.extended="extended",e.condensed="condensed",e))(bL||{}),AL=(e=>(e.ascending="ascending",e.descending="descending",e))(AL||{}),SL=(e=>(e.standard="standard",e.carousel="carousel",e))(SL||{}),PL=(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))(PL||{}),CL=(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))(CL||{}),xL=(e=>(e.key="key",e.catgory="category",e))(xL||{}),IL=(e=>(e.XML="XML",e))(IL||{}),OL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(OL||{}),NL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(NL||{}),LL=(e=>(e.extension="extension",e))(LL||{}),RL=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(RL||{}),FL=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(FL||{}),DL=(e=>(e.visual="visual",e.compact="compact",e))(DL||{}),_L=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(_L||{}),VL=(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))(VL||{}),wL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(wL||{}),ML=(e=>(e.XML="XML",e))(ML||{}),kL=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(kL||{}),YH="sap.suite.ui.generic.template",JH="sap.suite.ui.generic.template.ObjectPage",ZH="sap.suite.ui.generic.template.ListReport",eG="sap.suite.ui.generic.template.AnalyticalListPage",tG="sap.ui.viewExtensions",nG="sap.ui.controllerExtensions",iG="sap.suite.ui.generic.template.ObjectPage.view.Details",rG="sap.suite.ui.generic.template.ListReport.view.ListReport",oG="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",jL=(e=>(e.fixed="fixed",e.resizable="resizable",e))(jL||{})});var lR=qe((NY,cR)=>{var OT=Object.defineProperty,aG=Object.getOwnPropertyDescriptor,sG=Object.getOwnPropertyNames,cG=Object.prototype.hasOwnProperty,lG=o((e,t)=>{for(var n in t)OT(e,n,{get:t[n],enumerable:!0})},"w"),fG=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of sG(t))!cG.call(e,r)&&r!==n&&OT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=aG(t,r))||i.enumerable});return e},"R"),uG=o(e=>fG(OT({},"__esModule",{value:!0}),e),"h"),BL={};lG(BL,{ActionPlacement:o(()=>HL,"ActionPlacement"),Availability:o(()=>rR,"Availability"),CustomSectionViewTypesV4:o(()=>eR,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>XL,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>pG,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>hG,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>dG,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>mG,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>gG,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>vG,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>zL,"FilterFieldPlacement"),HorizontalAlign:o(()=>oR,"HorizontalAlign"),InitialLayoutType:o(()=>qL,"InitialLayoutType"),InitialLoadType:o(()=>KL,"InitialLoadType"),LayoutType:o(()=>QL,"LayoutType"),Placement:o(()=>iR,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>EG,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>TG,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>yG,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>AG,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>bG,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>JL,"SectionLayoutType"),SectionPosition:o(()=>ZL,"SectionPosition"),SectionPositionV4:o(()=>nR,"SectionPositionV4"),SelectType:o(()=>YL,"SelectType"),SelectionMode:o(()=>GL,"SelectionMode"),TableCreationModeType:o(()=>tR,"TableCreationModeType"),TableTypeV4:o(()=>WL,"TableTypeV4"),VariantManagementTypeListReport:o(()=>sR,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>aR,"VariantManagementTypeObjectPage")});cR.exports=uG(BL);var HL=(e=>(e.After="After",e.Before="Before",e))(HL||{}),GL=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(GL||{}),WL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(WL||{}),KL=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(KL||{}),XL=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(XL||{}),QL=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(QL||{}),qL=(e=>(e.Compact="Compact",e.Visual="Visual",e))(qL||{}),zL=(e=>(e.After="After",e.Before="Before",e))(zL||{}),YL=(e=>(e.single="single",e.multi="multi",e))(YL||{}),JL=(e=>(e.Tabs="Tabs",e.Page="Page",e))(JL||{}),ZL=(e=>(e.After="After",e.Before="Before",e))(ZL||{}),eR=(e=>(e.XML="XML",e))(eR||{}),tR=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(tR||{}),pG="sap.fe.templates",dG="sap.fe.core.fpm",gG="sap.fe.templates.ObjectPage",mG="sap.fe.templates.ListReport",hG="sap.fe.templates.AnalyticalListPage",yG="XMLFragment",nR=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(nR||{}),vG="sap.f.routing.Router",TG="sap.f",EG="sap.ui.controllerExtensions",bG="sap.fe.templates.ObjectPage.ObjectPageController",AG="sap.fe.templates.ListReport.ListReportController",iR=(e=>(e.After="After",e.Before="Before",e))(iR||{}),rR=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(rR||{}),oR=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(oR||{}),aR=(e=>(e.None="None",e.Control="Control",e))(aR||{}),sR=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(sR||{})});var le=qe(gi=>{"use strict";var fR=gi&&gi.__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]}),SG=gi&&gi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),uR=gi&&gi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&fR(t,e,n)},pR=gi&&gi.__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"&&fR(n,t,i[r]);return SG(n,t),n}}();Object.defineProperty(gi,"__esModule",{value:!0});gi.v4=gi.v2=void 0;uR(lL(),gi);uR(gL(),gi);gi.v2=pR($L());gi.v4=pR(lR())});var KT=qe((qY,xR)=>{"use strict";var BG=o(function(t){return HG(t)&&!GG(t)},"isMergeableObject");function HG(e){return!!e&&typeof e=="object"}o(HG,"isNonNullObject");function GG(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||XG(e)}o(GG,"isSpecial");var WG=typeof Symbol=="function"&&Symbol.for,KG=WG?Symbol.for("react.element"):60103;function XG(e){return e.$$typeof===KG}o(XG,"isReactElement");function QG(e){return Array.isArray(e)?[]:{}}o(QG,"emptyTarget");function Jf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?sl(QG(e),e,t):e}o(Jf,"cloneUnlessOtherwiseSpecified");function qG(e,t,n){return e.concat(t).map(function(i){return Jf(i,n)})}o(qG,"defaultArrayMerge");function zG(e,t){if(!t.customMerge)return sl;var n=t.customMerge(e);return typeof n=="function"?n:sl}o(zG,"getMergeFunction");function YG(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(YG,"getEnumerableOwnPropertySymbols");function PR(e){return Object.keys(e).concat(YG(e))}o(PR,"getKeys");function CR(e,t){try{return t in e}catch{return!1}}o(CR,"propertyIsOnObject");function JG(e,t){return CR(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(JG,"propertyIsUnsafe");function ZG(e,t,n){var i={};return n.isMergeableObject(e)&&PR(e).forEach(function(r){i[r]=Jf(e[r],n)}),PR(t).forEach(function(r){JG(e,r)||(CR(e,r)&&n.isMergeableObject(t[r])?i[r]=zG(r,n)(e[r],t[r],n):i[r]=Jf(t[r],n))}),i}o(ZG,"mergeObject");function sl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||qG,n.isMergeableObject=n.isMergeableObject||BG,n.cloneUnlessOtherwiseSpecified=Jf;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):ZG(e,t,n):Jf(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 e5=sl;xR.exports=e5});var vg=qe(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.mergeAnnotations=vt.addGetByValue=vt.createIndexedFind=vt.lazy=vt.Decimal=vt.Double=vt.isComplexTypeDefinition=vt.unalias=vt.alias=vt.substringBeforeLast=vt.substringBeforeFirst=vt.splitAtLast=vt.splitAtFirst=vt.defaultReferences=vt.TermToTypes=vt.EnumIsFlag=void 0;var t5=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(vt,"EnumIsFlag",{enumerable:!0,get:o(function(){return t5.EnumIsFlag},"get")});var n5=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(vt,"TermToTypes",{enumerable:!0,get:o(function(){return n5.TermToTypes},"get")});var i5=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(vt,"defaultReferences",{enumerable:!0,get:o(function(){return i5.VocabularyReferences},"get")});function IR(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(IR,"splitAt");function OR(e,t){return t<0?e:e.substring(0,t)}o(OR,"substringAt");function yg(e,t){return IR(e,e.indexOf(t))}o(yg,"splitAtFirst");vt.splitAtFirst=yg;function NR(e,t){return IR(e,e.lastIndexOf(t))}o(NR,"splitAtLast");vt.splitAtLast=NR;function r5(e,t){return OR(e,e.indexOf(t))}o(r5,"substringBeforeFirst");vt.substringBeforeFirst=r5;function o5(e,t){return OR(e,e.lastIndexOf(t))}o(o5,"substringBeforeLast");vt.substringBeforeLast=o5;function LR(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=NR(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=yg(t,"@");return`${a}@${LR(e,s)}`}else return t}o(LR,"alias");vt.alias=LR;function XT(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=yg(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]=yg(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(XT,"unalias");vt.unalias=XT;function a5(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(a5,"isComplexTypeDefinition");vt.isComplexTypeDefinition=a5;function s5(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(s5,"Double");vt.Double=s5;function c5(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(c5,"Decimal");vt.Decimal=c5;function l5(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(l5,"lazy");vt.lazy=l5;function RR(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(RR,"createIndexedFind");vt.createIndexedFind=RR;function f5(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:RR(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(f5,"addGetByValue");vt.addGetByValue=f5;function u5(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=XT(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=XT(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(u5,"mergeAnnotations");vt.mergeAnnotations=u5});var WR=qe(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.convert=void 0;var Tg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Ae=vg(),to=Symbol("Annotation Target");function oa(e,t){return e[e.length-1]!==t&&e.push(t),e}o(oa,"appendObjectPath");function ur(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,v)=>{if(v.includes("@")){let[A,E]=(0,Ae.splitAtFirst)(v,"@");m.push(A),m.push(`@${E}`)}else m.push(v);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[to]!==void 0)t=t[to];else if(t._type==="Property"){let m=(0,Ae.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,v)=>{var A,E,O,F,j;let G=o(B=>(m.messages.push({message:B}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=oa(m.objectPath,m.target),v.startsWith("@")&&v!=="@$ui5.overload"){let[B,ae]=e.splitTerm(v),Z=(A=m.target.annotations[B.substring(1)])===null||A===void 0?void 0:A[ae];return Z!==void 0?(m.target=Z,m):G(`Annotation '${v.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let B;if(v==="$AnnotationPath"?B=m.target.value:v==="$Path"&&(B=m.target.path),B!==void 0){let ae=ur(e,m.target[to],B);return ae.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=oa(m.objectPath,Z))}),m.target=ae.target,m.objectPath=oa(m.objectPath,m.target),m}}switch((E=m.target)===null||E===void 0?void 0:E._type){case"Schema":break;case"EntityContainer":{let Z=m.target;if(v===""||e.unalias(v)===Z.fullyQualifiedName)return m;let re=(F=(O=Z.entitySets.by_name(v))!==null&&O!==void 0?O:Z.singletons.by_name(v))!==null&&F!==void 0?F:Z.actionImports.by_name(v);if(re)return m.target=re,m}break;case"EntitySet":case"Singleton":{let Z=m.target;if(v===""||v==="$Type")return m.target=Z.entityType,m;if(v==="$")return m;if(v==="$NavigationPropertyBinding"){let Se=Z.navigationPropertyBinding;return m.target=Se,m}let re=ur(e,Z.entityType,v);return m.target=re.target,m.objectPath=re.objectPath.reduce(oa,m.objectPath),m}case"EntityType":{let Z=m.target;if(v===""||v==="$Type")return m;let re=Z.entityProperties.by_name(v);if(re)return m.target=re,m;let Se=Z.navigationProperties.by_name(v);if(Se)return m.target=Se,m;let D=(0,Ae.substringBeforeFirst)(e.unalias(v),"("),ut=Z.actions[D];if(ut)return m.target=ut,m}break;case"ActionImport":{let Z=ur(e,m.target.action,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(oa,m.objectPath),m}case"Action":{let Z=m.target;if(v===""||v==="@$ui5.overload"||v==="0")return m;if(v==="$Parameter"&&Z.isBound)return m.target=Z.parameters,m;let re=(j=Z.parameters[v])!==null&&j!==void 0?j:Z.parameters.find(Se=>Se.name===v);if(re)return m.target=re,m;break}case"Property":{let re=m.target.targetType;if(re!==void 0){let Se=re.properties.by_name(v);if(Se)return m.target=Se,m;let D=re.navigationProperties.by_name(v);if(D)return m.target=D,m}}break;case"ActionParameter":let B=m.target.typeReference;if(B!==void 0){let Z=ur(e,B,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(oa,m.objectPath),m}break;case"NavigationProperty":let ae=ur(e,m.target.targetType,v);return m.target=ae.target,m.objectPath=ae.objectPath.reduce(oa,m.objectPath),m;default:if(v==="")return m;if(m.target[v])return m.target=m.target[v],m.objectPath=oa(m.objectPath,m.target),m}return G(`Element '${v}' 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=wR(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
2
2
|
`+n+`
|
|
3
3
|
|
|
4
4
|
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
|
|
@@ -10,13 +10,13 @@ Hint: Check and correct the path values under the following structure in the met
|
|
|
10
10
|
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
|
|
11
11
|
|
|
12
12
|
<Annotation Term = `+p[0]+`>
|
|
13
|
-
<PropertyValue Path= `+p[1]+">");return g}o(ur,"resolveTarget");function
|
|
13
|
+
<PropertyValue Path= `+p[1]+">");return g}o(ur,"resolveTarget");function p5(e){return e.includes("@")}o(p5,"isAnnotationPath");function FR(e,t,n,i,r){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[to]:i};return(0,Ae.lazy)(a,"$target",()=>ur(e,i,t.PropertyPath,r).target),a}o(FR,"mapPropertyPath");function DR(e,t,n,i,r){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[to]:i};return(0,Ae.lazy)(a,"$target",()=>ur(e,i,a.value,r).target),a}o(DR,"mapAnnotationPath");function _R(e,t,n,i,r){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[to]:i};return(0,Ae.lazy)(s,"$target",()=>ur(e,i,t.NavigationPropertyPath,r).target),s}o(_R,"mapNavigationPropertyPath");function d5(e,t,n,i,r){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[to]:i};return(0,Ae.lazy)(a,"$target",()=>ur(e,i,t.Path,r).target),a}o(d5,"mapPath");function VR(e,t,n,i,r,a,s){if(a!==void 0)switch(a.type){case"String":return a.String;case"Int":return a.Int;case"Bool":return a.Bool;case"Double":return(0,Ae.Double)(a.Double);case"Decimal":return(0,Ae.Decimal)(a.Decimal);case"Date":return a.Date;case"EnumMember":let l=a.EnumMember.split(" ").map(u=>{var p;let g=(p=e.unalias(u))!==null&&p!==void 0?p:"";return(0,Ae.alias)(Tg.VocabularyReferences,g)});return l[0]!==void 0&&Ae.EnumIsFlag[(0,Ae.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return FR(e,a,s,t,n);case"NavigationPropertyPath":return _R(e,a,s,t,n);case"AnnotationPath":return DR(e,a,s,t,n);case"Path":return p5(a.Path)?ur(e,t,a.Path,n).target:d5(e,a,s,t,n);case"Record":return zT(e,n,t,i,r,a.Record,s);case"Collection":return MR(e,t,n,i,r,a.Collection,s);case"Apply":case"Null":case"Not":case"Eq":case"Ne":case"Gt":case"Ge":case"Lt":case"Le":case"If":case"And":case"Or":default:return a}}o(VR,"parseValue");function wR(e,t,n,i){let r=Ae.TermToTypes[t];return i&&(t=`${(0,Ae.substringBeforeLast)(t,".")}.${i}`,r=Ae.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${r}.
|
|
14
14
|
Hint: If possible, try to maintain the Type property for each Record.
|
|
15
15
|
<Annotations Target="${n}">
|
|
16
16
|
<Annotation Term="${t}">
|
|
17
17
|
<Record>...</Record>
|
|
18
18
|
</Annotation>
|
|
19
|
-
</Annotations>`),r}o(MR,"inferTypeFromTerm");function m5(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(m5,"isDataFieldWithForAction");function h5(e,t,n,i,r){let a;return!r.type&&t?a=MR(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(h5,"parseRecordType");function zT(e,t,n,i,r,a,s){let l={$Type:h5(e,t,n,i,a),fullyQualifiedName:s,[eo]:n,__source:r};for(let u of a.propertyValues)(0,Ae.lazy)(l,u.name,()=>wR(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Ae.lazy)(l,"annotations",UR(e,a,l)),m5(l)&&(0,Ae.lazy)(l,"ActionTarget",()=>{var u,p;let g=e.unalias((u=l.Action)===null||u===void 0?void 0:u.toString()),m=n.actions[g];return m||(m=(p=e.getConvertedActionImport(g))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(g),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${g}')`),m}),l}o(zT,"parseRecord");function y5(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(y5,"getOrInferCollectionType");function kR(e,t,n,i,r,a,s){switch(y5(a)){case"PropertyPath":return a.map((u,p)=>DR(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>ur(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>_R(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>VR(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>zT(e,n,t,i,r,u,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(u=>u);case"String":return a.map(u=>typeof u=="string"||u===void 0?u:u.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(kR,"parseCollection");function v5(e){return!!e.targetTypeName}o(v5,"isV4NavigationProperty");function T5(e,t,n){var i;let r;if(n.record)r=zT(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=wR(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=kR(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[eo]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,Tg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Ae.lazy)(r,"annotations",UR(e,n,r))}catch{}return r}o(T5,"convertAnnotation");var YT=class YT{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Ae.mergeAnnotations)(this.rawMetadata.references,...i)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,$R)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,Ae.addGetByValue)(i,"name"),(0,Ae.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Ae.alias)(Tg.VocabularyReferences,t);return(0,Ae.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Ae.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(YT,"Converter");var QT=YT;function Zf(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(Zf,"resolveEntityType");function jR(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Ae.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(jR,"resolveNavigationPropertyBindings");function aa(e,t){let n=t.annotations;return()=>Eg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(aa,"resolveAnnotations");function UR(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[eo]=n[eo],a.fullyQualifiedName=`${i}@${a.term}`}),Eg(e,n,r??[])}}o(UR,"resolveAnnotationsOnAnnotation");function Eg(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,Ae.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>T5(u,t,p))),i},{})}o(Eg,"createAnnotationsObject");function $R(e,t){let n=t;return(0,Ae.lazy)(n,"annotations",aa(e,t)),(0,Ae.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,HR)),(0,Ae.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,BR)),(0,Ae.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,WR)),n}o($R,"convertEntityContainer");function BR(e,t){let n=t;(0,Ae.lazy)(n,"entityType",Zf(e,t.entityTypeName)),(0,Ae.lazy)(n,"annotations",aa(e,n));let i=t.navigationPropertyBinding;return(0,Ae.lazy)(n,"navigationPropertyBinding",jR(e,i)),n}o(BR,"convertSingleton");function HR(e,t){let n=t;(0,Ae.lazy)(n,"entityType",Zf(e,t.entityTypeName)),(0,Ae.lazy)(n,"annotations",aa(e,n));let i=t.navigationPropertyBinding;return(0,Ae.lazy)(n,"navigationPropertyBinding",jR(e,i)),n}o(HR,"convertEntitySet");function E5(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Ae.lazy)(n,"annotations",aa(e,t)),(0,Ae.lazy)(n,"keys",e.convert(t.keys,qT)),(0,Ae.lazy)(n,"entityProperties",e.convert(t.entityProperties,qT)),(0,Ae.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,GR)),(0,Ae.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=ur(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(E5,"convertEntityType");function qT(e,t){let n=t;return(0,Ae.lazy)(n,"annotations",aa(e,t)),(0,Ae.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(qT,"convertProperty");function GR(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!v5(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,Ae.lazy)(a,"targetType",Zf(e,t.targetTypeName)),(0,Ae.lazy)(a,"annotations",aa(e,t)),a}o(GR,"convertNavigationProperty");function WR(e,t){let n=t;return(0,Ae.lazy)(n,"annotations",aa(e,t)),(0,Ae.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(WR,"convertActionImport");function b5(e,t){let n=t;return n.sourceType&&(0,Ae.lazy)(n,"sourceEntityType",Zf(e,t.sourceType)),n.returnType&&(0,Ae.lazy)(n,"returnEntityType",Zf(e,t.returnType)),(0,Ae.lazy)(n,"parameters",e.convert(t.parameters,A5)),(0,Ae.lazy)(n,"annotations",()=>{let i=(0,Ae.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Eg(e,t,a)}),n}o(b5,"convertAction");function A5(e,t){let n=t;return(0,Ae.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Ae.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Eg(e,t,a)}),n}o(A5,"convertActionParameter");function S5(e,t){let n=t;return(0,Ae.lazy)(n,"properties",e.convert(t.properties,qT)),(0,Ae.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,GR)),(0,Ae.lazy)(n,"annotations",aa(e,t)),n}o(S5,"convertComplexType");function P5(e,t){let n=t;return(0,Ae.lazy)(n,"annotations",aa(e,t)),n}o(P5,"convertTypeDefinition");function C5(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Tg.VocabularyReferences,diagnostics:[]},n=new QT(e,t);return(0,Ae.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,$R)),(0,Ae.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,HR)),(0,Ae.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,BR)),(0,Ae.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,E5)),(0,Ae.lazy)(t,"actions",n.convert(n.rawSchema.actions,b5)),(0,Ae.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,S5)),(0,Ae.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,WR)),(0,Ae.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,P5)),t.resolvePath=o(function(r){let a=ur(n,void 0,r);return a.target&&oa(a.objectPath,a.target),a},"resolvePath"),t}o(C5,"convert");bg.convert=C5});var zR=qe(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.revertTermToGenericType=void 0;var x5=vg();function I5(e,t){var n,i,r,a,s,l,u;let p;if(Array.isArray(t))p={type:"Collection",Collection:t.map(g=>Ag(e,g))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let g=t.valueOf().split(".");g.length>1&&e.find(m=>m.alias===g[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((u=t.isBoolean)===null||u===void 0)&&u.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:Ag(e,t)});return p}o(I5,"revertObjectToRawType");function XR(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=I5(e,t);break}return n}o(XR,"revertValueToRawType");var O5=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function QR(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=qR(e,t[i][r]);if(!a.term){let s=(0,x5.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(QR,"revertAnnotationsToRawType");function Ag(e,t){if(typeof t=="string")return t;if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(O5.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:XR(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],QR(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(Ag,"revertCollectionItemToRawType");function qR(e,t){let n={term:t.term,qualifier:t.qualifier};return Array.isArray(t)?(t.hasOwnProperty("annotations")&&Object.keys(t.annotations).length>0&&(n.annotations=[],QR(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Ag(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Ag(e,t)}:{...n,value:XR(e,t)}}o(qR,"revertTermToGenericType");Sg.revertTermToGenericType=qR});var YR=qe(sa=>{"use strict";var N5=sa&&sa.__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]}),JT=sa&&sa.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&N5(t,e,n)};Object.defineProperty(sa,"__esModule",{value:!0});JT(KR(),sa);JT(vg(),sa);JT(zR(),sa)});var iE=qe(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.MergedRawMetadata=Ha.RawMetadataInstance=Ha.ensureArray=void 0;function L5(e){return e==null?[]:Array.isArray(e)?e:[e]}o(L5,"ensureArray");Ha.ensureArray=L5;var tE=class tE{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(tE,"RawMetadataInstance");var ZT=tE;Ha.RawMetadataInstance=ZT;var nE=class nE{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o(nE,"MergedRawMetadata");var eE=nE;Ha.MergedRawMetadata=eE});var JR=qe(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});Pg.merge=void 0;var R5=iE();function F5(...e){let t=new R5.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(F5,"merge");Pg.merge=F5});var ZR=qe(Cg=>{(function(e){e.parser=function(I,S){return new n(I,S)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(I,S){if(!(this instanceof n))return new n(I,S);var z=this;r(z),z.q=z.c="",z.bufferCheckPosition=e.MAX_BUFFER_LENGTH,z.opt=S||{},z.opt.lowercase=z.opt.lowercase||z.opt.lowercasetags,z.looseCase=z.opt.lowercase?"toLowerCase":"toUpperCase",z.tags=[],z.closed=z.closedRoot=z.sawRoot=!1,z.tag=z.error=null,z.strict=!!I,z.noscript=!!(I||z.opt.noscript),z.state=D.BEGIN,z.strictEntities=z.opt.strictEntities,z.ENTITIES=z.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),z.attribList=[],z.opt.xmlns&&(z.ns=Object.create(E)),z.opt.unquotedAttributeValues===void 0&&(z.opt.unquotedAttributeValues=!I),z.trackPosition=z.opt.position!==!1,z.trackPosition&&(z.position=z.line=z.column=0),yt(z,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(I){function S(){}o(S,"F"),S.prototype=I;var z=new S;return z}),Object.keys||(Object.keys=function(I){var S=[];for(var z in I)I.hasOwnProperty(z)&&S.push(z);return S});function i(I){for(var S=Math.max(e.MAX_BUFFER_LENGTH,10),z=0,V=0,_e=t.length;V<_e;V++){var Rt=I[t[V]].length;if(Rt>S)switch(t[V]){case"textNode":an(I);break;case"cdata":Ue(I,"oncdata",I.cdata),I.cdata="";break;case"script":Ue(I,"onscript",I.script),I.script="";break;default:en(I,"Max buffer length exceeded: "+t[V])}z=Math.max(z,Rt)}var Xe=e.MAX_BUFFER_LENGTH-z;I.bufferCheckPosition=Xe+I.position}o(i,"checkBufferLength");function r(I){for(var S=0,z=t.length;S<z;S++)I[t[S]]=""}o(r,"clearBuffers");function a(I){an(I),I.cdata!==""&&(Ue(I,"oncdata",I.cdata),I.cdata=""),I.script!==""&&(Ue(I,"onscript",I.script),I.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Lt(this)},"end"),write:at,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(I){return I!=="error"&&I!=="end"});function u(I,S){return new p(I,S)}o(u,"createStream");function p(I,S){if(!(this instanceof p))return new p(I,S);s.apply(this),this._parser=new n(I,S),this.writable=!0,this.readable=!0;var z=this;this._parser.onend=function(){z.emit("end")},this._parser.onerror=function(V){z.emit("error",V),z._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(z,"on"+V,{get:o(function(){return z._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return z.removeAllListeners(V),z._parser["on"+V]=_e,_e;z.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(I){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(I)){if(!this._decoder){var S=require("string_decoder").StringDecoder;this._decoder=new S("utf8")}I=this._decoder.write(I)}return this._parser.write(I.toString()),this.emit("data",I),!0},p.prototype.end=function(I){return I&&I.length&&this.write(I),this._parser.end(),!0},p.prototype.on=function(I,S){var z=this;return!z._parser["on"+I]&&l.indexOf(I)!==-1&&(z._parser["on"+I]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,I),z.emit.apply(z,V)}),s.prototype.on.call(z,I,S)};var g="[CDATA[",m="DOCTYPE",v="http://www.w3.org/XML/1998/namespace",A="http://www.w3.org/2000/xmlns/",E={xml:v,xmlns:A},O=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,F=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,G=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function B(I){return I===" "||I===`
|
|
19
|
+
</Annotations>`),r}o(wR,"inferTypeFromTerm");function g5(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(g5,"isDataFieldWithForAction");function m5(e,t,n,i,r){let a;return!r.type&&t?a=wR(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(m5,"parseRecordType");function zT(e,t,n,i,r,a,s){let l={$Type:m5(e,t,n,i,a),fullyQualifiedName:s,[to]:n,__source:r};for(let u of a.propertyValues)(0,Ae.lazy)(l,u.name,()=>VR(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Ae.lazy)(l,"annotations",jR(e,a,l)),g5(l)&&(0,Ae.lazy)(l,"ActionTarget",()=>{var u,p;let g=e.unalias((u=l.Action)===null||u===void 0?void 0:u.toString()),m=n.actions[g];return m||(m=(p=e.getConvertedActionImport(g))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(g),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${g}')`),m}),l}o(zT,"parseRecord");function h5(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(h5,"getOrInferCollectionType");function MR(e,t,n,i,r,a,s){switch(h5(a)){case"PropertyPath":return a.map((u,p)=>FR(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>ur(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>DR(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>_R(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>zT(e,n,t,i,r,u,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(u=>u);case"String":return a.map(u=>typeof u=="string"||u===void 0?u:u.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(MR,"parseCollection");function y5(e){return!!e.targetTypeName}o(y5,"isV4NavigationProperty");function v5(e,t,n){var i;let r;if(n.record)r=zT(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=VR(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=MR(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[to]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,Tg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Ae.lazy)(r,"annotations",jR(e,n,r))}catch{}return r}o(v5,"convertAnnotation");var YT=class YT{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Ae.mergeAnnotations)(this.rawMetadata.references,...i)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,UR)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,Ae.addGetByValue)(i,"name"),(0,Ae.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Ae.alias)(Tg.VocabularyReferences,t);return(0,Ae.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Ae.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(YT,"Converter");var QT=YT;function Zf(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(Zf,"resolveEntityType");function kR(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Ae.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(kR,"resolveNavigationPropertyBindings");function aa(e,t){let n=t.annotations;return()=>Eg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(aa,"resolveAnnotations");function jR(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[to]=n[to],a.fullyQualifiedName=`${i}@${a.term}`}),Eg(e,n,r??[])}}o(jR,"resolveAnnotationsOnAnnotation");function Eg(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,Ae.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>v5(u,t,p))),i},{})}o(Eg,"createAnnotationsObject");function UR(e,t){let n=t;return(0,Ae.lazy)(n,"annotations",aa(e,t)),(0,Ae.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,BR)),(0,Ae.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,$R)),(0,Ae.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,GR)),n}o(UR,"convertEntityContainer");function $R(e,t){let n=t;(0,Ae.lazy)(n,"entityType",Zf(e,t.entityTypeName)),(0,Ae.lazy)(n,"annotations",aa(e,n));let i=t.navigationPropertyBinding;return(0,Ae.lazy)(n,"navigationPropertyBinding",kR(e,i)),n}o($R,"convertSingleton");function BR(e,t){let n=t;(0,Ae.lazy)(n,"entityType",Zf(e,t.entityTypeName)),(0,Ae.lazy)(n,"annotations",aa(e,n));let i=t.navigationPropertyBinding;return(0,Ae.lazy)(n,"navigationPropertyBinding",kR(e,i)),n}o(BR,"convertEntitySet");function T5(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Ae.lazy)(n,"annotations",aa(e,t)),(0,Ae.lazy)(n,"keys",e.convert(t.keys,qT)),(0,Ae.lazy)(n,"entityProperties",e.convert(t.entityProperties,qT)),(0,Ae.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,HR)),(0,Ae.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=ur(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(T5,"convertEntityType");function qT(e,t){let n=t;return(0,Ae.lazy)(n,"annotations",aa(e,t)),(0,Ae.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(qT,"convertProperty");function HR(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!y5(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,Ae.lazy)(a,"targetType",Zf(e,t.targetTypeName)),(0,Ae.lazy)(a,"annotations",aa(e,t)),a}o(HR,"convertNavigationProperty");function GR(e,t){let n=t;return(0,Ae.lazy)(n,"annotations",aa(e,t)),(0,Ae.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(GR,"convertActionImport");function E5(e,t){let n=t;return n.sourceType&&(0,Ae.lazy)(n,"sourceEntityType",Zf(e,t.sourceType)),n.returnType&&(0,Ae.lazy)(n,"returnEntityType",Zf(e,t.returnType)),(0,Ae.lazy)(n,"parameters",e.convert(t.parameters,b5)),(0,Ae.lazy)(n,"annotations",()=>{let i=(0,Ae.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Eg(e,t,a)}),n}o(E5,"convertAction");function b5(e,t){let n=t;return(0,Ae.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Ae.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Eg(e,t,a)}),n}o(b5,"convertActionParameter");function A5(e,t){let n=t;return(0,Ae.lazy)(n,"properties",e.convert(t.properties,qT)),(0,Ae.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,HR)),(0,Ae.lazy)(n,"annotations",aa(e,t)),n}o(A5,"convertComplexType");function S5(e,t){let n=t;return(0,Ae.lazy)(n,"annotations",aa(e,t)),n}o(S5,"convertTypeDefinition");function P5(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Tg.VocabularyReferences,diagnostics:[]},n=new QT(e,t);return(0,Ae.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,UR)),(0,Ae.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,BR)),(0,Ae.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,$R)),(0,Ae.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,T5)),(0,Ae.lazy)(t,"actions",n.convert(n.rawSchema.actions,E5)),(0,Ae.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,A5)),(0,Ae.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,GR)),(0,Ae.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,S5)),t.resolvePath=o(function(r){let a=ur(n,void 0,r);return a.target&&oa(a.objectPath,a.target),a},"resolvePath"),t}o(P5,"convert");bg.convert=P5});var qR=qe(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.revertTermToGenericType=void 0;var C5=vg();function x5(e,t){var n,i,r,a,s,l,u;let p;if(Array.isArray(t))p={type:"Collection",Collection:t.map(g=>Ag(e,g))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let g=t.valueOf().split(".");g.length>1&&e.find(m=>m.alias===g[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((u=t.isBoolean)===null||u===void 0)&&u.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:Ag(e,t)});return p}o(x5,"revertObjectToRawType");function KR(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=x5(e,t);break}return n}o(KR,"revertValueToRawType");var I5=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function XR(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=QR(e,t[i][r]);if(!a.term){let s=(0,C5.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(XR,"revertAnnotationsToRawType");function Ag(e,t){if(typeof t=="string")return t;if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(I5.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:KR(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],XR(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(Ag,"revertCollectionItemToRawType");function QR(e,t){let n={term:t.term,qualifier:t.qualifier};return Array.isArray(t)?(t.hasOwnProperty("annotations")&&Object.keys(t.annotations).length>0&&(n.annotations=[],XR(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Ag(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Ag(e,t)}:{...n,value:KR(e,t)}}o(QR,"revertTermToGenericType");Sg.revertTermToGenericType=QR});var zR=qe(sa=>{"use strict";var O5=sa&&sa.__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]}),JT=sa&&sa.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&O5(t,e,n)};Object.defineProperty(sa,"__esModule",{value:!0});JT(WR(),sa);JT(vg(),sa);JT(qR(),sa)});var iE=qe(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.MergedRawMetadata=Ha.RawMetadataInstance=Ha.ensureArray=void 0;function N5(e){return e==null?[]:Array.isArray(e)?e:[e]}o(N5,"ensureArray");Ha.ensureArray=N5;var tE=class tE{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(tE,"RawMetadataInstance");var ZT=tE;Ha.RawMetadataInstance=ZT;var nE=class nE{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o(nE,"MergedRawMetadata");var eE=nE;Ha.MergedRawMetadata=eE});var YR=qe(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});Pg.merge=void 0;var L5=iE();function R5(...e){let t=new L5.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(R5,"merge");Pg.merge=R5});var JR=qe(Cg=>{(function(e){e.parser=function(I,S){return new n(I,S)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(I,S){if(!(this instanceof n))return new n(I,S);var z=this;r(z),z.q=z.c="",z.bufferCheckPosition=e.MAX_BUFFER_LENGTH,z.opt=S||{},z.opt.lowercase=z.opt.lowercase||z.opt.lowercasetags,z.looseCase=z.opt.lowercase?"toLowerCase":"toUpperCase",z.tags=[],z.closed=z.closedRoot=z.sawRoot=!1,z.tag=z.error=null,z.strict=!!I,z.noscript=!!(I||z.opt.noscript),z.state=D.BEGIN,z.strictEntities=z.opt.strictEntities,z.ENTITIES=z.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),z.attribList=[],z.opt.xmlns&&(z.ns=Object.create(E)),z.opt.unquotedAttributeValues===void 0&&(z.opt.unquotedAttributeValues=!I),z.trackPosition=z.opt.position!==!1,z.trackPosition&&(z.position=z.line=z.column=0),yt(z,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(I){function S(){}o(S,"F"),S.prototype=I;var z=new S;return z}),Object.keys||(Object.keys=function(I){var S=[];for(var z in I)I.hasOwnProperty(z)&&S.push(z);return S});function i(I){for(var S=Math.max(e.MAX_BUFFER_LENGTH,10),z=0,V=0,_e=t.length;V<_e;V++){var Rt=I[t[V]].length;if(Rt>S)switch(t[V]){case"textNode":an(I);break;case"cdata":Ue(I,"oncdata",I.cdata),I.cdata="";break;case"script":Ue(I,"onscript",I.script),I.script="";break;default:en(I,"Max buffer length exceeded: "+t[V])}z=Math.max(z,Rt)}var Xe=e.MAX_BUFFER_LENGTH-z;I.bufferCheckPosition=Xe+I.position}o(i,"checkBufferLength");function r(I){for(var S=0,z=t.length;S<z;S++)I[t[S]]=""}o(r,"clearBuffers");function a(I){an(I),I.cdata!==""&&(Ue(I,"oncdata",I.cdata),I.cdata=""),I.script!==""&&(Ue(I,"onscript",I.script),I.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Lt(this)},"end"),write:at,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(I){return I!=="error"&&I!=="end"});function u(I,S){return new p(I,S)}o(u,"createStream");function p(I,S){if(!(this instanceof p))return new p(I,S);s.apply(this),this._parser=new n(I,S),this.writable=!0,this.readable=!0;var z=this;this._parser.onend=function(){z.emit("end")},this._parser.onerror=function(V){z.emit("error",V),z._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(z,"on"+V,{get:o(function(){return z._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return z.removeAllListeners(V),z._parser["on"+V]=_e,_e;z.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(I){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(I)){if(!this._decoder){var S=require("string_decoder").StringDecoder;this._decoder=new S("utf8")}I=this._decoder.write(I)}return this._parser.write(I.toString()),this.emit("data",I),!0},p.prototype.end=function(I){return I&&I.length&&this.write(I),this._parser.end(),!0},p.prototype.on=function(I,S){var z=this;return!z._parser["on"+I]&&l.indexOf(I)!==-1&&(z._parser["on"+I]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,I),z.emit.apply(z,V)}),s.prototype.on.call(z,I,S)};var g="[CDATA[",m="DOCTYPE",v="http://www.w3.org/XML/1998/namespace",A="http://www.w3.org/2000/xmlns/",E={xml:v,xmlns:A},O=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,F=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,G=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function B(I){return I===" "||I===`
|
|
20
20
|
`||I==="\r"||I===" "}o(B,"isWhitespace");function ae(I){return I==='"'||I==="'"}o(ae,"isQuote");function Z(I){return I===">"||B(I)}o(Z,"isAttribEnd");function re(I,S){return I.test(S)}o(re,"isMatch");function Se(I,S){return!re(I,S)}o(Se,"notMatch");var D=0;e.STATE={BEGIN:D++,BEGIN_WHITESPACE:D++,TEXT:D++,TEXT_ENTITY:D++,OPEN_WAKA:D++,SGML_DECL:D++,SGML_DECL_QUOTED:D++,DOCTYPE:D++,DOCTYPE_QUOTED:D++,DOCTYPE_DTD:D++,DOCTYPE_DTD_QUOTED:D++,COMMENT_STARTING:D++,COMMENT:D++,COMMENT_ENDING:D++,COMMENT_ENDED:D++,CDATA:D++,CDATA_ENDING:D++,CDATA_ENDING_2:D++,PROC_INST:D++,PROC_INST_BODY:D++,PROC_INST_ENDING:D++,OPEN_TAG:D++,OPEN_TAG_SLASH:D++,ATTRIB:D++,ATTRIB_NAME:D++,ATTRIB_NAME_SAW_WHITE:D++,ATTRIB_VALUE:D++,ATTRIB_VALUE_QUOTED:D++,ATTRIB_VALUE_CLOSED:D++,ATTRIB_VALUE_UNQUOTED:D++,ATTRIB_VALUE_ENTITY_Q:D++,ATTRIB_VALUE_ENTITY_U:D++,CLOSE_TAG:D++,CLOSE_TAG_SAW_WHITE:D++,SCRIPT:D++,SCRIPT_ENDING:D++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(I){var S=e.ENTITIES[I],z=typeof S=="number"?String.fromCharCode(S):S;e.ENTITIES[I]=z});for(var ut in e.STATE)e.STATE[e.STATE[ut]]=ut;D=e.STATE;function yt(I,S,z){I[S]&&I[S](z)}o(yt,"emit");function Ue(I,S,z){I.textNode&&an(I),yt(I,S,z)}o(Ue,"emitNode");function an(I){I.textNode=Gn(I.opt,I.textNode),I.textNode&&yt(I,"ontext",I.textNode),I.textNode=""}o(an,"closeText");function Gn(I,S){return I.trim&&(S=S.trim()),I.normalize&&(S=S.replace(/\s+/g," ")),S}o(Gn,"textopts");function en(I,S){return an(I),I.trackPosition&&(S+=`
|
|
21
21
|
Line: `+I.line+`
|
|
22
22
|
Column: `+I.column+`
|
|
@@ -24,9 +24,9 @@ Char: `+I.c),S=new Error(S),I.error=S,yt(I,"onerror",S),I}o(en,"error");function
|
|
|
24
24
|
Actual: `+I.attribValue);else if(V==="xmlns"&&I.attribValue!==A)Re(I,"xmlns: prefix must be bound to "+A+`
|
|
25
25
|
Actual: `+I.attribValue);else{var _e=I.tag,Rt=I.tags[I.tags.length-1]||I;_e.ns===Rt.ns&&(_e.ns=Object.create(Rt.ns)),_e.ns[V]=I.attribValue}I.attribList.push([I.attribName,I.attribValue])}else I.tag.attributes[I.attribName]=I.attribValue,Ue(I,"onattribute",{name:I.attribName,value:I.attribValue});I.attribName=I.attribValue=""}o(Mt,"attrib");function sn(I,S){if(I.opt.xmlns){var z=I.tag,V=It(I.tagName);z.prefix=V.prefix,z.local=V.local,z.uri=z.ns[V.prefix]||"",z.prefix&&!z.uri&&(Re(I,"Unbound namespace prefix: "+JSON.stringify(I.tagName)),z.uri=V.prefix);var _e=I.tags[I.tags.length-1]||I;z.ns&&_e.ns!==z.ns&&Object.keys(z.ns).forEach(function(Gt){Ue(I,"onopennamespace",{prefix:Gt,uri:z.ns[Gt]})});for(var Rt=0,Xe=I.attribList.length;Rt<Xe;Rt++){var kt=I.attribList[Rt],yn=kt[0],cn=kt[1],Ht=It(yn,!0),ti=Ht.prefix,ir=Ht.local,dn=ti===""?"":z.ns[ti]||"",ui={name:yn,value:cn,prefix:ti,local:ir,uri:dn};ti&&ti!=="xmlns"&&!dn&&(Re(I,"Unbound namespace prefix: "+JSON.stringify(ti)),ui.uri=ti),I.tag.attributes[yn]=ui,Ue(I,"onattribute",ui)}I.attribList.length=0}I.tag.isSelfClosing=!!S,I.sawRoot=!0,I.tags.push(I.tag),Ue(I,"onopentag",I.tag),S||(!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(sn,"openTag");function ji(I){if(!I.tagName){Re(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}Ue(I,"onscript",I.script),I.script=""}var S=I.tags.length,z=I.tagName;I.strict||(z=z[I.looseCase]());for(var V=z;S--;){var _e=I.tags[S];if(_e.name!==V)Re(I,"Unexpected close tag");else break}if(S<0){Re(I,"Unmatched closing tag: "+I.tagName),I.textNode+="</"+I.tagName+">",I.state=D.TEXT;return}I.tagName=z;for(var Rt=I.tags.length;Rt-- >S;){var Xe=I.tag=I.tags.pop();I.tagName=I.tag.name,Ue(I,"onclosetag",I.tagName);var kt={};for(var yn in Xe.ns)kt[yn]=Xe.ns[yn];var cn=I.tags[I.tags.length-1]||I;I.opt.xmlns&&Xe.ns!==cn.ns&&Object.keys(Xe.ns).forEach(function(Ht){var ti=Xe.ns[Ht];Ue(I,"onclosenamespace",{prefix:Ht,uri:ti})})}S===0&&(I.closedRoot=!0),I.tagName=I.attribValue=I.attribName="",I.attribList.length=0,I.state=D.TEXT}o(ji,"closeTag");function Fe(I){var S=I.entity,z=S.toLowerCase(),V,_e="";return I.ENTITIES[S]?I.ENTITIES[S]:I.ENTITIES[z]?I.ENTITIES[z]:(S=z,S.charAt(0)==="#"&&(S.charAt(1)==="x"?(S=S.slice(2),V=parseInt(S,16),_e=V.toString(16)):(S=S.slice(1),V=parseInt(S,10),_e=V.toString(10))),S=S.replace(/^0+/,""),isNaN(V)||_e.toLowerCase()!==S?(Re(I,"Invalid character entity"),"&"+I.entity+";"):String.fromCodePoint(V))}o(Fe,"parseEntity");function Wn(I,S){S==="<"?(I.state=D.OPEN_WAKA,I.startTagPosition=I.position):B(S)||(Re(I,"Non-whitespace before first tag."),I.textNode=S,I.state=D.TEXT)}o(Wn,"beginWhiteSpace");function Cr(I,S){var z="";return S<I.length&&(z=I.charAt(S)),z}o(Cr,"charAt");function at(I){var S=this;if(this.error)throw this.error;if(S.closed)return en(S,"Cannot write after close. Assign an onready handler.");if(I===null)return Lt(S);typeof I=="object"&&(I=I.toString());for(var z=0,V="";V=Cr(I,z++),S.c=V,!!V;)switch(S.trackPosition&&(S.position++,V===`
|
|
26
26
|
`?(S.line++,S.column=0):S.column++),S.state){case D.BEGIN:if(S.state=D.BEGIN_WHITESPACE,V==="\uFEFF")continue;Wn(S,V);continue;case D.BEGIN_WHITESPACE:Wn(S,V);continue;case D.TEXT:if(S.sawRoot&&!S.closedRoot){for(var _e=z-1;V&&V!=="<"&&V!=="&";)V=Cr(I,z++),V&&S.trackPosition&&(S.position++,V===`
|
|
27
|
-
`?(S.line++,S.column=0):S.column++);S.textNode+=I.substring(_e,z-1)}V==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):(!B(V)&&(!S.sawRoot||S.closedRoot)&&Re(S,"Text data outside of root node."),V==="&"?S.state=D.TEXT_ENTITY:S.textNode+=V);continue;case D.SCRIPT:V==="<"?S.state=D.SCRIPT_ENDING:S.script+=V;continue;case D.SCRIPT_ENDING:V==="/"?S.state=D.CLOSE_TAG:(S.script+="<"+V,S.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(V==="!")S.state=D.SGML_DECL,S.sgmlDecl="";else if(!B(V))if(re(O,V))S.state=D.OPEN_TAG,S.tagName=V;else if(V==="/")S.state=D.CLOSE_TAG,S.tagName="";else if(V==="?")S.state=D.PROC_INST,S.procInstName=S.procInstBody="";else{if(Re(S,"Unencoded <"),S.startTagPosition+1<S.position){var Rt=S.position-S.startTagPosition;V=new Array(Rt).join(" ")+V}S.textNode+="<"+V,S.state=D.TEXT}continue;case D.SGML_DECL:if(S.sgmlDecl+V==="--"){S.state=D.COMMENT,S.comment="",S.sgmlDecl="";continue}S.doctype&&S.doctype!==!0&&S.sgmlDecl?(S.state=D.DOCTYPE_DTD,S.doctype+="<!"+S.sgmlDecl+V,S.sgmlDecl=""):(S.sgmlDecl+V).toUpperCase()===g?(Ue(S,"onopencdata"),S.state=D.CDATA,S.sgmlDecl="",S.cdata=""):(S.sgmlDecl+V).toUpperCase()===m?(S.state=D.DOCTYPE,(S.doctype||S.sawRoot)&&Re(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):V===">"?(Ue(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=D.TEXT):(ae(V)&&(S.state=D.SGML_DECL_QUOTED),S.sgmlDecl+=V);continue;case D.SGML_DECL_QUOTED:V===S.q&&(S.state=D.SGML_DECL,S.q=""),S.sgmlDecl+=V;continue;case D.DOCTYPE:V===">"?(S.state=D.TEXT,Ue(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=V,V==="["?S.state=D.DOCTYPE_DTD:ae(V)&&(S.state=D.DOCTYPE_QUOTED,S.q=V));continue;case D.DOCTYPE_QUOTED:S.doctype+=V,V===S.q&&(S.q="",S.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:V==="]"?(S.doctype+=V,S.state=D.DOCTYPE):V==="<"?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):ae(V)?(S.doctype+=V,S.state=D.DOCTYPE_DTD_QUOTED,S.q=V):S.doctype+=V;continue;case D.DOCTYPE_DTD_QUOTED:S.doctype+=V,V===S.q&&(S.state=D.DOCTYPE_DTD,S.q="");continue;case D.COMMENT:V==="-"?S.state=D.COMMENT_ENDING:S.comment+=V;continue;case D.COMMENT_ENDING:V==="-"?(S.state=D.COMMENT_ENDED,S.comment=Gn(S.opt,S.comment),S.comment&&Ue(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+V,S.state=D.COMMENT);continue;case D.COMMENT_ENDED:V!==">"?(Re(S,"Malformed comment"),S.comment+="--"+V,S.state=D.COMMENT):S.doctype&&S.doctype!==!0?S.state=D.DOCTYPE_DTD:S.state=D.TEXT;continue;case D.CDATA:V==="]"?S.state=D.CDATA_ENDING:S.cdata+=V;continue;case D.CDATA_ENDING:V==="]"?S.state=D.CDATA_ENDING_2:(S.cdata+="]"+V,S.state=D.CDATA);continue;case D.CDATA_ENDING_2:V===">"?(S.cdata&&Ue(S,"oncdata",S.cdata),Ue(S,"onclosecdata"),S.cdata="",S.state=D.TEXT):V==="]"?S.cdata+="]":(S.cdata+="]]"+V,S.state=D.CDATA);continue;case D.PROC_INST:V==="?"?S.state=D.PROC_INST_ENDING:B(V)?S.state=D.PROC_INST_BODY:S.procInstName+=V;continue;case D.PROC_INST_BODY:if(!S.procInstBody&&B(V))continue;V==="?"?S.state=D.PROC_INST_ENDING:S.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(Ue(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=D.TEXT):(S.procInstBody+="?"+V,S.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:re(F,V)?S.tagName+=V:(Ci(S),V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:(B(V)||Re(S,"Invalid character in tag name"),S.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(sn(S,!0),ji(S)):(Re(S,"Forward-slash in opening tag not followed by >"),S.state=D.ATTRIB);continue;case D.ATTRIB:if(B(V))continue;V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(O,V)?(S.attribName=V,S.attribValue="",S.state=D.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case D.ATTRIB_NAME:V==="="?S.state=D.ATTRIB_VALUE:V===">"?(Re(S,"Attribute without value"),S.attribValue=S.attribName,Mt(S),sn(S)):B(V)?S.state=D.ATTRIB_NAME_SAW_WHITE:re(F,V)?S.attribName+=V:Re(S,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(V==="=")S.state=D.ATTRIB_VALUE;else{if(B(V))continue;Re(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",Ue(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",V===">"?sn(S):re(O,V)?(S.attribName=V,S.state=D.ATTRIB_NAME):(Re(S,"Invalid attribute name"),S.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(B(V))continue;ae(V)?(S.q=V,S.state=D.ATTRIB_VALUE_QUOTED):(S.opt.unquotedAttributeValues||en(S,"Unquoted attribute value"),S.state=D.ATTRIB_VALUE_UNQUOTED,S.attribValue=V);continue;case D.ATTRIB_VALUE_QUOTED:if(V!==S.q){V==="&"?S.state=D.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=V;continue}Mt(S),S.q="",S.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:B(V)?S.state=D.ATTRIB:V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(O,V)?(Re(S,"No whitespace between attributes"),S.attribName=V,S.attribValue="",S.state=D.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!Z(V)){V==="&"?S.state=D.ATTRIB_VALUE_ENTITY_U:S.attribValue+=V;continue}Mt(S),V===">"?sn(S):S.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(S.tagName)V===">"?ji(S):re(F,V)?S.tagName+=V:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=D.SCRIPT):(B(V)||Re(S,"Invalid tagname in closing tag"),S.state=D.CLOSE_TAG_SAW_WHITE);else{if(B(V))continue;Se(O,V)?S.script?(S.script+="</"+V,S.state=D.SCRIPT):Re(S,"Invalid tagname in closing tag."):S.tagName=V}continue;case D.CLOSE_TAG_SAW_WHITE:if(B(V))continue;V===">"?ji(S):Re(S,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var Xe,kt;switch(S.state){case D.TEXT_ENTITY:Xe=D.TEXT,kt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:Xe=D.ATTRIB_VALUE_QUOTED,kt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:Xe=D.ATTRIB_VALUE_UNQUOTED,kt="attribValue";break}if(V===";"){var yn=Fe(S);S.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(yn)?(S.entity="",S.state=Xe,S.write(yn)):(S[kt]+=yn,S.entity="",S.state=Xe)}else re(S.entity.length?G:j,V)?S.entity+=V:(Re(S,"Invalid character in entity name"),S[kt]+="&"+S.entity+V,S.entity="",S.state=Xe);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&i(S),S}o(at,"write");String.fromCodePoint||function(){var I=String.fromCharCode,S=Math.floor,z=o(function(){var V=16384,_e=[],Rt,Xe,kt=-1,yn=arguments.length;if(!yn)return"";for(var cn="";++kt<yn;){var Ht=Number(arguments[kt]);if(!isFinite(Ht)||Ht<0||Ht>1114111||S(Ht)!==Ht)throw RangeError("Invalid code point: "+Ht);Ht<=65535?_e.push(Ht):(Ht-=65536,Rt=(Ht>>10)+55296,Xe=Ht%1024+56320,_e.push(Rt,Xe)),(kt+1===yn||_e.length>V)&&(cn+=I.apply(null,_e),_e.length=0)}return cn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:z,configurable:!0,writable:!0}):String.fromCodePoint=z}()})(typeof Cg>"u"?Cg.sax={}:Cg)});var xg=qe((pJ,eF)=>{eF.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Ig=qe((gJ,tF)=>{var D5=xg().isArray;tF.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"&&!D5(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 oE=qe((hJ,lF)=>{var _5=ZR(),V5={on:o(function(){},"on"),parse:o(function(){},"parse")},it=Ig(),cl=xg().isArray,H,rE=!0,$e;function w5(e){return H=it.copyOptions(e),it.ensureFlagExists("ignoreDeclaration",H),it.ensureFlagExists("ignoreInstruction",H),it.ensureFlagExists("ignoreAttributes",H),it.ensureFlagExists("ignoreText",H),it.ensureFlagExists("ignoreComment",H),it.ensureFlagExists("ignoreCdata",H),it.ensureFlagExists("ignoreDoctype",H),it.ensureFlagExists("compact",H),it.ensureFlagExists("alwaysChildren",H),it.ensureFlagExists("addParent",H),it.ensureFlagExists("trim",H),it.ensureFlagExists("nativeType",H),it.ensureFlagExists("nativeTypeAttributes",H),it.ensureFlagExists("sanitize",H),it.ensureFlagExists("instructionHasAttributes",H),it.ensureFlagExists("captureSpacesBetweenElements",H),it.ensureAlwaysArrayExists(H),it.ensureKeyExists("declaration",H),it.ensureKeyExists("instruction",H),it.ensureKeyExists("attributes",H),it.ensureKeyExists("text",H),it.ensureKeyExists("comment",H),it.ensureKeyExists("cdata",H),it.ensureKeyExists("doctype",H),it.ensureKeyExists("type",H),it.ensureKeyExists("name",H),it.ensureKeyExists("elements",H),it.ensureKeyExists("parent",H),it.checkFnExists("doctype",H),it.checkFnExists("instruction",H),it.checkFnExists("cdata",H),it.checkFnExists("comment",H),it.checkFnExists("text",H),it.checkFnExists("instructionName",H),it.checkFnExists("elementName",H),it.checkFnExists("attributeName",H),it.checkFnExists("attributeValue",H),it.checkFnExists("attributes",H),H}o(w5,"validateOptions");function sF(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(sF,"nativeType");function eu(e,t){var n;if(H.compact){if(!$e[H[e+"Key"]]&&(cl(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&($e[H[e+"Key"]]=[]),$e[H[e+"Key"]]&&!cl($e[H[e+"Key"]])&&($e[H[e+"Key"]]=[$e[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,$e)),e==="instruction"&&("instructionFn"in H||"instructionNameFn"in H)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in H)t[n]=H.instructionFn(t[n],n,$e);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,$e)]=i}}cl($e[H[e+"Key"]])?$e[H[e+"Key"]].push(t):$e[H[e+"Key"]]=t}else{$e[H.elementsKey]||($e[H.elementsKey]=[]);var r={};if(r[H.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[H.nameKey]="instructionNameFn"in H?H.instructionNameFn(n,t,$e):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,$e))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,$e)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,$e)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=$e),$e[H.elementsKey].push(r)}}o(eu,"addField");function cF(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,$e)),(H.trim||"attributeValueFn"in H||"attributeNameFn"in H||H.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(H.trim&&(e[t]=e[t].trim()),H.nativeTypeAttributes&&(e[t]=sF(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,$e)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],$e)]=n}}return e}o(cF,"manipulateAttributes");function M5(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||H.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=cF(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;$e[H.declarationKey]={},Object.keys(t).length&&($e[H.declarationKey][H.attributesKey]=t),H.addParent&&($e[H.declarationKey][H.parentKey]=$e)}else{if(H.ignoreInstruction)return;H.trim&&(e.body=e.body.trim());var r={};H.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][H.attributesKey]=t):r[e.name]=e.body,eu("instruction",r)}}o(M5,"onInstruction");function nF(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=cF(t),"elementNameFn"in H&&(e=H.elementNameFn(e,$e)),H.compact){if(n={},!H.ignoreAttributes&&t&&Object.keys(t).length){n[H.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[H.attributesKey][i]=t[i])}!(e in $e)&&(cl(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&($e[e]=[]),$e[e]&&!cl($e[e])&&($e[e]=[$e[e]]),cl($e[e])?$e[e].push(n):$e[e]=n}else $e[H.elementsKey]||($e[H.elementsKey]=[]),n={},n[H.typeKey]="element",n[H.nameKey]=e,!H.ignoreAttributes&&t&&Object.keys(t).length&&(n[H.attributesKey]=t),H.alwaysChildren&&(n[H.elementsKey]=[]),$e[H.elementsKey].push(n);n[H.parentKey]=$e,$e=n}o(nF,"onStartElement");function iF(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=sF(e)),H.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),eu("text",e))}o(iF,"onText");function rF(e){H.ignoreComment||(H.trim&&(e=e.trim()),eu("comment",e))}o(rF,"onComment");function oF(e){var t=$e[H.parentKey];H.addParent||delete $e[H.parentKey],$e=t}o(oF,"onEndElement");function k5(e){H.ignoreCdata||(H.trim&&(e=e.trim()),eu("cdata",e))}o(k5,"onCdata");function j5(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),eu("doctype",e))}o(j5,"onDoctype");function aF(e){e.note=e}o(aF,"onError");lF.exports=function(e,t){var n=rE?_5.parser(!0,{}):n=new V5.Parser("UTF-8"),i={};if($e=i,H=w5(t),rE?(n.opt={strictEntities:!0},n.onopentag=nF,n.ontext=iF,n.oncomment=rF,n.onclosetag=oF,n.onerror=aF,n.oncdata=k5,n.ondoctype=j5,n.onprocessinginstruction=M5):(n.on("startElement",nF),n.on("text",iF),n.on("comment",rF),n.on("endElement",oF),n.on("error",aF)),rE)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[H.elementsKey]){var r=i[H.elementsKey];delete i[H.elementsKey],i[H.elementsKey]=r,delete i.text}return i}});var pF=qe((vJ,uF)=>{var fF=Ig(),U5=oE();function $5(e){var t=fF.copyOptions(e);return fF.ensureSpacesExists(t),t}o($5,"validateOptions");uF.exports=function(e,t){var n,i,r,a;return n=$5(t),i=U5(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 sE=qe((EJ,bF)=>{var ct=Ig(),B5=xg().isArray,mi,hi;function H5(e){var t=ct.copyOptions(e);return ct.ensureFlagExists("ignoreDeclaration",t),ct.ensureFlagExists("ignoreInstruction",t),ct.ensureFlagExists("ignoreAttributes",t),ct.ensureFlagExists("ignoreText",t),ct.ensureFlagExists("ignoreComment",t),ct.ensureFlagExists("ignoreCdata",t),ct.ensureFlagExists("ignoreDoctype",t),ct.ensureFlagExists("compact",t),ct.ensureFlagExists("indentText",t),ct.ensureFlagExists("indentCdata",t),ct.ensureFlagExists("indentAttributes",t),ct.ensureFlagExists("indentInstruction",t),ct.ensureFlagExists("fullTagEmptyElement",t),ct.ensureFlagExists("noQuotesForNativeAttributes",t),ct.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ct.ensureKeyExists("declaration",t),ct.ensureKeyExists("instruction",t),ct.ensureKeyExists("attributes",t),ct.ensureKeyExists("text",t),ct.ensureKeyExists("comment",t),ct.ensureKeyExists("cdata",t),ct.ensureKeyExists("doctype",t),ct.ensureKeyExists("type",t),ct.ensureKeyExists("name",t),ct.ensureKeyExists("elements",t),ct.checkFnExists("doctype",t),ct.checkFnExists("instruction",t),ct.checkFnExists("cdata",t),ct.checkFnExists("comment",t),ct.checkFnExists("text",t),ct.checkFnExists("instructionName",t),ct.checkFnExists("elementName",t),ct.checkFnExists("attributeName",t),ct.checkFnExists("attributeValue",t),ct.checkFnExists("attributes",t),ct.checkFnExists("fullTagEmptyElement",t),t}o(H5,"validateOptions");function Io(e,t,n){return(!n&&e.spaces?`
|
|
28
|
-
`:"")+Array(t+1).join(e.spaces)}o(Io,"writeIndentation");function Og(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,hi,mi));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,hi,mi):i,l.push(t.spaces&&t.indentAttributes?Io(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,hi,mi):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Io(t,n,!1)),l.join("")}o(Og,"writeAttributes");function
|
|
29
|
-
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(W5,"writeElement");function vF(e,t,n,i){return e.reduce(function(r,a){var s=Io(t,n,i&&!r);switch(a.type){case"element":return r+s+W5(a,t,n);case"comment":return r+s+mF(a[t.commentKey],t);case"doctype":return r+s+yF(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+hF(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+aE(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+gF(l,t,n)}},"")}o(vF,"writeElements");function TF(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(TF,"hasContentCompact");function K5(e,t,n,i,r){mi=e,hi=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(">"+aE(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Og(e[n.attributesKey],n,i));var l=TF(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(EF(e,n,i+1,!1)),mi=e,hi=t,t&&s.push((r?Io(n,i,!1):"")+"</"+a+">"),s.join("")}o(K5,"writeElementCompact");function EF(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=B5(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(dF(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Io(t,n,i):"")+gF(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Io(t,n,i):"")+aE(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Io(t,n,i):"")+hF(s[r],t));break;case t.doctypeKey:l.push(Io(t,n,i)+yF(s[r],t));break;case t.commentKey:l.push(Io(t,n,i)+mF(s[r],t));break;default:l.push(Io(t,n,i)+K5(s[r],a,t,n,TF(s[r],t)))}i=i&&!l.length}return l.join("")}o(EF,"writeElementsCompact");bF.exports=function(e,t){t=H5(t);var n=[];return mi=e,hi="_root_",t.compact?n.push(EF(e,t,0,!0)):(e[t.declarationKey]&&n.push(dF(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(vF(e[t.elementsKey],t,0,!n.length))),n.join("")}});var SF=qe((AJ,AF)=>{var X5=sE();AF.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 X5(n,t)}});var Qs=qe((SJ,PF)=>{var Q5=oE(),q5=pF(),z5=sE(),Y5=SF();PF.exports={xml2js:Q5,xml2json:q5,js2xml:z5,json2xml:Y5}});var LF=qe(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.convertEntityTypeAnnotations=Wi.convertPropertyAnnotations=Wi.convertNavigationPropertyAnnotations=Wi.convertEntitySetAnnotations=Wi.convertGenericAnnotations=Wi.convertV2Annotations=void 0;function J5(e,t,n){let i=[];switch(t){case"EntitySet":xF(e,i);break;case"EntityType":NF(e,i);break;case"NavigationProperty":IF(e,n,i);break;case"Property":OF(e,n,i);break;case"Singleton":break;default:break}return CF(e,n,i),i}o(J5,"convertV2Annotations");Wi.convertV2Annotations=J5;function CF(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(CF,"convertGenericAnnotations");Wi.convertGenericAnnotations=CF;function xF(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(xF,"convertEntitySetAnnotations");Wi.convertEntitySetAnnotations=xF;function IF(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(IF,"convertNavigationPropertyAnnotations");Wi.convertNavigationPropertyAnnotations=IF;function OF(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(OF,"convertPropertyAnnotations");Wi.convertPropertyAnnotations=OF;function NF(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(NF,"convertEntityTypeAnnotations");Wi.convertEntityTypeAnnotations=NF});var wF=qe(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});_g.parse=void 0;var Z5=Qs(),He=iE(),tu=LF(),Rg=/^Collection\((.+)\)$/;function eW(e){return e.Type!==null&&e.Type!==void 0}o(eW,"isV4NavProperty");function tW(e){return e.map(t=>t._attributes.Name)}o(tW,"getEntityTypeKeys");function DF(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:ll(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,tu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(qs(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(DF,"parseProperties");function nW(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(nW,"parseReferentialConstraint");function iW(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(iW,"parseV2ReferentialConstraint");function _F(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(eW(s)){let l=s.Type.match(Rg),u=l!==null,p=Oo(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:nW((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,tu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(qs(`${n}/${s.Name}`,g))}return r},[])}o(_F,"parseNavigationProperties");function rW(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(rW,"parseAssociationSets");function oW(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:iW((0,He.ensureArray)(n.ReferentialConstraint),r)}})}o(oW,"parseAssociations");function aW(e,t,n){return e.reduce((i,r)=>{let a=r.Key?tW((0,He.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=DF((0,He.ensureArray)(r.Property),a,s,t),p=_F((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,tu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(qs(g.fullyQualifiedName,m)),i.push(g),i},[])}o(aW,"parseEntityTypes");function sW(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=DF((0,He.ensureArray)(r.Property),[],a,t),l=_F((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(sW,"parseComplexTypes");function cW(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(cW,"parseTypeDefinitions");function lW(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:Oo(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,tu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(qs(l.fullyQualifiedName,u)),l})}o(lW,"parseEntitySets");function fW(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:Oo(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,tu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(qs(l.fullyQualifiedName,u)),l})}o(fW,"parseSingletons");function RF(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=>ll(u._attributes.Type).type).join(","):s=a?ll(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?ll(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=ll(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?ll(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Rg)!==null:!1}})}o(RF,"parseActions");function uW(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(Rg)!==null:!1}})}o(uW,"parseV2FunctionImport");function FF(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:Oo(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Oo(r)}})}o(FF,"parseActionImports");function pW(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=Lg(s,p,n,!1):u&&(l.value=VF({[u]:a[u]},p,n)),i.Annotation){let g=Dg((0,He.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(qs(p,g))}}return l})}o(pW,"parsePropertyValues");function Fg(e,t,n){let i=Dg((0,He.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Oo(e._attributes.Type):void 0,propertyValues:pW((0,He.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(Fg,"parseRecord");function ca(e,t){return e[t]!=null}o(ca,"isExpressionOfType");function Ng(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(Ng,"parseModelPath");function lE(e,t,n){if(ca(e,"Record")){let i=(0,He.ensureArray)(e.Record).map((r,a)=>Fg(r,t+"/"+a,n));return i.type="Record",i}else if(ca(e,"PropertyPath")){let i=(0,He.ensureArray)(e.PropertyPath).map(r=>Ng(r,"PropertyPath"));return i.type="PropertyPath",i}else if(ca(e,"NavigationPropertyPath")){let i=(0,He.ensureArray)(e.NavigationPropertyPath).map(r=>Ng(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(ca(e,"String")){let i=(0,He.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(ca(e,"AnnotationPath")){let i=(0,He.ensureArray)(e.AnnotationPath).map(r=>Ng(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(ca(e,"Path")){let i=(0,He.ensureArray)(e.Path).map(r=>Ng(r,"Path"));return i.type="Path",i}else if(ca(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(lE,"parseCollection");function Tn(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=>Lg({[i]:r},"",[],!0))):n.push(Lg({[i]:e[i]},"",[],!0))}),n}o(Tn,"parseChildren");function VF(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:lE(e.Collection,t,n)};case"Record":return{type:"Record",Record:Fg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Tn(e.Apply),$Function:Tn(e.Function)};case"And":return{type:"And",$And:Tn(e.And)};case"Or":return{type:"Or",$Or:Tn(e.Or)};case"Eq":return{type:"Eq",$Eq:Tn(e.Eq)};case"Gt":return{type:"Gt",$Gt:Tn(e.Gt)};case"Ge":return{type:"Ge",$Ge:Tn(e.Ge)};case"Lt":return{type:"Lt",$Lt:Tn(e.Lt)};case"Le":return{type:"Le",$Le:Tn(e.Le)};case"If":return{type:"If",$If:Tn(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(VF,"parseInlineExpression");function Lg(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:Tn(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:lE(e.Collection,t,n)};case"Record":return{type:"Record",Record:Fg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Tn(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:Tn(e.And)};case"Ne":return{type:"Ne",$Ne:Tn(e.Ne)};case"Not":return{type:"Not",$Not:Tn(e.Not)[0]};case"Or":return{type:"Or",$Or:Tn(e.Or)};case"Eq":return{type:"Eq",$Eq:Tn(e.Eq)};case"If":return{type:"If",$If:Tn(e.If)};case"Gt":return{type:"Gt",$Gt:Tn(e.Gt)};case"Ge":return{type:"Ge",$Ge:Tn(e.Ge)};case"Lt":return{type:"Lt",$Lt:Tn(e.Lt)};case"Le":return{type:"Le",$Le:Tn(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Lg,"parseExpression");function dW(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Oo(i),qualifier:r},l=`${t}@${Oo(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=VF(a,l,n)),e.Annotation){let p=Dg((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 ca(e,"Record")?s.record=Fg(e.Record,l,n):ca(e,"Collection")?s.collection=lE(e.Collection,l,n):u.length===1?s.value=Lg({[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(dW,"parseAnnotation");function Dg(e,t,n){return e.map(i=>dW(i,t,n))}o(Dg,"parseAnnotations");function qs(e,t){return{target:e,annotations:t}}o(qs,"createAnnotationList");function gW(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(qs(Oo(n._attributes.Target),Dg((0,He.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(gW,"parseAnnotationLists");function mW(e,t,n){let i=e._attributes.Namespace,r=[],a=aW((0,He.ensureArray)(e.EntityType),r,i),s=sW((0,He.ensureArray)(e.ComplexType),r,i),l=cW((0,He.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},v=[],A=[];if(e.EntityContainer)if(u=lW((0,He.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=fW((0,He.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=rW((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")v=v.concat(uW((0,He.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")A=A.concat(FF((0,He.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),A=A.concat(FF((0,He.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(v=v.concat(RF((0,He.ensureArray)(e.Action),i,!1)),v=v.concat(RF((0,He.ensureArray)(e.Function),i,!0)));let E=oW((0,He.ensureArray)(e.Association),i);gW((0,He.ensureArray)(e.Annotations),r);let O={};return O[n]=r,{associations:E,associationSets:g,annotations:O,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:A,entityTypes:a}}o(mW,"parseSchema");function hW(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(hW,"parseReferences");var cE={};function ll(e){let t=e.match(Rg),n=t?t[1]:e,i=Oo(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(ll,"unaliasType");function Oo(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=cE[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(Oo,"unalias");function yW(e){let t=e.reduce((A,E)=>A.concat(E.associations),[]),n=e.reduce((A,E)=>A.concat(E.associationSets),[]),i=e.reduce((A,E)=>A.concat(E.entitySets),[]),r=e.reduce((A,E)=>A.concat(E.singletons),[]),a=e.reduce((A,E)=>A.concat(E.entityTypes),[]),s=e.reduce((A,E)=>A.concat(E.actions),[]),l=e.reduce((A,E)=>A.concat(E.actionImports),[]),u=e.reduce((A,E)=>A.concat(E.complexTypes),[]),p=e.reduce((A,E)=>A.concat(E.typeDefinitions),[]),g={};e.forEach(A=>{g=Object.assign(g,A.annotations)});let m,v;return e.forEach(A=>{A.entityContainer&&Object.keys(A.entityContainer).length>0&&(m=A.entityContainer,v=A.namespace)}),i.forEach(A=>{let E=a.find(O=>O.fullyQualifiedName===A.entityTypeName);E==null||E.navigationProperties.forEach(O=>{let F=O,j=n.find(G=>G.association===F.relationship);if(j){let G=j.associationEnd.find(B=>B.entitySet!==A.fullyQualifiedName);G&&(A.navigationPropertyBinding[O.name]=G.entitySet)}})}),a.forEach(A=>{A.navigationProperties.forEach(E=>{let O=E,F=t.find(j=>j.fullyQualifiedName===O.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===A.fullyQualifiedName?O.referentialConstraint=F.referentialConstraints:O.referentialConstraint=F.referentialConstraints.map(j=>({sourceTypeName:j.targetTypeName,sourceProperty:j.targetProperty,targetTypeName:j.sourceTypeName,targetProperty:j.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:v,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(yW,"mergeSchemas");function vW(e,t){cE=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{cE[n._attributes.Alias]=n._attributes.Namespace})}o(vW,"createAliasMap");function TW(e,t="serviceFile"){let n=(0,Z5.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,He.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=hW((0,He.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));vW(a,r);let s=r.map(u=>mW(u,i,t));return new He.RawMetadataInstance(t,i,yW(s),a)}o(TW,"parse");_g.parse=TW});var MF=qe(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.parse=fl.merge=void 0;var EW=JR();Object.defineProperty(fl,"merge",{enumerable:!0,get:o(function(){return EW.merge},"get")});var bW=wF();Object.defineProperty(fl,"parse",{enumerable:!0,get:o(function(){return bW.parse},"get")})});var JF=qe(()=>{var YF;(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 ws(Object.create(null))}:u?function(){return ws({__proto__:null})}:function(){return ws({})},has:p?function(k,$){return i.call(k,$)}:function(k,$){return $ in k},get:p?function(k,$){return i.call(k,$)?k[$]:void 0}:function(k,$){return k[$]}},m=Object.getPrototypeOf(Function),v=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Nf(),A=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Lf(),E=typeof WeakMap=="function"?WeakMap:Rf(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,F=Ui(),j=Of(F);function G(k,$,Q,ce){if(Fe(Q)){if(!Rt(k))throw new TypeError;if(!kt($))throw new TypeError;return an(k,$)}else{if(!Rt(k))throw new TypeError;if(!at($))throw new TypeError;if(!at(ce)&&!Fe(ce)&&!Wn(ce))throw new TypeError;return Wn(ce)&&(ce=void 0),Q=_e(Q),Gn(k,$,Q,ce)}}o(G,"decorate"),t("decorate",G);function B(k,$){function Q(ce,Le){if(!at(ce))throw new TypeError;if(!Fe(Le)&&!yn(Le))throw new TypeError;It(k,$,ce,Le)}return o(Q,"decorator"),Q}o(B,"metadata"),t("metadata",B);function ae(k,$,Q,ce){if(!at(Q))throw new TypeError;return Fe(ce)||(ce=_e(ce)),It(k,$,Q,ce)}o(ae,"defineMetadata"),t("defineMetadata",ae);function Z(k,$,Q){if(!at($))throw new TypeError;return Fe(Q)||(Q=_e(Q)),en(k,$,Q)}o(Z,"hasMetadata"),t("hasMetadata",Z);function re(k,$,Q){if(!at($))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Lt(k,$,Q)}o(re,"hasOwnMetadata"),t("hasOwnMetadata",re);function Se(k,$,Q){if(!at($))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Re(k,$,Q)}o(Se,"getMetadata"),t("getMetadata",Se);function D(k,$,Q){if(!at($))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Ci(k,$,Q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function ut(k,$){if(!at(k))throw new TypeError;return Fe($)||($=_e($)),Mt(k,$)}o(ut,"getMetadataKeys"),t("getMetadataKeys",ut);function yt(k,$){if(!at(k))throw new TypeError;return Fe($)||($=_e($)),sn(k,$)}o(yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",yt);function Ue(k,$,Q){if(!at($))throw new TypeError;if(Fe(Q)||(Q=_e(Q)),!at($))throw new TypeError;Fe(Q)||(Q=_e(Q));var ce=xr($,Q,!1);return Fe(ce)?!1:ce.OrdinaryDeleteMetadata(k,$,Q)}o(Ue,"deleteMetadata"),t("deleteMetadata",Ue);function an(k,$){for(var Q=k.length-1;Q>=0;--Q){var ce=k[Q],Le=ce($);if(!Fe(Le)&&!Wn(Le)){if(!kt(Le))throw new TypeError;$=Le}}return $}o(an,"DecorateConstructor");function Gn(k,$,Q,ce){for(var Le=k.length-1;Le>=0;--Le){var gn=k[Le],Cn=gn($,Q,ce);if(!Fe(Cn)&&!Wn(Cn)){if(!at(Cn))throw new TypeError;ce=Cn}}return ce}o(Gn,"DecorateProperty");function en(k,$,Q){var ce=Lt(k,$,Q);if(ce)return!0;var Le=Gt($);return Wn(Le)?!1:en(k,Le,Q)}o(en,"OrdinaryHasMetadata");function Lt(k,$,Q){var ce=xr($,Q,!1);return Fe(ce)?!1:z(ce.OrdinaryHasOwnMetadata(k,$,Q))}o(Lt,"OrdinaryHasOwnMetadata");function Re(k,$,Q){var ce=Lt(k,$,Q);if(ce)return Ci(k,$,Q);var Le=Gt($);if(!Wn(Le))return Re(k,Le,Q)}o(Re,"OrdinaryGetMetadata");function Ci(k,$,Q){var ce=xr($,Q,!1);if(!Fe(ce))return ce.OrdinaryGetOwnMetadata(k,$,Q)}o(Ci,"OrdinaryGetOwnMetadata");function It(k,$,Q,ce){var Le=xr(Q,ce,!0);Le.OrdinaryDefineOwnMetadata(k,$,Q,ce)}o(It,"OrdinaryDefineOwnMetadata");function Mt(k,$){var Q=sn(k,$),ce=Gt(k);if(ce===null)return Q;var Le=Mt(ce,$);if(Le.length<=0)return Q;if(Q.length<=0)return Le;for(var gn=new A,Cn=[],tt=0,me=Q;tt<me.length;tt++){var Te=me[tt],Pe=gn.has(Te);Pe||(gn.add(Te),Cn.push(Te))}for(var Ie=0,rt=Le;Ie<rt.length;Ie++){var Te=rt[Ie],Pe=gn.has(Te);Pe||(gn.add(Te),Cn.push(Te))}return Cn}o(Mt,"OrdinaryMetadataKeys");function sn(k,$){var Q=xr(k,$,!1);return Q?Q.OrdinaryOwnMetadataKeys(k,$):[]}o(sn,"OrdinaryOwnMetadataKeys");function ji(k){if(k===null)return 1;switch(typeof k){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return k===null?1:6;default:return 6}}o(ji,"Type");function Fe(k){return k===void 0}o(Fe,"IsUndefined");function Wn(k){return k===null}o(Wn,"IsNull");function Cr(k){return typeof k=="symbol"}o(Cr,"IsSymbol");function at(k){return typeof k=="object"?k!==null:typeof k=="function"}o(at,"IsObject");function I(k,$){switch(ji(k)){case 0:return k;case 1:return k;case 2:return k;case 3:return k;case 4:return k;case 5:return k}var Q=$===3?"string":$===5?"number":"default",ce=Ht(k,a);if(ce!==void 0){var Le=ce.call(k,Q);if(at(Le))throw new TypeError;return Le}return S(k,Q==="default"?"number":Q)}o(I,"ToPrimitive");function S(k,$){if($==="string"){var Q=k.toString;if(Xe(Q)){var ce=Q.call(k);if(!at(ce))return ce}var Le=k.valueOf;if(Xe(Le)){var ce=Le.call(k);if(!at(ce))return ce}}else{var Le=k.valueOf;if(Xe(Le)){var ce=Le.call(k);if(!at(ce))return ce}var gn=k.toString;if(Xe(gn)){var ce=gn.call(k);if(!at(ce))return ce}}throw new TypeError}o(S,"OrdinaryToPrimitive");function z(k){return!!k}o(z,"ToBoolean");function V(k){return""+k}o(V,"ToString");function _e(k){var $=I(k,3);return Cr($)?$:V($)}o(_e,"ToPropertyKey");function Rt(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Rt,"IsArray");function Xe(k){return typeof k=="function"}o(Xe,"IsCallable");function kt(k){return typeof k=="function"}o(kt,"IsConstructor");function yn(k){switch(ji(k)){case 3:return!0;case 4:return!0;default:return!1}}o(yn,"IsPropertyKey");function cn(k,$){return k===$||k!==k&&$!==$}o(cn,"SameValueZero");function Ht(k,$){var Q=k[$];if(Q!=null){if(!Xe(Q))throw new TypeError;return Q}}o(Ht,"GetMethod");function ti(k){var $=Ht(k,s);if(!Xe($))throw new TypeError;var Q=$.call(k);if(!at(Q))throw new TypeError;return Q}o(ti,"GetIterator");function ir(k){return k.value}o(ir,"IteratorValue");function dn(k){var $=k.next();return $.done?!1:$}o(dn,"IteratorStep");function ui(k){var $=k.return;$&&$.call(k)}o(ui,"IteratorClose");function Gt(k){var $=Object.getPrototypeOf(k);if(typeof k!="function"||k===m||$!==m)return $;var Q=k.prototype,ce=Q&&Object.getPrototypeOf(Q);if(ce==null||ce===Object.prototype)return $;var Le=ce.constructor;return typeof Le!="function"||Le===k?$:Le}o(Gt,"OrdinaryGetPrototypeOf");function qo(){var k;!Fe(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=Vs(n.Reflect));var $,Q,ce,Le=new E,gn={registerProvider:Cn,getProvider:me,setProvider:Pe};return gn;function Cn(Ie){if(!Object.isExtensible(gn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Ie:break;case Fe($):$=Ie;break;case $===Ie:break;case Fe(Q):Q=Ie;break;case Q===Ie:break;default:ce===void 0&&(ce=new A),ce.add(Ie);break}}function tt(Ie,rt){if(!Fe($)){if($.isProviderFor(Ie,rt))return $;if(!Fe(Q)){if(Q.isProviderFor(Ie,rt))return $;if(!Fe(ce))for(var Wt=ti(ce);;){var ln=dn(Wt);if(!ln)return;var rr=ir(ln);if(rr.isProviderFor(Ie,rt))return ui(Wt),rr}}}if(!Fe(k)&&k.isProviderFor(Ie,rt))return k}function me(Ie,rt){var Wt=Le.get(Ie),ln;return Fe(Wt)||(ln=Wt.get(rt)),Fe(ln)&&(ln=tt(Ie,rt),Fe(ln)||(Fe(Wt)&&(Wt=new v,Le.set(Ie,Wt)),Wt.set(rt,ln))),ln}function Te(Ie){if(Fe(Ie))throw new TypeError;return $===Ie||Q===Ie||!Fe(ce)&&ce.has(Ie)}function Pe(Ie,rt,Wt){if(!Te(Wt))throw new Error("Metadata provider not registered.");var ln=me(Ie,rt);if(ln!==Wt){if(!Fe(ln))return!1;var rr=Le.get(Ie);Fe(rr)&&(rr=new v,Le.set(Ie,rr)),rr.set(rt,Wt)}return!0}}o(qo,"CreateMetadataRegistry");function Ui(){var k;return!Fe(O)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[O]),Fe(k)&&(k=qo()),!Fe(O)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Ui,"GetOrCreateMetadataRegistry");function Of(k){var $=new E,Q={isProviderFor:o(function(Te,Pe){var Ie=$.get(Te);return Fe(Ie)?!1:Ie.has(Pe)},"isProviderFor"),OrdinaryDefineOwnMetadata:Cn,OrdinaryHasOwnMetadata:Le,OrdinaryGetOwnMetadata:gn,OrdinaryOwnMetadataKeys:tt,OrdinaryDeleteMetadata:me};return F.registerProvider(Q),Q;function ce(Te,Pe,Ie){var rt=$.get(Te),Wt=!1;if(Fe(rt)){if(!Ie)return;rt=new v,$.set(Te,rt),Wt=!0}var ln=rt.get(Pe);if(Fe(ln)){if(!Ie)return;if(ln=new v,rt.set(Pe,ln),!k.setProvider(Te,Pe,Q))throw rt.delete(Pe),Wt&&$.delete(Te),new Error("Wrong provider for target.")}return ln}o(ce,"GetOrCreateMetadataMap");function Le(Te,Pe,Ie){var rt=ce(Pe,Ie,!1);return Fe(rt)?!1:z(rt.has(Te))}o(Le,"OrdinaryHasOwnMetadata");function gn(Te,Pe,Ie){var rt=ce(Pe,Ie,!1);if(!Fe(rt))return rt.get(Te)}o(gn,"OrdinaryGetOwnMetadata");function Cn(Te,Pe,Ie,rt){var Wt=ce(Ie,rt,!0);Wt.set(Te,Pe)}o(Cn,"OrdinaryDefineOwnMetadata");function tt(Te,Pe){var Ie=[],rt=ce(Te,Pe,!1);if(Fe(rt))return Ie;for(var Wt=rt.keys(),ln=ti(Wt),rr=0;;){var vd=dn(ln);if(!vd)return Ie.length=rr,Ie;var uv=ir(vd);try{Ie[rr]=uv}catch(Ff){try{ui(ln)}finally{throw Ff}}rr++}}o(tt,"OrdinaryOwnMetadataKeys");function me(Te,Pe,Ie){var rt=ce(Pe,Ie,!1);if(Fe(rt)||!rt.delete(Te))return!1;if(rt.size===0){var Wt=$.get(Pe);Fe(Wt)||(Wt.delete(Ie),Wt.size===0&&$.delete(Wt))}return!0}o(me,"OrdinaryDeleteMetadata")}o(Of,"CreateMetadataProvider");function Vs(k){var $=k.defineMetadata,Q=k.hasOwnMetadata,ce=k.getOwnMetadata,Le=k.getOwnMetadataKeys,gn=k.deleteMetadata,Cn=new E,tt={isProviderFor:o(function(me,Te){var Pe=Cn.get(me);return!Fe(Pe)&&Pe.has(Te)?!0:Le(me,Te).length?(Fe(Pe)&&(Pe=new A,Cn.set(me,Pe)),Pe.add(Te),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:$,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Le,OrdinaryDeleteMetadata:gn};return tt}o(Vs,"CreateFallbackProvider");function xr(k,$,Q){var ce=F.getProvider(k,$);if(!Fe(ce))return ce;if(Q){if(F.setProvider(k,$,j))return j;throw new Error("Illegal state.")}}o(xr,"GetMetadataProvider");function Nf(){var k={},$=[],Q=function(){function tt(me,Te,Pe){this._index=0,this._keys=me,this._values=Te,this._selector=Pe}return o(tt,"MapIterator"),tt.prototype["@@iterator"]=function(){return this},tt.prototype[s]=function(){return this},tt.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=$,this._values=$):this._index++,{value:Te,done:!1}}return{value:void 0,done:!0}},tt.prototype.throw=function(me){throw this._index>=0&&(this._index=-1,this._keys=$,this._values=$),me},tt.prototype.return=function(me){return this._index>=0&&(this._index=-1,this._keys=$,this._values=$),{value:me,done:!0}},tt}(),ce=function(){function tt(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(tt,"Map"),Object.defineProperty(tt.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),tt.prototype.has=function(me){return this._find(me,!1)>=0},tt.prototype.get=function(me){var Te=this._find(me,!1);return Te>=0?this._values[Te]:void 0},tt.prototype.set=function(me,Te){var Pe=this._find(me,!0);return this._values[Pe]=Te,this},tt.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--,cn(me,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},tt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},tt.prototype.keys=function(){return new Q(this._keys,this._values,Le)},tt.prototype.values=function(){return new Q(this._keys,this._values,gn)},tt.prototype.entries=function(){return new Q(this._keys,this._values,Cn)},tt.prototype["@@iterator"]=function(){return this.entries()},tt.prototype[s]=function(){return this.entries()},tt.prototype._find=function(me,Te){if(!cn(this._cacheKey,me)){this._cacheIndex=-1;for(var Pe=0;Pe<this._keys.length;Pe++)if(cn(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},tt}();return ce;function Le(tt,me){return tt}function gn(tt,me){return me}function Cn(tt,me){return[tt,me]}}o(Nf,"CreateMapPolyfill");function Lf(){var k=function(){function $(){this._map=new v}return o($,"Set"),Object.defineProperty($.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),$.prototype.has=function(Q){return this._map.has(Q)},$.prototype.add=function(Q){return this._map.set(Q,Q),this},$.prototype.delete=function(Q){return this._map.delete(Q)},$.prototype.clear=function(){this._map.clear()},$.prototype.keys=function(){return this._map.keys()},$.prototype.values=function(){return this._map.keys()},$.prototype.entries=function(){return this._map.entries()},$.prototype["@@iterator"]=function(){return this.keys()},$.prototype[s]=function(){return this.keys()},$}();return k}o(Lf,"CreateSetPolyfill");function Rf(){var k=16,$=g.create(),Q=ce();return function(){function me(){this._key=ce()}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=ce()},me}();function ce(){var me;do me="@@WeakMap@@"+tt();while(g.has($,me));return $[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 gn(me,Te){for(var Pe=0;Pe<Te;++Pe)me[Pe]=Math.random()*255|0;return me}function Cn(me){if(typeof Uint8Array=="function"){var Te=new Uint8Array(me);return typeof crypto<"u"?crypto.getRandomValues(Te):typeof msCrypto<"u"?msCrypto.getRandomValues(Te):gn(Te,me),Te}return gn(new Array(me),me)}function tt(){var me=Cn(k);me[6]=me[6]&79|64,me[8]=me[8]&191|128;for(var Te="",Pe=0;Pe<k;++Pe){var Ie=me[Pe];(Pe===4||Pe===6||Pe===8)&&(Te+="-"),Ie<16&&(Te+="0"),Te+=Ie.toString(16).toLowerCase()}return Te}}o(Rf,"CreateWeakMapPolyfill");function ws(k){return k.__=void 0,delete k.__,k}o(ws,"MakeDictionary")})})(YF||(YF={}))});var r0=qe((WJ,i0)=>{var XW=0,n0="changeUtils: ";function QW(){return"id-"+new Date().valueOf()+"-"+XW++}o(QW,"uid");function qW(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(qW,"appendComponentToReference");function zW(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return qW(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(zW,"getFlexReference");function YW(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(YW,"getAppVersion");function JW(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(JW,"getProjectId");function t0(e){return JSON.stringify({fileName:e.id||QW().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:n0+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(t0,"createString");i0.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(n0,""),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=zW(t),e.appVersion=YW(t),e.projectId=JW(t,e.reference),t0(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 t0(e)},"toString")}});var a0=qe((XJ,o0)=>{o0.exports={change:r0()}});var Y0=qe(kr=>{"use strict";var D8=/[|\\{}()[\]^$+*?.]/g,_8=Object.prototype.hasOwnProperty,ZE=o(function(e,t){return _8.apply(e,[t])},"hasOwn");kr.escapeRegExpChars=function(e){return e?String(e).replace(D8,"\\$&"):""};var V8={"&":"&","<":"<",">":">",'"':""","'":"'"},w8=/[&<>'"]/g;function M8(e){return V8[e]||e}o(M8,"encode_char");var k8=`var _ENCODE_HTML_RULES = {
|
|
27
|
+
`?(S.line++,S.column=0):S.column++);S.textNode+=I.substring(_e,z-1)}V==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):(!B(V)&&(!S.sawRoot||S.closedRoot)&&Re(S,"Text data outside of root node."),V==="&"?S.state=D.TEXT_ENTITY:S.textNode+=V);continue;case D.SCRIPT:V==="<"?S.state=D.SCRIPT_ENDING:S.script+=V;continue;case D.SCRIPT_ENDING:V==="/"?S.state=D.CLOSE_TAG:(S.script+="<"+V,S.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(V==="!")S.state=D.SGML_DECL,S.sgmlDecl="";else if(!B(V))if(re(O,V))S.state=D.OPEN_TAG,S.tagName=V;else if(V==="/")S.state=D.CLOSE_TAG,S.tagName="";else if(V==="?")S.state=D.PROC_INST,S.procInstName=S.procInstBody="";else{if(Re(S,"Unencoded <"),S.startTagPosition+1<S.position){var Rt=S.position-S.startTagPosition;V=new Array(Rt).join(" ")+V}S.textNode+="<"+V,S.state=D.TEXT}continue;case D.SGML_DECL:if(S.sgmlDecl+V==="--"){S.state=D.COMMENT,S.comment="",S.sgmlDecl="";continue}S.doctype&&S.doctype!==!0&&S.sgmlDecl?(S.state=D.DOCTYPE_DTD,S.doctype+="<!"+S.sgmlDecl+V,S.sgmlDecl=""):(S.sgmlDecl+V).toUpperCase()===g?(Ue(S,"onopencdata"),S.state=D.CDATA,S.sgmlDecl="",S.cdata=""):(S.sgmlDecl+V).toUpperCase()===m?(S.state=D.DOCTYPE,(S.doctype||S.sawRoot)&&Re(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):V===">"?(Ue(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=D.TEXT):(ae(V)&&(S.state=D.SGML_DECL_QUOTED),S.sgmlDecl+=V);continue;case D.SGML_DECL_QUOTED:V===S.q&&(S.state=D.SGML_DECL,S.q=""),S.sgmlDecl+=V;continue;case D.DOCTYPE:V===">"?(S.state=D.TEXT,Ue(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=V,V==="["?S.state=D.DOCTYPE_DTD:ae(V)&&(S.state=D.DOCTYPE_QUOTED,S.q=V));continue;case D.DOCTYPE_QUOTED:S.doctype+=V,V===S.q&&(S.q="",S.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:V==="]"?(S.doctype+=V,S.state=D.DOCTYPE):V==="<"?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):ae(V)?(S.doctype+=V,S.state=D.DOCTYPE_DTD_QUOTED,S.q=V):S.doctype+=V;continue;case D.DOCTYPE_DTD_QUOTED:S.doctype+=V,V===S.q&&(S.state=D.DOCTYPE_DTD,S.q="");continue;case D.COMMENT:V==="-"?S.state=D.COMMENT_ENDING:S.comment+=V;continue;case D.COMMENT_ENDING:V==="-"?(S.state=D.COMMENT_ENDED,S.comment=Gn(S.opt,S.comment),S.comment&&Ue(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+V,S.state=D.COMMENT);continue;case D.COMMENT_ENDED:V!==">"?(Re(S,"Malformed comment"),S.comment+="--"+V,S.state=D.COMMENT):S.doctype&&S.doctype!==!0?S.state=D.DOCTYPE_DTD:S.state=D.TEXT;continue;case D.CDATA:V==="]"?S.state=D.CDATA_ENDING:S.cdata+=V;continue;case D.CDATA_ENDING:V==="]"?S.state=D.CDATA_ENDING_2:(S.cdata+="]"+V,S.state=D.CDATA);continue;case D.CDATA_ENDING_2:V===">"?(S.cdata&&Ue(S,"oncdata",S.cdata),Ue(S,"onclosecdata"),S.cdata="",S.state=D.TEXT):V==="]"?S.cdata+="]":(S.cdata+="]]"+V,S.state=D.CDATA);continue;case D.PROC_INST:V==="?"?S.state=D.PROC_INST_ENDING:B(V)?S.state=D.PROC_INST_BODY:S.procInstName+=V;continue;case D.PROC_INST_BODY:if(!S.procInstBody&&B(V))continue;V==="?"?S.state=D.PROC_INST_ENDING:S.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(Ue(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=D.TEXT):(S.procInstBody+="?"+V,S.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:re(F,V)?S.tagName+=V:(Ci(S),V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:(B(V)||Re(S,"Invalid character in tag name"),S.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(sn(S,!0),ji(S)):(Re(S,"Forward-slash in opening tag not followed by >"),S.state=D.ATTRIB);continue;case D.ATTRIB:if(B(V))continue;V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(O,V)?(S.attribName=V,S.attribValue="",S.state=D.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case D.ATTRIB_NAME:V==="="?S.state=D.ATTRIB_VALUE:V===">"?(Re(S,"Attribute without value"),S.attribValue=S.attribName,Mt(S),sn(S)):B(V)?S.state=D.ATTRIB_NAME_SAW_WHITE:re(F,V)?S.attribName+=V:Re(S,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(V==="=")S.state=D.ATTRIB_VALUE;else{if(B(V))continue;Re(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",Ue(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",V===">"?sn(S):re(O,V)?(S.attribName=V,S.state=D.ATTRIB_NAME):(Re(S,"Invalid attribute name"),S.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(B(V))continue;ae(V)?(S.q=V,S.state=D.ATTRIB_VALUE_QUOTED):(S.opt.unquotedAttributeValues||en(S,"Unquoted attribute value"),S.state=D.ATTRIB_VALUE_UNQUOTED,S.attribValue=V);continue;case D.ATTRIB_VALUE_QUOTED:if(V!==S.q){V==="&"?S.state=D.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=V;continue}Mt(S),S.q="",S.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:B(V)?S.state=D.ATTRIB:V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(O,V)?(Re(S,"No whitespace between attributes"),S.attribName=V,S.attribValue="",S.state=D.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!Z(V)){V==="&"?S.state=D.ATTRIB_VALUE_ENTITY_U:S.attribValue+=V;continue}Mt(S),V===">"?sn(S):S.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(S.tagName)V===">"?ji(S):re(F,V)?S.tagName+=V:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=D.SCRIPT):(B(V)||Re(S,"Invalid tagname in closing tag"),S.state=D.CLOSE_TAG_SAW_WHITE);else{if(B(V))continue;Se(O,V)?S.script?(S.script+="</"+V,S.state=D.SCRIPT):Re(S,"Invalid tagname in closing tag."):S.tagName=V}continue;case D.CLOSE_TAG_SAW_WHITE:if(B(V))continue;V===">"?ji(S):Re(S,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var Xe,kt;switch(S.state){case D.TEXT_ENTITY:Xe=D.TEXT,kt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:Xe=D.ATTRIB_VALUE_QUOTED,kt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:Xe=D.ATTRIB_VALUE_UNQUOTED,kt="attribValue";break}if(V===";"){var yn=Fe(S);S.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(yn)?(S.entity="",S.state=Xe,S.write(yn)):(S[kt]+=yn,S.entity="",S.state=Xe)}else re(S.entity.length?G:j,V)?S.entity+=V:(Re(S,"Invalid character in entity name"),S[kt]+="&"+S.entity+V,S.entity="",S.state=Xe);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&i(S),S}o(at,"write");String.fromCodePoint||function(){var I=String.fromCharCode,S=Math.floor,z=o(function(){var V=16384,_e=[],Rt,Xe,kt=-1,yn=arguments.length;if(!yn)return"";for(var cn="";++kt<yn;){var Ht=Number(arguments[kt]);if(!isFinite(Ht)||Ht<0||Ht>1114111||S(Ht)!==Ht)throw RangeError("Invalid code point: "+Ht);Ht<=65535?_e.push(Ht):(Ht-=65536,Rt=(Ht>>10)+55296,Xe=Ht%1024+56320,_e.push(Rt,Xe)),(kt+1===yn||_e.length>V)&&(cn+=I.apply(null,_e),_e.length=0)}return cn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:z,configurable:!0,writable:!0}):String.fromCodePoint=z}()})(typeof Cg>"u"?Cg.sax={}:Cg)});var xg=qe((uJ,ZR)=>{ZR.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Ig=qe((dJ,eF)=>{var F5=xg().isArray;eF.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"&&!F5(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 oE=qe((mJ,cF)=>{var D5=JR(),_5={on:o(function(){},"on"),parse:o(function(){},"parse")},it=Ig(),cl=xg().isArray,H,rE=!0,$e;function V5(e){return H=it.copyOptions(e),it.ensureFlagExists("ignoreDeclaration",H),it.ensureFlagExists("ignoreInstruction",H),it.ensureFlagExists("ignoreAttributes",H),it.ensureFlagExists("ignoreText",H),it.ensureFlagExists("ignoreComment",H),it.ensureFlagExists("ignoreCdata",H),it.ensureFlagExists("ignoreDoctype",H),it.ensureFlagExists("compact",H),it.ensureFlagExists("alwaysChildren",H),it.ensureFlagExists("addParent",H),it.ensureFlagExists("trim",H),it.ensureFlagExists("nativeType",H),it.ensureFlagExists("nativeTypeAttributes",H),it.ensureFlagExists("sanitize",H),it.ensureFlagExists("instructionHasAttributes",H),it.ensureFlagExists("captureSpacesBetweenElements",H),it.ensureAlwaysArrayExists(H),it.ensureKeyExists("declaration",H),it.ensureKeyExists("instruction",H),it.ensureKeyExists("attributes",H),it.ensureKeyExists("text",H),it.ensureKeyExists("comment",H),it.ensureKeyExists("cdata",H),it.ensureKeyExists("doctype",H),it.ensureKeyExists("type",H),it.ensureKeyExists("name",H),it.ensureKeyExists("elements",H),it.ensureKeyExists("parent",H),it.checkFnExists("doctype",H),it.checkFnExists("instruction",H),it.checkFnExists("cdata",H),it.checkFnExists("comment",H),it.checkFnExists("text",H),it.checkFnExists("instructionName",H),it.checkFnExists("elementName",H),it.checkFnExists("attributeName",H),it.checkFnExists("attributeValue",H),it.checkFnExists("attributes",H),H}o(V5,"validateOptions");function aF(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(aF,"nativeType");function eu(e,t){var n;if(H.compact){if(!$e[H[e+"Key"]]&&(cl(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&($e[H[e+"Key"]]=[]),$e[H[e+"Key"]]&&!cl($e[H[e+"Key"]])&&($e[H[e+"Key"]]=[$e[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,$e)),e==="instruction"&&("instructionFn"in H||"instructionNameFn"in H)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in H)t[n]=H.instructionFn(t[n],n,$e);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,$e)]=i}}cl($e[H[e+"Key"]])?$e[H[e+"Key"]].push(t):$e[H[e+"Key"]]=t}else{$e[H.elementsKey]||($e[H.elementsKey]=[]);var r={};if(r[H.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[H.nameKey]="instructionNameFn"in H?H.instructionNameFn(n,t,$e):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,$e))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,$e)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,$e)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=$e),$e[H.elementsKey].push(r)}}o(eu,"addField");function sF(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,$e)),(H.trim||"attributeValueFn"in H||"attributeNameFn"in H||H.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(H.trim&&(e[t]=e[t].trim()),H.nativeTypeAttributes&&(e[t]=aF(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,$e)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],$e)]=n}}return e}o(sF,"manipulateAttributes");function w5(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||H.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=sF(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;$e[H.declarationKey]={},Object.keys(t).length&&($e[H.declarationKey][H.attributesKey]=t),H.addParent&&($e[H.declarationKey][H.parentKey]=$e)}else{if(H.ignoreInstruction)return;H.trim&&(e.body=e.body.trim());var r={};H.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][H.attributesKey]=t):r[e.name]=e.body,eu("instruction",r)}}o(w5,"onInstruction");function tF(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=sF(t),"elementNameFn"in H&&(e=H.elementNameFn(e,$e)),H.compact){if(n={},!H.ignoreAttributes&&t&&Object.keys(t).length){n[H.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[H.attributesKey][i]=t[i])}!(e in $e)&&(cl(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&($e[e]=[]),$e[e]&&!cl($e[e])&&($e[e]=[$e[e]]),cl($e[e])?$e[e].push(n):$e[e]=n}else $e[H.elementsKey]||($e[H.elementsKey]=[]),n={},n[H.typeKey]="element",n[H.nameKey]=e,!H.ignoreAttributes&&t&&Object.keys(t).length&&(n[H.attributesKey]=t),H.alwaysChildren&&(n[H.elementsKey]=[]),$e[H.elementsKey].push(n);n[H.parentKey]=$e,$e=n}o(tF,"onStartElement");function nF(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=aF(e)),H.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),eu("text",e))}o(nF,"onText");function iF(e){H.ignoreComment||(H.trim&&(e=e.trim()),eu("comment",e))}o(iF,"onComment");function rF(e){var t=$e[H.parentKey];H.addParent||delete $e[H.parentKey],$e=t}o(rF,"onEndElement");function M5(e){H.ignoreCdata||(H.trim&&(e=e.trim()),eu("cdata",e))}o(M5,"onCdata");function k5(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),eu("doctype",e))}o(k5,"onDoctype");function oF(e){e.note=e}o(oF,"onError");cF.exports=function(e,t){var n=rE?D5.parser(!0,{}):n=new _5.Parser("UTF-8"),i={};if($e=i,H=V5(t),rE?(n.opt={strictEntities:!0},n.onopentag=tF,n.ontext=nF,n.oncomment=iF,n.onclosetag=rF,n.onerror=oF,n.oncdata=M5,n.ondoctype=k5,n.onprocessinginstruction=w5):(n.on("startElement",tF),n.on("text",nF),n.on("comment",iF),n.on("endElement",rF),n.on("error",oF)),rE)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[H.elementsKey]){var r=i[H.elementsKey];delete i[H.elementsKey],i[H.elementsKey]=r,delete i.text}return i}});var uF=qe((yJ,fF)=>{var lF=Ig(),j5=oE();function U5(e){var t=lF.copyOptions(e);return lF.ensureSpacesExists(t),t}o(U5,"validateOptions");fF.exports=function(e,t){var n,i,r,a;return n=U5(t),i=j5(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 sE=qe((TJ,EF)=>{var ct=Ig(),$5=xg().isArray,mi,hi;function B5(e){var t=ct.copyOptions(e);return ct.ensureFlagExists("ignoreDeclaration",t),ct.ensureFlagExists("ignoreInstruction",t),ct.ensureFlagExists("ignoreAttributes",t),ct.ensureFlagExists("ignoreText",t),ct.ensureFlagExists("ignoreComment",t),ct.ensureFlagExists("ignoreCdata",t),ct.ensureFlagExists("ignoreDoctype",t),ct.ensureFlagExists("compact",t),ct.ensureFlagExists("indentText",t),ct.ensureFlagExists("indentCdata",t),ct.ensureFlagExists("indentAttributes",t),ct.ensureFlagExists("indentInstruction",t),ct.ensureFlagExists("fullTagEmptyElement",t),ct.ensureFlagExists("noQuotesForNativeAttributes",t),ct.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ct.ensureKeyExists("declaration",t),ct.ensureKeyExists("instruction",t),ct.ensureKeyExists("attributes",t),ct.ensureKeyExists("text",t),ct.ensureKeyExists("comment",t),ct.ensureKeyExists("cdata",t),ct.ensureKeyExists("doctype",t),ct.ensureKeyExists("type",t),ct.ensureKeyExists("name",t),ct.ensureKeyExists("elements",t),ct.checkFnExists("doctype",t),ct.checkFnExists("instruction",t),ct.checkFnExists("cdata",t),ct.checkFnExists("comment",t),ct.checkFnExists("text",t),ct.checkFnExists("instructionName",t),ct.checkFnExists("elementName",t),ct.checkFnExists("attributeName",t),ct.checkFnExists("attributeValue",t),ct.checkFnExists("attributes",t),ct.checkFnExists("fullTagEmptyElement",t),t}o(B5,"validateOptions");function Io(e,t,n){return(!n&&e.spaces?`
|
|
28
|
+
`:"")+Array(t+1).join(e.spaces)}o(Io,"writeIndentation");function Og(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,hi,mi));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,hi,mi):i,l.push(t.spaces&&t.indentAttributes?Io(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,hi,mi):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Io(t,n,!1)),l.join("")}o(Og,"writeAttributes");function pF(e,t,n){return mi=e,hi="xml",t.ignoreDeclaration?"":"<?xml"+Og(e[t.attributesKey],t,n)+"?>"}o(pF,"writeDeclaration");function dF(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],hi,mi):i;if(typeof e[i]=="object")return mi=e,hi=r,"<?"+r+Og(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,hi,mi)),"<?"+r+(a?" "+a:"")+"?>"}o(dF,"writeInstruction");function gF(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,hi,mi):e)+"-->"}o(gF,"writeComment");function mF(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,hi,mi):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(mF,"writeCdata");function hF(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,hi,mi):e)+">"}o(hF,"writeDoctype");function aE(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,hi,mi):e)}o(aE,"writeText");function H5(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(H5,"hasContent");function G5(e,t,n){mi=e,hi=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(Og(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(yF(e[t.elementsKey],t,n+1)),mi=e,hi=e.name),i.push(t.spaces&&H5(e,t)?`
|
|
29
|
+
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(G5,"writeElement");function yF(e,t,n,i){return e.reduce(function(r,a){var s=Io(t,n,i&&!r);switch(a.type){case"element":return r+s+G5(a,t,n);case"comment":return r+s+gF(a[t.commentKey],t);case"doctype":return r+s+hF(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+mF(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+aE(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+dF(l,t,n)}},"")}o(yF,"writeElements");function vF(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(vF,"hasContentCompact");function W5(e,t,n,i,r){mi=e,hi=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(">"+aE(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Og(e[n.attributesKey],n,i));var l=vF(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(TF(e,n,i+1,!1)),mi=e,hi=t,t&&s.push((r?Io(n,i,!1):"")+"</"+a+">"),s.join("")}o(W5,"writeElementCompact");function TF(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=$5(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(pF(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Io(t,n,i):"")+dF(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Io(t,n,i):"")+aE(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Io(t,n,i):"")+mF(s[r],t));break;case t.doctypeKey:l.push(Io(t,n,i)+hF(s[r],t));break;case t.commentKey:l.push(Io(t,n,i)+gF(s[r],t));break;default:l.push(Io(t,n,i)+W5(s[r],a,t,n,vF(s[r],t)))}i=i&&!l.length}return l.join("")}o(TF,"writeElementsCompact");EF.exports=function(e,t){t=B5(t);var n=[];return mi=e,hi="_root_",t.compact?n.push(TF(e,t,0,!0)):(e[t.declarationKey]&&n.push(pF(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(yF(e[t.elementsKey],t,0,!n.length))),n.join("")}});var AF=qe((bJ,bF)=>{var K5=sE();bF.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 K5(n,t)}});var Qs=qe((AJ,SF)=>{var X5=oE(),Q5=uF(),q5=sE(),z5=AF();SF.exports={xml2js:X5,xml2json:Q5,js2xml:q5,json2xml:z5}});var NF=qe(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.convertEntityTypeAnnotations=Wi.convertPropertyAnnotations=Wi.convertNavigationPropertyAnnotations=Wi.convertEntitySetAnnotations=Wi.convertGenericAnnotations=Wi.convertV2Annotations=void 0;function Y5(e,t,n){let i=[];switch(t){case"EntitySet":CF(e,i);break;case"EntityType":OF(e,i);break;case"NavigationProperty":xF(e,n,i);break;case"Property":IF(e,n,i);break;case"Singleton":break;default:break}return PF(e,n,i),i}o(Y5,"convertV2Annotations");Wi.convertV2Annotations=Y5;function PF(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(PF,"convertGenericAnnotations");Wi.convertGenericAnnotations=PF;function CF(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(CF,"convertEntitySetAnnotations");Wi.convertEntitySetAnnotations=CF;function xF(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(xF,"convertNavigationPropertyAnnotations");Wi.convertNavigationPropertyAnnotations=xF;function IF(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(IF,"convertPropertyAnnotations");Wi.convertPropertyAnnotations=IF;function OF(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(OF,"convertEntityTypeAnnotations");Wi.convertEntityTypeAnnotations=OF});var VF=qe(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});_g.parse=void 0;var J5=Qs(),He=iE(),tu=NF(),Rg=/^Collection\((.+)\)$/;function Z5(e){return e.Type!==null&&e.Type!==void 0}o(Z5,"isV4NavProperty");function eW(e){return e.map(t=>t._attributes.Name)}o(eW,"getEntityTypeKeys");function FF(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:ll(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,tu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(qs(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(FF,"parseProperties");function tW(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(tW,"parseReferentialConstraint");function nW(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(nW,"parseV2ReferentialConstraint");function DF(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(Z5(s)){let l=s.Type.match(Rg),u=l!==null,p=Oo(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:tW((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,tu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(qs(`${n}/${s.Name}`,g))}return r},[])}o(DF,"parseNavigationProperties");function iW(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(iW,"parseAssociationSets");function rW(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:nW((0,He.ensureArray)(n.ReferentialConstraint),r)}})}o(rW,"parseAssociations");function oW(e,t,n){return e.reduce((i,r)=>{let a=r.Key?eW((0,He.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=FF((0,He.ensureArray)(r.Property),a,s,t),p=DF((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,tu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(qs(g.fullyQualifiedName,m)),i.push(g),i},[])}o(oW,"parseEntityTypes");function aW(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=FF((0,He.ensureArray)(r.Property),[],a,t),l=DF((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(aW,"parseComplexTypes");function sW(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(sW,"parseTypeDefinitions");function cW(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:Oo(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,tu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(qs(l.fullyQualifiedName,u)),l})}o(cW,"parseEntitySets");function lW(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:Oo(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,tu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(qs(l.fullyQualifiedName,u)),l})}o(lW,"parseSingletons");function LF(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=>ll(u._attributes.Type).type).join(","):s=a?ll(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?ll(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=ll(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?ll(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Rg)!==null:!1}})}o(LF,"parseActions");function fW(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(Rg)!==null:!1}})}o(fW,"parseV2FunctionImport");function RF(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:Oo(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Oo(r)}})}o(RF,"parseActionImports");function uW(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=Lg(s,p,n,!1):u&&(l.value=_F({[u]:a[u]},p,n)),i.Annotation){let g=Dg((0,He.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(qs(p,g))}}return l})}o(uW,"parsePropertyValues");function Fg(e,t,n){let i=Dg((0,He.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Oo(e._attributes.Type):void 0,propertyValues:uW((0,He.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(Fg,"parseRecord");function ca(e,t){return e[t]!=null}o(ca,"isExpressionOfType");function Ng(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(Ng,"parseModelPath");function lE(e,t,n){if(ca(e,"Record")){let i=(0,He.ensureArray)(e.Record).map((r,a)=>Fg(r,t+"/"+a,n));return i.type="Record",i}else if(ca(e,"PropertyPath")){let i=(0,He.ensureArray)(e.PropertyPath).map(r=>Ng(r,"PropertyPath"));return i.type="PropertyPath",i}else if(ca(e,"NavigationPropertyPath")){let i=(0,He.ensureArray)(e.NavigationPropertyPath).map(r=>Ng(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(ca(e,"String")){let i=(0,He.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(ca(e,"AnnotationPath")){let i=(0,He.ensureArray)(e.AnnotationPath).map(r=>Ng(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(ca(e,"Path")){let i=(0,He.ensureArray)(e.Path).map(r=>Ng(r,"Path"));return i.type="Path",i}else if(ca(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(lE,"parseCollection");function Tn(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=>Lg({[i]:r},"",[],!0))):n.push(Lg({[i]:e[i]},"",[],!0))}),n}o(Tn,"parseChildren");function _F(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:lE(e.Collection,t,n)};case"Record":return{type:"Record",Record:Fg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Tn(e.Apply),$Function:Tn(e.Function)};case"And":return{type:"And",$And:Tn(e.And)};case"Or":return{type:"Or",$Or:Tn(e.Or)};case"Eq":return{type:"Eq",$Eq:Tn(e.Eq)};case"Gt":return{type:"Gt",$Gt:Tn(e.Gt)};case"Ge":return{type:"Ge",$Ge:Tn(e.Ge)};case"Lt":return{type:"Lt",$Lt:Tn(e.Lt)};case"Le":return{type:"Le",$Le:Tn(e.Le)};case"If":return{type:"If",$If:Tn(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(_F,"parseInlineExpression");function Lg(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:Tn(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:lE(e.Collection,t,n)};case"Record":return{type:"Record",Record:Fg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Tn(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:Tn(e.And)};case"Ne":return{type:"Ne",$Ne:Tn(e.Ne)};case"Not":return{type:"Not",$Not:Tn(e.Not)[0]};case"Or":return{type:"Or",$Or:Tn(e.Or)};case"Eq":return{type:"Eq",$Eq:Tn(e.Eq)};case"If":return{type:"If",$If:Tn(e.If)};case"Gt":return{type:"Gt",$Gt:Tn(e.Gt)};case"Ge":return{type:"Ge",$Ge:Tn(e.Ge)};case"Lt":return{type:"Lt",$Lt:Tn(e.Lt)};case"Le":return{type:"Le",$Le:Tn(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Lg,"parseExpression");function pW(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Oo(i),qualifier:r},l=`${t}@${Oo(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=_F(a,l,n)),e.Annotation){let p=Dg((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 ca(e,"Record")?s.record=Fg(e.Record,l,n):ca(e,"Collection")?s.collection=lE(e.Collection,l,n):u.length===1?s.value=Lg({[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(pW,"parseAnnotation");function Dg(e,t,n){return e.map(i=>pW(i,t,n))}o(Dg,"parseAnnotations");function qs(e,t){return{target:e,annotations:t}}o(qs,"createAnnotationList");function dW(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(qs(Oo(n._attributes.Target),Dg((0,He.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(dW,"parseAnnotationLists");function gW(e,t,n){let i=e._attributes.Namespace,r=[],a=oW((0,He.ensureArray)(e.EntityType),r,i),s=aW((0,He.ensureArray)(e.ComplexType),r,i),l=sW((0,He.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},v=[],A=[];if(e.EntityContainer)if(u=cW((0,He.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=lW((0,He.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=iW((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")v=v.concat(fW((0,He.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")A=A.concat(RF((0,He.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),A=A.concat(RF((0,He.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(v=v.concat(LF((0,He.ensureArray)(e.Action),i,!1)),v=v.concat(LF((0,He.ensureArray)(e.Function),i,!0)));let E=rW((0,He.ensureArray)(e.Association),i);dW((0,He.ensureArray)(e.Annotations),r);let O={};return O[n]=r,{associations:E,associationSets:g,annotations:O,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:A,entityTypes:a}}o(gW,"parseSchema");function mW(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(mW,"parseReferences");var cE={};function ll(e){let t=e.match(Rg),n=t?t[1]:e,i=Oo(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(ll,"unaliasType");function Oo(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=cE[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(Oo,"unalias");function hW(e){let t=e.reduce((A,E)=>A.concat(E.associations),[]),n=e.reduce((A,E)=>A.concat(E.associationSets),[]),i=e.reduce((A,E)=>A.concat(E.entitySets),[]),r=e.reduce((A,E)=>A.concat(E.singletons),[]),a=e.reduce((A,E)=>A.concat(E.entityTypes),[]),s=e.reduce((A,E)=>A.concat(E.actions),[]),l=e.reduce((A,E)=>A.concat(E.actionImports),[]),u=e.reduce((A,E)=>A.concat(E.complexTypes),[]),p=e.reduce((A,E)=>A.concat(E.typeDefinitions),[]),g={};e.forEach(A=>{g=Object.assign(g,A.annotations)});let m,v;return e.forEach(A=>{A.entityContainer&&Object.keys(A.entityContainer).length>0&&(m=A.entityContainer,v=A.namespace)}),i.forEach(A=>{let E=a.find(O=>O.fullyQualifiedName===A.entityTypeName);E==null||E.navigationProperties.forEach(O=>{let F=O,j=n.find(G=>G.association===F.relationship);if(j){let G=j.associationEnd.find(B=>B.entitySet!==A.fullyQualifiedName);G&&(A.navigationPropertyBinding[O.name]=G.entitySet)}})}),a.forEach(A=>{A.navigationProperties.forEach(E=>{let O=E,F=t.find(j=>j.fullyQualifiedName===O.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===A.fullyQualifiedName?O.referentialConstraint=F.referentialConstraints:O.referentialConstraint=F.referentialConstraints.map(j=>({sourceTypeName:j.targetTypeName,sourceProperty:j.targetProperty,targetTypeName:j.sourceTypeName,targetProperty:j.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:v,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(hW,"mergeSchemas");function yW(e,t){cE=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{cE[n._attributes.Alias]=n._attributes.Namespace})}o(yW,"createAliasMap");function vW(e,t="serviceFile"){let n=(0,J5.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,He.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=mW((0,He.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));yW(a,r);let s=r.map(u=>gW(u,i,t));return new He.RawMetadataInstance(t,i,hW(s),a)}o(vW,"parse");_g.parse=vW});var wF=qe(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.parse=fl.merge=void 0;var TW=YR();Object.defineProperty(fl,"merge",{enumerable:!0,get:o(function(){return TW.merge},"get")});var EW=VF();Object.defineProperty(fl,"parse",{enumerable:!0,get:o(function(){return EW.parse},"get")})});var YF=qe(()=>{var zF;(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 ws(Object.create(null))}:u?function(){return ws({__proto__:null})}:function(){return ws({})},has:p?function(k,$){return i.call(k,$)}:function(k,$){return $ in k},get:p?function(k,$){return i.call(k,$)?k[$]:void 0}:function(k,$){return k[$]}},m=Object.getPrototypeOf(Function),v=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Nf(),A=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Lf(),E=typeof WeakMap=="function"?WeakMap:Rf(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,F=Ui(),j=Of(F);function G(k,$,Q,ce){if(Fe(Q)){if(!Rt(k))throw new TypeError;if(!kt($))throw new TypeError;return an(k,$)}else{if(!Rt(k))throw new TypeError;if(!at($))throw new TypeError;if(!at(ce)&&!Fe(ce)&&!Wn(ce))throw new TypeError;return Wn(ce)&&(ce=void 0),Q=_e(Q),Gn(k,$,Q,ce)}}o(G,"decorate"),t("decorate",G);function B(k,$){function Q(ce,Le){if(!at(ce))throw new TypeError;if(!Fe(Le)&&!yn(Le))throw new TypeError;It(k,$,ce,Le)}return o(Q,"decorator"),Q}o(B,"metadata"),t("metadata",B);function ae(k,$,Q,ce){if(!at(Q))throw new TypeError;return Fe(ce)||(ce=_e(ce)),It(k,$,Q,ce)}o(ae,"defineMetadata"),t("defineMetadata",ae);function Z(k,$,Q){if(!at($))throw new TypeError;return Fe(Q)||(Q=_e(Q)),en(k,$,Q)}o(Z,"hasMetadata"),t("hasMetadata",Z);function re(k,$,Q){if(!at($))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Lt(k,$,Q)}o(re,"hasOwnMetadata"),t("hasOwnMetadata",re);function Se(k,$,Q){if(!at($))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Re(k,$,Q)}o(Se,"getMetadata"),t("getMetadata",Se);function D(k,$,Q){if(!at($))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Ci(k,$,Q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function ut(k,$){if(!at(k))throw new TypeError;return Fe($)||($=_e($)),Mt(k,$)}o(ut,"getMetadataKeys"),t("getMetadataKeys",ut);function yt(k,$){if(!at(k))throw new TypeError;return Fe($)||($=_e($)),sn(k,$)}o(yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",yt);function Ue(k,$,Q){if(!at($))throw new TypeError;if(Fe(Q)||(Q=_e(Q)),!at($))throw new TypeError;Fe(Q)||(Q=_e(Q));var ce=xr($,Q,!1);return Fe(ce)?!1:ce.OrdinaryDeleteMetadata(k,$,Q)}o(Ue,"deleteMetadata"),t("deleteMetadata",Ue);function an(k,$){for(var Q=k.length-1;Q>=0;--Q){var ce=k[Q],Le=ce($);if(!Fe(Le)&&!Wn(Le)){if(!kt(Le))throw new TypeError;$=Le}}return $}o(an,"DecorateConstructor");function Gn(k,$,Q,ce){for(var Le=k.length-1;Le>=0;--Le){var gn=k[Le],Cn=gn($,Q,ce);if(!Fe(Cn)&&!Wn(Cn)){if(!at(Cn))throw new TypeError;ce=Cn}}return ce}o(Gn,"DecorateProperty");function en(k,$,Q){var ce=Lt(k,$,Q);if(ce)return!0;var Le=Gt($);return Wn(Le)?!1:en(k,Le,Q)}o(en,"OrdinaryHasMetadata");function Lt(k,$,Q){var ce=xr($,Q,!1);return Fe(ce)?!1:z(ce.OrdinaryHasOwnMetadata(k,$,Q))}o(Lt,"OrdinaryHasOwnMetadata");function Re(k,$,Q){var ce=Lt(k,$,Q);if(ce)return Ci(k,$,Q);var Le=Gt($);if(!Wn(Le))return Re(k,Le,Q)}o(Re,"OrdinaryGetMetadata");function Ci(k,$,Q){var ce=xr($,Q,!1);if(!Fe(ce))return ce.OrdinaryGetOwnMetadata(k,$,Q)}o(Ci,"OrdinaryGetOwnMetadata");function It(k,$,Q,ce){var Le=xr(Q,ce,!0);Le.OrdinaryDefineOwnMetadata(k,$,Q,ce)}o(It,"OrdinaryDefineOwnMetadata");function Mt(k,$){var Q=sn(k,$),ce=Gt(k);if(ce===null)return Q;var Le=Mt(ce,$);if(Le.length<=0)return Q;if(Q.length<=0)return Le;for(var gn=new A,Cn=[],tt=0,me=Q;tt<me.length;tt++){var Te=me[tt],Pe=gn.has(Te);Pe||(gn.add(Te),Cn.push(Te))}for(var Ie=0,rt=Le;Ie<rt.length;Ie++){var Te=rt[Ie],Pe=gn.has(Te);Pe||(gn.add(Te),Cn.push(Te))}return Cn}o(Mt,"OrdinaryMetadataKeys");function sn(k,$){var Q=xr(k,$,!1);return Q?Q.OrdinaryOwnMetadataKeys(k,$):[]}o(sn,"OrdinaryOwnMetadataKeys");function ji(k){if(k===null)return 1;switch(typeof k){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return k===null?1:6;default:return 6}}o(ji,"Type");function Fe(k){return k===void 0}o(Fe,"IsUndefined");function Wn(k){return k===null}o(Wn,"IsNull");function Cr(k){return typeof k=="symbol"}o(Cr,"IsSymbol");function at(k){return typeof k=="object"?k!==null:typeof k=="function"}o(at,"IsObject");function I(k,$){switch(ji(k)){case 0:return k;case 1:return k;case 2:return k;case 3:return k;case 4:return k;case 5:return k}var Q=$===3?"string":$===5?"number":"default",ce=Ht(k,a);if(ce!==void 0){var Le=ce.call(k,Q);if(at(Le))throw new TypeError;return Le}return S(k,Q==="default"?"number":Q)}o(I,"ToPrimitive");function S(k,$){if($==="string"){var Q=k.toString;if(Xe(Q)){var ce=Q.call(k);if(!at(ce))return ce}var Le=k.valueOf;if(Xe(Le)){var ce=Le.call(k);if(!at(ce))return ce}}else{var Le=k.valueOf;if(Xe(Le)){var ce=Le.call(k);if(!at(ce))return ce}var gn=k.toString;if(Xe(gn)){var ce=gn.call(k);if(!at(ce))return ce}}throw new TypeError}o(S,"OrdinaryToPrimitive");function z(k){return!!k}o(z,"ToBoolean");function V(k){return""+k}o(V,"ToString");function _e(k){var $=I(k,3);return Cr($)?$:V($)}o(_e,"ToPropertyKey");function Rt(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Rt,"IsArray");function Xe(k){return typeof k=="function"}o(Xe,"IsCallable");function kt(k){return typeof k=="function"}o(kt,"IsConstructor");function yn(k){switch(ji(k)){case 3:return!0;case 4:return!0;default:return!1}}o(yn,"IsPropertyKey");function cn(k,$){return k===$||k!==k&&$!==$}o(cn,"SameValueZero");function Ht(k,$){var Q=k[$];if(Q!=null){if(!Xe(Q))throw new TypeError;return Q}}o(Ht,"GetMethod");function ti(k){var $=Ht(k,s);if(!Xe($))throw new TypeError;var Q=$.call(k);if(!at(Q))throw new TypeError;return Q}o(ti,"GetIterator");function ir(k){return k.value}o(ir,"IteratorValue");function dn(k){var $=k.next();return $.done?!1:$}o(dn,"IteratorStep");function ui(k){var $=k.return;$&&$.call(k)}o(ui,"IteratorClose");function Gt(k){var $=Object.getPrototypeOf(k);if(typeof k!="function"||k===m||$!==m)return $;var Q=k.prototype,ce=Q&&Object.getPrototypeOf(Q);if(ce==null||ce===Object.prototype)return $;var Le=ce.constructor;return typeof Le!="function"||Le===k?$:Le}o(Gt,"OrdinaryGetPrototypeOf");function qo(){var k;!Fe(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=Vs(n.Reflect));var $,Q,ce,Le=new E,gn={registerProvider:Cn,getProvider:me,setProvider:Pe};return gn;function Cn(Ie){if(!Object.isExtensible(gn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Ie:break;case Fe($):$=Ie;break;case $===Ie:break;case Fe(Q):Q=Ie;break;case Q===Ie:break;default:ce===void 0&&(ce=new A),ce.add(Ie);break}}function tt(Ie,rt){if(!Fe($)){if($.isProviderFor(Ie,rt))return $;if(!Fe(Q)){if(Q.isProviderFor(Ie,rt))return $;if(!Fe(ce))for(var Wt=ti(ce);;){var ln=dn(Wt);if(!ln)return;var rr=ir(ln);if(rr.isProviderFor(Ie,rt))return ui(Wt),rr}}}if(!Fe(k)&&k.isProviderFor(Ie,rt))return k}function me(Ie,rt){var Wt=Le.get(Ie),ln;return Fe(Wt)||(ln=Wt.get(rt)),Fe(ln)&&(ln=tt(Ie,rt),Fe(ln)||(Fe(Wt)&&(Wt=new v,Le.set(Ie,Wt)),Wt.set(rt,ln))),ln}function Te(Ie){if(Fe(Ie))throw new TypeError;return $===Ie||Q===Ie||!Fe(ce)&&ce.has(Ie)}function Pe(Ie,rt,Wt){if(!Te(Wt))throw new Error("Metadata provider not registered.");var ln=me(Ie,rt);if(ln!==Wt){if(!Fe(ln))return!1;var rr=Le.get(Ie);Fe(rr)&&(rr=new v,Le.set(Ie,rr)),rr.set(rt,Wt)}return!0}}o(qo,"CreateMetadataRegistry");function Ui(){var k;return!Fe(O)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[O]),Fe(k)&&(k=qo()),!Fe(O)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Ui,"GetOrCreateMetadataRegistry");function Of(k){var $=new E,Q={isProviderFor:o(function(Te,Pe){var Ie=$.get(Te);return Fe(Ie)?!1:Ie.has(Pe)},"isProviderFor"),OrdinaryDefineOwnMetadata:Cn,OrdinaryHasOwnMetadata:Le,OrdinaryGetOwnMetadata:gn,OrdinaryOwnMetadataKeys:tt,OrdinaryDeleteMetadata:me};return F.registerProvider(Q),Q;function ce(Te,Pe,Ie){var rt=$.get(Te),Wt=!1;if(Fe(rt)){if(!Ie)return;rt=new v,$.set(Te,rt),Wt=!0}var ln=rt.get(Pe);if(Fe(ln)){if(!Ie)return;if(ln=new v,rt.set(Pe,ln),!k.setProvider(Te,Pe,Q))throw rt.delete(Pe),Wt&&$.delete(Te),new Error("Wrong provider for target.")}return ln}o(ce,"GetOrCreateMetadataMap");function Le(Te,Pe,Ie){var rt=ce(Pe,Ie,!1);return Fe(rt)?!1:z(rt.has(Te))}o(Le,"OrdinaryHasOwnMetadata");function gn(Te,Pe,Ie){var rt=ce(Pe,Ie,!1);if(!Fe(rt))return rt.get(Te)}o(gn,"OrdinaryGetOwnMetadata");function Cn(Te,Pe,Ie,rt){var Wt=ce(Ie,rt,!0);Wt.set(Te,Pe)}o(Cn,"OrdinaryDefineOwnMetadata");function tt(Te,Pe){var Ie=[],rt=ce(Te,Pe,!1);if(Fe(rt))return Ie;for(var Wt=rt.keys(),ln=ti(Wt),rr=0;;){var vd=dn(ln);if(!vd)return Ie.length=rr,Ie;var uv=ir(vd);try{Ie[rr]=uv}catch(Ff){try{ui(ln)}finally{throw Ff}}rr++}}o(tt,"OrdinaryOwnMetadataKeys");function me(Te,Pe,Ie){var rt=ce(Pe,Ie,!1);if(Fe(rt)||!rt.delete(Te))return!1;if(rt.size===0){var Wt=$.get(Pe);Fe(Wt)||(Wt.delete(Ie),Wt.size===0&&$.delete(Wt))}return!0}o(me,"OrdinaryDeleteMetadata")}o(Of,"CreateMetadataProvider");function Vs(k){var $=k.defineMetadata,Q=k.hasOwnMetadata,ce=k.getOwnMetadata,Le=k.getOwnMetadataKeys,gn=k.deleteMetadata,Cn=new E,tt={isProviderFor:o(function(me,Te){var Pe=Cn.get(me);return!Fe(Pe)&&Pe.has(Te)?!0:Le(me,Te).length?(Fe(Pe)&&(Pe=new A,Cn.set(me,Pe)),Pe.add(Te),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:$,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Le,OrdinaryDeleteMetadata:gn};return tt}o(Vs,"CreateFallbackProvider");function xr(k,$,Q){var ce=F.getProvider(k,$);if(!Fe(ce))return ce;if(Q){if(F.setProvider(k,$,j))return j;throw new Error("Illegal state.")}}o(xr,"GetMetadataProvider");function Nf(){var k={},$=[],Q=function(){function tt(me,Te,Pe){this._index=0,this._keys=me,this._values=Te,this._selector=Pe}return o(tt,"MapIterator"),tt.prototype["@@iterator"]=function(){return this},tt.prototype[s]=function(){return this},tt.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=$,this._values=$):this._index++,{value:Te,done:!1}}return{value:void 0,done:!0}},tt.prototype.throw=function(me){throw this._index>=0&&(this._index=-1,this._keys=$,this._values=$),me},tt.prototype.return=function(me){return this._index>=0&&(this._index=-1,this._keys=$,this._values=$),{value:me,done:!0}},tt}(),ce=function(){function tt(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(tt,"Map"),Object.defineProperty(tt.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),tt.prototype.has=function(me){return this._find(me,!1)>=0},tt.prototype.get=function(me){var Te=this._find(me,!1);return Te>=0?this._values[Te]:void 0},tt.prototype.set=function(me,Te){var Pe=this._find(me,!0);return this._values[Pe]=Te,this},tt.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--,cn(me,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},tt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},tt.prototype.keys=function(){return new Q(this._keys,this._values,Le)},tt.prototype.values=function(){return new Q(this._keys,this._values,gn)},tt.prototype.entries=function(){return new Q(this._keys,this._values,Cn)},tt.prototype["@@iterator"]=function(){return this.entries()},tt.prototype[s]=function(){return this.entries()},tt.prototype._find=function(me,Te){if(!cn(this._cacheKey,me)){this._cacheIndex=-1;for(var Pe=0;Pe<this._keys.length;Pe++)if(cn(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},tt}();return ce;function Le(tt,me){return tt}function gn(tt,me){return me}function Cn(tt,me){return[tt,me]}}o(Nf,"CreateMapPolyfill");function Lf(){var k=function(){function $(){this._map=new v}return o($,"Set"),Object.defineProperty($.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),$.prototype.has=function(Q){return this._map.has(Q)},$.prototype.add=function(Q){return this._map.set(Q,Q),this},$.prototype.delete=function(Q){return this._map.delete(Q)},$.prototype.clear=function(){this._map.clear()},$.prototype.keys=function(){return this._map.keys()},$.prototype.values=function(){return this._map.keys()},$.prototype.entries=function(){return this._map.entries()},$.prototype["@@iterator"]=function(){return this.keys()},$.prototype[s]=function(){return this.keys()},$}();return k}o(Lf,"CreateSetPolyfill");function Rf(){var k=16,$=g.create(),Q=ce();return function(){function me(){this._key=ce()}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=ce()},me}();function ce(){var me;do me="@@WeakMap@@"+tt();while(g.has($,me));return $[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 gn(me,Te){for(var Pe=0;Pe<Te;++Pe)me[Pe]=Math.random()*255|0;return me}function Cn(me){if(typeof Uint8Array=="function"){var Te=new Uint8Array(me);return typeof crypto<"u"?crypto.getRandomValues(Te):typeof msCrypto<"u"?msCrypto.getRandomValues(Te):gn(Te,me),Te}return gn(new Array(me),me)}function tt(){var me=Cn(k);me[6]=me[6]&79|64,me[8]=me[8]&191|128;for(var Te="",Pe=0;Pe<k;++Pe){var Ie=me[Pe];(Pe===4||Pe===6||Pe===8)&&(Te+="-"),Ie<16&&(Te+="0"),Te+=Ie.toString(16).toLowerCase()}return Te}}o(Rf,"CreateWeakMapPolyfill");function ws(k){return k.__=void 0,delete k.__,k}o(ws,"MakeDictionary")})})(zF||(zF={}))});var i0=qe((GJ,n0)=>{var KW=0,t0="changeUtils: ";function XW(){return"id-"+new Date().valueOf()+"-"+KW++}o(XW,"uid");function QW(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(QW,"appendComponentToReference");function qW(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return QW(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(qW,"getFlexReference");function zW(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(zW,"getAppVersion");function YW(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(YW,"getProjectId");function e0(e){return JSON.stringify({fileName:e.id||XW().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:t0+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(e0,"createString");n0.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(t0,""),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=qW(t),e.appVersion=zW(t),e.projectId=YW(t,e.reference),e0(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 e0(e)},"toString")}});var o0=qe((KJ,r0)=>{r0.exports={change:i0()}});var z0=qe(jr=>{"use strict";var F8=/[|\\{}()[\]^$+*?.]/g,D8=Object.prototype.hasOwnProperty,ZE=o(function(e,t){return D8.apply(e,[t])},"hasOwn");jr.escapeRegExpChars=function(e){return e?String(e).replace(F8,"\\$&"):""};var _8={"&":"&","<":"<",">":">",'"':""","'":"'"},V8=/[&<>'"]/g;function w8(e){return _8[e]||e}o(w8,"encode_char");var M8=`var _ENCODE_HTML_RULES = {
|
|
30
30
|
"&": "&"
|
|
31
31
|
, "<": "<"
|
|
32
32
|
, ">": ">"
|
|
@@ -37,13 +37,13 @@ Actual: `+I.attribValue);else{var _e=I.tag,Rt=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
|
-
`;
|
|
41
|
-
`+
|
|
40
|
+
`;jr.escapeXML=function(e){return e==null?"":String(e).replace(V8,w8)};function q0(){return Function.prototype.toString.call(this)+`;
|
|
41
|
+
`+M8}o(q0,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(jr.escapeXML,"toString",{value:q0}):jr.escapeXML.toString=q0}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}jr.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)ZE(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};jr.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(!ZE(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};jr.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")};jr.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};jr.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();jr.hasOwnOnlyObject=function(e){var t=jr.createNullProtoObjWherePossible();for(var n in e)ZE(e,n)&&(t[n]=e[n]);return t}});var Y0=qe((uee,k8)=>{k8.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 a1=qe(Pt=>{"use strict";var tb=require("fs"),Eu=require("path"),On=z0(),J0=!1,j8=Y0().version,U8="<",$8=">",B8="%",r1="locals",H8="ejs",G8="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",o1=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],W8=o1.concat("cache"),Z0=/^\uFEFF/,eb=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Pt.cache=On.cache;Pt.fileLoader=tb.readFileSync;Pt.localsName=r1;Pt.promiseImpl=new Function("return this;")().Promise;Pt.resolveInclude=function(e,t,n){var i=Eu.dirname,r=Eu.extname,a=Eu.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function e1(e,t){var n;if(t.some(function(i){return n=Pt.resolveInclude(e,i,!0),tb.existsSync(n)}))return n}o(e1,"resolvePaths");function K8(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=e1(e,t.root):n=Pt.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Pt.resolveInclude(e,t.filename),tb.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=e1(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(K8,"getIncludePath");function bu(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=Pt.cache.get(i),n)return n;r||(t=t1(i).toString().replace(Z0,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=t1(i).toString().replace(Z0,"")}return n=Pt.compile(t,e),e.cache&&Pt.cache.set(i,n),n}o(bu,"handleCache");function X8(e,t,n){var i;if(n){try{i=bu(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof Pt.promiseImpl=="function")return new Pt.promiseImpl(function(r,a){try{i=bu(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(X8,"tryHandleCache");function t1(e){return Pt.fileLoader(e)}o(t1,"fileLoader");function Q8(e,t){var n=On.shallowCopy(On.createNullProtoObjWherePossible(),t);if(n.filename=K8(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return bu(n,i.template)}return bu(n)}o(Q8,"includeFile");function n1(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 v=m+s+1;return(v==i?" >> ":" ")+v+"| "+g}).join(`
|
|
43
43
|
`);throw e.path=u,e.message=(u||"ejs")+":"+i+`
|
|
44
44
|
`+p+`
|
|
45
45
|
|
|
46
|
-
`+e.message,e}o(
|
|
46
|
+
`+e.message,e}o(n1,"rethrow");function i1(e){return e.replace(/;(\s*$)/,"$1")}o(i1,"stripSemi");Pt.compile=o(function(t,n){var i;return n&&n.scope&&(J0||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),J0=!0),n.context||(n.context=n.scope),delete n.scope),i=new Bn(t,n),i.compile()},"compile");Pt.render=function(e,t,n){var i=t||On.createNullProtoObjWherePossible(),r=n||On.createNullProtoObjWherePossible();return arguments.length==2&&On.shallowCopyFromList(r,i,o1),bu(r,e)(i)};Pt.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,W8)),i.filename=t):r=On.createNullProtoObjWherePossible(),X8(i,r,n)};Pt.Template=Bn;Pt.clearCache=function(){Pt.cache.reset()};function Bn(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||Pt.openDelimiter||U8,i.closeDelimiter=n.closeDelimiter||Pt.closeDelimiter||$8,i.delimiter=n.delimiter||Pt.delimiter||B8,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||Pt.localsName||r1,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(Bn,"Template");Bn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Bn.prototype={createRegex:o(function(){var e=G8,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(!eb.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
|
|
49
49
|
`}if(n.localsName&&!eb.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+` || {}),
|
|
@@ -60,7 +60,7 @@ try {
|
|
|
60
60
|
rethrow(e, __lines, __filename, __line, escapeFn);
|
|
61
61
|
}
|
|
62
62
|
`:e=this.source,n.client&&(e="escapeFn = escapeFn || "+a.toString()+`;
|
|
63
|
-
`+e,n.compileDebug&&(e="rethrow = rethrow || "+
|
|
63
|
+
`+e,n.compileDebug&&(e="rethrow = rethrow || "+n1.toString()+`;
|
|
64
64
|
`+e)),n.strict&&(e=`"use strict";
|
|
65
65
|
`+e),n.debug&&console.log(e),n.compileDebug&&n.filename&&(e=e+`
|
|
66
66
|
//# sourceURL=`+l+`
|
|
@@ -68,7 +68,7 @@ try {
|
|
|
68
68
|
|
|
69
69
|
`,E.message+=`If the above error is not helpful, you may want to try EJS-Lint:
|
|
70
70
|
`,E.message+="https://github.com/RyanZim/EJS-Lint",n.async||(E.message+=`
|
|
71
|
-
`,E.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),E}var m=n.client?t:o(function(O){var F=o(function(j,G){var B=On.shallowCopy(On.createNullProtoObjWherePossible(),O);return G&&(B=On.shallowCopy(B,G)),
|
|
71
|
+
`,E.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),E}var m=n.client?t:o(function(O){var F=o(function(j,G){var B=On.shallowCopy(On.createNullProtoObjWherePossible(),O);return G&&(B=On.shallowCopy(B,G)),Q8(j,n)(B)},"include");return t.apply(n.context,[O||On.createNullProtoObjWherePossible(),a,F,n1])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var v=n.filename,A=Eu.basename(v,Eu.extname(v));try{Object.defineProperty(m,"name",{value:A,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=Bn.modes.EVAL;break;case i+n+"=":this.mode=Bn.modes.ESCAPED;break;case i+n+"-":this.mode=Bn.modes.RAW;break;case i+n+"#":this.mode=Bn.modes.COMMENT;break;case i+n+n:this.mode=Bn.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
|
|
@@ -76,10 +76,10 @@ try {
|
|
|
76
76
|
`;break;case n+r:case"-"+n+r:case"_"+n+r:this.mode==Bn.modes.LITERAL&&this._addOutput(e),this.mode=null,this.truncate=e.indexOf("-")===0||e.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case Bn.modes.EVAL:case Bn.modes.ESCAPED:case Bn.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
|
|
77
77
|
`)&&(e+=`
|
|
78
78
|
`)}switch(this.mode){case Bn.modes.EVAL:this.source+=" ; "+e+`
|
|
79
|
-
`;break;case Bn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+
|
|
80
|
-
`;break;case Bn.modes.RAW:this.source+=" ; __append("+
|
|
79
|
+
`;break;case Bn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+i1(e)+`))
|
|
80
|
+
`;break;case Bn.modes.RAW:this.source+=" ; __append("+i1(e)+`)
|
|
81
81
|
`;break;case Bn.modes.COMMENT:break;case Bn.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
|
|
82
|
-
`)},"scanLine")};Pt.escapeXML=On.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=
|
|
82
|
+
`)},"scanLine")};Pt.escapeXML=On.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=j8;Pt.name=H8;typeof window<"u"&&(window.ejs=Pt)});var Zu,BA=Qe(()=>{Zu="7.1.1"});function ot(e){return e&&e.length===0}function _i(e){return e==null?[]:Object.keys(e)}function Vn(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function X1(e,t){for(var n=[],i=_i(e),r=0;r<i.length;r++){var a=i[r];n.push(t.call(null,e[a],a))}return n}function ue(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function Nn(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(Nn(i)):t.push(i)}return t}function Ai(e){return ot(e)?void 0:e[0]}function Vh(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(wh(e))for(var i=_i(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 $r(e){return typeof e=="string"}function Si(e){return e===void 0}function po(e){return e instanceof Function}function wn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function gs(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Br(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 ba(e,t){return Br(e,function(n){return!t(n)})}function mr(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 xe(e,t){return wh(e)?e.hasOwnProperty(t):!1}function Vt(e,t){return Aa(e,function(n){return n===t})!==void 0}function bn(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function ms(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Aa(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function Q1(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 un(e,t,n){for(var i=Array.isArray(e),r=i?e:Vn(e),a=i?[]:_i(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:a[l]);return s}function Sa(e){return ba(e,function(t){return t==null})}function ep(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return un(e,function(i,r){var a=t(r);return Vt(n,a)?i:(n.push(a),i.concat(r))},[])}function xre(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 si(e){return Array.isArray(e)}function go(e){return e instanceof RegExp}function wh(e){return e instanceof Object}function ci(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function Nc(e,t){return ba(e,function(n){return Vt(t,n)})}function Mh(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function q1(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function Ire(e,t){var n=bn(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function Ore(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 hr(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=_i(r),s=0;s<a.length;s++){var l=a[s];e[l]=r[l]}return e}function v7(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=_i(r),s=0;s<a.length;s++){var l=a[s];xe(e,l)||(e[l]=r[l])}return e}function tp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return v7.apply(null,[{}].concat(e))}function z1(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 HA(e,t){for(var n=ms(e),i=_i(t),r=0;r<i.length;r++){var a=i[r],s=t[a];n[a]=s}return n}function Mn(){}function GA(e){return e}function Y1(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 np(e){console&&console.error&&console.error("Error: "+e)}function kh(e){console&&console.warn&&console.warn("Warning: "+e)}function WA(){return typeof Map=="function"}function J1(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 jh(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 ip(e){return e[e.length-1]}function Uh(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var Tt=Qe(()=>{o(ot,"isEmpty");o(_i,"keys");o(Vn,"values");o(X1,"mapValues");o(ue,"map");o(Nn,"flatten");o(Ai,"first");o(Vh,"last");o(ye,"forEach");o($r,"isString");o(Si,"isUndefined");o(po,"isFunction");o(wn,"drop");o(gs,"dropRight");o(Br,"filter");o(ba,"reject");o(mr,"pick");o(xe,"has");o(Vt,"contains");o(bn,"cloneArr");o(ms,"cloneObj");o(Aa,"find");o(Q1,"findAll");o(un,"reduce");o(Sa,"compact");o(ep,"uniq");o(xre,"partial");o(si,"isArray");o(go,"isRegExp");o(wh,"isObject");o(ci,"every");o(Nc,"difference");o(Mh,"some");o(q1,"indexOf");o(Ire,"sortBy");o(Ore,"zipObject");o(hr,"assign");o(v7,"assignNoOverwrite");o(tp,"defaults");o(z1,"groupBy");o(HA,"merge");o(Mn,"NOOP");o(GA,"IDENTITY");o(Y1,"packArray");o(np,"PRINT_ERROR");o(kh,"PRINT_WARNING");o(WA,"isES2015MapSupported");o(J1,"applyMixins");o(jh,"toFastProperties");o(ip,"peek");o(Uh,"timer")});var Bh=qe((eD,$h)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof $h=="object"&&$h.exports?$h.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:eD,function(){function e(){}o(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(E){this.idx=E.idx,this.input=E.input,this.groupIdx=E.groupIdx},e.prototype.pattern=function(E){this.idx=0,this.input=E,this.groupIdx=0,this.consumeChar("/");var O=this.disjunction();this.consumeChar("/");for(var F={type:"Flags",loc:{begin:this.idx,end:E.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(F,"global");break;case"i":s(F,"ignoreCase");break;case"m":s(F,"multiLine");break;case"u":s(F,"unicode");break;case"y":s(F,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:F,value:O,loc:this.loc(0)}},e.prototype.disjunction=function(){var E=[],O=this.idx;for(E.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),E.push(this.alternative());return{type:"Disjunction",value:E,loc:this.loc(O)}},e.prototype.alternative=function(){for(var E=[],O=this.idx;this.isTerm();)E.push(this.term());return{type:"Alternative",value:E,loc:this.loc(O)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var E=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(E)};case"$":return{type:"EndAnchor",loc:this.loc(E)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(E)};case"B":return{type:"NonWordBoundary",loc:this.loc(E)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var O;switch(this.popChar()){case"=":O="Lookahead";break;case"!":O="NegativeLookahead";break}l(O);var F=this.disjunction();return this.consumeChar(")"),{type:O,value:F,loc:this.loc(E)}}u()},e.prototype.quantifier=function(E){var O,F=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 j=this.integerIncludingZero();switch(this.popChar()){case"}":O={atLeast:j,atMost:j};break;case",":var G;this.isDigit()?(G=this.integerIncludingZero(),O={atLeast:j,atMost:G}):O={atLeast:j,atMost:1/0},this.consumeChar("}");break}if(E===!0&&O===void 0)return;l(O);break}if(!(E===!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(F),O},e.prototype.atom=function(){var E,O=this.idx;switch(this.peekChar()){case".":E=this.dotAll();break;case"\\":E=this.atomEscape();break;case"[":E=this.characterClass();break;case"(":E=this.group();break}return E===void 0&&this.isPatternCharacter()&&(E=this.patternCharacter()),l(E),E.loc=this.loc(O),this.isQuantifier()&&(E.quantifier=this.quantifier()),E},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 E=this.positiveInteger();return{type:"GroupBackReference",value:E}},e.prototype.characterClassEscape=function(){var E,O=!1;switch(this.popChar()){case"d":E=g;break;case"D":E=g,O=!0;break;case"s":E=v;break;case"S":E=v,O=!0;break;case"w":E=m;break;case"W":E=m,O=!0;break}return l(E),{type:"Set",value:E,complement:O}},e.prototype.controlEscapeAtom=function(){var E;switch(this.popChar()){case"f":E=r("\f");break;case"n":E=r(`
|
|
84
84
|
`);break;case"r":E=r("\r");break;case"t":E=r(" ");break;case"v":E=r("\v");break}return l(E),{type:"Character",value:E}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var E=this.popChar();if(/[a-zA-Z]/.test(E)===!1)throw Error("Invalid ");var O=E.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 E=this.popChar();return{type:"Character",value:r(E)}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case`
|
|
85
85
|
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var E=this.popChar();return{type:"Character",value:r(E)}}},e.prototype.characterClass=function(){var E=[],O=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),O=!0);this.isClassAtom();){var F=this.classAtom(),j=F.type==="Character";if(j&&this.isRangeDash()){this.consumeChar("-");var G=this.classAtom(),B=G.type==="Character";if(B){if(G.value<F.value)throw Error("Range out of order in character class");E.push({from:F.value,to:G.value})}else a(F.value,E),E.push(r("-")),a(G.value,E)}else a(F.value,E)}return this.consumeChar("]"),{type:"Set",complement:O,value:E}},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(E)}}},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(E){switch(E===void 0&&(E=0),this.peekChar(E)){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 E=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(E)}},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(E){for(var O="",F=0;F<E;F++){var j=this.popChar();if(t.test(j)===!1)throw Error("Expecting a HexDecimal digits");O+=j}var G=parseInt(O,16);return{type:"Character",value:G}},e.prototype.peekChar=function(E){return E===void 0&&(E=0),this.input[this.idx+E]},e.prototype.popChar=function(){var E=this.peekChar(0);return this.consumeChar(),E},e.prototype.consumeChar=function(E){if(E!==void 0&&this.input[this.idx]!==E)throw Error("Expected: '"+E+"' 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(E){return{begin:E,end:this.idx}};var t=/[0-9a-fA-F]/,n=/[0-9]/,i=/[1-9]/;function r(E){return E.charCodeAt(0)}o(r,"cc");function a(E,O){E.length!==void 0?E.forEach(function(F){O.push(F)}):O.push(E)}o(a,"insertToSet");function s(E,O){if(E[O]===!0)throw"duplicate flag "+O;E[O]=!0}o(s,"addFlag");function l(E){if(E===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 v=[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 A(){}return o(A,"BaseRegExpVisitor"),A.prototype.visitChildren=function(E){for(var O in E){var F=E[O];E.hasOwnProperty(O)&&(F.type!==void 0?this.visit(F):Array.isArray(F)&&F.forEach(function(j){this.visit(j)},this))}},A.prototype.visit=function(E){switch(E.type){case"Pattern":this.visitPattern(E);break;case"Flags":this.visitFlags(E);break;case"Disjunction":this.visitDisjunction(E);break;case"Alternative":this.visitAlternative(E);break;case"StartAnchor":this.visitStartAnchor(E);break;case"EndAnchor":this.visitEndAnchor(E);break;case"WordBoundary":this.visitWordBoundary(E);break;case"NonWordBoundary":this.visitNonWordBoundary(E);break;case"Lookahead":this.visitLookahead(E);break;case"NegativeLookahead":this.visitNegativeLookahead(E);break;case"Character":this.visitCharacter(E);break;case"Set":this.visitSet(E);break;case"Group":this.visitGroup(E);break;case"GroupBackReference":this.visitGroupBackReference(E);break;case"Quantifier":this.visitQuantifier(E);break}this.visitChildren(E)},A.prototype.visitPattern=function(E){},A.prototype.visitFlags=function(E){},A.prototype.visitDisjunction=function(E){},A.prototype.visitAlternative=function(E){},A.prototype.visitStartAnchor=function(E){},A.prototype.visitEndAnchor=function(E){},A.prototype.visitWordBoundary=function(E){},A.prototype.visitNonWordBoundary=function(E){},A.prototype.visitLookahead=function(E){},A.prototype.visitNegativeLookahead=function(E){},A.prototype.visitCharacter=function(E){},A.prototype.visitSet=function(E){},A.prototype.visitGroup=function(E){},A.prototype.visitGroupBackReference=function(E){},A.prototype.visitQuantifier=function(E){},{RegExpParser:e,BaseRegExpVisitor:A,VERSION:"0.5.0"}})});function $l(e){var t=e.toString();if(Hh.hasOwnProperty(t))return Hh[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 A(){}return o(A,"BaseRegExpVisitor"),A.prototype.visitChildren=function(E){for(var O in E){var F=E[O];E.hasOwnProperty(O)&&(F.type!==void 0?this.visit(F):Array.isArray(F)&&F.forEach(function(j){this.visit(j)},this))}},A.prototype.visit=function(E){switch(E.type){case"Pattern":this.visitPattern(E);break;case"Flags":this.visitFlags(E);break;case"Disjunction":this.visitDisjunction(E);break;case"Alternative":this.visitAlternative(E);break;case"StartAnchor":this.visitStartAnchor(E);break;case"EndAnchor":this.visitEndAnchor(E);break;case"WordBoundary":this.visitWordBoundary(E);break;case"NonWordBoundary":this.visitNonWordBoundary(E);break;case"Lookahead":this.visitLookahead(E);break;case"NegativeLookahead":this.visitNegativeLookahead(E);break;case"Character":this.visitCharacter(E);break;case"Set":this.visitSet(E);break;case"Group":this.visitGroup(E);break;case"GroupBackReference":this.visitGroupBackReference(E);break;case"Quantifier":this.visitQuantifier(E);break}this.visitChildren(E)},A.prototype.visitPattern=function(E){},A.prototype.visitFlags=function(E){},A.prototype.visitDisjunction=function(E){},A.prototype.visitAlternative=function(E){},A.prototype.visitStartAnchor=function(E){},A.prototype.visitEndAnchor=function(E){},A.prototype.visitWordBoundary=function(E){},A.prototype.visitNonWordBoundary=function(E){},A.prototype.visitLookahead=function(E){},A.prototype.visitNegativeLookahead=function(E){},A.prototype.visitCharacter=function(E){},A.prototype.visitSet=function(E){},A.prototype.visitGroup=function(E){},A.prototype.visitGroupBackReference=function(E){},A.prototype.visitQuantifier=function(E){},{RegExpParser:e,BaseRegExpVisitor:A,VERSION:"0.5.0"}})});function $l(e){var t=e.toString();if(Hh.hasOwnProperty(t))return Hh[t];var n=T7.pattern(t);return Hh[t]=n,n}function nD(){Hh={}}var tD,Hh,T7,Gh=Qe(()=>{tD=ie(Bh()),Hh={},T7=new tD.RegExpParser;o($l,"getRegExpAst");o(nD,"clearRegExpParserCache")});function oD(e,t){t===void 0&&(t=!1);try{var n=$l(e),i=KA(n.value,{},n.flags.ignoreCase);return i}catch(a){if(a.message===rD)t&&kh(""+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,43 +95,43 @@ try {
|
|
|
95
95
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),np(rp+`
|
|
96
96
|
`+(" Failed parsing: < "+e.toString()+` >
|
|
97
97
|
`)+(" Using the regexp-to-ast library version: "+Kh.VERSION+`
|
|
98
|
-
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function KA(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)KA(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":Wh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(
|
|
99
|
-
`;o(
|
|
100
|
-
`],tracer:o(function(G,B){return B()},"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 KA(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)KA(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":Wh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(rD);ye(s.value,function(p){if(typeof p=="number")Wh(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)Wh(m,t,n);else{for(var m=g.from;m<=g.to&&m<Bl;m++)Wh(m,t,n);if(g.to>=Bl)for(var v=g.from>=Bl?g.from:Bl,A=g.to,E=Bo(v),O=Bo(A),F=E;F<=O;F++)t[F]=F}}});break;case"Group":KA(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"&&XA(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Vn(t)}function Wh(e,t,n){var i=Bo(e);t[i]=i,n===!0&&b7(e,t)}function b7(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=Bo(i.charCodeAt(0));t[r]=r}else{var a=n.toLowerCase();if(a!==n){var r=Bo(a.charCodeAt(0));t[r]=r}}}function iD(e,t){return Aa(e.value,function(n){if(typeof n=="number")return Vt(t,n);var i=n;return Aa(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function XA(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?si(e.value)?ci(e.value,XA):XA(e.value):!1}function Xh(e,t){if(t instanceof RegExp){var n=$l(t),i=new A7(e);return i.visit(n),i.found}else return Aa(t,function(r){return Vt(e,r.charCodeAt(0))})!==void 0}var Kh,E7,rD,rp,A7,aD=Qe(()=>{Kh=ie(Bh());Tt();Gh();QA();E7=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)}}(),rD="Complement Sets are not supported for first char optimization",rp=`Unable to use "first char" lexer optimizations:
|
|
99
|
+
`;o(oD,"getOptimizedStartCodesIndices");o(KA,"firstCharOptimizedIndices");o(Wh,"addOptimizedIdxToResult");o(b7,"handleIgnoreCase");o(iD,"findCode");o(XA,"isWholeOptional");A7=function(e){E7(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){Vt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?iD(n,this.targetCharCodes)===void 0&&(this.found=!0):iD(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(Kh.BaseRegExpVisitor);o(Xh,"canMatchCharCode")});function fD(e,t){t=tp(t,{useSticky:YA,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
|
100
|
+
`],tracer:o(function(G,B){return B()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){U7()});var i;n("Reject Lexer.NA",function(){i=ba(e,function(G){return G[Ho]===Vi.NA})});var r=!1,a;n("Transform Patterns",function(){r=!1,a=ue(i,function(G){var B=G[Ho];if(go(B)){var ae=B.source;return ae.length===1&&ae!=="^"&&ae!=="$"&&ae!=="."&&!B.ignoreCase?ae:ae.length===2&&ae[0]==="\\"&&!Vt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],ae[1])?ae[1]:t.useSticky?cD(B):sD(B)}else{if(po(B))return r=!0,{exec:B};if(xe(B,"exec"))return r=!0,B;if(typeof B=="string"){if(B.length===1)return B;var Z=B.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),re=new RegExp(Z);return t.useSticky?cD(re):sD(re)}else throw Error("non exhaustive match")}})});var s,l,u,p,g;n("misc mapping",function(){s=ue(i,function(G){return G.tokenTypeIdx}),l=ue(i,function(G){var B=G.GROUP;if(B!==Vi.SKIPPED){if($r(B))return B;if(Si(B))return!1;throw Error("non exhaustive match")}}),u=ue(i,function(G){var B=G.LONGER_ALT;if(B){var ae=q1(i,B);return ae}}),p=ue(i,function(G){return G.PUSH_MODE}),g=ue(i,function(G){return xe(G,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var G=vD(t.lineTerminatorCharacters);m=ue(i,function(B){return!1}),t.positionTracking!=="onlyOffset"&&(m=ue(i,function(B){if(xe(B,"LINE_BREAKS"))return B.LINE_BREAKS;if(yD(B,G)===!1)return Xh(G,B.PATTERN)}))});var v,A,E,O;n("Misc Mapping #2",function(){v=ue(i,mD),A=ue(a,k7),E=un(i,function(G,B){var ae=B.GROUP;return $r(ae)&&ae!==Vi.SKIPPED&&(G[ae]=[]),G},{}),O=ue(a,function(G,B){return{pattern:a[B],longerAlt:u[B],canLineTerminator:m[B],isCustom:v[B],short:A[B],group:l[B],push:p[B],pop:g[B],tokenTypeIdx:s[B],tokenType:i[B]}})});var F=!0,j=[];return t.safeMode||n("First Char Optimization",function(){j=un(i,function(G,B,ae){if(typeof B.PATTERN=="string"){var Z=B.PATTERN.charCodeAt(0),re=Bo(Z);qA(G,re,O[ae])}else if(si(B.START_CHARS_HINT)){var Se;ye(B.START_CHARS_HINT,function(ut){var yt=typeof ut=="string"?ut.charCodeAt(0):ut,Ue=Bo(yt);Se!==Ue&&(Se=Ue,qA(G,Ue,O[ae]))})}else if(go(B.PATTERN))if(B.PATTERN.unicode)F=!1,t.ensureOptimizations&&np(""+rp+(" Unable to analyze < "+B.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
|
-
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var D=
|
|
103
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var D=oD(B.PATTERN,t.ensureOptimizations);ot(D)&&(F=!1),ye(D,function(ut){qA(G,ut,O[ae])})}else t.ensureOptimizations&&np(""+rp+(" TokenType: <"+B.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`),F=!1;return G},[])}),n("ArrayPacking",function(){j=
|
|
105
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),F=!1;return G},[])}),n("ArrayPacking",function(){j=Y1(j)}),{emptyGroups:E,patternIdxToConfig:O,charCodeToPatternIdxToConfig:j,hasCustom:r,canBeOptimized:F}}function uD(e,t){var n=[],i=P7(e);n=n.concat(i.errors);var r=C7(i.valid),a=r.valid;return n=n.concat(r.errors),n=n.concat(S7(a)),n=n.concat(D7(a)),n=n.concat(_7(a,t)),n=n.concat(V7(a)),n}function S7(e){var t=[],n=Br(e,function(i){return go(i[Ho])});return t=t.concat(I7(n)),t=t.concat(L7(n)),t=t.concat(R7(n)),t=t.concat(F7(n)),t=t.concat(O7(n)),t}function P7(e){var t=Br(e,function(r){return!xe(r,Ho)}),n=ue(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:pn.MISSING_PATTERN,tokenTypes:[r]}}),i=Nc(e,t);return{errors:n,valid:i}}function C7(e){var t=Br(e,function(r){var a=r[Ho];return!go(a)&&!po(a)&&!xe(a,"exec")&&!$r(a)}),n=ue(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:pn.INVALID_PATTERN,tokenTypes:[r]}}),i=Nc(e,t);return{errors:n,valid:i}}function I7(e){var t=function(r){lD(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}(zA.BaseRegExpVisitor),n=Br(e,function(r){var a=r[Ho];try{var s=$l(a),l=new t;return l.visit(s),l.found}catch{return x7.test(a.source)}}),i=ue(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:pn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function
|
|
107
|
+
See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:pn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function O7(e){var t=Br(e,function(i){var r=i[Ho];return r.test("")}),n=ue(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:pn.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function L7(e){var t=function(r){lD(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}(zA.BaseRegExpVisitor),n=Br(e,function(r){var a=r[Ho];try{var s=$l(a),l=new t;return l.visit(s),l.found}catch{return N7.test(a.source)}}),i=ue(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:pn.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:pn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function R7(e){var t=Br(e,function(i){var r=i[Ho];return r instanceof RegExp&&(r.multiline||r.global)}),n=ue(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:pn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function F7(e){var t=[],n=ue(e,function(a){return un(e,function(s,l){return a.PATTERN.source===l.PATTERN.source&&!Vt(t,l)&&l.PATTERN!==Vi.NA&&(t.push(l),s.push(l)),s},[])});n=Sa(n);var i=Br(n,function(a){return a.length>1}),r=ue(i,function(a){var s=ue(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:pn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}});return r}function D7(e){var t=Br(e,function(i){if(!xe(i,"GROUP"))return!1;var r=i.GROUP;return r!==Vi.SKIPPED&&r!==Vi.NA&&!$r(r)}),n=ue(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:pn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function _7(e,t){var n=Br(e,function(r){return r.PUSH_MODE!==void 0&&!Vt(t,r.PUSH_MODE)}),i=ue(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:pn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function V7(e){var t=[],n=un(e,function(i,r,a){var s=r.PATTERN;return s===Vi.NA||($r(s)?i.push({str:s,idx:a,tokenType:r}):go(s)&&M7(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&&w7(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:pn.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:pn.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function w7(e,t){if(go(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(po(t))return t(e,0,[],{});if(xe(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function M7(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return Aa(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function sD(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function cD(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function pD(e,t,n){var i=[];return xe(e,hs)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+hs+`> property in its definition
|
|
112
112
|
`,type:pn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),xe(e,Qh)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Qh+`> property in its definition
|
|
113
113
|
`,type:pn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),xe(e,Qh)&&xe(e,hs)&&!xe(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+hs+": <"+e.defaultMode+`>which does not exist
|
|
114
114
|
`,type:pn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),xe(e,Qh)&&ye(e.modes,function(r,a){ye(r,function(s,l){Si(s)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+a+"> at index: <"+l+`>
|
|
115
|
-
`),type:pn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function
|
|
115
|
+
`),type:pn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function dD(e,t,n){var i=[],r=!1,a=Sa(Nn(X1(e.modes,function(u){return u}))),s=ba(a,function(u){return u[Ho]===Vi.NA}),l=vD(n);return t&&ye(s,function(u){var p=yD(u,l);if(p!==!1){var g=j7(u,p),m={message:g,type:p.issue,tokenType:u};i.push(m)}else xe(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(r=!0):Xh(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:pn.NO_LINE_BREAKS_FLAGS}),i}function
|
|
119
|
+
for details.`,type:pn.NO_LINE_BREAKS_FLAGS}),i}function gD(e){var t={},n=_i(e);return ye(n,function(i){var r=e[i];if(si(r))t[i]=[];else throw Error("non exhaustive match")}),t}function mD(e){var t=e.PATTERN;if(go(t))return!1;if(po(t))return!0;if(xe(t,"exec"))return!0;if($r(t))return!1;throw Error("non exhaustive match")}function k7(e){return $r(e)&&e.length===1?e.charCodeAt(0):!1}function yD(e,t){if(xe(e,"LINE_BREAKS"))return!1;if(go(e.PATTERN)){try{Xh(t,e.PATTERN)}catch(n){return{issue:pn.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if($r(e.PATTERN))return!1;if(mD(e))return{issue:pn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function j7(e,t){if(t.issue===pn.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===pn.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
|
|
124
|
+
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function vD(e){var t=ue(e,function(n){return $r(n)&&n.length>0?n.charCodeAt(0):n});return t}function qA(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function Bo(e){return e<Bl?e:qh[e]}function U7(){if(ot(qh)){qh=new Array(65536);for(var e=0;e<65536;e++)qh[e]=e>255?255+~~(e/255):e}}var zA,lD,Ho,hs,Qh,YA,x7,N7,hD,Bl,qh,QA=Qe(()=>{zA=ie(Bh());op();Tt();aD();Gh();lD=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)}}(),Ho="PATTERN",hs="defaultMode",Qh="modes",YA=typeof new RegExp("(?:)").sticky=="boolean";o(fD,"analyzeTokenTypes");o(uD,"validatePatterns");o(S7,"validateRegExpPattern");o(P7,"findMissingPatterns");o(C7,"findInvalidPatterns");x7=/[^\\][\$]/;o(I7,"findEndOfInputAnchor");o(O7,"findEmptyMatchRegExps");N7=/[^\\[][\^]|^\^/;o(L7,"findStartOfInputAnchor");o(R7,"findUnsupportedFlags");o(F7,"findDuplicatePatterns");o(D7,"findInvalidGroupType");o(_7,"findModesThatDoNotExist");o(V7,"findUnreachablePatterns");o(w7,"testTokenType");o(M7,"noMetaChar");o(sD,"addStartOfInput");o(cD,"addStickyFlag");o(pD,"performRuntimeChecks");o(dD,"performWarningRuntimeChecks");o(gD,"cloneEmptyGroups");o(mD,"isCustomPattern");o(k7,"isShortPattern");hD={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(yD,"checkLineBreaksIssues");o(j7,"buildLineBreakIssueMessage");o(vD,"getCharCodes");o(qA,"addToMapOfArrays");Bl=256;o(Bo,"charCodeToOptimizedIndex");qh=[];o(U7,"initCharCodeToOptimizedIndexMap")});function Lc(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function Hl(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Pa(e){var t=$7(e);B7(t),G7(t),H7(t),ye(t,function(n){n.isParent=n.categoryMatches.length>0})}function $7(e){for(var t=bn(e),n=e,i=!0;i;){n=Sa(Nn(ue(n,function(a){return a.CATEGORIES})));var r=Nc(n,t);t=t.concat(r),ot(r)?i=!1:n=r}return t}function B7(e){ye(e,function(t){JA(t)||(bD[TD]=t,t.tokenTypeIdx=TD++),ED(t)&&!si(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),ED(t)||(t.CATEGORIES=[]),W7(t)||(t.categoryMatches=[]),K7(t)||(t.categoryMatchesMap={})})}function H7(e){ye(e,function(t){t.categoryMatches=[],ye(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(bD[i].tokenTypeIdx)})})}function G7(e){ye(e,function(t){AD([],t)})}function AD(e,t){ye(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),ye(t.CATEGORIES,function(n){var i=e.concat(t);Vt(i,n)||AD(i,n)})}function JA(e){return xe(e,"tokenTypeIdx")}function ED(e){return xe(e,"CATEGORIES")}function W7(e){return xe(e,"categoryMatches")}function K7(e){return xe(e,"categoryMatchesMap")}function SD(e){return xe(e,"tokenTypeIdx")}var TD,bD,Gl=Qe(()=>{Tt();o(Lc,"tokenStructuredMatcher");o(Hl,"tokenStructuredMatcherNoCategories");TD=1,bD={};o(Pa,"augmentTokenTypes");o($7,"expandCategories");o(B7,"assignTokenDefaultProps");o(H7,"assignCategoriesTokensProp");o(G7,"assignCategoriesMapProp");o(AD,"singleAssignCategoriesToksMap");o(JA,"hasShortKeyProperty");o(ED,"hasCategoriesProperty");o(W7,"hasExtendingTokensTypesProperty");o(K7,"hasExtendingTokensTypesMapProperty");o(SD,"isTokenType")});var zh,ZA=Qe(()=>{zh={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 pn,ap,Vi,op=Qe(()=>{QA();Tt();Gl();ZA();Gh();(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"})(pn||(pn={}));ap={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
|
125
125
|
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:zh,traceInitPerf:!1,skipValidations:!1};Object.freeze(ap);Vi=function(){function e(t,n){var i=this;if(n===void 0&&(n=ap),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
|
-
a boolean 2nd argument is no longer supported`);this.config=HA(ap,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===ap.lineTerminatorsPattern)i.config.lineTerminatorsPattern=
|
|
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),si(t)?(a={modes:{}},a.modes[hs]=bn(t),a[hs]=hs):(s=!1,a=ms(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(
|
|
126
|
+
a boolean 2nd argument is no longer supported`);this.config=HA(ap,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===ap.lineTerminatorsPattern)i.config.lineTerminatorsPattern=hD;else if(i.config.lineTerminatorCharacters===ap.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
|
|
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),si(t)?(a={modes:{}},a.modes[hs]=bn(t),a[hs]=hs):(s=!1,a=ms(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(pD(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(dD(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},ye(a.modes,function(g,m){a.modes[m]=ba(g,function(v){return Si(v)})});var l=_i(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(uD(g,l))}),ot(i.lexerDefinitionErrors)){Pa(g);var v;i.TRACE_INIT("analyzeTokenTypes",function(){v=fD(g,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:n.positionTracking,ensureOptimizations:n.ensureOptimizations,safeMode:n.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[m]=v.patternIdxToConfig,i.charCodeToPatternIdxToConfig[m]=v.charCodeToPatternIdxToConfig,i.emptyGroups=HA(i.emptyGroups,v.emptyGroups),i.hasCustom=v.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=v.canBeOptimized}})}),i.defaultMode=a.defaultMode,!ot(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var u=ue(i.lexerDefinitionErrors,function(g){return g.message}),p=u.join(`-----------------------
|
|
128
128
|
`);throw new Error(`Errors detected in definition of Lexer:
|
|
129
129
|
`+p)}ye(i.lexerDefinitionWarning,function(g){kh(g.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(YA?(i.chopInput=GA,i.match=i.matchWithTest):(i.updateLastIndex=Mn,i.match=i.matchWithExec),s&&(i.handleModes=Mn),i.trackStartLines===!1&&(i.computeNewColumn=GA),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=Mn),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid <positionTracking> config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var g=un(i.canModeBeOptimized,function(m,v,A){return v===!1&&m.push(A),m},[]);if(n.ensureOptimizations&&!ot(g))throw Error("Lexer Modes: < "+g.join(", ")+` > cannot be optimized.
|
|
130
130
|
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
|
131
|
-
Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){
|
|
131
|
+
Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){nD()}),i.TRACE_INIT("toFastProperties",function(){jh(i)})})}return o(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!ot(this.lexerDefinitionErrors)){var i=ue(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,v,A,E,O,F,j,G,B=t,ae=B.length,Z=0,re=0,Se=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Se),ut=[],yt=this.trackStartLines?1:void 0,Ue=this.trackStartLines?1:void 0,an=
|
|
134
|
-
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return xe(e,CD)&&(n.CATEGORIES=e[CD]),Pa([n]),xe(e,xD)&&(n.LABEL=e[xD]),xe(e,ID)&&(n.GROUP=e[ID]),xe(e,ND)&&(n.POP_MODE=e[ND]),xe(e,OD)&&(n.PUSH_MODE=e[OD]),xe(e,LD)&&(n.LONGER_ALT=e[LD]),xe(e,RD)&&(n.LINE_BREAKS=e[RD]),xe(e,FD)&&(n.START_CHARS_HINT=e[FD]),n}function ys(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 _D(e,t){return Lc(e,t)}var Q7,CD,xD,ID,OD,ND,LD,RD,FD,Br,vs=Qe(()=>{Tt();op();Gl();o(Go,"tokenLabel");o(DD,"tokenName");o(eS,"hasTokenLabel");Q7="parent",CD="categories",xD="label",ID="group",OD="push_mode",ND="pop_mode",LD="longer_alt",RD="line_breaks",FD="start_chars_hint";o(sp,"createToken");o(q7,"createTokenInternal");Br=sp({name:"EOF",pattern:Vi.NA});Pa([Br]);o(ys,"createTokenInstance");o(_D,"tokenMatcher")});function Yh(e){return ue(e,Wl)}function Wl(e){function t(r){return ue(r,Wl)}if(o(t,"convertDefinition"),e instanceof rn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Jt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof on)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 Rn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Wl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof An)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Wl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Nt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Sn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:Go(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=go(i)?i.source:i),n}else{if(e instanceof yr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Ca,mo,rn,yr,Jt,on,Ln,Rn,Nt,An,Sn,ht,wi=Qe(()=>{Tt();vs();Ca=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)}}(),mo=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}(),rn=function(e){Ca(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,hr(i,mr(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}(mo),yr=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(mo),Jt=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(mo),on=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(mo),Ln=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(mo),Rn=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(mo),Nt=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(mo),An=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(mo),Sn=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,hr(i,mr(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}(mo),ht=function(){function e(t){this.idx=1,hr(this,mr(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(Yh,"serializeGrammar");o(Wl,"serializeProduction")});function VD(e,t,n){var i=[new on({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Rc,Jh=Qe(()=>{Tt();wi();Rc=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=wn(t.definition,a+1);if(r instanceof rn)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof Jt)i.walkFlat(r,s,n);else if(r instanceof on)i.walkOption(r,s,n);else if(r instanceof Ln)i.walkAtLeastOne(r,s,n);else if(r instanceof Rn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof An)i.walkManySep(r,s,n);else if(r instanceof Nt)i.walkMany(r,s,n);else if(r instanceof Sn)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 on({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=VD(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new on({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=VD(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 Jt({definition:[s]});r.walk(l,a)})},e}();o(VD,"restForRepetitionWithSeparator")});var Hr,Kl=Qe(()=>{wi();Hr=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case rn:return this.visitNonTerminal(n);case Jt:return this.visitAlternative(n);case on:return this.visitOption(n);case Ln:return this.visitRepetitionMandatory(n);case Rn:return this.visitRepetitionMandatoryWithSeparator(n);case An:return this.visitRepetitionWithSeparator(n);case Nt:return this.visitRepetition(n);case Sn:return this.visitAlternation(n);case ht:return this.visitTerminal(n);case yr: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 wD(e){return e instanceof Jt||e instanceof on||e instanceof Nt||e instanceof Ln||e instanceof Rn||e instanceof An||e instanceof ht||e instanceof yr}function Xl(e,t){t===void 0&&(t=[]);var n=e instanceof on||e instanceof Nt||e instanceof An;return n?!0:e instanceof Sn?Mh(e.definition,function(i){return Xl(i,t)}):e instanceof rn&&Vt(t,e)?!1:e instanceof mo?(e instanceof rn&&t.push(e),ci(e.definition,function(i){return Xl(i,t)})):!1}function MD(e){return e instanceof Sn}function vr(e){if(e instanceof rn)return"SUBRULE";if(e instanceof on)return"OPTION";if(e instanceof Sn)return"OR";if(e instanceof Ln)return"AT_LEAST_ONE";if(e instanceof Rn)return"AT_LEAST_ONE_SEP";if(e instanceof An)return"MANY_SEP";if(e instanceof Nt)return"MANY";if(e instanceof ht)return"CONSUME";throw Error("non exhaustive match")}function kD(e){Zh.reset(),e.accept(Zh);var t=Zh.dslMethods;return Zh.reset(),t}var z7,tS,Zh,Ql=Qe(()=>{Tt();wi();Kl();z7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(wD,"isSequenceProd");o(Xl,"isOptionalProd");o(MD,"isBranchingProd");o(vr,"getProductionDslName");tS=function(e){z7(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";xe(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";xe(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}(Hr),Zh=new tS;o(kD,"collectMethods")});function Fc(e){if(e instanceof rn)return Fc(e.referencedRule);if(e instanceof ht)return Z7(e);if(wD(e))return Y7(e);if(MD(e))return J7(e);throw Error("non exhaustive match")}function Y7(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=Xl(a),t=t.concat(Fc(a)),i=i+1,r=n.length>i;return ep(t)}function J7(e){var t=ue(e.definition,function(n){return Fc(n)});return ep(Nn(t))}function Z7(e){return[e.terminalType]}var nS=Qe(()=>{Tt();wi();Ql();o(Fc,"first");o(Y7,"firstForSequence");o(J7,"firstForBranching");o(Z7,"firstForTerminal")});var ey,iS=Qe(()=>{ey="_~IN~_"});function jD(e){var t={};return ye(e,function(n){var i=new tQ(n).startWalking();hr(t,i)}),t}function nQ(e,t){return e.name+t+ey}var eQ,tQ,UD=Qe(()=>{Jh();nS();Tt();iS();wi();eQ=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)}}(),tQ=function(e){eQ(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=nQ(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Jt({definition:s}),u=Fc(l);this.follows[a]=u},t}(Rc);o(jD,"computeAllProdsFollows");o(nQ,"buildBetweenProdsFollowPrefix")});var cp,ty,Ts,lp=Qe(()=>{vs();Tt();Tt();wi();Ql();cp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=eS(t),s=a?"--> "+Go(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,v,A,E,O,F,j,G,B=t,ae=B.length,Z=0,re=0,Se=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Se),ut=[],yt=this.trackStartLines?1:void 0,Ue=this.trackStartLines?1:void 0,an=gD(this.emptyGroups),Gn=this.trackStartLines,en=this.config.lineTerminatorsPattern,Lt=0,Re=[],Ci=[],It=[],Mt=[];Object.freeze(Mt);var sn=void 0;function ji(){return Re}o(ji,"getPossiblePatternsSlow");function Fe(Gt){var qo=Bo(Gt),Ui=Ci[qo];return Ui===void 0?Mt:Ui}o(Fe,"getPossiblePatternsOptimized");var Wn=o(function(Gt){if(It.length===1&&Gt.tokenType.PUSH_MODE===void 0){var qo=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:qo})}else{It.pop();var Ui=Vh(It);Re=i.patternIdxToConfig[Ui],Ci=i.charCodeToPatternIdxToConfig[Ui],Lt=Re.length;var Of=i.canModeBeOptimized[Ui]&&i.config.safeMode===!1;Ci&&Of?sn=Fe:sn=ji}},"pop_mode");function Cr(Gt){It.push(Gt),Ci=this.charCodeToPatternIdxToConfig[Gt],Re=this.patternIdxToConfig[Gt],Lt=Re.length,Lt=Re.length;var qo=this.canModeBeOptimized[Gt]&&this.config.safeMode===!1;Ci&&qo?sn=Fe:sn=ji}o(Cr,"push_mode"),Cr.call(this,n);for(var at;Z<ae;){u=null;var I=B.charCodeAt(Z),S=sn(I),z=S.length;for(r=0;r<z;r++){at=S[r];var V=at.pattern;p=null;var _e=at.short;if(_e!==!1?I===_e&&(u=V):at.isCustom===!0?(G=V.exec(B,Z,D,an),G!==null?(u=G[0],G.payload!==void 0&&(p=G.payload)):u=null):(this.updateLastIndex(V,Z),u=this.match(V,t,Z)),u!==null){if(l=at.longerAlt,l!==void 0){var Rt=Re[l],Xe=Rt.pattern;g=null,Rt.isCustom===!0?(G=Xe.exec(B,Z,D,an),G!==null?(s=G[0],G.payload!==void 0&&(g=G.payload)):s=null):(this.updateLastIndex(Xe,Z),s=this.match(Xe,t,Z)),s&&s.length>u.length&&(u=s,p=g,at=Rt)}break}}if(u!==null){if(m=u.length,v=at.group,v!==void 0&&(A=at.tokenTypeIdx,E=this.createTokenInstance(u,Z,A,at.tokenType,yt,Ue,m),this.handlePayload(E,p),v===!1?re=this.addToken(D,re,E):an[v].push(E)),t=this.chopInput(t,m),Z=Z+m,Ue=this.computeNewColumn(Ue,m),Gn===!0&&at.canLineTerminator===!0){var kt=0,yn=void 0,cn=void 0;en.lastIndex=0;do yn=en.test(u),yn===!0&&(cn=en.lastIndex-1,kt++);while(yn===!0);kt!==0&&(yt=yt+kt,Ue=m-cn,this.updateTokenEndLineColumnLocation(E,v,cn,kt,yt,Ue,m))}this.handleModes(at,Wn,Cr,E)}else{for(var Ht=Z,ti=yt,ir=Ue,dn=!1;!dn&&Z<ae;)for(F=B.charCodeAt(Z),t=this.chopInput(t,1),Z++,a=0;a<Lt;a++){var ui=Re[a],V=ui.pattern,_e=ui.short;if(_e!==!1?B.charCodeAt(Z)===_e&&(dn=!0):ui.isCustom===!0?dn=V.exec(B,Z,D,an)!==null:(this.updateLastIndex(V,Z),dn=V.exec(t)!==null),dn===!0)break}O=Z-Ht,j=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(B,Ht,O,ti,ir),ut.push({offset:Ht,line:ti,column:ir,length:O,message:j})}}return this.hasCustom||(D.length=re),{tokens:D,groups:an,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=Uh(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 Go(e){return eS(e)?e.LABEL:e.name}function FD(e){return e.name}function eS(e){return $r(e.LABEL)&&e.LABEL!==""}function sp(e){return Q7(e)}function Q7(e){var t=e.pattern,n={};if(n.name=e.name,Si(t)||(n.PATTERN=t),xe(e,X7))throw`The parent property is no longer supported.
|
|
134
|
+
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return xe(e,PD)&&(n.CATEGORIES=e[PD]),Pa([n]),xe(e,CD)&&(n.LABEL=e[CD]),xe(e,xD)&&(n.GROUP=e[xD]),xe(e,OD)&&(n.POP_MODE=e[OD]),xe(e,ID)&&(n.PUSH_MODE=e[ID]),xe(e,ND)&&(n.LONGER_ALT=e[ND]),xe(e,LD)&&(n.LINE_BREAKS=e[LD]),xe(e,RD)&&(n.START_CHARS_HINT=e[RD]),n}function ys(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 DD(e,t){return Lc(e,t)}var X7,PD,CD,xD,ID,OD,ND,LD,RD,Hr,vs=Qe(()=>{Tt();op();Gl();o(Go,"tokenLabel");o(FD,"tokenName");o(eS,"hasTokenLabel");X7="parent",PD="categories",CD="label",xD="group",ID="push_mode",OD="pop_mode",ND="longer_alt",LD="line_breaks",RD="start_chars_hint";o(sp,"createToken");o(Q7,"createTokenInternal");Hr=sp({name:"EOF",pattern:Vi.NA});Pa([Hr]);o(ys,"createTokenInstance");o(DD,"tokenMatcher")});function Yh(e){return ue(e,Wl)}function Wl(e){function t(r){return ue(r,Wl)}if(o(t,"convertDefinition"),e instanceof rn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Jt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof on)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 Rn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Wl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof An)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Wl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Nt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Sn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:Go(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=go(i)?i.source:i),n}else{if(e instanceof yr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Ca,mo,rn,yr,Jt,on,Ln,Rn,Nt,An,Sn,ht,wi=Qe(()=>{Tt();vs();Ca=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)}}(),mo=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}(),rn=function(e){Ca(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,hr(i,mr(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}(mo),yr=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(mo),Jt=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(mo),on=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(mo),Ln=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(mo),Rn=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(mo),Nt=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(mo),An=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(mo),Sn=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,hr(i,mr(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}(mo),ht=function(){function e(t){this.idx=1,hr(this,mr(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(Yh,"serializeGrammar");o(Wl,"serializeProduction")});function _D(e,t,n){var i=[new on({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Rc,Jh=Qe(()=>{Tt();wi();Rc=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=wn(t.definition,a+1);if(r instanceof rn)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof Jt)i.walkFlat(r,s,n);else if(r instanceof on)i.walkOption(r,s,n);else if(r instanceof Ln)i.walkAtLeastOne(r,s,n);else if(r instanceof Rn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof An)i.walkManySep(r,s,n);else if(r instanceof Nt)i.walkMany(r,s,n);else if(r instanceof Sn)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 on({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=_D(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new on({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=_D(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 Jt({definition:[s]});r.walk(l,a)})},e}();o(_D,"restForRepetitionWithSeparator")});var Gr,Kl=Qe(()=>{wi();Gr=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case rn:return this.visitNonTerminal(n);case Jt:return this.visitAlternative(n);case on:return this.visitOption(n);case Ln:return this.visitRepetitionMandatory(n);case Rn:return this.visitRepetitionMandatoryWithSeparator(n);case An:return this.visitRepetitionWithSeparator(n);case Nt:return this.visitRepetition(n);case Sn:return this.visitAlternation(n);case ht:return this.visitTerminal(n);case yr: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 VD(e){return e instanceof Jt||e instanceof on||e instanceof Nt||e instanceof Ln||e instanceof Rn||e instanceof An||e instanceof ht||e instanceof yr}function Xl(e,t){t===void 0&&(t=[]);var n=e instanceof on||e instanceof Nt||e instanceof An;return n?!0:e instanceof Sn?Mh(e.definition,function(i){return Xl(i,t)}):e instanceof rn&&Vt(t,e)?!1:e instanceof mo?(e instanceof rn&&t.push(e),ci(e.definition,function(i){return Xl(i,t)})):!1}function wD(e){return e instanceof Sn}function vr(e){if(e instanceof rn)return"SUBRULE";if(e instanceof on)return"OPTION";if(e instanceof Sn)return"OR";if(e instanceof Ln)return"AT_LEAST_ONE";if(e instanceof Rn)return"AT_LEAST_ONE_SEP";if(e instanceof An)return"MANY_SEP";if(e instanceof Nt)return"MANY";if(e instanceof ht)return"CONSUME";throw Error("non exhaustive match")}function MD(e){Zh.reset(),e.accept(Zh);var t=Zh.dslMethods;return Zh.reset(),t}var q7,tS,Zh,Ql=Qe(()=>{Tt();wi();Kl();q7=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(VD,"isSequenceProd");o(Xl,"isOptionalProd");o(wD,"isBranchingProd");o(vr,"getProductionDslName");tS=function(e){q7(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";xe(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";xe(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}(Gr),Zh=new tS;o(MD,"collectMethods")});function Fc(e){if(e instanceof rn)return Fc(e.referencedRule);if(e instanceof ht)return J7(e);if(VD(e))return z7(e);if(wD(e))return Y7(e);throw Error("non exhaustive match")}function z7(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=Xl(a),t=t.concat(Fc(a)),i=i+1,r=n.length>i;return ep(t)}function Y7(e){var t=ue(e.definition,function(n){return Fc(n)});return ep(Nn(t))}function J7(e){return[e.terminalType]}var nS=Qe(()=>{Tt();wi();Ql();o(Fc,"first");o(z7,"firstForSequence");o(Y7,"firstForBranching");o(J7,"firstForTerminal")});var ey,iS=Qe(()=>{ey="_~IN~_"});function kD(e){var t={};return ye(e,function(n){var i=new eQ(n).startWalking();hr(t,i)}),t}function tQ(e,t){return e.name+t+ey}var Z7,eQ,jD=Qe(()=>{Jh();nS();Tt();iS();wi();Z7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),eQ=function(e){Z7(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=tQ(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Jt({definition:s}),u=Fc(l);this.follows[a]=u},t}(Rc);o(kD,"computeAllProdsFollows");o(tQ,"buildBetweenProdsFollowPrefix")});var cp,ty,Ts,lp=Qe(()=>{vs();Tt();Tt();wi();Ql();cp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=eS(t),s=a?"--> "+Go(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=un(t,function(A,E){return A.concat(E)},[]),g=ue(p,function(A){return"["+ue(A,function(E){return Go(E)}).join(", ")+"]"}),m=ue(g,function(A,E){return" "+(E+1)+". "+A}),v=`one of these possible Token sequences:
|
|
136
136
|
`+m.join(`
|
|
137
137
|
`);return s+v+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,33 +161,33 @@ 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 yr?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 $D(e,t){var n=new rQ(e,t);return n.resolveRefs(),n.errors}var iQ,rQ,BD=Qe(()=>{Tr();Tt();Kl();iQ=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($D,"resolveGrammar");rQ=function(e){iQ(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ye(Vn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Hn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Hr)});function iy(e,t,n){n===void 0&&(n=[]),n=bn(n);var i=[],r=0;function a(p){return p.concat(wn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=iy(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Jt)return s(l.definition);if(l instanceof rn)return s(l.definition);if(l instanceof on)i=s(l.definition);else if(l instanceof Ln){var u=l.definition.concat([new Nt({definition:l.definition})]);return s(u)}else if(l instanceof Rn){var u=[new Jt({definition:l.definition}),new Nt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof An){var u=l.definition.concat([new Nt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Nt){var u=l.definition.concat([new Nt({definition:l.definition})]);i=s(u)}else{if(l instanceof Sn)return ye(l.definition,function(p){ot(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof ht)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:wn(e,r)}),i}function ry(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!ot(m);){var v=m.pop();if(v===s){l&&Vh(m).idx<=p&&m.pop();continue}var A=v.def,E=v.idx,O=v.ruleStack,F=v.occurrenceStack;if(!ot(A)){var j=A[0];if(j===r){var G={idx:E,def:wn(A),ruleStack:gs(O),occurrenceStack:gs(F)};m.push(G)}else if(j instanceof ht)if(E<u-1){var B=E+1,ae=t[B];if(n(ae,j.terminalType)){var G={idx:B,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(G)}}else if(E===u-1)g.push({nextTokenType:j.terminalType,nextTokenOccurrence:j.idx,ruleStack:O,occurrenceStack:F}),l=!0;else throw Error("non exhaustive match");else if(j instanceof rn){var Z=bn(O);Z.push(j.nonTerminalName);var re=bn(F);re.push(j.idx);var G={idx:E,def:j.definition.concat(a,wn(A)),ruleStack:Z,occurrenceStack:re};m.push(G)}else if(j instanceof on){var Se={idx:E,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Se),m.push(s);var D={idx:E,def:j.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F};m.push(D)}else if(j instanceof Ln){var ut=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([ut],wn(A)),G={idx:E,def:yt,ruleStack:O,occurrenceStack:F};m.push(G)}else if(j instanceof Rn){var Ue=new ht({terminalType:j.separator}),ut=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([ut],wn(A)),G={idx:E,def:yt,ruleStack:O,occurrenceStack:F};m.push(G)}else if(j instanceof An){var Se={idx:E,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Se),m.push(s);var Ue=new ht({terminalType:j.separator}),an=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([an],wn(A)),D={idx:E,def:yt,ruleStack:O,occurrenceStack:F};m.push(D)}else if(j instanceof Nt){var Se={idx:E,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Se),m.push(s);var an=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([an],wn(A)),D={idx:E,def:yt,ruleStack:O,occurrenceStack:F};m.push(D)}else if(j instanceof Sn)for(var Gn=j.definition.length-1;Gn>=0;Gn--){var en=j.definition[Gn],Lt={idx:E,def:en.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F};m.push(Lt),m.push(s)}else if(j instanceof Jt)m.push({idx:E,def:j.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F});else if(j instanceof yr)m.push(aQ(j,E,O,F));else throw Error("non exhaustive match")}}return g}function aQ(e,t,n,i){var r=bn(n);r.push(e.name);var a=bn(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var Dc,oQ,HD,ny,GD,rS,WD,oS,fp=Qe(()=>{Jh();Tt();nS();wi();Dc=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),oQ=function(e){Dc(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=bn(this.path.ruleStack).reverse(),this.occurrenceStack=bn(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){ot(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Rc),HD=function(e){Dc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new Jt({definition:a});this.possibleTokTypes=Fc(s),this.found=!0}},t}(oQ),ny=function(e){Dc(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Rc),GD=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(ny),rS=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(ny),WD=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(ny),oS=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(ny);o(iy,"possiblePathsFrom");o(ry,"nextPossibleTokensAfter");o(aQ,"expandTopLevelRule")});function QD(e){if(e instanceof on)return wt.OPTION;if(e instanceof Nt)return wt.REPETITION;if(e instanceof Ln)return wt.REPETITION_MANDATORY;if(e instanceof Rn)return wt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof An)return wt.REPETITION_WITH_SEPARATOR;if(e instanceof Sn)return wt.ALTERNATION;throw Error("non exhaustive match")}function qD(e,t,n,i,r,a){var s=up(e,t,n),l=n_(s)?Hl:Lc;return a(s,i,l,r)}function zD(e,t,n,i,r,a){var s=pp(e,t,r,n),l=n_(s)?Hl:Lc;return a(s[0],l,i)}function YD(e,t,n,i){var r=e.length,a=ci(e,function(u){return ci(u,function(p){return p.length===1})});if(t)return function(u){for(var p=ue(u,function(B){return B.GATE}),g=0;g<r;g++){var m=e[g],v=m.length,A=p[g];if(!(A!==void 0&&A.call(this)===!1))e:for(var E=0;E<v;E++){for(var O=m[E],F=O.length,j=0;j<F;j++){var G=this.LA(j+1);if(n(G,O[j])===!1)continue e}return g}}};if(a&&!i){var s=ue(e,function(u){return Nn(u)}),l=un(s,function(u,p,g){return ye(p,function(m){xe(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ye(m.categoryMatches,function(v){xe(u,v)||(u[v]=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 v=p[m],A=v.length,E=0;E<A;E++){var O=this.LA(E+1);if(n(O,v[E])===!1)continue e}return u}}}}function JD(e,t,n){var i=ci(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Nn(e);if(a.length===1&&ot(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=un(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,ye(g.categoryMatches,function(v){p[v]=!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,v=0;v<m;v++){var A=this.LA(v+1);if(t(A,g[v])===!1)continue e}return!0}return!1}}function KD(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function aS(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 cQ(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 e_(e,t){for(var n=ue(e,function(g){return iy([g],1)}),i=KD(n.length),r=ue(n,function(g){var m={};return ye(g,function(v){var A=aS(v.partialPath);ye(A,function(E){m[E]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=KD(l.length);for(var u=o(function(g){for(var m=l[g],v=0;v<m.length;v++){var A=m[v].partialPath,E=m[v].suffixDef,O=aS(A),F=cQ(r,O,g);if(F||ot(E)||A.length===t){var j=i[g];if(oy(j,A)===!1){j.push(A);for(var G=0;G<O.length;G++){var B=O[G];r[g][B]=!0}}}else{var ae=iy(E,s+1,A);a[g]=a[g].concat(ae),ye(ae,function(Z){var re=aS(Z.partialPath);ye(re,function(Se){r[g][Se]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function up(e,t,n,i){var r=new ZD(e,wt.ALTERNATION,i);return t.accept(r),e_(r.result,n)}function pp(e,t,n,i){var r=new ZD(e,n);t.accept(r);var a=r.result,s=new sQ(t,e,n),l=s.startWalking(),u=new Jt({definition:a}),p=new Jt({definition:l});return e_([u,p],i)}function oy(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 t_(e,t){return e.length<t.length&&ci(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function n_(e){return ci(e,function(t){return ci(t,function(n){return ci(n,function(i){return ot(i.categoryMatches)})})})}var XD,wt,sQ,ZD,dp=Qe(()=>{Tt();fp();Jh();Gl();wi();Kl();XD=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(wt||(wt={}));o(QD,"getProdType");o(qD,"buildLookaheadFuncForOr");o(zD,"buildLookaheadFuncForOptionalProd");o(YD,"buildAlternativesLookAheadFunc");o(JD,"buildSingleAlternativeLookaheadFunction");sQ=function(e){XD(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,wt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,wt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Rc),ZD=function(e){XD(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,wt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,wt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,wt.ALTERNATION)},t}(Hr);o(KD,"initializeArrayOfArrays");o(aS,"pathToHashKeys");o(cQ,"isUniquePrefixHash");o(e_,"lookAheadSequenceFromAlternatives");o(up,"getLookaheadPathsForOr");o(pp,"getLookaheadPathsForOptionalProd");o(oy,"containsPath");o(t_,"isStrictPrefixOfPath");o(n_,"areTokenCategoriesNotUsed")});function i_(e,t,n,i,r){var a=ue(e,function(A){return lQ(A,i)}),s=ue(e,function(A){return a_(A,A,i)}),l=[],u=[],p=[];ci(s,ot)&&(l=ue(e,function(A){return dQ(A,i)}),u=ue(e,function(A){return gQ(A,t,i)}),p=yQ(e,t,i));var g=EQ(e,n,i),m=ue(e,function(A){return hQ(A,i)}),v=ue(e,function(A){return pQ(A,e,r,i)});return Nn(a.concat(p,s,l,u,g,m,v))}function lQ(e,t){var n=new uQ;e.accept(n);var i=n.allProductions,r=Y1(i,fQ),a=mr(r,function(l){return l.length>1}),s=ue(Vn(a),function(l){var u=Ai(l),p=t.buildDuplicateFoundError(e,l),g=vr(u),m={message:p,type:Hn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},v=r_(u);return v&&(m.parameter=v),m});return s}function fQ(e){return vr(e)+"_#_"+e.idx+"_#_"+r_(e)}function r_(e){return e instanceof ht?e.terminalType.name:e instanceof rn?e.nonTerminalName:""}function pQ(e,t,n,i){var r=[],a=un(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Hn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function o_(e,t,n){var i=[],r;return Vt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Hn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function a_(e,t,n,i){i===void 0&&(i=[]);var r=[],a=ay(t.definition);if(ot(a))return[];var s=e.name,l=Vt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Hn.LEFT_RECURSION,ruleName:s});var u=Nc(a,i.concat([e])),p=ue(u,function(g){var m=bn(i);return m.push(g),a_(e,g,n,m)});return r.concat(Nn(p))}function ay(e){var t=[];if(ot(e))return t;var n=Ai(e);if(n instanceof rn)t.push(n.referencedRule);else if(n instanceof Jt||n instanceof on||n instanceof Ln||n instanceof Rn||n instanceof An||n instanceof Nt)t=t.concat(ay(n.definition));else if(n instanceof Sn)t=Nn(ue(n.definition,function(s){return ay(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=Xl(n),r=e.length>1;if(i&&r){var a=wn(e);return t.concat(ay(a))}else return t}function dQ(e,t){var n=new cS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){var l=gs(s.definition),u=ue(l,function(p,g){var m=ry([p],[],null,1);return ot(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Hn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(Sa(u))},[]);return r}function gQ(e,t,n){var i=new cS;e.accept(i);var r=i.alternations;r=ba(r,function(s){return s.ignoreAmbiguities===!0});var a=un(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=up(u,e,p,l),m=vQ(g,l,e,n),v=TQ(g,l,e,n);return s.concat(m,v)},[]);return a}function hQ(e,t){var n=new cS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Hn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function yQ(e,t,n){var i=[];return ye(e,function(r){var a=new mQ;r.accept(a);var s=a.allProductions;ye(s,function(l){var u=QD(l),p=l.maxLookahead||t,g=l.idx,m=pp(g,r,u,p),v=m[0];if(ot(Nn(v))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Hn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function vQ(e,t,n,i){var r=[],a=un(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ye(u,function(g){var m=[p];ye(e,function(v,A){p!==A&&oy(v,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!oy(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=ue(a,function(l){var u=ue(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Hn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function TQ(e,t,n,i){var r=[],a=un(e,function(s,l,u){var p=ue(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ye(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=q1(a,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<u&&t_(v.path,p)}),m=ue(g,function(v){var A=[v.idx+1,u+1],E=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:v.path});return{message:O,type:Hn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:E,alternatives:A}});r=r.concat(m)}}),r}function EQ(e,t,n){var i=[],r=ue(t,function(a){return a.name});return ye(e,function(a){var s=a.name;if(Vt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Hn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var sS,uQ,cS,mQ,lS=Qe(()=>{Tt();Tt();Tr();Ql();dp();fp();wi();Kl();sS=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(i_,"validateGrammar");o(lQ,"validateDuplicateProductions");o(fQ,"identifyProductionForDuplicates");o(r_,"getExtraProductionArgument");uQ=function(e){sS(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}(Hr);o(pQ,"validateRuleDoesNotAlreadyExist");o(o_,"validateRuleIsOverridden");o(a_,"validateNoLeftRecursion");o(ay,"getFirstNoneTerminal");cS=function(e){sS(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}(Hr);o(dQ,"validateEmptyOrAlternative");o(gQ,"validateAmbiguousAlternationAlternatives");mQ=function(e){sS(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}(Hr);o(hQ,"validateTooManyAlts");o(yQ,"validateSomeNonEmptyLookaheadPath");o(vQ,"checkAlternativesAmbiguities");o(TQ,"checkPrefixAlternativesAmbiguities");o(EQ,"checkTerminalAndNoneTerminalsNameSpace")});function sy(e){e=tp(e,{errMsgProvider:ty});var t={};return ye(e.rules,function(n){t[n.name]=n}),$D(t,e.errMsgProvider)}function cy(e){return e=tp(e,{errMsgProvider:Ts}),i_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function s_(e){ye(e.rules,function(t){var n=new tS;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,a){r.idx=a+1})})})}var fS=Qe(()=>{Tt();BD();lS();lp();Ql();o(sy,"resolveGrammar");o(cy,"validateGrammar");o(s_,"assignOccurrenceIndices")});function xa(e){return Vt(p_,e.name)}var gp,c_,l_,f_,u_,p_,ly,ql,fy,uy,py,zl=Qe(()=>{Tt();gp=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)}}(),c_="MismatchedTokenException",l_="NoViableAltException",f_="EarlyExitException",u_="NotAllInputParsedException",p_=[c_,l_,f_,u_];Object.freeze(p_);o(xa,"isRecognitionException");ly=function(e){gp(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t}(Error),ql=function(e){gp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=c_,a}return o(t,"MismatchedTokenException"),t}(ly),fy=function(e){gp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=l_,a}return o(t,"NoViableAltException"),t}(ly),uy=function(e){gp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=u_,r}return o(t,"NotAllInputParsedException"),t}(ly),py=function(e){gp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=f_,a}return o(t,"EarlyExitException"),t}(ly)});function d_(e){this.name=pS,this.message=e}function bQ(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 v=u.token,A=u.occurrence,E=u.isEndOfRule;this.RULE_STACK.length===1&&E&&v===void 0&&(v=Br,A=1),this.shouldInRepetitionRecoveryBeTried(v,A,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var uS,pS,g_,dS=Qe(()=>{vs();Tt();zl();iS();Tr();uS={},pS="InRuleRecoveryException";o(d_,"InRuleRecoveryException");d_.prototype=Error.prototype;g_=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=xe(t,"recoveryEnabled")?t.recoveryEnabled:Yi.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=bQ)},e.prototype.getTokenToInsert=function(t){var n=ys(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),v=o(function(){var A=a.LA(0),E=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:A,ruleName:a.getCurrRuleFullName()}),O=new ql(E,g,a.LA(0));O.resyncedTokens=gs(u),a.SAVE_ERROR(O)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){v();return}else if(i.call(this)){v(),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 d_("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||ot(n))return!1;var r=this.LA(1),a=Aa(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return Vt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Vt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return uS;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return ue(n,function(r,a){return a===0?uS:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=ue(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Nn(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===uS)return[Br];var n=t.ruleName+t.idxInCallingRule+ey+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Br)||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 gs(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=bn(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return ue(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(bQ,"attemptInRepetitionRecovery")});function my(e,t,n){return n|t|e}var m_,Wo,AQ,dy,gy,mp,hp,yp,Yl,_ae,hy=Qe(()=>{m_=4,Wo=8,AQ=8,dy=1<<Wo,gy=2<<Wo,mp=3<<Wo,hp=4<<Wo,yp=5<<Wo,Yl=6<<Wo;o(my,"getKeyForAutomaticLookahead");_ae=32-AQ});var h_,y_=Qe(()=>{dp();Tt();Tr();hy();Ql();h_=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=xe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:Yi.dynamicTokensEnabled,this.maxLookahead=xe(t,"maxLookahead")?t.maxLookahead:Yi.maxLookahead,this.lookAheadFuncsCache=WA()?new Map:[],WA()?(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=kD(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;ye(a,function(m){var v=m.idx===0?"":m.idx;n.TRACE_INIT(""+vr(m)+v,function(){var A=qD(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),E=my(n.fullRuleNameToShort[i.name],dy,m.idx);n.setLaFuncCache(E,A)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,mp,wt.REPETITION,m.maxLookahead,vr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,gy,wt.OPTION,m.maxLookahead,vr(m))}),ye(u,function(m){n.computeLookaheadFunc(i,m.idx,hp,wt.REPETITION_MANDATORY,m.maxLookahead,vr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,Yl,wt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,vr(m))}),ye(g,function(m){n.computeLookaheadFunc(i,m.idx,yp,wt.REPETITION_WITH_SEPARATOR,m.maxLookahead,vr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=zD(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=my(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return JD(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return YD(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return my(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 gS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function mS(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 v_(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function T_(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var E_=Qe(()=>{o(gS,"setNodeLocationOnlyOffset");o(mS,"setNodeLocationFull");o(v_,"addTerminalToCst");o(T_,"addNoneTerminalToCst")});function A_(e){return vp(e.constructor)}function vp(e){var t=e.name;return t||"anonymous"}function hS(e,t){var n=Object.getOwnPropertyDescriptor(e,b_);return Si(n)||n.configurable?(Object.defineProperty(e,b_,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var b_,yS=Qe(()=>{Tt();o(A_,"classNameFromInstance");b_="name";o(vp,"functionName");o(hS,"defineNameProp")});function SQ(e,t){for(var n=_i(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function S_(e,t){var n=o(function(){},"derivedConstructor");hS(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(si(r)&&(r=r[0]),!Si(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=PQ(this,t);if(!ot(r)){var a=ue(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+vp(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 yr?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 UD(e,t){var n=new iQ(e,t);return n.resolveRefs(),n.errors}var nQ,iQ,$D=Qe(()=>{Tr();Tt();Kl();nQ=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(UD,"resolveGrammar");iQ=function(e){nQ(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ye(Vn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Hn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Gr)});function iy(e,t,n){n===void 0&&(n=[]),n=bn(n);var i=[],r=0;function a(p){return p.concat(wn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=iy(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Jt)return s(l.definition);if(l instanceof rn)return s(l.definition);if(l instanceof on)i=s(l.definition);else if(l instanceof Ln){var u=l.definition.concat([new Nt({definition:l.definition})]);return s(u)}else if(l instanceof Rn){var u=[new Jt({definition:l.definition}),new Nt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof An){var u=l.definition.concat([new Nt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Nt){var u=l.definition.concat([new Nt({definition:l.definition})]);i=s(u)}else{if(l instanceof Sn)return ye(l.definition,function(p){ot(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof ht)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:wn(e,r)}),i}function ry(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!ot(m);){var v=m.pop();if(v===s){l&&Vh(m).idx<=p&&m.pop();continue}var A=v.def,E=v.idx,O=v.ruleStack,F=v.occurrenceStack;if(!ot(A)){var j=A[0];if(j===r){var G={idx:E,def:wn(A),ruleStack:gs(O),occurrenceStack:gs(F)};m.push(G)}else if(j instanceof ht)if(E<u-1){var B=E+1,ae=t[B];if(n(ae,j.terminalType)){var G={idx:B,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(G)}}else if(E===u-1)g.push({nextTokenType:j.terminalType,nextTokenOccurrence:j.idx,ruleStack:O,occurrenceStack:F}),l=!0;else throw Error("non exhaustive match");else if(j instanceof rn){var Z=bn(O);Z.push(j.nonTerminalName);var re=bn(F);re.push(j.idx);var G={idx:E,def:j.definition.concat(a,wn(A)),ruleStack:Z,occurrenceStack:re};m.push(G)}else if(j instanceof on){var Se={idx:E,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Se),m.push(s);var D={idx:E,def:j.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F};m.push(D)}else if(j instanceof Ln){var ut=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([ut],wn(A)),G={idx:E,def:yt,ruleStack:O,occurrenceStack:F};m.push(G)}else if(j instanceof Rn){var Ue=new ht({terminalType:j.separator}),ut=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([ut],wn(A)),G={idx:E,def:yt,ruleStack:O,occurrenceStack:F};m.push(G)}else if(j instanceof An){var Se={idx:E,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Se),m.push(s);var Ue=new ht({terminalType:j.separator}),an=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([an],wn(A)),D={idx:E,def:yt,ruleStack:O,occurrenceStack:F};m.push(D)}else if(j instanceof Nt){var Se={idx:E,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Se),m.push(s);var an=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([an],wn(A)),D={idx:E,def:yt,ruleStack:O,occurrenceStack:F};m.push(D)}else if(j instanceof Sn)for(var Gn=j.definition.length-1;Gn>=0;Gn--){var en=j.definition[Gn],Lt={idx:E,def:en.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F};m.push(Lt),m.push(s)}else if(j instanceof Jt)m.push({idx:E,def:j.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F});else if(j instanceof yr)m.push(oQ(j,E,O,F));else throw Error("non exhaustive match")}}return g}function oQ(e,t,n,i){var r=bn(n);r.push(e.name);var a=bn(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var Dc,rQ,BD,ny,HD,rS,GD,oS,fp=Qe(()=>{Jh();Tt();nS();wi();Dc=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),rQ=function(e){Dc(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=bn(this.path.ruleStack).reverse(),this.occurrenceStack=bn(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){ot(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Rc),BD=function(e){Dc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new Jt({definition:a});this.possibleTokTypes=Fc(s),this.found=!0}},t}(rQ),ny=function(e){Dc(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Rc),HD=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(ny),rS=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(ny),GD=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(ny),oS=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(ny);o(iy,"possiblePathsFrom");o(ry,"nextPossibleTokensAfter");o(oQ,"expandTopLevelRule")});function XD(e){if(e instanceof on)return wt.OPTION;if(e instanceof Nt)return wt.REPETITION;if(e instanceof Ln)return wt.REPETITION_MANDATORY;if(e instanceof Rn)return wt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof An)return wt.REPETITION_WITH_SEPARATOR;if(e instanceof Sn)return wt.ALTERNATION;throw Error("non exhaustive match")}function QD(e,t,n,i,r,a){var s=up(e,t,n),l=t_(s)?Hl:Lc;return a(s,i,l,r)}function qD(e,t,n,i,r,a){var s=pp(e,t,r,n),l=t_(s)?Hl:Lc;return a(s[0],l,i)}function zD(e,t,n,i){var r=e.length,a=ci(e,function(u){return ci(u,function(p){return p.length===1})});if(t)return function(u){for(var p=ue(u,function(B){return B.GATE}),g=0;g<r;g++){var m=e[g],v=m.length,A=p[g];if(!(A!==void 0&&A.call(this)===!1))e:for(var E=0;E<v;E++){for(var O=m[E],F=O.length,j=0;j<F;j++){var G=this.LA(j+1);if(n(G,O[j])===!1)continue e}return g}}};if(a&&!i){var s=ue(e,function(u){return Nn(u)}),l=un(s,function(u,p,g){return ye(p,function(m){xe(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ye(m.categoryMatches,function(v){xe(u,v)||(u[v]=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 v=p[m],A=v.length,E=0;E<A;E++){var O=this.LA(E+1);if(n(O,v[E])===!1)continue e}return u}}}}function YD(e,t,n){var i=ci(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Nn(e);if(a.length===1&&ot(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=un(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,ye(g.categoryMatches,function(v){p[v]=!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,v=0;v<m;v++){var A=this.LA(v+1);if(t(A,g[v])===!1)continue e}return!0}return!1}}function WD(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function aS(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 ZD(e,t){for(var n=ue(e,function(g){return iy([g],1)}),i=WD(n.length),r=ue(n,function(g){var m={};return ye(g,function(v){var A=aS(v.partialPath);ye(A,function(E){m[E]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=WD(l.length);for(var u=o(function(g){for(var m=l[g],v=0;v<m.length;v++){var A=m[v].partialPath,E=m[v].suffixDef,O=aS(A),F=sQ(r,O,g);if(F||ot(E)||A.length===t){var j=i[g];if(oy(j,A)===!1){j.push(A);for(var G=0;G<O.length;G++){var B=O[G];r[g][B]=!0}}}else{var ae=iy(E,s+1,A);a[g]=a[g].concat(ae),ye(ae,function(Z){var re=aS(Z.partialPath);ye(re,function(Se){r[g][Se]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function up(e,t,n,i){var r=new JD(e,wt.ALTERNATION,i);return t.accept(r),ZD(r.result,n)}function pp(e,t,n,i){var r=new JD(e,n);t.accept(r);var a=r.result,s=new aQ(t,e,n),l=s.startWalking(),u=new Jt({definition:a}),p=new Jt({definition:l});return ZD([u,p],i)}function oy(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 e_(e,t){return e.length<t.length&&ci(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function t_(e){return ci(e,function(t){return ci(t,function(n){return ci(n,function(i){return ot(i.categoryMatches)})})})}var KD,wt,aQ,JD,dp=Qe(()=>{Tt();fp();Jh();Gl();wi();Kl();KD=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(wt||(wt={}));o(XD,"getProdType");o(QD,"buildLookaheadFuncForOr");o(qD,"buildLookaheadFuncForOptionalProd");o(zD,"buildAlternativesLookAheadFunc");o(YD,"buildSingleAlternativeLookaheadFunction");aQ=function(e){KD(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,wt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,wt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Rc),JD=function(e){KD(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,wt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,wt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,wt.ALTERNATION)},t}(Gr);o(WD,"initializeArrayOfArrays");o(aS,"pathToHashKeys");o(sQ,"isUniquePrefixHash");o(ZD,"lookAheadSequenceFromAlternatives");o(up,"getLookaheadPathsForOr");o(pp,"getLookaheadPathsForOptionalProd");o(oy,"containsPath");o(e_,"isStrictPrefixOfPath");o(t_,"areTokenCategoriesNotUsed")});function n_(e,t,n,i,r){var a=ue(e,function(A){return cQ(A,i)}),s=ue(e,function(A){return o_(A,A,i)}),l=[],u=[],p=[];ci(s,ot)&&(l=ue(e,function(A){return pQ(A,i)}),u=ue(e,function(A){return dQ(A,t,i)}),p=hQ(e,t,i));var g=TQ(e,n,i),m=ue(e,function(A){return mQ(A,i)}),v=ue(e,function(A){return uQ(A,e,r,i)});return Nn(a.concat(p,s,l,u,g,m,v))}function cQ(e,t){var n=new fQ;e.accept(n);var i=n.allProductions,r=z1(i,lQ),a=mr(r,function(l){return l.length>1}),s=ue(Vn(a),function(l){var u=Ai(l),p=t.buildDuplicateFoundError(e,l),g=vr(u),m={message:p,type:Hn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},v=i_(u);return v&&(m.parameter=v),m});return s}function lQ(e){return vr(e)+"_#_"+e.idx+"_#_"+i_(e)}function i_(e){return e instanceof ht?e.terminalType.name:e instanceof rn?e.nonTerminalName:""}function uQ(e,t,n,i){var r=[],a=un(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Hn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function r_(e,t,n){var i=[],r;return Vt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Hn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function o_(e,t,n,i){i===void 0&&(i=[]);var r=[],a=ay(t.definition);if(ot(a))return[];var s=e.name,l=Vt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Hn.LEFT_RECURSION,ruleName:s});var u=Nc(a,i.concat([e])),p=ue(u,function(g){var m=bn(i);return m.push(g),o_(e,g,n,m)});return r.concat(Nn(p))}function ay(e){var t=[];if(ot(e))return t;var n=Ai(e);if(n instanceof rn)t.push(n.referencedRule);else if(n instanceof Jt||n instanceof on||n instanceof Ln||n instanceof Rn||n instanceof An||n instanceof Nt)t=t.concat(ay(n.definition));else if(n instanceof Sn)t=Nn(ue(n.definition,function(s){return ay(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=Xl(n),r=e.length>1;if(i&&r){var a=wn(e);return t.concat(ay(a))}else return t}function pQ(e,t){var n=new cS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){var l=gs(s.definition),u=ue(l,function(p,g){var m=ry([p],[],null,1);return ot(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Hn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(Sa(u))},[]);return r}function dQ(e,t,n){var i=new cS;e.accept(i);var r=i.alternations;r=ba(r,function(s){return s.ignoreAmbiguities===!0});var a=un(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=up(u,e,p,l),m=yQ(g,l,e,n),v=vQ(g,l,e,n);return s.concat(m,v)},[]);return a}function mQ(e,t){var n=new cS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Hn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function hQ(e,t,n){var i=[];return ye(e,function(r){var a=new gQ;r.accept(a);var s=a.allProductions;ye(s,function(l){var u=XD(l),p=l.maxLookahead||t,g=l.idx,m=pp(g,r,u,p),v=m[0];if(ot(Nn(v))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Hn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function yQ(e,t,n,i){var r=[],a=un(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ye(u,function(g){var m=[p];ye(e,function(v,A){p!==A&&oy(v,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!oy(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=ue(a,function(l){var u=ue(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Hn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function vQ(e,t,n,i){var r=[],a=un(e,function(s,l,u){var p=ue(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ye(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=Q1(a,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<u&&e_(v.path,p)}),m=ue(g,function(v){var A=[v.idx+1,u+1],E=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:v.path});return{message:O,type:Hn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:E,alternatives:A}});r=r.concat(m)}}),r}function TQ(e,t,n){var i=[],r=ue(t,function(a){return a.name});return ye(e,function(a){var s=a.name;if(Vt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Hn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var sS,fQ,cS,gQ,lS=Qe(()=>{Tt();Tt();Tr();Ql();dp();fp();wi();Kl();sS=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(n_,"validateGrammar");o(cQ,"validateDuplicateProductions");o(lQ,"identifyProductionForDuplicates");o(i_,"getExtraProductionArgument");fQ=function(e){sS(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}(Gr);o(uQ,"validateRuleDoesNotAlreadyExist");o(r_,"validateRuleIsOverridden");o(o_,"validateNoLeftRecursion");o(ay,"getFirstNoneTerminal");cS=function(e){sS(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}(Gr);o(pQ,"validateEmptyOrAlternative");o(dQ,"validateAmbiguousAlternationAlternatives");gQ=function(e){sS(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}(Gr);o(mQ,"validateTooManyAlts");o(hQ,"validateSomeNonEmptyLookaheadPath");o(yQ,"checkAlternativesAmbiguities");o(vQ,"checkPrefixAlternativesAmbiguities");o(TQ,"checkTerminalAndNoneTerminalsNameSpace")});function sy(e){e=tp(e,{errMsgProvider:ty});var t={};return ye(e.rules,function(n){t[n.name]=n}),UD(t,e.errMsgProvider)}function cy(e){return e=tp(e,{errMsgProvider:Ts}),n_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function a_(e){ye(e.rules,function(t){var n=new tS;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,a){r.idx=a+1})})})}var fS=Qe(()=>{Tt();$D();lS();lp();Ql();o(sy,"resolveGrammar");o(cy,"validateGrammar");o(a_,"assignOccurrenceIndices")});function xa(e){return Vt(u_,e.name)}var gp,s_,c_,l_,f_,u_,ly,ql,fy,uy,py,zl=Qe(()=>{Tt();gp=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)}}(),s_="MismatchedTokenException",c_="NoViableAltException",l_="EarlyExitException",f_="NotAllInputParsedException",u_=[s_,c_,l_,f_];Object.freeze(u_);o(xa,"isRecognitionException");ly=function(e){gp(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t}(Error),ql=function(e){gp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=s_,a}return o(t,"MismatchedTokenException"),t}(ly),fy=function(e){gp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=c_,a}return o(t,"NoViableAltException"),t}(ly),uy=function(e){gp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=f_,r}return o(t,"NotAllInputParsedException"),t}(ly),py=function(e){gp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=l_,a}return o(t,"EarlyExitException"),t}(ly)});function p_(e){this.name=pS,this.message=e}function EQ(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 v=u.token,A=u.occurrence,E=u.isEndOfRule;this.RULE_STACK.length===1&&E&&v===void 0&&(v=Hr,A=1),this.shouldInRepetitionRecoveryBeTried(v,A,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var uS,pS,d_,dS=Qe(()=>{vs();Tt();zl();iS();Tr();uS={},pS="InRuleRecoveryException";o(p_,"InRuleRecoveryException");p_.prototype=Error.prototype;d_=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=xe(t,"recoveryEnabled")?t.recoveryEnabled:Yi.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=EQ)},e.prototype.getTokenToInsert=function(t){var n=ys(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),v=o(function(){var A=a.LA(0),E=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:A,ruleName:a.getCurrRuleFullName()}),O=new ql(E,g,a.LA(0));O.resyncedTokens=gs(u),a.SAVE_ERROR(O)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){v();return}else if(i.call(this)){v(),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 p_("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||ot(n))return!1;var r=this.LA(1),a=Aa(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return Vt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Vt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return uS;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return ue(n,function(r,a){return a===0?uS:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=ue(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Nn(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===uS)return[Hr];var n=t.ruleName+t.idxInCallingRule+ey+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Hr)||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 gs(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=bn(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return ue(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(EQ,"attemptInRepetitionRecovery")});function my(e,t,n){return n|t|e}var g_,Wo,bQ,dy,gy,mp,hp,yp,Yl,Dae,hy=Qe(()=>{g_=4,Wo=8,bQ=8,dy=1<<Wo,gy=2<<Wo,mp=3<<Wo,hp=4<<Wo,yp=5<<Wo,Yl=6<<Wo;o(my,"getKeyForAutomaticLookahead");Dae=32-bQ});var m_,h_=Qe(()=>{dp();Tt();Tr();hy();Ql();m_=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=xe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:Yi.dynamicTokensEnabled,this.maxLookahead=xe(t,"maxLookahead")?t.maxLookahead:Yi.maxLookahead,this.lookAheadFuncsCache=WA()?new Map:[],WA()?(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=MD(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;ye(a,function(m){var v=m.idx===0?"":m.idx;n.TRACE_INIT(""+vr(m)+v,function(){var A=QD(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),E=my(n.fullRuleNameToShort[i.name],dy,m.idx);n.setLaFuncCache(E,A)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,mp,wt.REPETITION,m.maxLookahead,vr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,gy,wt.OPTION,m.maxLookahead,vr(m))}),ye(u,function(m){n.computeLookaheadFunc(i,m.idx,hp,wt.REPETITION_MANDATORY,m.maxLookahead,vr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,Yl,wt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,vr(m))}),ye(g,function(m){n.computeLookaheadFunc(i,m.idx,yp,wt.REPETITION_WITH_SEPARATOR,m.maxLookahead,vr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=qD(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=my(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return YD(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return zD(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return my(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 gS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function mS(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 y_(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function v_(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var T_=Qe(()=>{o(gS,"setNodeLocationOnlyOffset");o(mS,"setNodeLocationFull");o(y_,"addTerminalToCst");o(v_,"addNoneTerminalToCst")});function b_(e){return vp(e.constructor)}function vp(e){var t=e.name;return t||"anonymous"}function hS(e,t){var n=Object.getOwnPropertyDescriptor(e,E_);return Si(n)||n.configurable?(Object.defineProperty(e,E_,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var E_,yS=Qe(()=>{Tt();o(b_,"classNameFromInstance");E_="name";o(vp,"functionName");o(hS,"defineNameProp")});function AQ(e,t){for(var n=_i(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function A_(e,t){var n=o(function(){},"derivedConstructor");hS(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(si(r)&&(r=r[0]),!Si(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=SQ(this,t);if(!ot(r)){var a=ue(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+vp(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
|
|
168
|
+
`)))}},"validateVisitor")};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function S_(e,t,n){var i=o(function(){},"derivedConstructor");hS(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return ye(t,function(a){r[a]=AQ}),i.prototype=r,i.prototype.constructor=i,i}function SQ(e,t){var n=PQ(e,t),i=xQ(e,t);return n.concat(i)}function PQ(e,t){var n=ue(t,function(i){if(!po(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+vp(e.constructor)+" CST Visitor.",type:yy.MISSING_METHOD,methodName:i}});return Sa(n)}function xQ(e,t){var n=[];for(var i in e)po(e[i])&&!Vt(CQ,i)&&!Vt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+vp(e.constructor)+` CST Visitor
|
|
169
169
|
There is no Grammar Rule corresponding to this method's name.
|
|
170
|
-
`,type:yy.REDUNDANT_METHOD,methodName:i});return n}var yy,xQ,C_=Qe(()=>{Tt();yS();o(SQ,"defaultVisit");o(S_,"createBaseSemanticVisitorConstructor");o(P_,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(yy||(yy={}));o(PQ,"validateVisitor");o(CQ,"validateMissingCstMethods");xQ=["constructor","visit","validateVisitor"];o(IQ,"validateRedundantMethods")});var x_,I_=Qe(()=>{E_();Tt();C_();Tr();x_=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=xe(t,"nodeLocationTracking")?t.nodeLocationTracking:Yi.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Mn,this.cstFinallyStateUpdate=Mn,this.cstPostTerminal=Mn,this.cstPostNonTerminal=Mn,this.cstPostRule=Mn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=mS,this.setNodeLocationFromNode=mS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=gS,this.setNodeLocationFromNode=gS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=Mn,this.setInitialNodeLocation=Mn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];v_(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];T_(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Si(this.baseCstVisitorConstructor)){var t=S_(this.className,_i(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Si(this.baseCstVisitorWithDefaultsConstructor)){var t=P_(this.className,_i(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e}()});var O_,N_=Qe(()=>{Tr();O_=function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Jl},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?Jl:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()});var L_,R_=Qe(()=>{Tt();zl();Tr();lp();lS();wi();L_=function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=Zl),Vt(this.definedRulesNames,t)){var r=Ts.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Hn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=Zl);var r=[];r=r.concat(o_(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(xa(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Yh(Vn(this.gastProductionsCache))},e}()});var F_,D_=Qe(()=>{Tt();hy();zl();dp();fp();Tr();dS();vs();Gl();yS();F_=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=A_(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Hl,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},xe(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
170
|
+
`,type:yy.REDUNDANT_METHOD,methodName:i});return n}var yy,CQ,P_=Qe(()=>{Tt();yS();o(AQ,"defaultVisit");o(A_,"createBaseSemanticVisitorConstructor");o(S_,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(yy||(yy={}));o(SQ,"validateVisitor");o(PQ,"validateMissingCstMethods");CQ=["constructor","visit","validateVisitor"];o(xQ,"validateRedundantMethods")});var C_,x_=Qe(()=>{T_();Tt();P_();Tr();C_=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=xe(t,"nodeLocationTracking")?t.nodeLocationTracking:Yi.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Mn,this.cstFinallyStateUpdate=Mn,this.cstPostTerminal=Mn,this.cstPostNonTerminal=Mn,this.cstPostRule=Mn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=mS,this.setNodeLocationFromNode=mS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=gS,this.setNodeLocationFromNode=gS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=Mn,this.setInitialNodeLocation=Mn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];y_(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];v_(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Si(this.baseCstVisitorConstructor)){var t=A_(this.className,_i(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Si(this.baseCstVisitorWithDefaultsConstructor)){var t=S_(this.className,_i(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e}()});var I_,O_=Qe(()=>{Tr();I_=function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Jl},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?Jl:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()});var N_,L_=Qe(()=>{Tt();zl();Tr();lp();lS();wi();N_=function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=Zl),Vt(this.definedRulesNames,t)){var r=Ts.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Hn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=Zl);var r=[];r=r.concat(r_(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(xa(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Yh(Vn(this.gastProductionsCache))},e}()});var R_,F_=Qe(()=>{Tt();hy();zl();dp();fp();Tr();dS();vs();Gl();yS();R_=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=b_(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Hl,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},xe(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
171
171
|
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0
|
|
172
172
|
For Further details.`);if(si(t)){if(ot(t))throw Error(`A Token Vocabulary cannot be empty.
|
|
173
173
|
Note that the first argument for the parser constructor
|
|
174
174
|
is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
|
|
175
175
|
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0
|
|
176
|
-
For Further details.`)}if(si(t))this.tokensMap=un(t,function(s,l){return s[l.name]=l,s},{});else if(xe(t,"modes")&&ci(Nn(Vn(t.modes)),
|
|
177
|
-
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=xe(i,"resyncEnabled")?i.resyncEnabled:Zl.resyncEnabled,a=xe(i,"recoveryValueFunc")?i.recoveryValueFunc:Zl.recoveryValueFunc,s=this.ruleShortNameIdx<<m_+Wo;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(v){return this.invokeRuleCatch(v,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(xa(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(gy,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(hp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,hp,t,WD)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Yl,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,oS],u,Yl,t,oS)}else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(mp,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,mp,t,GD,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(yp,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,rS],u,yp,t,rS)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,Yl,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(dy,n),r=si(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 xa(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new ql(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===pS?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=bn(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),Br)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var __,V_=Qe(()=>{zl();Tt();dp();Tr();__=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=xe(t,"errorMessageProvider")?t.errorMessageProvider:Yi.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(xa(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:bn(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 bn(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=pp(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 py(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=up(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 fy(p,this.LA(1),u))},e}()});var w_,M_=Qe(()=>{fp();Tt();w_=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Si(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return ry([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ai(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new HD(r,t).startWalking();return a},e}()});function Tp(e,t,n,i){i===void 0&&(i=!1),vy(n);var r=ip(this.recordingProdStack),a=po(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),xe(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),Ty}function NQ(e,t){var n=this;vy(t);var i=ip(this.recordingProdStack),r=si(e)===!1,a=r===!1?e:e.DEF,s=new Sn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});xe(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Mh(a,function(u){return po(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ye(a,function(u){var p=new Jt({definition:[]});s.definition.push(p),xe(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:xe(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),Ty}function U_(e){return e===0?"":""+e}function vy(e){if(e<0||e>j_){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
-
`+("Idx value must be a none negative value smaller than "+(
|
|
179
|
-
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(
|
|
180
|
-
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,children:{}},
|
|
176
|
+
For Further details.`)}if(si(t))this.tokensMap=un(t,function(s,l){return s[l.name]=l,s},{});else if(xe(t,"modes")&&ci(Nn(Vn(t.modes)),SD)){var i=Nn(Vn(t.modes)),r=ep(i);this.tokensMap=un(r,function(s,l){return s[l.name]=l,s},{})}else if(wh(t))this.tokensMap=ms(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=Hr;var a=ci(Vn(t),function(s){return ot(s.categoryMatches)});this.tokenMatcher=a?Hl:Lc,Pa(Vn(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
|
|
177
|
+
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=xe(i,"resyncEnabled")?i.resyncEnabled:Zl.resyncEnabled,a=xe(i,"recoveryValueFunc")?i.recoveryValueFunc:Zl.recoveryValueFunc,s=this.ruleShortNameIdx<<g_+Wo;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(v){return this.invokeRuleCatch(v,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(xa(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(gy,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(hp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,hp,t,GD)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Yl,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,oS],u,Yl,t,oS)}else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(mp,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,mp,t,HD,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(yp,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,rS],u,yp,t,rS)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,Yl,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(dy,n),r=si(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 xa(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new ql(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===pS?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=bn(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),Hr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var D_,__=Qe(()=>{zl();Tt();dp();Tr();D_=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=xe(t,"errorMessageProvider")?t.errorMessageProvider:Yi.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(xa(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:bn(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 bn(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=pp(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 py(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=up(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 fy(p,this.LA(1),u))},e}()});var V_,w_=Qe(()=>{fp();Tt();V_=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Si(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return ry([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ai(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new BD(r,t).startWalking();return a},e}()});function Tp(e,t,n,i){i===void 0&&(i=!1),vy(n);var r=ip(this.recordingProdStack),a=po(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),xe(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),Ty}function OQ(e,t){var n=this;vy(t);var i=ip(this.recordingProdStack),r=si(e)===!1,a=r===!1?e:e.DEF,s=new Sn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});xe(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Mh(a,function(u){return po(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ye(a,function(u){var p=new Jt({definition:[]});s.definition.push(p),xe(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:xe(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),Ty}function j_(e){return e===0?"":""+e}function vy(e){if(e<0||e>k_){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
+
`+("Idx value must be a none negative value smaller than "+(k_+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var Ty,M_,k_,U_,$_,IQ,B_,H_=Qe(()=>{Tt();wi();op();Gl();vs();Tr();hy();Ty={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(Ty);M_=!0,k_=Math.pow(2,Wo)-1,U_=sp({name:"RECORDING_PHASE_TOKEN",pattern:Vi.NA});Pa([U_]);$_=ys(U_,`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($_);IQ={name:`This CSTNode indicates the Parser is in Recording Phase
|
|
180
|
+
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,children:{}},B_=function(){function e(){}return o(e,"GastRecorder"),e.prototype.initGastRecorder=function(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var t=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var n=o(function(r){var a=r>0?r:"";t["CONSUME"+a]=function(s,l){return this.consumeInternalRecord(s,r,l)},t["SUBRULE"+a]=function(s,l){return this.subruleInternalRecord(s,r,l)},t["OPTION"+a]=function(s){return this.optionInternalRecord(s,r)},t["OR"+a]=function(s){return this.orInternalRecord(s,r)},t["MANY"+a]=function(s){this.manyInternalRecord(r,s)},t["MANY_SEP"+a]=function(s){this.manySepFirstInternalRecord(r,s)},t["AT_LEAST_ONE"+a]=function(s){this.atLeastOneInternalRecord(r,s)},t["AT_LEAST_ONE_SEP"+a]=function(s){this.atLeastOneSepFirstInternalRecord(r,s)}},"_loop_1"),i=0;i<10;i++)n(i);t.consume=function(r,a,s){return this.consumeInternalRecord(a,r,s)},t.subrule=function(r,a,s){return this.subruleInternalRecord(a,r,s)},t.option=function(r,a){return this.optionInternalRecord(a,r)},t.or=function(r,a){return this.orInternalRecord(a,r)},t.many=function(r,a){this.manyInternalRecord(r,a)},t.atLeastOne=function(r,a){this.atLeastOneInternalRecord(r,a)},t.ACTION=t.ACTION_RECORD,t.BACKTRACK=t.BACKTRACK_RECORD,t.LA=t.LA_RECORD})},e.prototype.disableRecording=function(){var t=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var n=0;n<10;n++){var i=n>0?n:"";delete t["CONSUME"+i],delete t["SUBRULE"+i],delete t["OPTION"+i],delete t["OR"+i],delete t["MANY"+i],delete t["MANY_SEP"+i],delete t["AT_LEAST_ONE"+i],delete t["AT_LEAST_ONE_SEP"+i]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})},e.prototype.ACTION_RECORD=function(t){},e.prototype.BACKTRACK_RECORD=function(t,n){return function(){return!0}},e.prototype.LA_RECORD=function(t){return Jl},e.prototype.topLevelRuleRecord=function(t,n){try{var i=new yr({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 Tp.call(this,on,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){Tp.call(this,Ln,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){Tp.call(this,Rn,n,t,
|
|
183
|
-
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=ip(this.recordingProdStack),s=t.ruleName,l=new rn({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=ip(this.recordingProdStack),s=new ht({idx:n,terminalType:t});return a.definition.push(s)
|
|
182
|
+
https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return Tp.call(this,on,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){Tp.call(this,Ln,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){Tp.call(this,Rn,n,t,M_)},e.prototype.manyInternalRecord=function(t,n){Tp.call(this,Nt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){Tp.call(this,An,n,t,M_)},e.prototype.orInternalRecord=function(t,n){return OQ.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(vy(n),!t||xe(t,"ruleName")===!1){var r=new Error("<SUBRULE"+j_(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=ip(this.recordingProdStack),s=t.ruleName,l=new rn({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?IQ:Ty},e.prototype.consumeInternalRecord=function(t,n,i){if(vy(n),!JA(t)){var r=new Error("<CONSUME"+j_(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=ip(this.recordingProdStack),s=new ht({idx:n,terminalType:t});return a.definition.push(s),$_},e}();o(Tp,"recordProd");o(OQ,"recordOrProd");o(j_,"getIdxSuffix");o(vy,"assertMethodIdxIsValid")});var G_,W_=Qe(()=>{Tt();Tr();G_=function(){function e(){}return o(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(xe(t,"traceInitPerf")){var n=t.traceInitPerf,i=typeof n=="number";this.traceInitMaxIdent=i?n:1/0,this.traceInitPerf=i?n>0:n}else this.traceInitMaxIdent=0,this.traceInitPerf=Yi.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Uh(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 X_(e){return e===void 0&&(e=void 0),function(){return e}}var K_,Jl,Yi,Zl,Hn,vS,Q_,q_,Tr=Qe(()=>{Tt();jD();vs();lp();fS();dS();h_();x_();O_();L_();F_();__();w_();H_();W_();K_=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Jl=ys(Hr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Jl);Yi=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:cp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Zl=Object.freeze({recoveryValueFunc:o(function(){},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Hn||(Hn={}));o(X_,"EMPTY_ALT");vS=function(){function e(t,n){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(n),i.initLexerAdapter(),i.initLooksAhead(n),i.initRecognizerEngine(t,n),i.initRecoverable(n),i.initTreeBuilder(n),i.initContentAssist(),i.initGastRecorder(n),i.initPerformanceTracer(n),xe(n,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
|
|
185
185
|
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
|
|
186
186
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
|
|
187
|
-
For further details.`);this.skipValidations=xe(n,"skipValidations")?n.skipValidations:Yi.skipValidations}return o(e,"Parser"),e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var n;t.selfAnalysisDone=!0;var i=t.className;t.TRACE_INIT("toFastProps",function(){jh(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=sy({rules:Vn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(ot(r)&&t.skipValidations===!1){var a=cy({rules:Vn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Vn(t.tokensMap),errMsgProvider:Ts,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),ot(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=
|
|
187
|
+
For further details.`);this.skipValidations=xe(n,"skipValidations")?n.skipValidations:Yi.skipValidations}return o(e,"Parser"),e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var n;t.selfAnalysisDone=!0;var i=t.className;t.TRACE_INIT("toFastProps",function(){jh(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=sy({rules:Vn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(ot(r)&&t.skipValidations===!1){var a=cy({rules:Vn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Vn(t.tokensMap),errMsgProvider:Ts,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),ot(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=kD(Vn(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Vn(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!ot(t.definitionErrors))throw n=ue(t.definitionErrors,function(a){return a.message}),new Error(`Parser Definition Errors detected:
|
|
188
188
|
`+n.join(`
|
|
189
189
|
-------------------------------
|
|
190
|
-
`))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();
|
|
190
|
+
`))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();J1(vS,[d_,m_,C_,I_,R_,N_,D_,V_,B_,G_]);Q_=function(e){K_(t,e);function t(n,i){i===void 0&&(i=Yi);var r=this,a=ms(i);return a.outputCst=!0,r=e.call(this,n,a)||this,r}return o(t,"CstParser"),t}(vS),q_=function(e){K_(t,e);function t(n,i){i===void 0&&(i=Yi);var r=this,a=ms(i);return a.outputCst=!1,r=e.call(this,n,a)||this,r}return o(t,"EmbeddedActionsParser"),t}(vS)});function z_(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+Zu+"/diagrams/":i,a=n.css,s=a===void 0?"https://unpkg.com/chevrotain@"+Zu+"/diagrams/diagrams.css":a,l=`
|
|
191
191
|
<!-- This is a generated file -->
|
|
192
192
|
<!DOCTYPE html>
|
|
193
193
|
<meta charset="utf-8">
|
|
@@ -215,7 +215,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
215
215
|
var diagramsDiv = document.getElementById("diagrams");
|
|
216
216
|
main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);
|
|
217
217
|
</script>
|
|
218
|
-
`;return l+u+p+g+m+v}var
|
|
218
|
+
`;return l+u+p+g+m+v}var Y_=Qe(()=>{BA();o(z_,"createSyntaxDiagramsCode")});function Z_(e){return`
|
|
219
219
|
(function (root, factory) {
|
|
220
220
|
if (typeof define === 'function' && define.amd) {
|
|
221
221
|
// AMD. Register as an anonymous module.
|
|
@@ -231,16 +231,16 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
231
231
|
}
|
|
232
232
|
}(typeof self !== 'undefined' ? self : this, function (chevrotain) {
|
|
233
233
|
|
|
234
|
-
`+
|
|
234
|
+
`+tV(e)+`
|
|
235
235
|
|
|
236
236
|
return {
|
|
237
237
|
`+e.name+": "+e.name+`
|
|
238
238
|
}
|
|
239
239
|
}));
|
|
240
|
-
`}function
|
|
241
|
-
`+
|
|
240
|
+
`}function eV(e){return`
|
|
241
|
+
`+tV(e)+`
|
|
242
242
|
return new `+e.name+`(tokenVocabulary, config)
|
|
243
|
-
`}function
|
|
243
|
+
`}function tV(e){var t=`
|
|
244
244
|
function `+e.name+`(tokenVocabulary, config) {
|
|
245
245
|
// invoke super constructor
|
|
246
246
|
// No support for embedded actions currently, so we can 'hardcode'
|
|
@@ -249,7 +249,7 @@ function `+e.name+`(tokenVocabulary, config) {
|
|
|
249
249
|
|
|
250
250
|
const $ = this
|
|
251
251
|
|
|
252
|
-
`+
|
|
252
|
+
`+NQ(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,16 +260,16 @@ 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(
|
|
263
|
+
`;return t}function NQ(e){var t=ue(e,function(n){return LQ(n,1)});return t.join(`
|
|
264
|
+
`)}function LQ(e,t){var n=Mi(t,'$.RULE("'+e.name+'", function() {')+Zn;return n+=Ey(e.definition,t+1),n+=Mi(t+1,"})")+Zn,n}function RQ(e,t){var n=e.terminalType.name;return Mi(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+Zn)}function FQ(e,t){return Mi(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+Zn)}function DQ(e,t){var n=Mi(t,"$.OR"+e.idx+"([")+Zn,i=ue(e.definition,function(r){return _Q(r,t+1)});return n+=i.join(","+Zn),n+=Zn+Mi(t,"])"+Zn),n}function _Q(e,t){var n=Mi(t,"{")+Zn;return n+=Mi(t+1,"ALT: function() {")+Zn,n+=Ey(e.definition,t+1),n+=Mi(t+1,"}")+Zn,n+=Mi(t,"}"),n}function VQ(e,t){if(e instanceof rn)return FQ(e,t);if(e instanceof on)return Ep("OPTION",e,t);if(e instanceof Ln)return Ep("AT_LEAST_ONE",e,t);if(e instanceof Rn)return Ep("AT_LEAST_ONE_SEP",e,t);if(e instanceof An)return Ep("MANY_SEP",e,t);if(e instanceof Nt)return Ep("MANY",e,t);if(e instanceof Sn)return DQ(e,t);if(e instanceof ht)return RQ(e,t);if(e instanceof Jt)return Ey(e.definition,t);throw Error("non exhaustive match")}function Ep(e,t,n){var i=Mi(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+Zn,i+=Mi(n+1,"SEP: this.tokensMap."+t.separator.name)+","+Zn,i+="DEF: "+J_(t.definition,n+2)+Zn,i+=Mi(n,"}")+Zn):i+=J_(t.definition,n+1),i+=Mi(n,")")+Zn,i}function J_(e,t){var n="function() {"+Zn;return n+=Ey(e,t),n+=Mi(t,"}")+Zn,n}function Ey(e,t){var n="";return ye(e,function(i){n+=VQ(i,t+1)}),n}function Mi(e,t){var n=Array(e*4+1).join(" ");return n+t}var Zn,nV=Qe(()=>{Tt();wi();Zn=`
|
|
265
|
+
`;o(Z_,"genUmdModule");o(eV,"genWrapperFunction");o(tV,"genClass");o(NQ,"genAllRules");o(LQ,"genRule");o(RQ,"genTerminal");o(FQ,"genNonTerminal");o(DQ,"genAlternation");o(_Q,"genSingleAlt");o(VQ,"genProd");o(Ep,"genDSLRule");o(J_,"genDefFunction");o(Ey,"genDefinition");o(Mi,"indent")});function iV(e){var t=eV({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(Ay(),cg(by)))}}function rV(e){return Z_({name:e.name,rules:e.rules})}var oV=Qe(()=>{nV();o(iV,"generateParserFactory");o(rV,"generateParserModule")});var by={};Ks(by,{Alternation:()=>Sn,Alternative:()=>Jt,CstParser:()=>Q_,EMPTY_ALT:()=>X_,EOF:()=>Hr,EarlyExitException:()=>py,EmbeddedActionsParser:()=>q_,GAstVisitor:()=>Gr,Lexer:()=>Vi,LexerDefinitionErrorType:()=>pn,MismatchedTokenException:()=>ql,NoViableAltException:()=>fy,NonTerminal:()=>rn,NotAllInputParsedException:()=>uy,Option:()=>on,Parser:()=>MQ,ParserDefinitionErrorType:()=>Hn,Repetition:()=>Nt,RepetitionMandatory:()=>Ln,RepetitionMandatoryWithSeparator:()=>Rn,RepetitionWithSeparator:()=>An,Rule:()=>yr,Terminal:()=>ht,VERSION:()=>Zu,assignOccurrenceIndices:()=>a_,clearCache:()=>wQ,createSyntaxDiagramsCode:()=>z_,createToken:()=>sp,createTokenInstance:()=>ys,defaultGrammarResolverErrorProvider:()=>ty,defaultGrammarValidatorErrorProvider:()=>Ts,defaultLexerErrorProvider:()=>zh,defaultParserErrorProvider:()=>cp,generateParserFactory:()=>iV,generateParserModule:()=>rV,isRecognitionException:()=>xa,resolveGrammar:()=>sy,serializeGrammar:()=>Yh,serializeProduction:()=>Wl,tokenLabel:()=>Go,tokenMatcher:()=>DD,tokenName:()=>FD,validateGrammar:()=>cy});function wQ(){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 bS=qe((
|
|
269
|
-
`],lineTerminatorsPattern:/\n|\r\n/g});pV.exports={xmlLexer:s6,tokensDictionary:lV}});var gV=qe((Uce,dV)=>{var{CstParser:c6,tokenMatcher:l6}=(Ay(),cg(by)),{tokensDictionary:xt}=bS(),SS=class SS extends c6{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=>l6(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(SS,"Parser");var AS=SS,f6=new AS;dV.exports={xmlParser:f6}});var PS=qe((Bce,mV)=>{var{xmlLexer:u6}=bS(),{xmlParser:Sy}=gV();mV.exports={parse:o(function(t){let n=u6.tokenize(t);return Sy.input=n.tokens,{cst:Sy.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Sy.errors}},"parse"),BaseXmlCstVisitor:Sy.getBaseCstVisitorConstructor()}});var Sp=qe((tf,Ap)=>{(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,v=1,A=2,E=1,O=2,F=4,j=8,G=16,B=32,ae=64,Z=128,re=256,Se=512,D=30,ut="...",yt=800,Ue=16,an=1,Gn=2,en=3,Lt=1/0,Re=9007199254740991,Ci=17976931348623157e292,It=NaN,Mt=4294967295,sn=Mt-1,ji=Mt>>>1,Fe=[["ary",Z],["bind",E],["bindKey",O],["curry",j],["curryRight",G],["flip",Se],["partial",B],["partialRight",ae],["rearg",re]],Wn="[object Arguments]",Cr="[object Array]",at="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",z="[object DOMException]",V="[object Error]",_e="[object Function]",Rt="[object GeneratorFunction]",Xe="[object Map]",kt="[object Number]",yn="[object Null]",cn="[object Object]",Ht="[object Promise]",ti="[object Proxy]",ir="[object RegExp]",dn="[object Set]",ui="[object String]",Gt="[object Symbol]",qo="[object Undefined]",Ui="[object WeakMap]",Of="[object WeakSet]",Vs="[object ArrayBuffer]",xr="[object DataView]",Nf="[object Float32Array]",Lf="[object Float64Array]",Rf="[object Int8Array]",ws="[object Int16Array]",k="[object Int32Array]",$="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Le="[object Uint32Array]",gn=/\b__p \+= '';/g,Cn=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,Pe=RegExp(me.source),Ie=RegExp(Te.source),rt=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,ln=/<%=([\s\S]+?)%>/g,rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vd=/^\w*$/,uv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ff=/[\\^$.*+?()[\]{}|]/g,EM=RegExp(Ff.source),pv=/^\s+/,bM=/\s/,AM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,SM=/\{\n\/\* \[wrapped with (.+)\] \*/,PM=/,? & /,CM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xM=/[()=,{}\[\]\/\s]/,IM=/\\(\\)?/g,OM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sx=/\w*$/,NM=/^[-+]0x[0-9a-f]+$/i,LM=/^0b[01]+$/i,RM=/^\[object .+?Constructor\]$/,FM=/^0o[0-7]+$/i,DM=/^(?:0|[1-9]\d*)$/,_M=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Td=/($^)/,VM=/['\n\r\u2028\u2029\\]/g,Ed="\\ud800-\\udfff",wM="\\u0300-\\u036f",MM="\\ufe20-\\ufe2f",kM="\\u20d0-\\u20ff",cx=wM+MM+kM,lx="\\u2700-\\u27bf",fx="a-z\\xdf-\\xf6\\xf8-\\xff",jM="\\xac\\xb1\\xd7\\xf7",UM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$M="\\u2000-\\u206f",BM=" \\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",ux="A-Z\\xc0-\\xd6\\xd8-\\xde",px="\\ufe0e\\ufe0f",dx=jM+UM+$M+BM,dv="['\u2019]",HM="["+Ed+"]",gx="["+dx+"]",bd="["+cx+"]",mx="\\d+",GM="["+lx+"]",hx="["+fx+"]",yx="[^"+Ed+dx+mx+lx+fx+ux+"]",gv="\\ud83c[\\udffb-\\udfff]",WM="(?:"+bd+"|"+gv+")",vx="[^"+Ed+"]",mv="(?:\\ud83c[\\udde6-\\uddff]){2}",hv="[\\ud800-\\udbff][\\udc00-\\udfff]",Gc="["+ux+"]",Tx="\\u200d",Ex="(?:"+hx+"|"+yx+")",KM="(?:"+Gc+"|"+yx+")",bx="(?:"+dv+"(?:d|ll|m|re|s|t|ve))?",Ax="(?:"+dv+"(?:D|LL|M|RE|S|T|VE))?",Sx=WM+"?",Px="["+px+"]?",XM="(?:"+Tx+"(?:"+[vx,mv,hv].join("|")+")"+Px+Sx+")*",QM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cx=Px+Sx+XM,zM="(?:"+[GM,mv,hv].join("|")+")"+Cx,YM="(?:"+[vx+bd+"?",bd,mv,hv,HM].join("|")+")",JM=RegExp(dv,"g"),ZM=RegExp(bd,"g"),yv=RegExp(gv+"(?="+gv+")|"+YM+Cx,"g"),e2=RegExp([Gc+"?"+hx+"+"+bx+"(?="+[gx,Gc,"$"].join("|")+")",KM+"+"+Ax+"(?="+[gx,Gc+Ex,"$"].join("|")+")",Gc+"?"+Ex+"+"+bx,Gc+"+"+Ax,qM,QM,mx,zM].join("|"),"g"),t2=RegExp("["+Tx+Ed+cx+px+"]"),n2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,i2=["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"],r2=-1,tn={};tn[Nf]=tn[Lf]=tn[Rf]=tn[ws]=tn[k]=tn[$]=tn[Q]=tn[ce]=tn[Le]=!0,tn[Wn]=tn[Cr]=tn[Vs]=tn[I]=tn[xr]=tn[S]=tn[V]=tn[_e]=tn[Xe]=tn[kt]=tn[cn]=tn[ir]=tn[dn]=tn[ui]=tn[Ui]=!1;var qt={};qt[Wn]=qt[Cr]=qt[Vs]=qt[xr]=qt[I]=qt[S]=qt[Nf]=qt[Lf]=qt[Rf]=qt[ws]=qt[k]=qt[Xe]=qt[kt]=qt[cn]=qt[ir]=qt[dn]=qt[ui]=qt[Gt]=qt[$]=qt[Q]=qt[ce]=qt[Le]=!0,qt[V]=qt[_e]=qt[Ui]=!1;var o2={\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"},a2={"&":"&","<":"<",">":">",'"':""","'":"'"},s2={"&":"&","<":"<",">":">",""":'"',"'":"'"},c2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},l2=parseFloat,f2=parseInt,xx=typeof global=="object"&&global&&global.Object===Object&&global,u2=typeof self=="object"&&self&&self.Object===Object&&self,Kn=xx||u2||Function("return this")(),vv=typeof tf=="object"&&tf&&!tf.nodeType&&tf,Ms=vv&&typeof Ap=="object"&&Ap&&!Ap.nodeType&&Ap,Ix=Ms&&Ms.exports===vv,Tv=Ix&&xx.process,Ir=function(){try{var w=Ms&&Ms.require&&Ms.require("util").types;return w||Tv&&Tv.binding&&Tv.binding("util")}catch{}}(),Ox=Ir&&Ir.isArrayBuffer,Nx=Ir&&Ir.isDate,Lx=Ir&&Ir.isMap,Rx=Ir&&Ir.isRegExp,Fx=Ir&&Ir.isSet,Dx=Ir&&Ir.isTypedArray;function or(w,X,W){switch(W.length){case 0:return w.call(X);case 1:return w.call(X,W[0]);case 2:return w.call(X,W[0],W[1]);case 3:return w.call(X,W[0],W[1],W[2])}return w.apply(X,W)}o(or,"apply");function p2(w,X,W,be){for(var We=-1,St=w==null?0:w.length;++We<St;){var jn=w[We];X(be,jn,W(jn),w)}return be}o(p2,"arrayAggregator");function Or(w,X){for(var W=-1,be=w==null?0:w.length;++W<be&&X(w[W],W,w)!==!1;);return w}o(Or,"arrayEach");function d2(w,X){for(var W=w==null?0:w.length;W--&&X(w[W],W,w)!==!1;);return w}o(d2,"arrayEachRight");function _x(w,X){for(var W=-1,be=w==null?0:w.length;++W<be;)if(!X(w[W],W,w))return!1;return!0}o(_x,"arrayEvery");function Da(w,X){for(var W=-1,be=w==null?0:w.length,We=0,St=[];++W<be;){var jn=w[W];X(jn,W,w)&&(St[We++]=jn)}return St}o(Da,"arrayFilter");function Ad(w,X){var W=w==null?0:w.length;return!!W&&Wc(w,X,0)>-1}o(Ad,"arrayIncludes");function Ev(w,X,W){for(var be=-1,We=w==null?0:w.length;++be<We;)if(W(X,w[be]))return!0;return!1}o(Ev,"arrayIncludesWith");function fn(w,X){for(var W=-1,be=w==null?0:w.length,We=Array(be);++W<be;)We[W]=X(w[W],W,w);return We}o(fn,"arrayMap");function _a(w,X){for(var W=-1,be=X.length,We=w.length;++W<be;)w[We+W]=X[W];return w}o(_a,"arrayPush");function bv(w,X,W,be){var We=-1,St=w==null?0:w.length;for(be&&St&&(W=w[++We]);++We<St;)W=X(W,w[We],We,w);return W}o(bv,"arrayReduce");function g2(w,X,W,be){var We=w==null?0:w.length;for(be&&We&&(W=w[--We]);We--;)W=X(W,w[We],We,w);return W}o(g2,"arrayReduceRight");function Av(w,X){for(var W=-1,be=w==null?0:w.length;++W<be;)if(X(w[W],W,w))return!0;return!1}o(Av,"arraySome");var m2=Sv("length");function h2(w){return w.split("")}o(h2,"asciiToArray");function y2(w){return w.match(CM)||[]}o(y2,"asciiWords");function Vx(w,X,W){var be;return W(w,function(We,St,jn){if(X(We,St,jn))return be=St,!1}),be}o(Vx,"baseFindKey");function Sd(w,X,W,be){for(var We=w.length,St=W+(be?1:-1);be?St--:++St<We;)if(X(w[St],St,w))return St;return-1}o(Sd,"baseFindIndex");function Wc(w,X,W){return X===X?L2(w,X,W):Sd(w,wx,W)}o(Wc,"baseIndexOf");function T2(w,X,W,be){for(var We=W-1,St=w.length;++We<St;)if(be(w[We],X))return We;return-1}o(T2,"baseIndexOfWith");function wx(w){return w!==w}o(wx,"baseIsNaN");function Mx(w,X){var W=w==null?0:w.length;return W?Cv(w,X)/W:It}o(Mx,"baseMean");function Sv(w){return function(X){return X==null?e:X[w]}}o(Sv,"baseProperty");function Pv(w){return function(X){return w==null?e:w[X]}}o(Pv,"basePropertyOf");function kx(w,X,W,be,We){return We(w,function(St,jn,Kt){W=be?(be=!1,St):X(W,St,jn,Kt)}),W}o(kx,"baseReduce");function E2(w,X){var W=w.length;for(w.sort(X);W--;)w[W]=w[W].value;return w}o(E2,"baseSortBy");function Cv(w,X){for(var W,be=-1,We=w.length;++be<We;){var St=X(w[be]);St!==e&&(W=W===e?St:W+St)}return W}o(Cv,"baseSum");function xv(w,X){for(var W=-1,be=Array(w);++W<w;)be[W]=X(W);return be}o(xv,"baseTimes");function b2(w,X){return fn(X,function(W){return[W,w[W]]})}o(b2,"baseToPairs");function jx(w){return w&&w.slice(0,Hx(w)+1).replace(pv,"")}o(jx,"baseTrim");function ar(w){return function(X){return w(X)}}o(ar,"baseUnary");function Iv(w,X){return fn(X,function(W){return w[W]})}o(Iv,"baseValues");function Df(w,X){return w.has(X)}o(Df,"cacheHas");function Ux(w,X){for(var W=-1,be=w.length;++W<be&&Wc(X,w[W],0)>-1;);return W}o(Ux,"charsStartIndex");function $x(w,X){for(var W=w.length;W--&&Wc(X,w[W],0)>-1;);return W}o($x,"charsEndIndex");function A2(w,X){for(var W=w.length,be=0;W--;)w[W]===X&&++be;return be}o(A2,"countHolders");var S2=Pv(o2),P2=Pv(a2);function C2(w){return"\\"+c2[w]}o(C2,"escapeStringChar");function x2(w,X){return w==null?e:w[X]}o(x2,"getValue");function Kc(w){return t2.test(w)}o(Kc,"hasUnicode");function I2(w){return n2.test(w)}o(I2,"hasUnicodeWord");function O2(w){for(var X,W=[];!(X=w.next()).done;)W.push(X.value);return W}o(O2,"iteratorToArray");function Ov(w){var X=-1,W=Array(w.size);return w.forEach(function(be,We){W[++X]=[We,be]}),W}o(Ov,"mapToArray");function Bx(w,X){return function(W){return w(X(W))}}o(Bx,"overArg");function Va(w,X){for(var W=-1,be=w.length,We=0,St=[];++W<be;){var jn=w[W];(jn===X||jn===u)&&(w[W]=u,St[We++]=W)}return St}o(Va,"replaceHolders");function Pd(w){var X=-1,W=Array(w.size);return w.forEach(function(be){W[++X]=be}),W}o(Pd,"setToArray");function N2(w){var X=-1,W=Array(w.size);return w.forEach(function(be){W[++X]=[be,be]}),W}o(N2,"setToPairs");function L2(w,X,W){for(var be=W-1,We=w.length;++be<We;)if(w[be]===X)return be;return-1}o(L2,"strictIndexOf");function R2(w,X,W){for(var be=W+1;be--;)if(w[be]===X)return be;return be}o(R2,"strictLastIndexOf");function Xc(w){return Kc(w)?D2(w):m2(w)}o(Xc,"stringSize");function zr(w){return Kc(w)?_2(w):h2(w)}o(zr,"stringToArray");function Hx(w){for(var X=w.length;X--&&bM.test(w.charAt(X)););return X}o(Hx,"trimmedEndIndex");var F2=Pv(s2);function D2(w){for(var X=yv.lastIndex=0;yv.test(w);)++X;return X}o(D2,"unicodeSize");function _2(w){return w.match(yv)||[]}o(_2,"unicodeToArray");function V2(w){return w.match(e2)||[]}o(V2,"unicodeWords");var w2=o(function w(X){X=X==null?Kn:wa.defaults(Kn.Object(),X,wa.pick(Kn,i2));var W=X.Array,be=X.Date,We=X.Error,St=X.Function,jn=X.Math,Kt=X.Object,Nv=X.RegExp,M2=X.String,Nr=X.TypeError,Cd=W.prototype,k2=St.prototype,Qc=Kt.prototype,xd=X["__core-js_shared__"],Id=k2.toString,Ft=Qc.hasOwnProperty,j2=0,Gx=function(){var c=/[^.]+$/.exec(xd&&xd.keys&&xd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Od=Qc.toString,U2=Id.call(Kt),$2=Kn._,B2=Nv("^"+Id.call(Ft).replace(Ff,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nd=Ix?X.Buffer:e,Ma=X.Symbol,Ld=X.Uint8Array,Wx=Nd?Nd.allocUnsafe:e,Rd=Bx(Kt.getPrototypeOf,Kt),Kx=Kt.create,Xx=Qc.propertyIsEnumerable,Fd=Cd.splice,Qx=Ma?Ma.isConcatSpreadable:e,_f=Ma?Ma.iterator:e,ks=Ma?Ma.toStringTag:e,Dd=function(){try{var c=Hs(Kt,"defineProperty");return c({},"",{}),c}catch{}}(),H2=X.clearTimeout!==Kn.clearTimeout&&X.clearTimeout,G2=be&&be.now!==Kn.Date.now&&be.now,W2=X.setTimeout!==Kn.setTimeout&&X.setTimeout,_d=jn.ceil,Vd=jn.floor,Lv=Kt.getOwnPropertySymbols,K2=Nd?Nd.isBuffer:e,qx=X.isFinite,X2=Cd.join,Q2=Bx(Kt.keys,Kt),Un=jn.max,pi=jn.min,q2=be.now,z2=X.parseInt,zx=jn.random,Y2=Cd.reverse,Rv=Hs(X,"DataView"),Vf=Hs(X,"Map"),Fv=Hs(X,"Promise"),qc=Hs(X,"Set"),wf=Hs(X,"WeakMap"),Mf=Hs(Kt,"create"),wd=wf&&new wf,zc={},J2=Gs(Rv),Z2=Gs(Vf),ek=Gs(Fv),tk=Gs(qc),nk=Gs(wf),Md=Ma?Ma.prototype:e,kf=Md?Md.valueOf:e,Yx=Md?Md.toString:e;function P(c){if(vn(c)&&!Ke(c)&&!(c instanceof pt)){if(c instanceof Lr)return c;if(Ft.call(c,"__wrapped__"))return JI(c)}return new Lr(c)}o(P,"lodash");var Yc=function(){function c(){}return o(c,"object"),function(f){if(!mn(f))return{};if(Kx)return Kx(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function kd(){}o(kd,"baseLodash");function Lr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Lr,"LodashWrapper"),P.templateSettings={escape:rt,evaluate:Wt,interpolate:ln,variable:"",imports:{_:P}},P.prototype=kd.prototype,P.prototype.constructor=P,Lr.prototype=Yc(kd.prototype),Lr.prototype.constructor=Lr;function pt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mt,this.__views__=[]}o(pt,"LazyWrapper");function ik(){var c=new pt(this.__wrapped__);return c.__actions__=$i(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=$i(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=$i(this.__views__),c}o(ik,"lazyClone");function rk(){if(this.__filtered__){var c=new pt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(rk,"lazyReverse");function ok(){var c=this.__wrapped__.value(),f=this.__dir__,d=Ke(c),y=f<0,b=d?c.length:0,x=yj(0,b,this.__views__),L=x.start,R=x.end,M=R-L,Y=y?R:L-1,J=this.__iteratees__,ee=J.length,ge=0,Oe=pi(M,this.__takeCount__);if(!d||!y&&b==M&&Oe==M)return bI(c,this.__actions__);var Me=[];e:for(;M--&&ge<Oe;){Y+=f;for(var Ze=-1,ke=c[Y];++Ze<ee;){var st=J[Ze],gt=st.iteratee,lr=st.type,Oi=gt(ke);if(lr==Gn)ke=Oi;else if(!Oi){if(lr==an)continue e;break e}}Me[ge++]=ke}return Me}o(ok,"lazyValue"),pt.prototype=Yc(kd.prototype),pt.prototype.constructor=pt;function js(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var y=c[f];this.set(y[0],y[1])}}o(js,"Hash");function ak(){this.__data__=Mf?Mf(null):{},this.size=0}o(ak,"hashClear");function sk(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(sk,"hashDelete");function ck(c){var f=this.__data__;if(Mf){var d=f[c];return d===s?e:d}return Ft.call(f,c)?f[c]:e}o(ck,"hashGet");function lk(c){var f=this.__data__;return Mf?f[c]!==e:Ft.call(f,c)}o(lk,"hashHas");function fk(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=Mf&&f===e?s:f,this}o(fk,"hashSet"),js.prototype.clear=ak,js.prototype.delete=sk,js.prototype.get=ck,js.prototype.has=lk,js.prototype.set=fk;function zo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var y=c[f];this.set(y[0],y[1])}}o(zo,"ListCache");function uk(){this.__data__=[],this.size=0}o(uk,"listCacheClear");function pk(c){var f=this.__data__,d=jd(f,c);if(d<0)return!1;var y=f.length-1;return d==y?f.pop():Fd.call(f,d,1),--this.size,!0}o(pk,"listCacheDelete");function dk(c){var f=this.__data__,d=jd(f,c);return d<0?e:f[d][1]}o(dk,"listCacheGet");function gk(c){return jd(this.__data__,c)>-1}o(gk,"listCacheHas");function mk(c,f){var d=this.__data__,y=jd(d,c);return y<0?(++this.size,d.push([c,f])):d[y][1]=f,this}o(mk,"listCacheSet"),zo.prototype.clear=uk,zo.prototype.delete=pk,zo.prototype.get=dk,zo.prototype.has=gk,zo.prototype.set=mk;function Yo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var y=c[f];this.set(y[0],y[1])}}o(Yo,"MapCache");function hk(){this.size=0,this.__data__={hash:new js,map:new(Vf||zo),string:new js}}o(hk,"mapCacheClear");function yk(c){var f=Yd(this,c).delete(c);return this.size-=f?1:0,f}o(yk,"mapCacheDelete");function vk(c){return Yd(this,c).get(c)}o(vk,"mapCacheGet");function Tk(c){return Yd(this,c).has(c)}o(Tk,"mapCacheHas");function Ek(c,f){var d=Yd(this,c),y=d.size;return d.set(c,f),this.size+=d.size==y?0:1,this}o(Ek,"mapCacheSet"),Yo.prototype.clear=hk,Yo.prototype.delete=yk,Yo.prototype.get=vk,Yo.prototype.has=Tk,Yo.prototype.set=Ek;function Us(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new Yo;++f<d;)this.add(c[f])}o(Us,"SetCache");function bk(c){return this.__data__.set(c,s),this}o(bk,"setCacheAdd");function Ak(c){return this.__data__.has(c)}o(Ak,"setCacheHas"),Us.prototype.add=Us.prototype.push=bk,Us.prototype.has=Ak;function Yr(c){var f=this.__data__=new zo(c);this.size=f.size}o(Yr,"Stack");function Sk(){this.__data__=new zo,this.size=0}o(Sk,"stackClear");function Pk(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(Pk,"stackDelete");function Ck(c){return this.__data__.get(c)}o(Ck,"stackGet");function xk(c){return this.__data__.has(c)}o(xk,"stackHas");function Ik(c,f){var d=this.__data__;if(d instanceof zo){var y=d.__data__;if(!Vf||y.length<n-1)return y.push([c,f]),this.size=++d.size,this;d=this.__data__=new Yo(y)}return d.set(c,f),this.size=d.size,this}o(Ik,"stackSet"),Yr.prototype.clear=Sk,Yr.prototype.delete=Pk,Yr.prototype.get=Ck,Yr.prototype.has=xk,Yr.prototype.set=Ik;function Jx(c,f){var d=Ke(c),y=!d&&Ws(c),b=!d&&!y&&Ba(c),x=!d&&!y&&!b&&tl(c),L=d||y||b||x,R=L?xv(c.length,M2):[],M=R.length;for(var Y in c)(f||Ft.call(c,Y))&&!(L&&(Y=="length"||b&&(Y=="offset"||Y=="parent")||x&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||ta(Y,M)))&&R.push(Y);return R}o(Jx,"arrayLikeKeys");function Zx(c){var f=c.length;return f?c[Hv(0,f-1)]:e}o(Zx,"arraySample");function Ok(c,f){return Jd($i(c),$s(f,0,c.length))}o(Ok,"arraySampleSize");function Nk(c){return Jd($i(c))}o(Nk,"arrayShuffle");function Dv(c,f,d){(d!==e&&!Jr(c[f],d)||d===e&&!(f in c))&&Jo(c,f,d)}o(Dv,"assignMergeValue");function jf(c,f,d){var y=c[f];(!(Ft.call(c,f)&&Jr(y,d))||d===e&&!(f in c))&&Jo(c,f,d)}o(jf,"assignValue");function jd(c,f){for(var d=c.length;d--;)if(Jr(c[d][0],f))return d;return-1}o(jd,"assocIndexOf");function Lk(c,f,d,y){return ka(c,function(b,x,L){f(y,b,d(b),L)}),y}o(Lk,"baseAggregator");function eI(c,f){return c&&Po(f,Xn(f),c)}o(eI,"baseAssign");function Rk(c,f){return c&&Po(f,Hi(f),c)}o(Rk,"baseAssignIn");function Jo(c,f,d){f=="__proto__"&&Dd?Dd(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(Jo,"baseAssignValue");function _v(c,f){for(var d=-1,y=f.length,b=W(y),x=c==null;++d<y;)b[d]=x?e:gT(c,f[d]);return b}o(_v,"baseAt");function $s(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o($s,"baseClamp");function Rr(c,f,d,y,b,x){var L,R=f&p,M=f&g,Y=f&m;if(d&&(L=b?d(c,y,b,x):d(c)),L!==e)return L;if(!mn(c))return c;var J=Ke(c);if(J){if(L=Tj(c),!R)return $i(c,L)}else{var ee=di(c),ge=ee==_e||ee==Rt;if(Ba(c))return PI(c,R);if(ee==cn||ee==Wn||ge&&!b){if(L=M||ge?{}:HI(c),!R)return M?cj(c,Rk(L,c)):sj(c,eI(L,c))}else{if(!qt[ee])return b?c:{};L=Ej(c,ee,R)}}x||(x=new Yr);var Oe=x.get(c);if(Oe)return Oe;x.set(c,L),vO(c)?c.forEach(function(ke){L.add(Rr(ke,f,d,ke,c,x))}):hO(c)&&c.forEach(function(ke,st){L.set(st,Rr(ke,f,d,st,c,x))});var Me=Y?M?eT:Zv:M?Hi:Xn,Ze=J?e:Me(c);return Or(Ze||c,function(ke,st){Ze&&(st=ke,ke=c[st]),jf(L,st,Rr(ke,f,d,st,c,x))}),L}o(Rr,"baseClone");function Fk(c){var f=Xn(c);return function(d){return tI(d,c,f)}}o(Fk,"baseConforms");function tI(c,f,d){var y=d.length;if(c==null)return!y;for(c=Kt(c);y--;){var b=d[y],x=f[b],L=c[b];if(L===e&&!(b in c)||!x(L))return!1}return!0}o(tI,"baseConformsTo");function nI(c,f,d){if(typeof c!="function")throw new Nr(r);return Kf(function(){c.apply(e,d)},f)}o(nI,"baseDelay");function Uf(c,f,d,y){var b=-1,x=Ad,L=!0,R=c.length,M=[],Y=f.length;if(!R)return M;d&&(f=fn(f,ar(d))),y?(x=Ev,L=!1):f.length>=n&&(x=Df,L=!1,f=new Us(f));e:for(;++b<R;){var J=c[b],ee=d==null?J:d(J);if(J=y||J!==0?J:0,L&&ee===ee){for(var ge=Y;ge--;)if(f[ge]===ee)continue e;M.push(J)}else x(f,ee,y)||M.push(J)}return M}o(Uf,"baseDifference");var ka=NI(So),iI=NI(wv,!0);function Dk(c,f){var d=!0;return ka(c,function(y,b,x){return d=!!f(y,b,x),d}),d}o(Dk,"baseEvery");function Ud(c,f,d){for(var y=-1,b=c.length;++y<b;){var x=c[y],L=f(x);if(L!=null&&(R===e?L===L&&!cr(L):d(L,R)))var R=L,M=x}return M}o(Ud,"baseExtremum");function _k(c,f,d,y){var b=c.length;for(d=Ye(d),d<0&&(d=-d>b?0:b+d),y=y===e||y>b?b:Ye(y),y<0&&(y+=b),y=d>y?0:EO(y);d<y;)c[d++]=f;return c}o(_k,"baseFill");function rI(c,f){var d=[];return ka(c,function(y,b,x){f(y,b,x)&&d.push(y)}),d}o(rI,"baseFilter");function ni(c,f,d,y,b){var x=-1,L=c.length;for(d||(d=Aj),b||(b=[]);++x<L;){var R=c[x];f>0&&d(R)?f>1?ni(R,f-1,d,y,b):_a(b,R):y||(b[b.length]=R)}return b}o(ni,"baseFlatten");var Vv=LI(),oI=LI(!0);function So(c,f){return c&&Vv(c,f,Xn)}o(So,"baseForOwn");function wv(c,f){return c&&oI(c,f,Xn)}o(wv,"baseForOwnRight");function $d(c,f){return Da(f,function(d){return na(c[d])})}o($d,"baseFunctions");function Bs(c,f){f=Ua(f,c);for(var d=0,y=f.length;c!=null&&d<y;)c=c[Co(f[d++])];return d&&d==y?c:e}o(Bs,"baseGet");function aI(c,f,d){var y=f(c);return Ke(c)?y:_a(y,d(c))}o(aI,"baseGetAllKeys");function xi(c){return c==null?c===e?qo:yn:ks&&ks in Kt(c)?hj(c):Nj(c)}o(xi,"baseGetTag");function Mv(c,f){return c>f}o(Mv,"baseGt");function Vk(c,f){return c!=null&&Ft.call(c,f)}o(Vk,"baseHas");function wk(c,f){return c!=null&&f in Kt(c)}o(wk,"baseHasIn");function Mk(c,f,d){return c>=pi(f,d)&&c<Un(f,d)}o(Mk,"baseInRange");function kv(c,f,d){for(var y=d?Ev:Ad,b=c[0].length,x=c.length,L=x,R=W(x),M=1/0,Y=[];L--;){var J=c[L];L&&f&&(J=fn(J,ar(f))),M=pi(J.length,M),R[L]=!d&&(f||b>=120&&J.length>=120)?new Us(L&&J):e}J=c[0];var ee=-1,ge=R[0];e:for(;++ee<b&&Y.length<M;){var Oe=J[ee],Me=f?f(Oe):Oe;if(Oe=d||Oe!==0?Oe:0,!(ge?Df(ge,Me):y(Y,Me,d))){for(L=x;--L;){var Ze=R[L];if(!(Ze?Df(Ze,Me):y(c[L],Me,d)))continue e}ge&&ge.push(Me),Y.push(Oe)}}return Y}o(kv,"baseIntersection");function kk(c,f,d,y){return So(c,function(b,x,L){f(y,d(b),x,L)}),y}o(kk,"baseInverter");function $f(c,f,d){f=Ua(f,c),c=XI(c,f);var y=c==null?c:c[Co(Dr(f))];return y==null?e:or(y,c,d)}o($f,"baseInvoke");function sI(c){return vn(c)&&xi(c)==Wn}o(sI,"baseIsArguments");function jk(c){return vn(c)&&xi(c)==Vs}o(jk,"baseIsArrayBuffer");function Uk(c){return vn(c)&&xi(c)==S}o(Uk,"baseIsDate");function Bf(c,f,d,y,b){return c===f?!0:c==null||f==null||!vn(c)&&!vn(f)?c!==c&&f!==f:$k(c,f,d,y,Bf,b)}o(Bf,"baseIsEqual");function $k(c,f,d,y,b,x){var L=Ke(c),R=Ke(f),M=L?Cr:di(c),Y=R?Cr:di(f);M=M==Wn?cn:M,Y=Y==Wn?cn:Y;var J=M==cn,ee=Y==cn,ge=M==Y;if(ge&&Ba(c)){if(!Ba(f))return!1;L=!0,J=!1}if(ge&&!J)return x||(x=new Yr),L||tl(c)?UI(c,f,d,y,b,x):gj(c,f,M,d,y,b,x);if(!(d&v)){var Oe=J&&Ft.call(c,"__wrapped__"),Me=ee&&Ft.call(f,"__wrapped__");if(Oe||Me){var Ze=Oe?c.value():c,ke=Me?f.value():f;return x||(x=new Yr),b(Ze,ke,d,y,x)}}return ge?(x||(x=new Yr),mj(c,f,d,y,b,x)):!1}o($k,"baseIsEqualDeep");function Bk(c){return vn(c)&&di(c)==Xe}o(Bk,"baseIsMap");function jv(c,f,d,y){var b=d.length,x=b,L=!y;if(c==null)return!x;for(c=Kt(c);b--;){var R=d[b];if(L&&R[2]?R[1]!==c[R[0]]:!(R[0]in c))return!1}for(;++b<x;){R=d[b];var M=R[0],Y=c[M],J=R[1];if(L&&R[2]){if(Y===e&&!(M in c))return!1}else{var ee=new Yr;if(y)var ge=y(Y,J,M,c,f,ee);if(!(ge===e?Bf(J,Y,v|A,y,ee):ge))return!1}}return!0}o(jv,"baseIsMatch");function cI(c){if(!mn(c)||Pj(c))return!1;var f=na(c)?B2:RM;return f.test(Gs(c))}o(cI,"baseIsNative");function Hk(c){return vn(c)&&xi(c)==ir}o(Hk,"baseIsRegExp");function Gk(c){return vn(c)&&di(c)==dn}o(Gk,"baseIsSet");function Wk(c){return vn(c)&&rg(c.length)&&!!tn[xi(c)]}o(Wk,"baseIsTypedArray");function lI(c){return typeof c=="function"?c:c==null?Gi:typeof c=="object"?Ke(c)?pI(c[0],c[1]):uI(c):RO(c)}o(lI,"baseIteratee");function Uv(c){if(!Wf(c))return Q2(c);var f=[];for(var d in Kt(c))Ft.call(c,d)&&d!="constructor"&&f.push(d);return f}o(Uv,"baseKeys");function Kk(c){if(!mn(c))return Oj(c);var f=Wf(c),d=[];for(var y in c)y=="constructor"&&(f||!Ft.call(c,y))||d.push(y);return d}o(Kk,"baseKeysIn");function $v(c,f){return c<f}o($v,"baseLt");function fI(c,f){var d=-1,y=Bi(c)?W(c.length):[];return ka(c,function(b,x,L){y[++d]=f(b,x,L)}),y}o(fI,"baseMap");function uI(c){var f=nT(c);return f.length==1&&f[0][2]?WI(f[0][0],f[0][1]):function(d){return d===c||jv(d,c,f)}}o(uI,"baseMatches");function pI(c,f){return rT(c)&&GI(f)?WI(Co(c),f):function(d){var y=gT(d,c);return y===e&&y===f?mT(d,c):Bf(f,y,v|A)}}o(pI,"baseMatchesProperty");function Bd(c,f,d,y,b){c!==f&&Vv(f,function(x,L){if(b||(b=new Yr),mn(x))Xk(c,f,L,d,Bd,y,b);else{var R=y?y(aT(c,L),x,L+"",c,f,b):e;R===e&&(R=x),Dv(c,L,R)}},Hi)}o(Bd,"baseMerge");function Xk(c,f,d,y,b,x,L){var R=aT(c,d),M=aT(f,d),Y=L.get(M);if(Y){Dv(c,d,Y);return}var J=x?x(R,M,d+"",c,f,L):e,ee=J===e;if(ee){var ge=Ke(M),Oe=!ge&&Ba(M),Me=!ge&&!Oe&&tl(M);J=M,ge||Oe||Me?Ke(R)?J=R:xn(R)?J=$i(R):Oe?(ee=!1,J=PI(M,!0)):Me?(ee=!1,J=CI(M,!0)):J=[]:Xf(M)||Ws(M)?(J=R,Ws(R)?J=bO(R):(!mn(R)||na(R))&&(J=HI(M))):ee=!1}ee&&(L.set(M,J),b(J,M,y,x,L),L.delete(M)),Dv(c,d,J)}o(Xk,"baseMergeDeep");function dI(c,f){var d=c.length;if(d)return f+=f<0?d:0,ta(f,d)?c[f]:e}o(dI,"baseNth");function gI(c,f,d){f.length?f=fn(f,function(x){return Ke(x)?function(L){return Bs(L,x.length===1?x[0]:x)}:x}):f=[Gi];var y=-1;f=fn(f,ar(Ve()));var b=fI(c,function(x,L,R){var M=fn(f,function(Y){return Y(x)});return{criteria:M,index:++y,value:x}});return E2(b,function(x,L){return aj(x,L,d)})}o(gI,"baseOrderBy");function Qk(c,f){return mI(c,f,function(d,y){return mT(c,y)})}o(Qk,"basePick");function mI(c,f,d){for(var y=-1,b=f.length,x={};++y<b;){var L=f[y],R=Bs(c,L);d(R,L)&&Hf(x,Ua(L,c),R)}return x}o(mI,"basePickBy");function qk(c){return function(f){return Bs(f,c)}}o(qk,"basePropertyDeep");function Bv(c,f,d,y){var b=y?T2:Wc,x=-1,L=f.length,R=c;for(c===f&&(f=$i(f)),d&&(R=fn(c,ar(d)));++x<L;)for(var M=0,Y=f[x],J=d?d(Y):Y;(M=b(R,J,M,y))>-1;)R!==c&&Fd.call(R,M,1),Fd.call(c,M,1);return c}o(Bv,"basePullAll");function hI(c,f){for(var d=c?f.length:0,y=d-1;d--;){var b=f[d];if(d==y||b!==x){var x=b;ta(b)?Fd.call(c,b,1):Kv(c,b)}}return c}o(hI,"basePullAt");function Hv(c,f){return c+Vd(zx()*(f-c+1))}o(Hv,"baseRandom");function zk(c,f,d,y){for(var b=-1,x=Un(_d((f-c)/(d||1)),0),L=W(x);x--;)L[y?x:++b]=c,c+=d;return L}o(zk,"baseRange");function Gv(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=Vd(f/2),f&&(c+=c);while(f);return d}o(Gv,"baseRepeat");function nt(c,f){return sT(KI(c,f,Gi),c+"")}o(nt,"baseRest");function Yk(c){return Zx(nl(c))}o(Yk,"baseSample");function Jk(c,f){var d=nl(c);return Jd(d,$s(f,0,d.length))}o(Jk,"baseSampleSize");function Hf(c,f,d,y){if(!mn(c))return c;f=Ua(f,c);for(var b=-1,x=f.length,L=x-1,R=c;R!=null&&++b<x;){var M=Co(f[b]),Y=d;if(M==="__proto__"||M==="constructor"||M==="prototype")return c;if(b!=L){var J=R[M];Y=y?y(J,M,R):e,Y===e&&(Y=mn(J)?J:ta(f[b+1])?[]:{})}jf(R,M,Y),R=R[M]}return c}o(Hf,"baseSet");var yI=wd?function(c,f){return wd.set(c,f),c}:Gi,Zk=Dd?function(c,f){return Dd(c,"toString",{configurable:!0,enumerable:!1,value:yT(f),writable:!0})}:Gi;function ej(c){return Jd(nl(c))}o(ej,"baseShuffle");function Fr(c,f,d){var y=-1,b=c.length;f<0&&(f=-f>b?0:b+f),d=d>b?b:d,d<0&&(d+=b),b=f>d?0:d-f>>>0,f>>>=0;for(var x=W(b);++y<b;)x[y]=c[y+f];return x}o(Fr,"baseSlice");function tj(c,f){var d;return ka(c,function(y,b,x){return d=f(y,b,x),!d}),!!d}o(tj,"baseSome");function Hd(c,f,d){var y=0,b=c==null?y:c.length;if(typeof f=="number"&&f===f&&b<=ji){for(;y<b;){var x=y+b>>>1,L=c[x];L!==null&&!cr(L)&&(d?L<=f:L<f)?y=x+1:b=x}return b}return Wv(c,f,Gi,d)}o(Hd,"baseSortedIndex");function Wv(c,f,d,y){var b=0,x=c==null?0:c.length;if(x===0)return 0;f=d(f);for(var L=f!==f,R=f===null,M=cr(f),Y=f===e;b<x;){var J=Vd((b+x)/2),ee=d(c[J]),ge=ee!==e,Oe=ee===null,Me=ee===ee,Ze=cr(ee);if(L)var ke=y||Me;else Y?ke=Me&&(y||ge):R?ke=Me&&ge&&(y||!Oe):M?ke=Me&&ge&&!Oe&&(y||!Ze):Oe||Ze?ke=!1:ke=y?ee<=f:ee<f;ke?b=J+1:x=J}return pi(x,sn)}o(Wv,"baseSortedIndexBy");function vI(c,f){for(var d=-1,y=c.length,b=0,x=[];++d<y;){var L=c[d],R=f?f(L):L;if(!d||!Jr(R,M)){var M=R;x[b++]=L===0?0:L}}return x}o(vI,"baseSortedUniq");function TI(c){return typeof c=="number"?c:cr(c)?It:+c}o(TI,"baseToNumber");function sr(c){if(typeof c=="string")return c;if(Ke(c))return fn(c,sr)+"";if(cr(c))return Yx?Yx.call(c):"";var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(sr,"baseToString");function ja(c,f,d){var y=-1,b=Ad,x=c.length,L=!0,R=[],M=R;if(d)L=!1,b=Ev;else if(x>=n){var Y=f?null:pj(c);if(Y)return Pd(Y);L=!1,b=Df,M=new Us}else M=f?[]:R;e:for(;++y<x;){var J=c[y],ee=f?f(J):J;if(J=d||J!==0?J:0,L&&ee===ee){for(var ge=M.length;ge--;)if(M[ge]===ee)continue e;f&&M.push(ee),R.push(J)}else b(M,ee,d)||(M!==R&&M.push(ee),R.push(J))}return R}o(ja,"baseUniq");function Kv(c,f){return f=Ua(f,c),c=XI(c,f),c==null||delete c[Co(Dr(f))]}o(Kv,"baseUnset");function EI(c,f,d,y){return Hf(c,f,d(Bs(c,f)),y)}o(EI,"baseUpdate");function Gd(c,f,d,y){for(var b=c.length,x=y?b:-1;(y?x--:++x<b)&&f(c[x],x,c););return d?Fr(c,y?0:x,y?x+1:b):Fr(c,y?x+1:0,y?b:x)}o(Gd,"baseWhile");function bI(c,f){var d=c;return d instanceof pt&&(d=d.value()),bv(f,function(y,b){return b.func.apply(b.thisArg,_a([y],b.args))},d)}o(bI,"baseWrapperValue");function Xv(c,f,d){var y=c.length;if(y<2)return y?ja(c[0]):[];for(var b=-1,x=W(y);++b<y;)for(var L=c[b],R=-1;++R<y;)R!=b&&(x[b]=Uf(x[b]||L,c[R],f,d));return ja(ni(x,1),f,d)}o(Xv,"baseXor");function AI(c,f,d){for(var y=-1,b=c.length,x=f.length,L={};++y<b;){var R=y<x?f[y]:e;d(L,c[y],R)}return L}o(AI,"baseZipObject");function Qv(c){return xn(c)?c:[]}o(Qv,"castArrayLikeObject");function qv(c){return typeof c=="function"?c:Gi}o(qv,"castFunction");function Ua(c,f){return Ke(c)?c:rT(c,f)?[c]:YI(Ot(c))}o(Ua,"castPath");var nj=nt;function $a(c,f,d){var y=c.length;return d=d===e?y:d,!f&&d>=y?c:Fr(c,f,d)}o($a,"castSlice");var SI=H2||function(c){return Kn.clearTimeout(c)};function PI(c,f){if(f)return c.slice();var d=c.length,y=Wx?Wx(d):new c.constructor(d);return c.copy(y),y}o(PI,"cloneBuffer");function zv(c){var f=new c.constructor(c.byteLength);return new Ld(f).set(new Ld(c)),f}o(zv,"cloneArrayBuffer");function ij(c,f){var d=f?zv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(ij,"cloneDataView");function rj(c){var f=new c.constructor(c.source,sx.exec(c));return f.lastIndex=c.lastIndex,f}o(rj,"cloneRegExp");function oj(c){return kf?Kt(kf.call(c)):{}}o(oj,"cloneSymbol");function CI(c,f){var d=f?zv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(CI,"cloneTypedArray");function xI(c,f){if(c!==f){var d=c!==e,y=c===null,b=c===c,x=cr(c),L=f!==e,R=f===null,M=f===f,Y=cr(f);if(!R&&!Y&&!x&&c>f||x&&L&&M&&!R&&!Y||y&&L&&M||!d&&M||!b)return 1;if(!y&&!x&&!Y&&c<f||Y&&d&&b&&!y&&!x||R&&d&&b||!L&&b||!M)return-1}return 0}o(xI,"compareAscending");function aj(c,f,d){for(var y=-1,b=c.criteria,x=f.criteria,L=b.length,R=d.length;++y<L;){var M=xI(b[y],x[y]);if(M){if(y>=R)return M;var Y=d[y];return M*(Y=="desc"?-1:1)}}return c.index-f.index}o(aj,"compareMultiple");function II(c,f,d,y){for(var b=-1,x=c.length,L=d.length,R=-1,M=f.length,Y=Un(x-L,0),J=W(M+Y),ee=!y;++R<M;)J[R]=f[R];for(;++b<L;)(ee||b<x)&&(J[d[b]]=c[b]);for(;Y--;)J[R++]=c[b++];return J}o(II,"composeArgs");function OI(c,f,d,y){for(var b=-1,x=c.length,L=-1,R=d.length,M=-1,Y=f.length,J=Un(x-R,0),ee=W(J+Y),ge=!y;++b<J;)ee[b]=c[b];for(var Oe=b;++M<Y;)ee[Oe+M]=f[M];for(;++L<R;)(ge||b<x)&&(ee[Oe+d[L]]=c[b++]);return ee}o(OI,"composeArgsRight");function $i(c,f){var d=-1,y=c.length;for(f||(f=W(y));++d<y;)f[d]=c[d];return f}o($i,"copyArray");function Po(c,f,d,y){var b=!d;d||(d={});for(var x=-1,L=f.length;++x<L;){var R=f[x],M=y?y(d[R],c[R],R,d,c):e;M===e&&(M=c[R]),b?Jo(d,R,M):jf(d,R,M)}return d}o(Po,"copyObject");function sj(c,f){return Po(c,iT(c),f)}o(sj,"copySymbols");function cj(c,f){return Po(c,$I(c),f)}o(cj,"copySymbolsIn");function Wd(c,f){return function(d,y){var b=Ke(d)?p2:Lk,x=f?f():{};return b(d,c,Ve(y,2),x)}}o(Wd,"createAggregator");function Jc(c){return nt(function(f,d){var y=-1,b=d.length,x=b>1?d[b-1]:e,L=b>2?d[2]:e;for(x=c.length>3&&typeof x=="function"?(b--,x):e,L&&Ii(d[0],d[1],L)&&(x=b<3?e:x,b=1),f=Kt(f);++y<b;){var R=d[y];R&&c(f,R,y,x)}return f})}o(Jc,"createAssigner");function NI(c,f){return function(d,y){if(d==null)return d;if(!Bi(d))return c(d,y);for(var b=d.length,x=f?b:-1,L=Kt(d);(f?x--:++x<b)&&y(L[x],x,L)!==!1;);return d}}o(NI,"createBaseEach");function LI(c){return function(f,d,y){for(var b=-1,x=Kt(f),L=y(f),R=L.length;R--;){var M=L[c?R:++b];if(d(x[M],M,x)===!1)break}return f}}o(LI,"createBaseFor");function lj(c,f,d){var y=f&E,b=Gf(c);function x(){var L=this&&this!==Kn&&this instanceof x?b:c;return L.apply(y?d:this,arguments)}return o(x,"wrapper"),x}o(lj,"createBind");function RI(c){return function(f){f=Ot(f);var d=Kc(f)?zr(f):e,y=d?d[0]:f.charAt(0),b=d?$a(d,1).join(""):f.slice(1);return y[c]()+b}}o(RI,"createCaseFirst");function Zc(c){return function(f){return bv(NO(OO(f).replace(JM,"")),c,"")}}o(Zc,"createCompounder");function Gf(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=Yc(c.prototype),y=c.apply(d,f);return mn(y)?y:d}}o(Gf,"createCtor");function fj(c,f,d){var y=Gf(c);function b(){for(var x=arguments.length,L=W(x),R=x,M=el(b);R--;)L[R]=arguments[R];var Y=x<3&&L[0]!==M&&L[x-1]!==M?[]:Va(L,M);if(x-=Y.length,x<d)return wI(c,f,Kd,b.placeholder,e,L,Y,e,e,d-x);var J=this&&this!==Kn&&this instanceof b?y:c;return or(J,this,L)}return o(b,"wrapper"),b}o(fj,"createCurry");function FI(c){return function(f,d,y){var b=Kt(f);if(!Bi(f)){var x=Ve(d,3);f=Xn(f),d=o(function(R){return x(b[R],R,b)},"predicate")}var L=c(f,d,y);return L>-1?b[x?f[L]:L]:e}}o(FI,"createFind");function DI(c){return ea(function(f){var d=f.length,y=d,b=Lr.prototype.thru;for(c&&f.reverse();y--;){var x=f[y];if(typeof x!="function")throw new Nr(r);if(b&&!L&&zd(x)=="wrapper")var L=new Lr([],!0)}for(y=L?y:d;++y<d;){x=f[y];var R=zd(x),M=R=="wrapper"?tT(x):e;M&&oT(M[0])&&M[1]==(Z|j|B|re)&&!M[4].length&&M[9]==1?L=L[zd(M[0])].apply(L,M[3]):L=x.length==1&&oT(x)?L[R]():L.thru(x)}return function(){var Y=arguments,J=Y[0];if(L&&Y.length==1&&Ke(J))return L.plant(J).value();for(var ee=0,ge=d?f[ee].apply(this,Y):J;++ee<d;)ge=f[ee].call(this,ge);return ge}})}o(DI,"createFlow");function Kd(c,f,d,y,b,x,L,R,M,Y){var J=f&Z,ee=f&E,ge=f&O,Oe=f&(j|G),Me=f&Se,Ze=ge?e:Gf(c);function ke(){for(var st=arguments.length,gt=W(st),lr=st;lr--;)gt[lr]=arguments[lr];if(Oe)var Oi=el(ke),fr=A2(gt,Oi);if(y&&(gt=II(gt,y,b,Oe)),x&&(gt=OI(gt,x,L,Oe)),st-=fr,Oe&&st<Y){var In=Va(gt,Oi);return wI(c,f,Kd,ke.placeholder,d,gt,In,R,M,Y-st)}var Zr=ee?d:this,ra=ge?Zr[c]:c;return st=gt.length,R?gt=Lj(gt,R):Me&&st>1&>.reverse(),J&&M<st&&(gt.length=M),this&&this!==Kn&&this instanceof ke&&(ra=Ze||Gf(ra)),ra.apply(Zr,gt)}return o(ke,"wrapper"),ke}o(Kd,"createHybrid");function _I(c,f){return function(d,y){return kk(d,c,f(y),{})}}o(_I,"createInverter");function Xd(c,f){return function(d,y){var b;if(d===e&&y===e)return f;if(d!==e&&(b=d),y!==e){if(b===e)return y;typeof d=="string"||typeof y=="string"?(d=sr(d),y=sr(y)):(d=TI(d),y=TI(y)),b=c(d,y)}return b}}o(Xd,"createMathOperation");function Yv(c){return ea(function(f){return f=fn(f,ar(Ve())),nt(function(d){var y=this;return c(f,function(b){return or(b,y,d)})})})}o(Yv,"createOver");function Qd(c,f){f=f===e?" ":sr(f);var d=f.length;if(d<2)return d?Gv(f,c):f;var y=Gv(f,_d(c/Xc(f)));return Kc(f)?$a(zr(y),0,c).join(""):y.slice(0,c)}o(Qd,"createPadding");function uj(c,f,d,y){var b=f&E,x=Gf(c);function L(){for(var R=-1,M=arguments.length,Y=-1,J=y.length,ee=W(J+M),ge=this&&this!==Kn&&this instanceof L?x:c;++Y<J;)ee[Y]=y[Y];for(;M--;)ee[Y++]=arguments[++R];return or(ge,b?d:this,ee)}return o(L,"wrapper"),L}o(uj,"createPartial");function VI(c){return function(f,d,y){return y&&typeof y!="number"&&Ii(f,d,y)&&(d=y=e),f=ia(f),d===e?(d=f,f=0):d=ia(d),y=y===e?f<d?1:-1:ia(y),zk(f,d,y,c)}}o(VI,"createRange");function qd(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=_r(f),d=_r(d)),c(f,d)}}o(qd,"createRelationalOperation");function wI(c,f,d,y,b,x,L,R,M,Y){var J=f&j,ee=J?L:e,ge=J?e:L,Oe=J?x:e,Me=J?e:x;f|=J?B:ae,f&=~(J?ae:B),f&F||(f&=~(E|O));var Ze=[c,f,b,Oe,ee,Me,ge,R,M,Y],ke=d.apply(e,Ze);return oT(c)&&QI(ke,Ze),ke.placeholder=y,qI(ke,c,f)}o(wI,"createRecurry");function Jv(c){var f=jn[c];return function(d,y){if(d=_r(d),y=y==null?0:pi(Ye(y),292),y&&qx(d)){var b=(Ot(d)+"e").split("e"),x=f(b[0]+"e"+(+b[1]+y));return b=(Ot(x)+"e").split("e"),+(b[0]+"e"+(+b[1]-y))}return f(d)}}o(Jv,"createRound");var pj=qc&&1/Pd(new qc([,-0]))[1]==Lt?function(c){return new qc(c)}:ET;function MI(c){return function(f){var d=di(f);return d==Xe?Ov(f):d==dn?N2(f):b2(f,c(f))}}o(MI,"createToPairs");function Zo(c,f,d,y,b,x,L,R){var M=f&O;if(!M&&typeof c!="function")throw new Nr(r);var Y=y?y.length:0;if(Y||(f&=~(B|ae),y=b=e),L=L===e?L:Un(Ye(L),0),R=R===e?R:Ye(R),Y-=b?b.length:0,f&ae){var J=y,ee=b;y=b=e}var ge=M?e:tT(c),Oe=[c,f,d,y,b,J,ee,x,L,R];if(ge&&Ij(Oe,ge),c=Oe[0],f=Oe[1],d=Oe[2],y=Oe[3],b=Oe[4],R=Oe[9]=Oe[9]===e?M?0:c.length:Un(Oe[9]-Y,0),!R&&f&(j|G)&&(f&=~(j|G)),!f||f==E)var Me=lj(c,f,d);else f==j||f==G?Me=fj(c,f,R):(f==B||f==(E|B))&&!b.length?Me=uj(c,f,d,y):Me=Kd.apply(e,Oe);var Ze=ge?yI:QI;return qI(Ze(Me,Oe),c,f)}o(Zo,"createWrap");function kI(c,f,d,y){return c===e||Jr(c,Qc[d])&&!Ft.call(y,d)?f:c}o(kI,"customDefaultsAssignIn");function jI(c,f,d,y,b,x){return mn(c)&&mn(f)&&(x.set(f,c),Bd(c,f,e,jI,x),x.delete(f)),c}o(jI,"customDefaultsMerge");function dj(c){return Xf(c)?e:c}o(dj,"customOmitClone");function UI(c,f,d,y,b,x){var L=d&v,R=c.length,M=f.length;if(R!=M&&!(L&&M>R))return!1;var Y=x.get(c),J=x.get(f);if(Y&&J)return Y==f&&J==c;var ee=-1,ge=!0,Oe=d&A?new Us:e;for(x.set(c,f),x.set(f,c);++ee<R;){var Me=c[ee],Ze=f[ee];if(y)var ke=L?y(Ze,Me,ee,f,c,x):y(Me,Ze,ee,c,f,x);if(ke!==e){if(ke)continue;ge=!1;break}if(Oe){if(!Av(f,function(st,gt){if(!Df(Oe,gt)&&(Me===st||b(Me,st,d,y,x)))return Oe.push(gt)})){ge=!1;break}}else if(!(Me===Ze||b(Me,Ze,d,y,x))){ge=!1;break}}return x.delete(c),x.delete(f),ge}o(UI,"equalArrays");function gj(c,f,d,y,b,x,L){switch(d){case xr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Vs:return!(c.byteLength!=f.byteLength||!x(new Ld(c),new Ld(f)));case I:case S:case kt:return Jr(+c,+f);case V:return c.name==f.name&&c.message==f.message;case ir:case ui:return c==f+"";case Xe:var R=Ov;case dn:var M=y&v;if(R||(R=Pd),c.size!=f.size&&!M)return!1;var Y=L.get(c);if(Y)return Y==f;y|=A,L.set(c,f);var J=UI(R(c),R(f),y,b,x,L);return L.delete(c),J;case Gt:if(kf)return kf.call(c)==kf.call(f)}return!1}o(gj,"equalByTag");function mj(c,f,d,y,b,x){var L=d&v,R=Zv(c),M=R.length,Y=Zv(f),J=Y.length;if(M!=J&&!L)return!1;for(var ee=M;ee--;){var ge=R[ee];if(!(L?ge in f:Ft.call(f,ge)))return!1}var Oe=x.get(c),Me=x.get(f);if(Oe&&Me)return Oe==f&&Me==c;var Ze=!0;x.set(c,f),x.set(f,c);for(var ke=L;++ee<M;){ge=R[ee];var st=c[ge],gt=f[ge];if(y)var lr=L?y(gt,st,ge,f,c,x):y(st,gt,ge,c,f,x);if(!(lr===e?st===gt||b(st,gt,d,y,x):lr)){Ze=!1;break}ke||(ke=ge=="constructor")}if(Ze&&!ke){var Oi=c.constructor,fr=f.constructor;Oi!=fr&&"constructor"in c&&"constructor"in f&&!(typeof Oi=="function"&&Oi instanceof Oi&&typeof fr=="function"&&fr instanceof fr)&&(Ze=!1)}return x.delete(c),x.delete(f),Ze}o(mj,"equalObjects");function ea(c){return sT(KI(c,e,tO),c+"")}o(ea,"flatRest");function Zv(c){return aI(c,Xn,iT)}o(Zv,"getAllKeys");function eT(c){return aI(c,Hi,$I)}o(eT,"getAllKeysIn");var tT=wd?function(c){return wd.get(c)}:ET;function zd(c){for(var f=c.name+"",d=zc[f],y=Ft.call(zc,f)?d.length:0;y--;){var b=d[y],x=b.func;if(x==null||x==c)return b.name}return f}o(zd,"getFuncName");function el(c){var f=Ft.call(P,"placeholder")?P:c;return f.placeholder}o(el,"getHolder");function Ve(){var c=P.iteratee||vT;return c=c===vT?lI:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function Yd(c,f){var d=c.__data__;return Sj(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(Yd,"getMapData");function nT(c){for(var f=Xn(c),d=f.length;d--;){var y=f[d],b=c[y];f[d]=[y,b,GI(b)]}return f}o(nT,"getMatchData");function Hs(c,f){var d=x2(c,f);return cI(d)?d:e}o(Hs,"getNative");function hj(c){var f=Ft.call(c,ks),d=c[ks];try{c[ks]=e;var y=!0}catch{}var b=Od.call(c);return y&&(f?c[ks]=d:delete c[ks]),b}o(hj,"getRawTag");var iT=Lv?function(c){return c==null?[]:(c=Kt(c),Da(Lv(c),function(f){return Xx.call(c,f)}))}:bT,$I=Lv?function(c){for(var f=[];c;)_a(f,iT(c)),c=Rd(c);return f}:bT,di=xi;(Rv&&di(new Rv(new ArrayBuffer(1)))!=xr||Vf&&di(new Vf)!=Xe||Fv&&di(Fv.resolve())!=Ht||qc&&di(new qc)!=dn||wf&&di(new wf)!=Ui)&&(di=o(function(c){var f=xi(c),d=f==cn?c.constructor:e,y=d?Gs(d):"";if(y)switch(y){case J2:return xr;case Z2:return Xe;case ek:return Ht;case tk:return dn;case nk:return Ui}return f},"getTag"));function yj(c,f,d){for(var y=-1,b=d.length;++y<b;){var x=d[y],L=x.size;switch(x.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=pi(f,c+L);break;case"takeRight":c=Un(c,f-L);break}}return{start:c,end:f}}o(yj,"getView");function vj(c){var f=c.match(SM);return f?f[1].split(PM):[]}o(vj,"getWrapDetails");function BI(c,f,d){f=Ua(f,c);for(var y=-1,b=f.length,x=!1;++y<b;){var L=Co(f[y]);if(!(x=c!=null&&d(c,L)))break;c=c[L]}return x||++y!=b?x:(b=c==null?0:c.length,!!b&&rg(b)&&ta(L,b)&&(Ke(c)||Ws(c)))}o(BI,"hasPath");function Tj(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(Tj,"initCloneArray");function HI(c){return typeof c.constructor=="function"&&!Wf(c)?Yc(Rd(c)):{}}o(HI,"initCloneObject");function Ej(c,f,d){var y=c.constructor;switch(f){case Vs:return zv(c);case I:case S:return new y(+c);case xr:return ij(c,d);case Nf:case Lf:case Rf:case ws:case k:case $:case Q:case ce:case Le:return CI(c,d);case Xe:return new y;case kt:case ui:return new y(c);case ir:return rj(c);case dn:return new y;case Gt:return oj(c)}}o(Ej,"initCloneByTag");function bj(c,f){var d=f.length;if(!d)return c;var y=d-1;return f[y]=(d>1?"& ":"")+f[y],f=f.join(d>2?", ":" "),c.replace(AM,`{
|
|
267
|
+
Please avoid using it as it will be completely removed in the future`)}var MQ,Ay=Qe(()=>{BA();Tr();op();vs();lp();zl();ZA();wi();wi();Kl();fS();Y_();oV();o(wQ,"clearCache");MQ=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 bS=qe((Mce,uV)=>{var{createToken:kQ,Lexer:TS}=(Ay(),cg(by)),sV={},ef=sV;function ES(e,t){sV[e]=typeof t=="string"?t:t.source}o(ES,"FRAGMENT");function bp(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(bp,"makePattern");var jQ=[],cV={};function Pn(e){let t=kQ(e);return jQ.push(t),cV[e.name]=t,t}o(Pn,"createToken");ES("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");ES("NameChar",bp`${ef.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);ES("Name",bp`${ef.NameStartChar}(${ef.NameChar})*`);var aV=Pn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),UQ=Pn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),$Q=Pn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),BQ=Pn({name:"DTD",pattern:/<!.*?>/,group:TS.SKIPPED}),HQ=Pn({name:"EntityRef",pattern:bp`&${ef.Name};`}),GQ=Pn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),WQ=Pn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),KQ=Pn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),lV=Pn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),XQ=Pn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[lV]}),QQ=Pn({name:"PROCESSING_INSTRUCTION",pattern:bp`<\\?${ef.Name}.*\\?>`}),fV=Pn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),qQ=Pn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[fV]}),zQ=Pn({name:"TEXT",pattern:/[^<&]+/}),YQ=Pn({name:"CLOSE",pattern:/>/,pop_mode:!0}),JQ=Pn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),ZQ=Pn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),e6=Pn({name:"SLASH",pattern:/\//}),t6=Pn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),n6=Pn({name:"EQUALS",pattern:/=/}),i6=Pn({name:"Name",pattern:bp`${ef.Name}`}),r6=Pn({name:"S",pattern:/[ \t\r\n]/,group:TS.SKIPPED}),o6={defaultMode:"OUTSIDE",modes:{OUTSIDE:[aV,UQ,$Q,BQ,HQ,GQ,WQ,KQ,lV,QQ,fV,zQ],INSIDE:[aV,XQ,qQ,YQ,JQ,ZQ,e6,n6,t6,i6,r6]}},a6=new TS(o6,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
|
|
269
|
+
`],lineTerminatorsPattern:/\n|\r\n/g});uV.exports={xmlLexer:a6,tokensDictionary:cV}});var dV=qe((jce,pV)=>{var{CstParser:s6,tokenMatcher:c6}=(Ay(),cg(by)),{tokensDictionary:xt}=bS(),SS=class SS extends s6{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=>c6(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(SS,"Parser");var AS=SS,l6=new AS;pV.exports={xmlParser:l6}});var PS=qe(($ce,gV)=>{var{xmlLexer:f6}=bS(),{xmlParser:Sy}=dV();gV.exports={parse:o(function(t){let n=f6.tokenize(t);return Sy.input=n.tokens,{cst:Sy.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Sy.errors}},"parse"),BaseXmlCstVisitor:Sy.getBaseCstVisitorConstructor()}});var Sp=qe((tf,Ap)=>{(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,v=1,A=2,E=1,O=2,F=4,j=8,G=16,B=32,ae=64,Z=128,re=256,Se=512,D=30,ut="...",yt=800,Ue=16,an=1,Gn=2,en=3,Lt=1/0,Re=9007199254740991,Ci=17976931348623157e292,It=NaN,Mt=4294967295,sn=Mt-1,ji=Mt>>>1,Fe=[["ary",Z],["bind",E],["bindKey",O],["curry",j],["curryRight",G],["flip",Se],["partial",B],["partialRight",ae],["rearg",re]],Wn="[object Arguments]",Cr="[object Array]",at="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",z="[object DOMException]",V="[object Error]",_e="[object Function]",Rt="[object GeneratorFunction]",Xe="[object Map]",kt="[object Number]",yn="[object Null]",cn="[object Object]",Ht="[object Promise]",ti="[object Proxy]",ir="[object RegExp]",dn="[object Set]",ui="[object String]",Gt="[object Symbol]",qo="[object Undefined]",Ui="[object WeakMap]",Of="[object WeakSet]",Vs="[object ArrayBuffer]",xr="[object DataView]",Nf="[object Float32Array]",Lf="[object Float64Array]",Rf="[object Int8Array]",ws="[object Int16Array]",k="[object Int32Array]",$="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Le="[object Uint32Array]",gn=/\b__p \+= '';/g,Cn=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,Pe=RegExp(me.source),Ie=RegExp(Te.source),rt=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,ln=/<%=([\s\S]+?)%>/g,rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vd=/^\w*$/,uv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ff=/[\\^$.*+?()[\]{}|]/g,TM=RegExp(Ff.source),pv=/^\s+/,EM=/\s/,bM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,AM=/\{\n\/\* \[wrapped with (.+)\] \*/,SM=/,? & /,PM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,CM=/[()=,{}\[\]\/\s]/,xM=/\\(\\)?/g,IM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sx=/\w*$/,OM=/^[-+]0x[0-9a-f]+$/i,NM=/^0b[01]+$/i,LM=/^\[object .+?Constructor\]$/,RM=/^0o[0-7]+$/i,FM=/^(?:0|[1-9]\d*)$/,DM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Td=/($^)/,_M=/['\n\r\u2028\u2029\\]/g,Ed="\\ud800-\\udfff",VM="\\u0300-\\u036f",wM="\\ufe20-\\ufe2f",MM="\\u20d0-\\u20ff",cx=VM+wM+MM,lx="\\u2700-\\u27bf",fx="a-z\\xdf-\\xf6\\xf8-\\xff",kM="\\xac\\xb1\\xd7\\xf7",jM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",UM="\\u2000-\\u206f",$M=" \\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",ux="A-Z\\xc0-\\xd6\\xd8-\\xde",px="\\ufe0e\\ufe0f",dx=kM+jM+UM+$M,dv="['\u2019]",BM="["+Ed+"]",gx="["+dx+"]",bd="["+cx+"]",mx="\\d+",HM="["+lx+"]",hx="["+fx+"]",yx="[^"+Ed+dx+mx+lx+fx+ux+"]",gv="\\ud83c[\\udffb-\\udfff]",GM="(?:"+bd+"|"+gv+")",vx="[^"+Ed+"]",mv="(?:\\ud83c[\\udde6-\\uddff]){2}",hv="[\\ud800-\\udbff][\\udc00-\\udfff]",Gc="["+ux+"]",Tx="\\u200d",Ex="(?:"+hx+"|"+yx+")",WM="(?:"+Gc+"|"+yx+")",bx="(?:"+dv+"(?:d|ll|m|re|s|t|ve))?",Ax="(?:"+dv+"(?:D|LL|M|RE|S|T|VE))?",Sx=GM+"?",Px="["+px+"]?",KM="(?:"+Tx+"(?:"+[vx,mv,hv].join("|")+")"+Px+Sx+")*",XM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",QM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cx=Px+Sx+KM,qM="(?:"+[HM,mv,hv].join("|")+")"+Cx,zM="(?:"+[vx+bd+"?",bd,mv,hv,BM].join("|")+")",YM=RegExp(dv,"g"),JM=RegExp(bd,"g"),yv=RegExp(gv+"(?="+gv+")|"+zM+Cx,"g"),ZM=RegExp([Gc+"?"+hx+"+"+bx+"(?="+[gx,Gc,"$"].join("|")+")",WM+"+"+Ax+"(?="+[gx,Gc+Ex,"$"].join("|")+")",Gc+"?"+Ex+"+"+bx,Gc+"+"+Ax,QM,XM,mx,qM].join("|"),"g"),e2=RegExp("["+Tx+Ed+cx+px+"]"),t2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,n2=["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"],i2=-1,tn={};tn[Nf]=tn[Lf]=tn[Rf]=tn[ws]=tn[k]=tn[$]=tn[Q]=tn[ce]=tn[Le]=!0,tn[Wn]=tn[Cr]=tn[Vs]=tn[I]=tn[xr]=tn[S]=tn[V]=tn[_e]=tn[Xe]=tn[kt]=tn[cn]=tn[ir]=tn[dn]=tn[ui]=tn[Ui]=!1;var qt={};qt[Wn]=qt[Cr]=qt[Vs]=qt[xr]=qt[I]=qt[S]=qt[Nf]=qt[Lf]=qt[Rf]=qt[ws]=qt[k]=qt[Xe]=qt[kt]=qt[cn]=qt[ir]=qt[dn]=qt[ui]=qt[Gt]=qt[$]=qt[Q]=qt[ce]=qt[Le]=!0,qt[V]=qt[_e]=qt[Ui]=!1;var r2={\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"},o2={"&":"&","<":"<",">":">",'"':""","'":"'"},a2={"&":"&","<":"<",">":">",""":'"',"'":"'"},s2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},c2=parseFloat,l2=parseInt,xx=typeof global=="object"&&global&&global.Object===Object&&global,f2=typeof self=="object"&&self&&self.Object===Object&&self,Kn=xx||f2||Function("return this")(),vv=typeof tf=="object"&&tf&&!tf.nodeType&&tf,Ms=vv&&typeof Ap=="object"&&Ap&&!Ap.nodeType&&Ap,Ix=Ms&&Ms.exports===vv,Tv=Ix&&xx.process,Ir=function(){try{var w=Ms&&Ms.require&&Ms.require("util").types;return w||Tv&&Tv.binding&&Tv.binding("util")}catch{}}(),Ox=Ir&&Ir.isArrayBuffer,Nx=Ir&&Ir.isDate,Lx=Ir&&Ir.isMap,Rx=Ir&&Ir.isRegExp,Fx=Ir&&Ir.isSet,Dx=Ir&&Ir.isTypedArray;function or(w,X,W){switch(W.length){case 0:return w.call(X);case 1:return w.call(X,W[0]);case 2:return w.call(X,W[0],W[1]);case 3:return w.call(X,W[0],W[1],W[2])}return w.apply(X,W)}o(or,"apply");function u2(w,X,W,be){for(var We=-1,St=w==null?0:w.length;++We<St;){var jn=w[We];X(be,jn,W(jn),w)}return be}o(u2,"arrayAggregator");function Or(w,X){for(var W=-1,be=w==null?0:w.length;++W<be&&X(w[W],W,w)!==!1;);return w}o(Or,"arrayEach");function p2(w,X){for(var W=w==null?0:w.length;W--&&X(w[W],W,w)!==!1;);return w}o(p2,"arrayEachRight");function _x(w,X){for(var W=-1,be=w==null?0:w.length;++W<be;)if(!X(w[W],W,w))return!1;return!0}o(_x,"arrayEvery");function Da(w,X){for(var W=-1,be=w==null?0:w.length,We=0,St=[];++W<be;){var jn=w[W];X(jn,W,w)&&(St[We++]=jn)}return St}o(Da,"arrayFilter");function Ad(w,X){var W=w==null?0:w.length;return!!W&&Wc(w,X,0)>-1}o(Ad,"arrayIncludes");function Ev(w,X,W){for(var be=-1,We=w==null?0:w.length;++be<We;)if(W(X,w[be]))return!0;return!1}o(Ev,"arrayIncludesWith");function fn(w,X){for(var W=-1,be=w==null?0:w.length,We=Array(be);++W<be;)We[W]=X(w[W],W,w);return We}o(fn,"arrayMap");function _a(w,X){for(var W=-1,be=X.length,We=w.length;++W<be;)w[We+W]=X[W];return w}o(_a,"arrayPush");function bv(w,X,W,be){var We=-1,St=w==null?0:w.length;for(be&&St&&(W=w[++We]);++We<St;)W=X(W,w[We],We,w);return W}o(bv,"arrayReduce");function d2(w,X,W,be){var We=w==null?0:w.length;for(be&&We&&(W=w[--We]);We--;)W=X(W,w[We],We,w);return W}o(d2,"arrayReduceRight");function Av(w,X){for(var W=-1,be=w==null?0:w.length;++W<be;)if(X(w[W],W,w))return!0;return!1}o(Av,"arraySome");var g2=Sv("length");function m2(w){return w.split("")}o(m2,"asciiToArray");function h2(w){return w.match(PM)||[]}o(h2,"asciiWords");function Vx(w,X,W){var be;return W(w,function(We,St,jn){if(X(We,St,jn))return be=St,!1}),be}o(Vx,"baseFindKey");function Sd(w,X,W,be){for(var We=w.length,St=W+(be?1:-1);be?St--:++St<We;)if(X(w[St],St,w))return St;return-1}o(Sd,"baseFindIndex");function Wc(w,X,W){return X===X?N2(w,X,W):Sd(w,wx,W)}o(Wc,"baseIndexOf");function y2(w,X,W,be){for(var We=W-1,St=w.length;++We<St;)if(be(w[We],X))return We;return-1}o(y2,"baseIndexOfWith");function wx(w){return w!==w}o(wx,"baseIsNaN");function Mx(w,X){var W=w==null?0:w.length;return W?Cv(w,X)/W:It}o(Mx,"baseMean");function Sv(w){return function(X){return X==null?e:X[w]}}o(Sv,"baseProperty");function Pv(w){return function(X){return w==null?e:w[X]}}o(Pv,"basePropertyOf");function kx(w,X,W,be,We){return We(w,function(St,jn,Kt){W=be?(be=!1,St):X(W,St,jn,Kt)}),W}o(kx,"baseReduce");function T2(w,X){var W=w.length;for(w.sort(X);W--;)w[W]=w[W].value;return w}o(T2,"baseSortBy");function Cv(w,X){for(var W,be=-1,We=w.length;++be<We;){var St=X(w[be]);St!==e&&(W=W===e?St:W+St)}return W}o(Cv,"baseSum");function xv(w,X){for(var W=-1,be=Array(w);++W<w;)be[W]=X(W);return be}o(xv,"baseTimes");function E2(w,X){return fn(X,function(W){return[W,w[W]]})}o(E2,"baseToPairs");function jx(w){return w&&w.slice(0,Hx(w)+1).replace(pv,"")}o(jx,"baseTrim");function ar(w){return function(X){return w(X)}}o(ar,"baseUnary");function Iv(w,X){return fn(X,function(W){return w[W]})}o(Iv,"baseValues");function Df(w,X){return w.has(X)}o(Df,"cacheHas");function Ux(w,X){for(var W=-1,be=w.length;++W<be&&Wc(X,w[W],0)>-1;);return W}o(Ux,"charsStartIndex");function $x(w,X){for(var W=w.length;W--&&Wc(X,w[W],0)>-1;);return W}o($x,"charsEndIndex");function b2(w,X){for(var W=w.length,be=0;W--;)w[W]===X&&++be;return be}o(b2,"countHolders");var A2=Pv(r2),S2=Pv(o2);function P2(w){return"\\"+s2[w]}o(P2,"escapeStringChar");function C2(w,X){return w==null?e:w[X]}o(C2,"getValue");function Kc(w){return e2.test(w)}o(Kc,"hasUnicode");function x2(w){return t2.test(w)}o(x2,"hasUnicodeWord");function I2(w){for(var X,W=[];!(X=w.next()).done;)W.push(X.value);return W}o(I2,"iteratorToArray");function Ov(w){var X=-1,W=Array(w.size);return w.forEach(function(be,We){W[++X]=[We,be]}),W}o(Ov,"mapToArray");function Bx(w,X){return function(W){return w(X(W))}}o(Bx,"overArg");function Va(w,X){for(var W=-1,be=w.length,We=0,St=[];++W<be;){var jn=w[W];(jn===X||jn===u)&&(w[W]=u,St[We++]=W)}return St}o(Va,"replaceHolders");function Pd(w){var X=-1,W=Array(w.size);return w.forEach(function(be){W[++X]=be}),W}o(Pd,"setToArray");function O2(w){var X=-1,W=Array(w.size);return w.forEach(function(be){W[++X]=[be,be]}),W}o(O2,"setToPairs");function N2(w,X,W){for(var be=W-1,We=w.length;++be<We;)if(w[be]===X)return be;return-1}o(N2,"strictIndexOf");function L2(w,X,W){for(var be=W+1;be--;)if(w[be]===X)return be;return be}o(L2,"strictLastIndexOf");function Xc(w){return Kc(w)?F2(w):g2(w)}o(Xc,"stringSize");function Yr(w){return Kc(w)?D2(w):m2(w)}o(Yr,"stringToArray");function Hx(w){for(var X=w.length;X--&&EM.test(w.charAt(X)););return X}o(Hx,"trimmedEndIndex");var R2=Pv(a2);function F2(w){for(var X=yv.lastIndex=0;yv.test(w);)++X;return X}o(F2,"unicodeSize");function D2(w){return w.match(yv)||[]}o(D2,"unicodeToArray");function _2(w){return w.match(ZM)||[]}o(_2,"unicodeWords");var V2=o(function w(X){X=X==null?Kn:wa.defaults(Kn.Object(),X,wa.pick(Kn,n2));var W=X.Array,be=X.Date,We=X.Error,St=X.Function,jn=X.Math,Kt=X.Object,Nv=X.RegExp,w2=X.String,Nr=X.TypeError,Cd=W.prototype,M2=St.prototype,Qc=Kt.prototype,xd=X["__core-js_shared__"],Id=M2.toString,Ft=Qc.hasOwnProperty,k2=0,Gx=function(){var c=/[^.]+$/.exec(xd&&xd.keys&&xd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Od=Qc.toString,j2=Id.call(Kt),U2=Kn._,$2=Nv("^"+Id.call(Ft).replace(Ff,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nd=Ix?X.Buffer:e,Ma=X.Symbol,Ld=X.Uint8Array,Wx=Nd?Nd.allocUnsafe:e,Rd=Bx(Kt.getPrototypeOf,Kt),Kx=Kt.create,Xx=Qc.propertyIsEnumerable,Fd=Cd.splice,Qx=Ma?Ma.isConcatSpreadable:e,_f=Ma?Ma.iterator:e,ks=Ma?Ma.toStringTag:e,Dd=function(){try{var c=Hs(Kt,"defineProperty");return c({},"",{}),c}catch{}}(),B2=X.clearTimeout!==Kn.clearTimeout&&X.clearTimeout,H2=be&&be.now!==Kn.Date.now&&be.now,G2=X.setTimeout!==Kn.setTimeout&&X.setTimeout,_d=jn.ceil,Vd=jn.floor,Lv=Kt.getOwnPropertySymbols,W2=Nd?Nd.isBuffer:e,qx=X.isFinite,K2=Cd.join,X2=Bx(Kt.keys,Kt),Un=jn.max,pi=jn.min,Q2=be.now,q2=X.parseInt,zx=jn.random,z2=Cd.reverse,Rv=Hs(X,"DataView"),Vf=Hs(X,"Map"),Fv=Hs(X,"Promise"),qc=Hs(X,"Set"),wf=Hs(X,"WeakMap"),Mf=Hs(Kt,"create"),wd=wf&&new wf,zc={},Y2=Gs(Rv),J2=Gs(Vf),Z2=Gs(Fv),ek=Gs(qc),tk=Gs(wf),Md=Ma?Ma.prototype:e,kf=Md?Md.valueOf:e,Yx=Md?Md.toString:e;function P(c){if(vn(c)&&!Ke(c)&&!(c instanceof pt)){if(c instanceof Lr)return c;if(Ft.call(c,"__wrapped__"))return JI(c)}return new Lr(c)}o(P,"lodash");var Yc=function(){function c(){}return o(c,"object"),function(f){if(!mn(f))return{};if(Kx)return Kx(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function kd(){}o(kd,"baseLodash");function Lr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Lr,"LodashWrapper"),P.templateSettings={escape:rt,evaluate:Wt,interpolate:ln,variable:"",imports:{_:P}},P.prototype=kd.prototype,P.prototype.constructor=P,Lr.prototype=Yc(kd.prototype),Lr.prototype.constructor=Lr;function pt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mt,this.__views__=[]}o(pt,"LazyWrapper");function nk(){var c=new pt(this.__wrapped__);return c.__actions__=$i(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=$i(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=$i(this.__views__),c}o(nk,"lazyClone");function ik(){if(this.__filtered__){var c=new pt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(ik,"lazyReverse");function rk(){var c=this.__wrapped__.value(),f=this.__dir__,d=Ke(c),y=f<0,b=d?c.length:0,x=hj(0,b,this.__views__),L=x.start,R=x.end,M=R-L,Y=y?R:L-1,J=this.__iteratees__,ee=J.length,ge=0,Oe=pi(M,this.__takeCount__);if(!d||!y&&b==M&&Oe==M)return bI(c,this.__actions__);var Me=[];e:for(;M--&&ge<Oe;){Y+=f;for(var Ze=-1,ke=c[Y];++Ze<ee;){var st=J[Ze],gt=st.iteratee,lr=st.type,Oi=gt(ke);if(lr==Gn)ke=Oi;else if(!Oi){if(lr==an)continue e;break e}}Me[ge++]=ke}return Me}o(rk,"lazyValue"),pt.prototype=Yc(kd.prototype),pt.prototype.constructor=pt;function js(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var y=c[f];this.set(y[0],y[1])}}o(js,"Hash");function ok(){this.__data__=Mf?Mf(null):{},this.size=0}o(ok,"hashClear");function ak(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(ak,"hashDelete");function sk(c){var f=this.__data__;if(Mf){var d=f[c];return d===s?e:d}return Ft.call(f,c)?f[c]:e}o(sk,"hashGet");function ck(c){var f=this.__data__;return Mf?f[c]!==e:Ft.call(f,c)}o(ck,"hashHas");function lk(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=Mf&&f===e?s:f,this}o(lk,"hashSet"),js.prototype.clear=ok,js.prototype.delete=ak,js.prototype.get=sk,js.prototype.has=ck,js.prototype.set=lk;function zo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var y=c[f];this.set(y[0],y[1])}}o(zo,"ListCache");function fk(){this.__data__=[],this.size=0}o(fk,"listCacheClear");function uk(c){var f=this.__data__,d=jd(f,c);if(d<0)return!1;var y=f.length-1;return d==y?f.pop():Fd.call(f,d,1),--this.size,!0}o(uk,"listCacheDelete");function pk(c){var f=this.__data__,d=jd(f,c);return d<0?e:f[d][1]}o(pk,"listCacheGet");function dk(c){return jd(this.__data__,c)>-1}o(dk,"listCacheHas");function gk(c,f){var d=this.__data__,y=jd(d,c);return y<0?(++this.size,d.push([c,f])):d[y][1]=f,this}o(gk,"listCacheSet"),zo.prototype.clear=fk,zo.prototype.delete=uk,zo.prototype.get=pk,zo.prototype.has=dk,zo.prototype.set=gk;function Yo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var y=c[f];this.set(y[0],y[1])}}o(Yo,"MapCache");function mk(){this.size=0,this.__data__={hash:new js,map:new(Vf||zo),string:new js}}o(mk,"mapCacheClear");function hk(c){var f=Yd(this,c).delete(c);return this.size-=f?1:0,f}o(hk,"mapCacheDelete");function yk(c){return Yd(this,c).get(c)}o(yk,"mapCacheGet");function vk(c){return Yd(this,c).has(c)}o(vk,"mapCacheHas");function Tk(c,f){var d=Yd(this,c),y=d.size;return d.set(c,f),this.size+=d.size==y?0:1,this}o(Tk,"mapCacheSet"),Yo.prototype.clear=mk,Yo.prototype.delete=hk,Yo.prototype.get=yk,Yo.prototype.has=vk,Yo.prototype.set=Tk;function Us(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new Yo;++f<d;)this.add(c[f])}o(Us,"SetCache");function Ek(c){return this.__data__.set(c,s),this}o(Ek,"setCacheAdd");function bk(c){return this.__data__.has(c)}o(bk,"setCacheHas"),Us.prototype.add=Us.prototype.push=Ek,Us.prototype.has=bk;function Jr(c){var f=this.__data__=new zo(c);this.size=f.size}o(Jr,"Stack");function Ak(){this.__data__=new zo,this.size=0}o(Ak,"stackClear");function Sk(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(Sk,"stackDelete");function Pk(c){return this.__data__.get(c)}o(Pk,"stackGet");function Ck(c){return this.__data__.has(c)}o(Ck,"stackHas");function xk(c,f){var d=this.__data__;if(d instanceof zo){var y=d.__data__;if(!Vf||y.length<n-1)return y.push([c,f]),this.size=++d.size,this;d=this.__data__=new Yo(y)}return d.set(c,f),this.size=d.size,this}o(xk,"stackSet"),Jr.prototype.clear=Ak,Jr.prototype.delete=Sk,Jr.prototype.get=Pk,Jr.prototype.has=Ck,Jr.prototype.set=xk;function Jx(c,f){var d=Ke(c),y=!d&&Ws(c),b=!d&&!y&&Ba(c),x=!d&&!y&&!b&&tl(c),L=d||y||b||x,R=L?xv(c.length,w2):[],M=R.length;for(var Y in c)(f||Ft.call(c,Y))&&!(L&&(Y=="length"||b&&(Y=="offset"||Y=="parent")||x&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||ta(Y,M)))&&R.push(Y);return R}o(Jx,"arrayLikeKeys");function Zx(c){var f=c.length;return f?c[Hv(0,f-1)]:e}o(Zx,"arraySample");function Ik(c,f){return Jd($i(c),$s(f,0,c.length))}o(Ik,"arraySampleSize");function Ok(c){return Jd($i(c))}o(Ok,"arrayShuffle");function Dv(c,f,d){(d!==e&&!Zr(c[f],d)||d===e&&!(f in c))&&Jo(c,f,d)}o(Dv,"assignMergeValue");function jf(c,f,d){var y=c[f];(!(Ft.call(c,f)&&Zr(y,d))||d===e&&!(f in c))&&Jo(c,f,d)}o(jf,"assignValue");function jd(c,f){for(var d=c.length;d--;)if(Zr(c[d][0],f))return d;return-1}o(jd,"assocIndexOf");function Nk(c,f,d,y){return ka(c,function(b,x,L){f(y,b,d(b),L)}),y}o(Nk,"baseAggregator");function eI(c,f){return c&&Po(f,Xn(f),c)}o(eI,"baseAssign");function Lk(c,f){return c&&Po(f,Hi(f),c)}o(Lk,"baseAssignIn");function Jo(c,f,d){f=="__proto__"&&Dd?Dd(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(Jo,"baseAssignValue");function _v(c,f){for(var d=-1,y=f.length,b=W(y),x=c==null;++d<y;)b[d]=x?e:gT(c,f[d]);return b}o(_v,"baseAt");function $s(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o($s,"baseClamp");function Rr(c,f,d,y,b,x){var L,R=f&p,M=f&g,Y=f&m;if(d&&(L=b?d(c,y,b,x):d(c)),L!==e)return L;if(!mn(c))return c;var J=Ke(c);if(J){if(L=vj(c),!R)return $i(c,L)}else{var ee=di(c),ge=ee==_e||ee==Rt;if(Ba(c))return PI(c,R);if(ee==cn||ee==Wn||ge&&!b){if(L=M||ge?{}:HI(c),!R)return M?sj(c,Lk(L,c)):aj(c,eI(L,c))}else{if(!qt[ee])return b?c:{};L=Tj(c,ee,R)}}x||(x=new Jr);var Oe=x.get(c);if(Oe)return Oe;x.set(c,L),vO(c)?c.forEach(function(ke){L.add(Rr(ke,f,d,ke,c,x))}):hO(c)&&c.forEach(function(ke,st){L.set(st,Rr(ke,f,d,st,c,x))});var Me=Y?M?eT:Zv:M?Hi:Xn,Ze=J?e:Me(c);return Or(Ze||c,function(ke,st){Ze&&(st=ke,ke=c[st]),jf(L,st,Rr(ke,f,d,st,c,x))}),L}o(Rr,"baseClone");function Rk(c){var f=Xn(c);return function(d){return tI(d,c,f)}}o(Rk,"baseConforms");function tI(c,f,d){var y=d.length;if(c==null)return!y;for(c=Kt(c);y--;){var b=d[y],x=f[b],L=c[b];if(L===e&&!(b in c)||!x(L))return!1}return!0}o(tI,"baseConformsTo");function nI(c,f,d){if(typeof c!="function")throw new Nr(r);return Kf(function(){c.apply(e,d)},f)}o(nI,"baseDelay");function Uf(c,f,d,y){var b=-1,x=Ad,L=!0,R=c.length,M=[],Y=f.length;if(!R)return M;d&&(f=fn(f,ar(d))),y?(x=Ev,L=!1):f.length>=n&&(x=Df,L=!1,f=new Us(f));e:for(;++b<R;){var J=c[b],ee=d==null?J:d(J);if(J=y||J!==0?J:0,L&&ee===ee){for(var ge=Y;ge--;)if(f[ge]===ee)continue e;M.push(J)}else x(f,ee,y)||M.push(J)}return M}o(Uf,"baseDifference");var ka=NI(So),iI=NI(wv,!0);function Fk(c,f){var d=!0;return ka(c,function(y,b,x){return d=!!f(y,b,x),d}),d}o(Fk,"baseEvery");function Ud(c,f,d){for(var y=-1,b=c.length;++y<b;){var x=c[y],L=f(x);if(L!=null&&(R===e?L===L&&!cr(L):d(L,R)))var R=L,M=x}return M}o(Ud,"baseExtremum");function Dk(c,f,d,y){var b=c.length;for(d=Ye(d),d<0&&(d=-d>b?0:b+d),y=y===e||y>b?b:Ye(y),y<0&&(y+=b),y=d>y?0:EO(y);d<y;)c[d++]=f;return c}o(Dk,"baseFill");function rI(c,f){var d=[];return ka(c,function(y,b,x){f(y,b,x)&&d.push(y)}),d}o(rI,"baseFilter");function ni(c,f,d,y,b){var x=-1,L=c.length;for(d||(d=bj),b||(b=[]);++x<L;){var R=c[x];f>0&&d(R)?f>1?ni(R,f-1,d,y,b):_a(b,R):y||(b[b.length]=R)}return b}o(ni,"baseFlatten");var Vv=LI(),oI=LI(!0);function So(c,f){return c&&Vv(c,f,Xn)}o(So,"baseForOwn");function wv(c,f){return c&&oI(c,f,Xn)}o(wv,"baseForOwnRight");function $d(c,f){return Da(f,function(d){return na(c[d])})}o($d,"baseFunctions");function Bs(c,f){f=Ua(f,c);for(var d=0,y=f.length;c!=null&&d<y;)c=c[Co(f[d++])];return d&&d==y?c:e}o(Bs,"baseGet");function aI(c,f,d){var y=f(c);return Ke(c)?y:_a(y,d(c))}o(aI,"baseGetAllKeys");function xi(c){return c==null?c===e?qo:yn:ks&&ks in Kt(c)?mj(c):Oj(c)}o(xi,"baseGetTag");function Mv(c,f){return c>f}o(Mv,"baseGt");function _k(c,f){return c!=null&&Ft.call(c,f)}o(_k,"baseHas");function Vk(c,f){return c!=null&&f in Kt(c)}o(Vk,"baseHasIn");function wk(c,f,d){return c>=pi(f,d)&&c<Un(f,d)}o(wk,"baseInRange");function kv(c,f,d){for(var y=d?Ev:Ad,b=c[0].length,x=c.length,L=x,R=W(x),M=1/0,Y=[];L--;){var J=c[L];L&&f&&(J=fn(J,ar(f))),M=pi(J.length,M),R[L]=!d&&(f||b>=120&&J.length>=120)?new Us(L&&J):e}J=c[0];var ee=-1,ge=R[0];e:for(;++ee<b&&Y.length<M;){var Oe=J[ee],Me=f?f(Oe):Oe;if(Oe=d||Oe!==0?Oe:0,!(ge?Df(ge,Me):y(Y,Me,d))){for(L=x;--L;){var Ze=R[L];if(!(Ze?Df(Ze,Me):y(c[L],Me,d)))continue e}ge&&ge.push(Me),Y.push(Oe)}}return Y}o(kv,"baseIntersection");function Mk(c,f,d,y){return So(c,function(b,x,L){f(y,d(b),x,L)}),y}o(Mk,"baseInverter");function $f(c,f,d){f=Ua(f,c),c=XI(c,f);var y=c==null?c:c[Co(Dr(f))];return y==null?e:or(y,c,d)}o($f,"baseInvoke");function sI(c){return vn(c)&&xi(c)==Wn}o(sI,"baseIsArguments");function kk(c){return vn(c)&&xi(c)==Vs}o(kk,"baseIsArrayBuffer");function jk(c){return vn(c)&&xi(c)==S}o(jk,"baseIsDate");function Bf(c,f,d,y,b){return c===f?!0:c==null||f==null||!vn(c)&&!vn(f)?c!==c&&f!==f:Uk(c,f,d,y,Bf,b)}o(Bf,"baseIsEqual");function Uk(c,f,d,y,b,x){var L=Ke(c),R=Ke(f),M=L?Cr:di(c),Y=R?Cr:di(f);M=M==Wn?cn:M,Y=Y==Wn?cn:Y;var J=M==cn,ee=Y==cn,ge=M==Y;if(ge&&Ba(c)){if(!Ba(f))return!1;L=!0,J=!1}if(ge&&!J)return x||(x=new Jr),L||tl(c)?UI(c,f,d,y,b,x):dj(c,f,M,d,y,b,x);if(!(d&v)){var Oe=J&&Ft.call(c,"__wrapped__"),Me=ee&&Ft.call(f,"__wrapped__");if(Oe||Me){var Ze=Oe?c.value():c,ke=Me?f.value():f;return x||(x=new Jr),b(Ze,ke,d,y,x)}}return ge?(x||(x=new Jr),gj(c,f,d,y,b,x)):!1}o(Uk,"baseIsEqualDeep");function $k(c){return vn(c)&&di(c)==Xe}o($k,"baseIsMap");function jv(c,f,d,y){var b=d.length,x=b,L=!y;if(c==null)return!x;for(c=Kt(c);b--;){var R=d[b];if(L&&R[2]?R[1]!==c[R[0]]:!(R[0]in c))return!1}for(;++b<x;){R=d[b];var M=R[0],Y=c[M],J=R[1];if(L&&R[2]){if(Y===e&&!(M in c))return!1}else{var ee=new Jr;if(y)var ge=y(Y,J,M,c,f,ee);if(!(ge===e?Bf(J,Y,v|A,y,ee):ge))return!1}}return!0}o(jv,"baseIsMatch");function cI(c){if(!mn(c)||Sj(c))return!1;var f=na(c)?$2:LM;return f.test(Gs(c))}o(cI,"baseIsNative");function Bk(c){return vn(c)&&xi(c)==ir}o(Bk,"baseIsRegExp");function Hk(c){return vn(c)&&di(c)==dn}o(Hk,"baseIsSet");function Gk(c){return vn(c)&&rg(c.length)&&!!tn[xi(c)]}o(Gk,"baseIsTypedArray");function lI(c){return typeof c=="function"?c:c==null?Gi:typeof c=="object"?Ke(c)?pI(c[0],c[1]):uI(c):RO(c)}o(lI,"baseIteratee");function Uv(c){if(!Wf(c))return X2(c);var f=[];for(var d in Kt(c))Ft.call(c,d)&&d!="constructor"&&f.push(d);return f}o(Uv,"baseKeys");function Wk(c){if(!mn(c))return Ij(c);var f=Wf(c),d=[];for(var y in c)y=="constructor"&&(f||!Ft.call(c,y))||d.push(y);return d}o(Wk,"baseKeysIn");function $v(c,f){return c<f}o($v,"baseLt");function fI(c,f){var d=-1,y=Bi(c)?W(c.length):[];return ka(c,function(b,x,L){y[++d]=f(b,x,L)}),y}o(fI,"baseMap");function uI(c){var f=nT(c);return f.length==1&&f[0][2]?WI(f[0][0],f[0][1]):function(d){return d===c||jv(d,c,f)}}o(uI,"baseMatches");function pI(c,f){return rT(c)&&GI(f)?WI(Co(c),f):function(d){var y=gT(d,c);return y===e&&y===f?mT(d,c):Bf(f,y,v|A)}}o(pI,"baseMatchesProperty");function Bd(c,f,d,y,b){c!==f&&Vv(f,function(x,L){if(b||(b=new Jr),mn(x))Kk(c,f,L,d,Bd,y,b);else{var R=y?y(aT(c,L),x,L+"",c,f,b):e;R===e&&(R=x),Dv(c,L,R)}},Hi)}o(Bd,"baseMerge");function Kk(c,f,d,y,b,x,L){var R=aT(c,d),M=aT(f,d),Y=L.get(M);if(Y){Dv(c,d,Y);return}var J=x?x(R,M,d+"",c,f,L):e,ee=J===e;if(ee){var ge=Ke(M),Oe=!ge&&Ba(M),Me=!ge&&!Oe&&tl(M);J=M,ge||Oe||Me?Ke(R)?J=R:xn(R)?J=$i(R):Oe?(ee=!1,J=PI(M,!0)):Me?(ee=!1,J=CI(M,!0)):J=[]:Xf(M)||Ws(M)?(J=R,Ws(R)?J=bO(R):(!mn(R)||na(R))&&(J=HI(M))):ee=!1}ee&&(L.set(M,J),b(J,M,y,x,L),L.delete(M)),Dv(c,d,J)}o(Kk,"baseMergeDeep");function dI(c,f){var d=c.length;if(d)return f+=f<0?d:0,ta(f,d)?c[f]:e}o(dI,"baseNth");function gI(c,f,d){f.length?f=fn(f,function(x){return Ke(x)?function(L){return Bs(L,x.length===1?x[0]:x)}:x}):f=[Gi];var y=-1;f=fn(f,ar(Ve()));var b=fI(c,function(x,L,R){var M=fn(f,function(Y){return Y(x)});return{criteria:M,index:++y,value:x}});return T2(b,function(x,L){return oj(x,L,d)})}o(gI,"baseOrderBy");function Xk(c,f){return mI(c,f,function(d,y){return mT(c,y)})}o(Xk,"basePick");function mI(c,f,d){for(var y=-1,b=f.length,x={};++y<b;){var L=f[y],R=Bs(c,L);d(R,L)&&Hf(x,Ua(L,c),R)}return x}o(mI,"basePickBy");function Qk(c){return function(f){return Bs(f,c)}}o(Qk,"basePropertyDeep");function Bv(c,f,d,y){var b=y?y2:Wc,x=-1,L=f.length,R=c;for(c===f&&(f=$i(f)),d&&(R=fn(c,ar(d)));++x<L;)for(var M=0,Y=f[x],J=d?d(Y):Y;(M=b(R,J,M,y))>-1;)R!==c&&Fd.call(R,M,1),Fd.call(c,M,1);return c}o(Bv,"basePullAll");function hI(c,f){for(var d=c?f.length:0,y=d-1;d--;){var b=f[d];if(d==y||b!==x){var x=b;ta(b)?Fd.call(c,b,1):Kv(c,b)}}return c}o(hI,"basePullAt");function Hv(c,f){return c+Vd(zx()*(f-c+1))}o(Hv,"baseRandom");function qk(c,f,d,y){for(var b=-1,x=Un(_d((f-c)/(d||1)),0),L=W(x);x--;)L[y?x:++b]=c,c+=d;return L}o(qk,"baseRange");function Gv(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=Vd(f/2),f&&(c+=c);while(f);return d}o(Gv,"baseRepeat");function nt(c,f){return sT(KI(c,f,Gi),c+"")}o(nt,"baseRest");function zk(c){return Zx(nl(c))}o(zk,"baseSample");function Yk(c,f){var d=nl(c);return Jd(d,$s(f,0,d.length))}o(Yk,"baseSampleSize");function Hf(c,f,d,y){if(!mn(c))return c;f=Ua(f,c);for(var b=-1,x=f.length,L=x-1,R=c;R!=null&&++b<x;){var M=Co(f[b]),Y=d;if(M==="__proto__"||M==="constructor"||M==="prototype")return c;if(b!=L){var J=R[M];Y=y?y(J,M,R):e,Y===e&&(Y=mn(J)?J:ta(f[b+1])?[]:{})}jf(R,M,Y),R=R[M]}return c}o(Hf,"baseSet");var yI=wd?function(c,f){return wd.set(c,f),c}:Gi,Jk=Dd?function(c,f){return Dd(c,"toString",{configurable:!0,enumerable:!1,value:yT(f),writable:!0})}:Gi;function Zk(c){return Jd(nl(c))}o(Zk,"baseShuffle");function Fr(c,f,d){var y=-1,b=c.length;f<0&&(f=-f>b?0:b+f),d=d>b?b:d,d<0&&(d+=b),b=f>d?0:d-f>>>0,f>>>=0;for(var x=W(b);++y<b;)x[y]=c[y+f];return x}o(Fr,"baseSlice");function ej(c,f){var d;return ka(c,function(y,b,x){return d=f(y,b,x),!d}),!!d}o(ej,"baseSome");function Hd(c,f,d){var y=0,b=c==null?y:c.length;if(typeof f=="number"&&f===f&&b<=ji){for(;y<b;){var x=y+b>>>1,L=c[x];L!==null&&!cr(L)&&(d?L<=f:L<f)?y=x+1:b=x}return b}return Wv(c,f,Gi,d)}o(Hd,"baseSortedIndex");function Wv(c,f,d,y){var b=0,x=c==null?0:c.length;if(x===0)return 0;f=d(f);for(var L=f!==f,R=f===null,M=cr(f),Y=f===e;b<x;){var J=Vd((b+x)/2),ee=d(c[J]),ge=ee!==e,Oe=ee===null,Me=ee===ee,Ze=cr(ee);if(L)var ke=y||Me;else Y?ke=Me&&(y||ge):R?ke=Me&&ge&&(y||!Oe):M?ke=Me&&ge&&!Oe&&(y||!Ze):Oe||Ze?ke=!1:ke=y?ee<=f:ee<f;ke?b=J+1:x=J}return pi(x,sn)}o(Wv,"baseSortedIndexBy");function vI(c,f){for(var d=-1,y=c.length,b=0,x=[];++d<y;){var L=c[d],R=f?f(L):L;if(!d||!Zr(R,M)){var M=R;x[b++]=L===0?0:L}}return x}o(vI,"baseSortedUniq");function TI(c){return typeof c=="number"?c:cr(c)?It:+c}o(TI,"baseToNumber");function sr(c){if(typeof c=="string")return c;if(Ke(c))return fn(c,sr)+"";if(cr(c))return Yx?Yx.call(c):"";var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(sr,"baseToString");function ja(c,f,d){var y=-1,b=Ad,x=c.length,L=!0,R=[],M=R;if(d)L=!1,b=Ev;else if(x>=n){var Y=f?null:uj(c);if(Y)return Pd(Y);L=!1,b=Df,M=new Us}else M=f?[]:R;e:for(;++y<x;){var J=c[y],ee=f?f(J):J;if(J=d||J!==0?J:0,L&&ee===ee){for(var ge=M.length;ge--;)if(M[ge]===ee)continue e;f&&M.push(ee),R.push(J)}else b(M,ee,d)||(M!==R&&M.push(ee),R.push(J))}return R}o(ja,"baseUniq");function Kv(c,f){return f=Ua(f,c),c=XI(c,f),c==null||delete c[Co(Dr(f))]}o(Kv,"baseUnset");function EI(c,f,d,y){return Hf(c,f,d(Bs(c,f)),y)}o(EI,"baseUpdate");function Gd(c,f,d,y){for(var b=c.length,x=y?b:-1;(y?x--:++x<b)&&f(c[x],x,c););return d?Fr(c,y?0:x,y?x+1:b):Fr(c,y?x+1:0,y?b:x)}o(Gd,"baseWhile");function bI(c,f){var d=c;return d instanceof pt&&(d=d.value()),bv(f,function(y,b){return b.func.apply(b.thisArg,_a([y],b.args))},d)}o(bI,"baseWrapperValue");function Xv(c,f,d){var y=c.length;if(y<2)return y?ja(c[0]):[];for(var b=-1,x=W(y);++b<y;)for(var L=c[b],R=-1;++R<y;)R!=b&&(x[b]=Uf(x[b]||L,c[R],f,d));return ja(ni(x,1),f,d)}o(Xv,"baseXor");function AI(c,f,d){for(var y=-1,b=c.length,x=f.length,L={};++y<b;){var R=y<x?f[y]:e;d(L,c[y],R)}return L}o(AI,"baseZipObject");function Qv(c){return xn(c)?c:[]}o(Qv,"castArrayLikeObject");function qv(c){return typeof c=="function"?c:Gi}o(qv,"castFunction");function Ua(c,f){return Ke(c)?c:rT(c,f)?[c]:YI(Ot(c))}o(Ua,"castPath");var tj=nt;function $a(c,f,d){var y=c.length;return d=d===e?y:d,!f&&d>=y?c:Fr(c,f,d)}o($a,"castSlice");var SI=B2||function(c){return Kn.clearTimeout(c)};function PI(c,f){if(f)return c.slice();var d=c.length,y=Wx?Wx(d):new c.constructor(d);return c.copy(y),y}o(PI,"cloneBuffer");function zv(c){var f=new c.constructor(c.byteLength);return new Ld(f).set(new Ld(c)),f}o(zv,"cloneArrayBuffer");function nj(c,f){var d=f?zv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(nj,"cloneDataView");function ij(c){var f=new c.constructor(c.source,sx.exec(c));return f.lastIndex=c.lastIndex,f}o(ij,"cloneRegExp");function rj(c){return kf?Kt(kf.call(c)):{}}o(rj,"cloneSymbol");function CI(c,f){var d=f?zv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(CI,"cloneTypedArray");function xI(c,f){if(c!==f){var d=c!==e,y=c===null,b=c===c,x=cr(c),L=f!==e,R=f===null,M=f===f,Y=cr(f);if(!R&&!Y&&!x&&c>f||x&&L&&M&&!R&&!Y||y&&L&&M||!d&&M||!b)return 1;if(!y&&!x&&!Y&&c<f||Y&&d&&b&&!y&&!x||R&&d&&b||!L&&b||!M)return-1}return 0}o(xI,"compareAscending");function oj(c,f,d){for(var y=-1,b=c.criteria,x=f.criteria,L=b.length,R=d.length;++y<L;){var M=xI(b[y],x[y]);if(M){if(y>=R)return M;var Y=d[y];return M*(Y=="desc"?-1:1)}}return c.index-f.index}o(oj,"compareMultiple");function II(c,f,d,y){for(var b=-1,x=c.length,L=d.length,R=-1,M=f.length,Y=Un(x-L,0),J=W(M+Y),ee=!y;++R<M;)J[R]=f[R];for(;++b<L;)(ee||b<x)&&(J[d[b]]=c[b]);for(;Y--;)J[R++]=c[b++];return J}o(II,"composeArgs");function OI(c,f,d,y){for(var b=-1,x=c.length,L=-1,R=d.length,M=-1,Y=f.length,J=Un(x-R,0),ee=W(J+Y),ge=!y;++b<J;)ee[b]=c[b];for(var Oe=b;++M<Y;)ee[Oe+M]=f[M];for(;++L<R;)(ge||b<x)&&(ee[Oe+d[L]]=c[b++]);return ee}o(OI,"composeArgsRight");function $i(c,f){var d=-1,y=c.length;for(f||(f=W(y));++d<y;)f[d]=c[d];return f}o($i,"copyArray");function Po(c,f,d,y){var b=!d;d||(d={});for(var x=-1,L=f.length;++x<L;){var R=f[x],M=y?y(d[R],c[R],R,d,c):e;M===e&&(M=c[R]),b?Jo(d,R,M):jf(d,R,M)}return d}o(Po,"copyObject");function aj(c,f){return Po(c,iT(c),f)}o(aj,"copySymbols");function sj(c,f){return Po(c,$I(c),f)}o(sj,"copySymbolsIn");function Wd(c,f){return function(d,y){var b=Ke(d)?u2:Nk,x=f?f():{};return b(d,c,Ve(y,2),x)}}o(Wd,"createAggregator");function Jc(c){return nt(function(f,d){var y=-1,b=d.length,x=b>1?d[b-1]:e,L=b>2?d[2]:e;for(x=c.length>3&&typeof x=="function"?(b--,x):e,L&&Ii(d[0],d[1],L)&&(x=b<3?e:x,b=1),f=Kt(f);++y<b;){var R=d[y];R&&c(f,R,y,x)}return f})}o(Jc,"createAssigner");function NI(c,f){return function(d,y){if(d==null)return d;if(!Bi(d))return c(d,y);for(var b=d.length,x=f?b:-1,L=Kt(d);(f?x--:++x<b)&&y(L[x],x,L)!==!1;);return d}}o(NI,"createBaseEach");function LI(c){return function(f,d,y){for(var b=-1,x=Kt(f),L=y(f),R=L.length;R--;){var M=L[c?R:++b];if(d(x[M],M,x)===!1)break}return f}}o(LI,"createBaseFor");function cj(c,f,d){var y=f&E,b=Gf(c);function x(){var L=this&&this!==Kn&&this instanceof x?b:c;return L.apply(y?d:this,arguments)}return o(x,"wrapper"),x}o(cj,"createBind");function RI(c){return function(f){f=Ot(f);var d=Kc(f)?Yr(f):e,y=d?d[0]:f.charAt(0),b=d?$a(d,1).join(""):f.slice(1);return y[c]()+b}}o(RI,"createCaseFirst");function Zc(c){return function(f){return bv(NO(OO(f).replace(YM,"")),c,"")}}o(Zc,"createCompounder");function Gf(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=Yc(c.prototype),y=c.apply(d,f);return mn(y)?y:d}}o(Gf,"createCtor");function lj(c,f,d){var y=Gf(c);function b(){for(var x=arguments.length,L=W(x),R=x,M=el(b);R--;)L[R]=arguments[R];var Y=x<3&&L[0]!==M&&L[x-1]!==M?[]:Va(L,M);if(x-=Y.length,x<d)return wI(c,f,Kd,b.placeholder,e,L,Y,e,e,d-x);var J=this&&this!==Kn&&this instanceof b?y:c;return or(J,this,L)}return o(b,"wrapper"),b}o(lj,"createCurry");function FI(c){return function(f,d,y){var b=Kt(f);if(!Bi(f)){var x=Ve(d,3);f=Xn(f),d=o(function(R){return x(b[R],R,b)},"predicate")}var L=c(f,d,y);return L>-1?b[x?f[L]:L]:e}}o(FI,"createFind");function DI(c){return ea(function(f){var d=f.length,y=d,b=Lr.prototype.thru;for(c&&f.reverse();y--;){var x=f[y];if(typeof x!="function")throw new Nr(r);if(b&&!L&&zd(x)=="wrapper")var L=new Lr([],!0)}for(y=L?y:d;++y<d;){x=f[y];var R=zd(x),M=R=="wrapper"?tT(x):e;M&&oT(M[0])&&M[1]==(Z|j|B|re)&&!M[4].length&&M[9]==1?L=L[zd(M[0])].apply(L,M[3]):L=x.length==1&&oT(x)?L[R]():L.thru(x)}return function(){var Y=arguments,J=Y[0];if(L&&Y.length==1&&Ke(J))return L.plant(J).value();for(var ee=0,ge=d?f[ee].apply(this,Y):J;++ee<d;)ge=f[ee].call(this,ge);return ge}})}o(DI,"createFlow");function Kd(c,f,d,y,b,x,L,R,M,Y){var J=f&Z,ee=f&E,ge=f&O,Oe=f&(j|G),Me=f&Se,Ze=ge?e:Gf(c);function ke(){for(var st=arguments.length,gt=W(st),lr=st;lr--;)gt[lr]=arguments[lr];if(Oe)var Oi=el(ke),fr=b2(gt,Oi);if(y&&(gt=II(gt,y,b,Oe)),x&&(gt=OI(gt,x,L,Oe)),st-=fr,Oe&&st<Y){var In=Va(gt,Oi);return wI(c,f,Kd,ke.placeholder,d,gt,In,R,M,Y-st)}var eo=ee?d:this,ra=ge?eo[c]:c;return st=gt.length,R?gt=Nj(gt,R):Me&&st>1&>.reverse(),J&&M<st&&(gt.length=M),this&&this!==Kn&&this instanceof ke&&(ra=Ze||Gf(ra)),ra.apply(eo,gt)}return o(ke,"wrapper"),ke}o(Kd,"createHybrid");function _I(c,f){return function(d,y){return Mk(d,c,f(y),{})}}o(_I,"createInverter");function Xd(c,f){return function(d,y){var b;if(d===e&&y===e)return f;if(d!==e&&(b=d),y!==e){if(b===e)return y;typeof d=="string"||typeof y=="string"?(d=sr(d),y=sr(y)):(d=TI(d),y=TI(y)),b=c(d,y)}return b}}o(Xd,"createMathOperation");function Yv(c){return ea(function(f){return f=fn(f,ar(Ve())),nt(function(d){var y=this;return c(f,function(b){return or(b,y,d)})})})}o(Yv,"createOver");function Qd(c,f){f=f===e?" ":sr(f);var d=f.length;if(d<2)return d?Gv(f,c):f;var y=Gv(f,_d(c/Xc(f)));return Kc(f)?$a(Yr(y),0,c).join(""):y.slice(0,c)}o(Qd,"createPadding");function fj(c,f,d,y){var b=f&E,x=Gf(c);function L(){for(var R=-1,M=arguments.length,Y=-1,J=y.length,ee=W(J+M),ge=this&&this!==Kn&&this instanceof L?x:c;++Y<J;)ee[Y]=y[Y];for(;M--;)ee[Y++]=arguments[++R];return or(ge,b?d:this,ee)}return o(L,"wrapper"),L}o(fj,"createPartial");function VI(c){return function(f,d,y){return y&&typeof y!="number"&&Ii(f,d,y)&&(d=y=e),f=ia(f),d===e?(d=f,f=0):d=ia(d),y=y===e?f<d?1:-1:ia(y),qk(f,d,y,c)}}o(VI,"createRange");function qd(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=_r(f),d=_r(d)),c(f,d)}}o(qd,"createRelationalOperation");function wI(c,f,d,y,b,x,L,R,M,Y){var J=f&j,ee=J?L:e,ge=J?e:L,Oe=J?x:e,Me=J?e:x;f|=J?B:ae,f&=~(J?ae:B),f&F||(f&=~(E|O));var Ze=[c,f,b,Oe,ee,Me,ge,R,M,Y],ke=d.apply(e,Ze);return oT(c)&&QI(ke,Ze),ke.placeholder=y,qI(ke,c,f)}o(wI,"createRecurry");function Jv(c){var f=jn[c];return function(d,y){if(d=_r(d),y=y==null?0:pi(Ye(y),292),y&&qx(d)){var b=(Ot(d)+"e").split("e"),x=f(b[0]+"e"+(+b[1]+y));return b=(Ot(x)+"e").split("e"),+(b[0]+"e"+(+b[1]-y))}return f(d)}}o(Jv,"createRound");var uj=qc&&1/Pd(new qc([,-0]))[1]==Lt?function(c){return new qc(c)}:ET;function MI(c){return function(f){var d=di(f);return d==Xe?Ov(f):d==dn?O2(f):E2(f,c(f))}}o(MI,"createToPairs");function Zo(c,f,d,y,b,x,L,R){var M=f&O;if(!M&&typeof c!="function")throw new Nr(r);var Y=y?y.length:0;if(Y||(f&=~(B|ae),y=b=e),L=L===e?L:Un(Ye(L),0),R=R===e?R:Ye(R),Y-=b?b.length:0,f&ae){var J=y,ee=b;y=b=e}var ge=M?e:tT(c),Oe=[c,f,d,y,b,J,ee,x,L,R];if(ge&&xj(Oe,ge),c=Oe[0],f=Oe[1],d=Oe[2],y=Oe[3],b=Oe[4],R=Oe[9]=Oe[9]===e?M?0:c.length:Un(Oe[9]-Y,0),!R&&f&(j|G)&&(f&=~(j|G)),!f||f==E)var Me=cj(c,f,d);else f==j||f==G?Me=lj(c,f,R):(f==B||f==(E|B))&&!b.length?Me=fj(c,f,d,y):Me=Kd.apply(e,Oe);var Ze=ge?yI:QI;return qI(Ze(Me,Oe),c,f)}o(Zo,"createWrap");function kI(c,f,d,y){return c===e||Zr(c,Qc[d])&&!Ft.call(y,d)?f:c}o(kI,"customDefaultsAssignIn");function jI(c,f,d,y,b,x){return mn(c)&&mn(f)&&(x.set(f,c),Bd(c,f,e,jI,x),x.delete(f)),c}o(jI,"customDefaultsMerge");function pj(c){return Xf(c)?e:c}o(pj,"customOmitClone");function UI(c,f,d,y,b,x){var L=d&v,R=c.length,M=f.length;if(R!=M&&!(L&&M>R))return!1;var Y=x.get(c),J=x.get(f);if(Y&&J)return Y==f&&J==c;var ee=-1,ge=!0,Oe=d&A?new Us:e;for(x.set(c,f),x.set(f,c);++ee<R;){var Me=c[ee],Ze=f[ee];if(y)var ke=L?y(Ze,Me,ee,f,c,x):y(Me,Ze,ee,c,f,x);if(ke!==e){if(ke)continue;ge=!1;break}if(Oe){if(!Av(f,function(st,gt){if(!Df(Oe,gt)&&(Me===st||b(Me,st,d,y,x)))return Oe.push(gt)})){ge=!1;break}}else if(!(Me===Ze||b(Me,Ze,d,y,x))){ge=!1;break}}return x.delete(c),x.delete(f),ge}o(UI,"equalArrays");function dj(c,f,d,y,b,x,L){switch(d){case xr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Vs:return!(c.byteLength!=f.byteLength||!x(new Ld(c),new Ld(f)));case I:case S:case kt:return Zr(+c,+f);case V:return c.name==f.name&&c.message==f.message;case ir:case ui:return c==f+"";case Xe:var R=Ov;case dn:var M=y&v;if(R||(R=Pd),c.size!=f.size&&!M)return!1;var Y=L.get(c);if(Y)return Y==f;y|=A,L.set(c,f);var J=UI(R(c),R(f),y,b,x,L);return L.delete(c),J;case Gt:if(kf)return kf.call(c)==kf.call(f)}return!1}o(dj,"equalByTag");function gj(c,f,d,y,b,x){var L=d&v,R=Zv(c),M=R.length,Y=Zv(f),J=Y.length;if(M!=J&&!L)return!1;for(var ee=M;ee--;){var ge=R[ee];if(!(L?ge in f:Ft.call(f,ge)))return!1}var Oe=x.get(c),Me=x.get(f);if(Oe&&Me)return Oe==f&&Me==c;var Ze=!0;x.set(c,f),x.set(f,c);for(var ke=L;++ee<M;){ge=R[ee];var st=c[ge],gt=f[ge];if(y)var lr=L?y(gt,st,ge,f,c,x):y(st,gt,ge,c,f,x);if(!(lr===e?st===gt||b(st,gt,d,y,x):lr)){Ze=!1;break}ke||(ke=ge=="constructor")}if(Ze&&!ke){var Oi=c.constructor,fr=f.constructor;Oi!=fr&&"constructor"in c&&"constructor"in f&&!(typeof Oi=="function"&&Oi instanceof Oi&&typeof fr=="function"&&fr instanceof fr)&&(Ze=!1)}return x.delete(c),x.delete(f),Ze}o(gj,"equalObjects");function ea(c){return sT(KI(c,e,tO),c+"")}o(ea,"flatRest");function Zv(c){return aI(c,Xn,iT)}o(Zv,"getAllKeys");function eT(c){return aI(c,Hi,$I)}o(eT,"getAllKeysIn");var tT=wd?function(c){return wd.get(c)}:ET;function zd(c){for(var f=c.name+"",d=zc[f],y=Ft.call(zc,f)?d.length:0;y--;){var b=d[y],x=b.func;if(x==null||x==c)return b.name}return f}o(zd,"getFuncName");function el(c){var f=Ft.call(P,"placeholder")?P:c;return f.placeholder}o(el,"getHolder");function Ve(){var c=P.iteratee||vT;return c=c===vT?lI:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function Yd(c,f){var d=c.__data__;return Aj(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(Yd,"getMapData");function nT(c){for(var f=Xn(c),d=f.length;d--;){var y=f[d],b=c[y];f[d]=[y,b,GI(b)]}return f}o(nT,"getMatchData");function Hs(c,f){var d=C2(c,f);return cI(d)?d:e}o(Hs,"getNative");function mj(c){var f=Ft.call(c,ks),d=c[ks];try{c[ks]=e;var y=!0}catch{}var b=Od.call(c);return y&&(f?c[ks]=d:delete c[ks]),b}o(mj,"getRawTag");var iT=Lv?function(c){return c==null?[]:(c=Kt(c),Da(Lv(c),function(f){return Xx.call(c,f)}))}:bT,$I=Lv?function(c){for(var f=[];c;)_a(f,iT(c)),c=Rd(c);return f}:bT,di=xi;(Rv&&di(new Rv(new ArrayBuffer(1)))!=xr||Vf&&di(new Vf)!=Xe||Fv&&di(Fv.resolve())!=Ht||qc&&di(new qc)!=dn||wf&&di(new wf)!=Ui)&&(di=o(function(c){var f=xi(c),d=f==cn?c.constructor:e,y=d?Gs(d):"";if(y)switch(y){case Y2:return xr;case J2:return Xe;case Z2:return Ht;case ek:return dn;case tk:return Ui}return f},"getTag"));function hj(c,f,d){for(var y=-1,b=d.length;++y<b;){var x=d[y],L=x.size;switch(x.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=pi(f,c+L);break;case"takeRight":c=Un(c,f-L);break}}return{start:c,end:f}}o(hj,"getView");function yj(c){var f=c.match(AM);return f?f[1].split(SM):[]}o(yj,"getWrapDetails");function BI(c,f,d){f=Ua(f,c);for(var y=-1,b=f.length,x=!1;++y<b;){var L=Co(f[y]);if(!(x=c!=null&&d(c,L)))break;c=c[L]}return x||++y!=b?x:(b=c==null?0:c.length,!!b&&rg(b)&&ta(L,b)&&(Ke(c)||Ws(c)))}o(BI,"hasPath");function vj(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(vj,"initCloneArray");function HI(c){return typeof c.constructor=="function"&&!Wf(c)?Yc(Rd(c)):{}}o(HI,"initCloneObject");function Tj(c,f,d){var y=c.constructor;switch(f){case Vs:return zv(c);case I:case S:return new y(+c);case xr:return nj(c,d);case Nf:case Lf:case Rf:case ws:case k:case $:case Q:case ce:case Le:return CI(c,d);case Xe:return new y;case kt:case ui:return new y(c);case ir:return ij(c);case dn:return new y;case Gt:return rj(c)}}o(Tj,"initCloneByTag");function Ej(c,f){var d=f.length;if(!d)return c;var y=d-1;return f[y]=(d>1?"& ":"")+f[y],f=f.join(d>2?", ":" "),c.replace(bM,`{
|
|
270
270
|
/* [wrapped with `+f+`] */
|
|
271
|
-
`)}o(bj,"insertWrapDetails");function Aj(c){return Ke(c)||Ws(c)||!!(Qx&&c&&c[Qx])}o(Aj,"isFlattenable");function ta(c,f){var d=typeof c;return f=f??Re,!!f&&(d=="number"||d!="symbol"&&DM.test(c))&&c>-1&&c%1==0&&c<f}o(ta,"isIndex");function Ii(c,f,d){if(!mn(d))return!1;var y=typeof f;return(y=="number"?Bi(d)&&ta(f,d.length):y=="string"&&f in d)?Jr(d[f],c):!1}o(Ii,"isIterateeCall");function rT(c,f){if(Ke(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||cr(c)?!0:vd.test(c)||!rr.test(c)||f!=null&&c in Kt(f)}o(rT,"isKey");function Sj(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(Sj,"isKeyable");function oT(c){var f=zd(c),d=P[f];if(typeof d!="function"||!(f in pt.prototype))return!1;if(c===d)return!0;var y=tT(d);return!!y&&c===y[0]}o(oT,"isLaziable");function Pj(c){return!!Gx&&Gx in c}o(Pj,"isMasked");var Cj=xd?na:AT;function Wf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||Qc;return c===d}o(Wf,"isPrototype");function GI(c){return c===c&&!mn(c)}o(GI,"isStrictComparable");function WI(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Kt(d))}}o(WI,"matchesStrictComparable");function xj(c){var f=ng(c,function(y){return d.size===l&&d.clear(),y}),d=f.cache;return f}o(xj,"memoizeCapped");function Ij(c,f){var d=c[1],y=f[1],b=d|y,x=b<(E|O|Z),L=y==Z&&d==j||y==Z&&d==re&&c[7].length<=f[8]||y==(Z|re)&&f[7].length<=f[8]&&d==j;if(!(x||L))return c;y&E&&(c[2]=f[2],b|=d&E?0:F);var R=f[3];if(R){var M=c[3];c[3]=M?II(M,R,f[4]):R,c[4]=M?Va(c[3],u):f[4]}return R=f[5],R&&(M=c[5],c[5]=M?OI(M,R,f[6]):R,c[6]=M?Va(c[5],u):f[6]),R=f[7],R&&(c[7]=R),y&Z&&(c[8]=c[8]==null?f[8]:pi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=b,c}o(Ij,"mergeData");function Oj(c){var f=[];if(c!=null)for(var d in Kt(c))f.push(d);return f}o(Oj,"nativeKeysIn");function Nj(c){return Od.call(c)}o(Nj,"objectToString");function KI(c,f,d){return f=Un(f===e?c.length-1:f,0),function(){for(var y=arguments,b=-1,x=Un(y.length-f,0),L=W(x);++b<x;)L[b]=y[f+b];b=-1;for(var R=W(f+1);++b<f;)R[b]=y[b];return R[f]=d(L),or(c,this,R)}}o(KI,"overRest");function XI(c,f){return f.length<2?c:Bs(c,Fr(f,0,-1))}o(XI,"parent");function Lj(c,f){for(var d=c.length,y=pi(f.length,d),b=$i(c);y--;){var x=f[y];c[y]=ta(x,d)?b[x]:e}return c}o(Lj,"reorder");function aT(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(aT,"safeGet");var QI=zI(yI),Kf=W2||function(c,f){return Kn.setTimeout(c,f)},sT=zI(Zk);function qI(c,f,d){var y=f+"";return sT(c,bj(y,Rj(vj(y),d)))}o(qI,"setWrapToString");function zI(c){var f=0,d=0;return function(){var y=q2(),b=Ue-(y-d);if(d=y,b>0){if(++f>=yt)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(zI,"shortOut");function Jd(c,f){var d=-1,y=c.length,b=y-1;for(f=f===e?y:f;++d<f;){var x=Hv(d,b),L=c[x];c[x]=c[d],c[d]=L}return c.length=f,c}o(Jd,"shuffleSelf");var YI=xj(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(uv,function(d,y,b,x){f.push(b?x.replace(IM,"$1"):y||d)}),f});function Co(c){if(typeof c=="string"||cr(c))return c;var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(Co,"toKey");function Gs(c){if(c!=null){try{return Id.call(c)}catch{}try{return c+""}catch{}}return""}o(Gs,"toSource");function Rj(c,f){return Or(Fe,function(d){var y="_."+d[0];f&d[1]&&!Ad(c,y)&&c.push(y)}),c.sort()}o(Rj,"updateWrapDetails");function JI(c){if(c instanceof pt)return c.clone();var f=new Lr(c.__wrapped__,c.__chain__);return f.__actions__=$i(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(JI,"wrapperClone");function Fj(c,f,d){(d?Ii(c,f,d):f===e)?f=1:f=Un(Ye(f),0);var y=c==null?0:c.length;if(!y||f<1)return[];for(var b=0,x=0,L=W(_d(y/f));b<y;)L[x++]=Fr(c,b,b+=f);return L}o(Fj,"chunk");function Dj(c){for(var f=-1,d=c==null?0:c.length,y=0,b=[];++f<d;){var x=c[f];x&&(b[y++]=x)}return b}o(Dj,"compact");function _j(){var c=arguments.length;if(!c)return[];for(var f=W(c-1),d=arguments[0],y=c;y--;)f[y-1]=arguments[y];return _a(Ke(d)?$i(d):[d],ni(f,1))}o(_j,"concat");var Vj=nt(function(c,f){return xn(c)?Uf(c,ni(f,1,xn,!0)):[]}),wj=nt(function(c,f){var d=Dr(f);return xn(d)&&(d=e),xn(c)?Uf(c,ni(f,1,xn,!0),Ve(d,2)):[]}),Mj=nt(function(c,f){var d=Dr(f);return xn(d)&&(d=e),xn(c)?Uf(c,ni(f,1,xn,!0),e,d):[]});function kj(c,f,d){var y=c==null?0:c.length;return y?(f=d||f===e?1:Ye(f),Fr(c,f<0?0:f,y)):[]}o(kj,"drop");function jj(c,f,d){var y=c==null?0:c.length;return y?(f=d||f===e?1:Ye(f),f=y-f,Fr(c,0,f<0?0:f)):[]}o(jj,"dropRight");function Uj(c,f){return c&&c.length?Gd(c,Ve(f,3),!0,!0):[]}o(Uj,"dropRightWhile");function $j(c,f){return c&&c.length?Gd(c,Ve(f,3),!0):[]}o($j,"dropWhile");function Bj(c,f,d,y){var b=c==null?0:c.length;return b?(d&&typeof d!="number"&&Ii(c,f,d)&&(d=0,y=b),_k(c,f,d,y)):[]}o(Bj,"fill");function ZI(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=d==null?0:Ye(d);return b<0&&(b=Un(y+b,0)),Sd(c,Ve(f,3),b)}o(ZI,"findIndex");function eO(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=y-1;return d!==e&&(b=Ye(d),b=d<0?Un(y+b,0):pi(b,y-1)),Sd(c,Ve(f,3),b,!0)}o(eO,"findLastIndex");function tO(c){var f=c==null?0:c.length;return f?ni(c,1):[]}o(tO,"flatten");function Hj(c){var f=c==null?0:c.length;return f?ni(c,Lt):[]}o(Hj,"flattenDeep");function Gj(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Ye(f),ni(c,f)):[]}o(Gj,"flattenDepth");function Wj(c){for(var f=-1,d=c==null?0:c.length,y={};++f<d;){var b=c[f];y[b[0]]=b[1]}return y}o(Wj,"fromPairs");function nO(c){return c&&c.length?c[0]:e}o(nO,"head");function Kj(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=d==null?0:Ye(d);return b<0&&(b=Un(y+b,0)),Wc(c,f,b)}o(Kj,"indexOf");function Xj(c){var f=c==null?0:c.length;return f?Fr(c,0,-1):[]}o(Xj,"initial");var Qj=nt(function(c){var f=fn(c,Qv);return f.length&&f[0]===c[0]?kv(f):[]}),qj=nt(function(c){var f=Dr(c),d=fn(c,Qv);return f===Dr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?kv(d,Ve(f,2)):[]}),zj=nt(function(c){var f=Dr(c),d=fn(c,Qv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?kv(d,e,f):[]});function Yj(c,f){return c==null?"":X2.call(c,f)}o(Yj,"join");function Dr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(Dr,"last");function Jj(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=y;return d!==e&&(b=Ye(d),b=b<0?Un(y+b,0):pi(b,y-1)),f===f?R2(c,f,b):Sd(c,wx,b,!0)}o(Jj,"lastIndexOf");function Zj(c,f){return c&&c.length?dI(c,Ye(f)):e}o(Zj,"nth");var eU=nt(iO);function iO(c,f){return c&&c.length&&f&&f.length?Bv(c,f):c}o(iO,"pullAll");function tU(c,f,d){return c&&c.length&&f&&f.length?Bv(c,f,Ve(d,2)):c}o(tU,"pullAllBy");function nU(c,f,d){return c&&c.length&&f&&f.length?Bv(c,f,e,d):c}o(nU,"pullAllWith");var iU=ea(function(c,f){var d=c==null?0:c.length,y=_v(c,f);return hI(c,fn(f,function(b){return ta(b,d)?+b:b}).sort(xI)),y});function rU(c,f){var d=[];if(!(c&&c.length))return d;var y=-1,b=[],x=c.length;for(f=Ve(f,3);++y<x;){var L=c[y];f(L,y,c)&&(d.push(L),b.push(y))}return hI(c,b),d}o(rU,"remove");function cT(c){return c==null?c:Y2.call(c)}o(cT,"reverse");function oU(c,f,d){var y=c==null?0:c.length;return y?(d&&typeof d!="number"&&Ii(c,f,d)?(f=0,d=y):(f=f==null?0:Ye(f),d=d===e?y:Ye(d)),Fr(c,f,d)):[]}o(oU,"slice");function aU(c,f){return Hd(c,f)}o(aU,"sortedIndex");function sU(c,f,d){return Wv(c,f,Ve(d,2))}o(sU,"sortedIndexBy");function cU(c,f){var d=c==null?0:c.length;if(d){var y=Hd(c,f);if(y<d&&Jr(c[y],f))return y}return-1}o(cU,"sortedIndexOf");function lU(c,f){return Hd(c,f,!0)}o(lU,"sortedLastIndex");function fU(c,f,d){return Wv(c,f,Ve(d,2),!0)}o(fU,"sortedLastIndexBy");function uU(c,f){var d=c==null?0:c.length;if(d){var y=Hd(c,f,!0)-1;if(Jr(c[y],f))return y}return-1}o(uU,"sortedLastIndexOf");function pU(c){return c&&c.length?vI(c):[]}o(pU,"sortedUniq");function dU(c,f){return c&&c.length?vI(c,Ve(f,2)):[]}o(dU,"sortedUniqBy");function gU(c){var f=c==null?0:c.length;return f?Fr(c,1,f):[]}o(gU,"tail");function mU(c,f,d){return c&&c.length?(f=d||f===e?1:Ye(f),Fr(c,0,f<0?0:f)):[]}o(mU,"take");function hU(c,f,d){var y=c==null?0:c.length;return y?(f=d||f===e?1:Ye(f),f=y-f,Fr(c,f<0?0:f,y)):[]}o(hU,"takeRight");function yU(c,f){return c&&c.length?Gd(c,Ve(f,3),!1,!0):[]}o(yU,"takeRightWhile");function vU(c,f){return c&&c.length?Gd(c,Ve(f,3)):[]}o(vU,"takeWhile");var TU=nt(function(c){return ja(ni(c,1,xn,!0))}),EU=nt(function(c){var f=Dr(c);return xn(f)&&(f=e),ja(ni(c,1,xn,!0),Ve(f,2))}),bU=nt(function(c){var f=Dr(c);return f=typeof f=="function"?f:e,ja(ni(c,1,xn,!0),e,f)});function AU(c){return c&&c.length?ja(c):[]}o(AU,"uniq");function SU(c,f){return c&&c.length?ja(c,Ve(f,2)):[]}o(SU,"uniqBy");function PU(c,f){return f=typeof f=="function"?f:e,c&&c.length?ja(c,e,f):[]}o(PU,"uniqWith");function lT(c){if(!(c&&c.length))return[];var f=0;return c=Da(c,function(d){if(xn(d))return f=Un(d.length,f),!0}),xv(f,function(d){return fn(c,Sv(d))})}o(lT,"unzip");function rO(c,f){if(!(c&&c.length))return[];var d=lT(c);return f==null?d:fn(d,function(y){return or(f,e,y)})}o(rO,"unzipWith");var CU=nt(function(c,f){return xn(c)?Uf(c,f):[]}),xU=nt(function(c){return Xv(Da(c,xn))}),IU=nt(function(c){var f=Dr(c);return xn(f)&&(f=e),Xv(Da(c,xn),Ve(f,2))}),OU=nt(function(c){var f=Dr(c);return f=typeof f=="function"?f:e,Xv(Da(c,xn),e,f)}),NU=nt(lT);function LU(c,f){return AI(c||[],f||[],jf)}o(LU,"zipObject");function RU(c,f){return AI(c||[],f||[],Hf)}o(RU,"zipObjectDeep");var FU=nt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,rO(c,d)});function oO(c){var f=P(c);return f.__chain__=!0,f}o(oO,"chain");function DU(c,f){return f(c),c}o(DU,"tap");function Zd(c,f){return f(c)}o(Zd,"thru");var _U=ea(function(c){var f=c.length,d=f?c[0]:0,y=this.__wrapped__,b=o(function(x){return _v(x,c)},"interceptor");return f>1||this.__actions__.length||!(y instanceof pt)||!ta(d)?this.thru(b):(y=y.slice(d,+d+(f?1:0)),y.__actions__.push({func:Zd,args:[b],thisArg:e}),new Lr(y,this.__chain__).thru(function(x){return f&&!x.length&&x.push(e),x}))});function VU(){return oO(this)}o(VU,"wrapperChain");function wU(){return new Lr(this.value(),this.__chain__)}o(wU,"wrapperCommit");function MU(){this.__values__===e&&(this.__values__=TO(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(MU,"wrapperNext");function kU(){return this}o(kU,"wrapperToIterator");function jU(c){for(var f,d=this;d instanceof kd;){var y=JI(d);y.__index__=0,y.__values__=e,f?b.__wrapped__=y:f=y;var b=y;d=d.__wrapped__}return b.__wrapped__=c,f}o(jU,"wrapperPlant");function UU(){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:Zd,args:[cT],thisArg:e}),new Lr(f,this.__chain__)}return this.thru(cT)}o(UU,"wrapperReverse");function $U(){return bI(this.__wrapped__,this.__actions__)}o($U,"wrapperValue");var BU=Wd(function(c,f,d){Ft.call(c,d)?++c[d]:Jo(c,d,1)});function HU(c,f,d){var y=Ke(c)?_x:Dk;return d&&Ii(c,f,d)&&(f=e),y(c,Ve(f,3))}o(HU,"every");function GU(c,f){var d=Ke(c)?Da:rI;return d(c,Ve(f,3))}o(GU,"filter");var WU=FI(ZI),KU=FI(eO);function XU(c,f){return ni(eg(c,f),1)}o(XU,"flatMap");function QU(c,f){return ni(eg(c,f),Lt)}o(QU,"flatMapDeep");function qU(c,f,d){return d=d===e?1:Ye(d),ni(eg(c,f),d)}o(qU,"flatMapDepth");function aO(c,f){var d=Ke(c)?Or:ka;return d(c,Ve(f,3))}o(aO,"forEach");function sO(c,f){var d=Ke(c)?d2:iI;return d(c,Ve(f,3))}o(sO,"forEachRight");var zU=Wd(function(c,f,d){Ft.call(c,d)?c[d].push(f):Jo(c,d,[f])});function YU(c,f,d,y){c=Bi(c)?c:nl(c),d=d&&!y?Ye(d):0;var b=c.length;return d<0&&(d=Un(b+d,0)),og(c)?d<=b&&c.indexOf(f,d)>-1:!!b&&Wc(c,f,d)>-1}o(YU,"includes");var JU=nt(function(c,f,d){var y=-1,b=typeof f=="function",x=Bi(c)?W(c.length):[];return ka(c,function(L){x[++y]=b?or(f,L,d):$f(L,f,d)}),x}),ZU=Wd(function(c,f,d){Jo(c,d,f)});function eg(c,f){var d=Ke(c)?fn:fI;return d(c,Ve(f,3))}o(eg,"map");function e$(c,f,d,y){return c==null?[]:(Ke(f)||(f=f==null?[]:[f]),d=y?e:d,Ke(d)||(d=d==null?[]:[d]),gI(c,f,d))}o(e$,"orderBy");var t$=Wd(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function n$(c,f,d){var y=Ke(c)?bv:kx,b=arguments.length<3;return y(c,Ve(f,4),d,b,ka)}o(n$,"reduce");function i$(c,f,d){var y=Ke(c)?g2:kx,b=arguments.length<3;return y(c,Ve(f,4),d,b,iI)}o(i$,"reduceRight");function r$(c,f){var d=Ke(c)?Da:rI;return d(c,ig(Ve(f,3)))}o(r$,"reject");function o$(c){var f=Ke(c)?Zx:Yk;return f(c)}o(o$,"sample");function a$(c,f,d){(d?Ii(c,f,d):f===e)?f=1:f=Ye(f);var y=Ke(c)?Ok:Jk;return y(c,f)}o(a$,"sampleSize");function s$(c){var f=Ke(c)?Nk:ej;return f(c)}o(s$,"shuffle");function c$(c){if(c==null)return 0;if(Bi(c))return og(c)?Xc(c):c.length;var f=di(c);return f==Xe||f==dn?c.size:Uv(c).length}o(c$,"size");function l$(c,f,d){var y=Ke(c)?Av:tj;return d&&Ii(c,f,d)&&(f=e),y(c,Ve(f,3))}o(l$,"some");var f$=nt(function(c,f){if(c==null)return[];var d=f.length;return d>1&&Ii(c,f[0],f[1])?f=[]:d>2&&Ii(f[0],f[1],f[2])&&(f=[f[0]]),gI(c,ni(f,1),[])}),tg=G2||function(){return Kn.Date.now()};function u$(c,f){if(typeof f!="function")throw new Nr(r);return c=Ye(c),function(){if(--c<1)return f.apply(this,arguments)}}o(u$,"after");function cO(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,Zo(c,Z,e,e,e,e,f)}o(cO,"ary");function lO(c,f){var d;if(typeof f!="function")throw new Nr(r);return c=Ye(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(lO,"before");var fT=nt(function(c,f,d){var y=E;if(d.length){var b=Va(d,el(fT));y|=B}return Zo(c,y,f,d,b)}),fO=nt(function(c,f,d){var y=E|O;if(d.length){var b=Va(d,el(fO));y|=B}return Zo(f,y,c,d,b)});function uO(c,f,d){f=d?e:f;var y=Zo(c,j,e,e,e,e,e,f);return y.placeholder=uO.placeholder,y}o(uO,"curry");function pO(c,f,d){f=d?e:f;var y=Zo(c,G,e,e,e,e,e,f);return y.placeholder=pO.placeholder,y}o(pO,"curryRight");function dO(c,f,d){var y,b,x,L,R,M,Y=0,J=!1,ee=!1,ge=!0;if(typeof c!="function")throw new Nr(r);f=_r(f)||0,mn(d)&&(J=!!d.leading,ee="maxWait"in d,x=ee?Un(_r(d.maxWait)||0,f):x,ge="trailing"in d?!!d.trailing:ge);function Oe(In){var Zr=y,ra=b;return y=b=e,Y=In,L=c.apply(ra,Zr),L}o(Oe,"invokeFunc");function Me(In){return Y=In,R=Kf(st,f),J?Oe(In):L}o(Me,"leadingEdge");function Ze(In){var Zr=In-M,ra=In-Y,FO=f-Zr;return ee?pi(FO,x-ra):FO}o(Ze,"remainingWait");function ke(In){var Zr=In-M,ra=In-Y;return M===e||Zr>=f||Zr<0||ee&&ra>=x}o(ke,"shouldInvoke");function st(){var In=tg();if(ke(In))return gt(In);R=Kf(st,Ze(In))}o(st,"timerExpired");function gt(In){return R=e,ge&&y?Oe(In):(y=b=e,L)}o(gt,"trailingEdge");function lr(){R!==e&&SI(R),Y=0,y=M=b=R=e}o(lr,"cancel");function Oi(){return R===e?L:gt(tg())}o(Oi,"flush");function fr(){var In=tg(),Zr=ke(In);if(y=arguments,b=this,M=In,Zr){if(R===e)return Me(M);if(ee)return SI(R),R=Kf(st,f),Oe(M)}return R===e&&(R=Kf(st,f)),L}return o(fr,"debounced"),fr.cancel=lr,fr.flush=Oi,fr}o(dO,"debounce");var p$=nt(function(c,f){return nI(c,1,f)}),d$=nt(function(c,f,d){return nI(c,_r(f)||0,d)});function g$(c){return Zo(c,Se)}o(g$,"flip");function ng(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Nr(r);var d=o(function(){var y=arguments,b=f?f.apply(this,y):y[0],x=d.cache;if(x.has(b))return x.get(b);var L=c.apply(this,y);return d.cache=x.set(b,L)||x,L},"memoized");return d.cache=new(ng.Cache||Yo),d}o(ng,"memoize"),ng.Cache=Yo;function ig(c){if(typeof c!="function")throw new Nr(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(ig,"negate");function m$(c){return lO(2,c)}o(m$,"once");var h$=nj(function(c,f){f=f.length==1&&Ke(f[0])?fn(f[0],ar(Ve())):fn(ni(f,1),ar(Ve()));var d=f.length;return nt(function(y){for(var b=-1,x=pi(y.length,d);++b<x;)y[b]=f[b].call(this,y[b]);return or(c,this,y)})}),uT=nt(function(c,f){var d=Va(f,el(uT));return Zo(c,B,e,f,d)}),gO=nt(function(c,f){var d=Va(f,el(gO));return Zo(c,ae,e,f,d)}),y$=ea(function(c,f){return Zo(c,re,e,e,e,f)});function v$(c,f){if(typeof c!="function")throw new Nr(r);return f=f===e?f:Ye(f),nt(c,f)}o(v$,"rest");function T$(c,f){if(typeof c!="function")throw new Nr(r);return f=f==null?0:Un(Ye(f),0),nt(function(d){var y=d[f],b=$a(d,0,f);return y&&_a(b,y),or(c,this,b)})}o(T$,"spread");function E$(c,f,d){var y=!0,b=!0;if(typeof c!="function")throw new Nr(r);return mn(d)&&(y="leading"in d?!!d.leading:y,b="trailing"in d?!!d.trailing:b),dO(c,f,{leading:y,maxWait:f,trailing:b})}o(E$,"throttle");function b$(c){return cO(c,1)}o(b$,"unary");function A$(c,f){return uT(qv(f),c)}o(A$,"wrap");function S$(){if(!arguments.length)return[];var c=arguments[0];return Ke(c)?c:[c]}o(S$,"castArray");function P$(c){return Rr(c,m)}o(P$,"clone");function C$(c,f){return f=typeof f=="function"?f:e,Rr(c,m,f)}o(C$,"cloneWith");function x$(c){return Rr(c,p|m)}o(x$,"cloneDeep");function I$(c,f){return f=typeof f=="function"?f:e,Rr(c,p|m,f)}o(I$,"cloneDeepWith");function O$(c,f){return f==null||tI(c,f,Xn(f))}o(O$,"conformsTo");function Jr(c,f){return c===f||c!==c&&f!==f}o(Jr,"eq");var N$=qd(Mv),L$=qd(function(c,f){return c>=f}),Ws=sI(function(){return arguments}())?sI:function(c){return vn(c)&&Ft.call(c,"callee")&&!Xx.call(c,"callee")},Ke=W.isArray,R$=Ox?ar(Ox):jk;function Bi(c){return c!=null&&rg(c.length)&&!na(c)}o(Bi,"isArrayLike");function xn(c){return vn(c)&&Bi(c)}o(xn,"isArrayLikeObject");function F$(c){return c===!0||c===!1||vn(c)&&xi(c)==I}o(F$,"isBoolean");var Ba=K2||AT,D$=Nx?ar(Nx):Uk;function _$(c){return vn(c)&&c.nodeType===1&&!Xf(c)}o(_$,"isElement");function V$(c){if(c==null)return!0;if(Bi(c)&&(Ke(c)||typeof c=="string"||typeof c.splice=="function"||Ba(c)||tl(c)||Ws(c)))return!c.length;var f=di(c);if(f==Xe||f==dn)return!c.size;if(Wf(c))return!Uv(c).length;for(var d in c)if(Ft.call(c,d))return!1;return!0}o(V$,"isEmpty");function w$(c,f){return Bf(c,f)}o(w$,"isEqual");function M$(c,f,d){d=typeof d=="function"?d:e;var y=d?d(c,f):e;return y===e?Bf(c,f,e,d):!!y}o(M$,"isEqualWith");function pT(c){if(!vn(c))return!1;var f=xi(c);return f==V||f==z||typeof c.message=="string"&&typeof c.name=="string"&&!Xf(c)}o(pT,"isError");function k$(c){return typeof c=="number"&&qx(c)}o(k$,"isFinite");function na(c){if(!mn(c))return!1;var f=xi(c);return f==_e||f==Rt||f==at||f==ti}o(na,"isFunction");function mO(c){return typeof c=="number"&&c==Ye(c)}o(mO,"isInteger");function rg(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Re}o(rg,"isLength");function mn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(mn,"isObject");function vn(c){return c!=null&&typeof c=="object"}o(vn,"isObjectLike");var hO=Lx?ar(Lx):Bk;function j$(c,f){return c===f||jv(c,f,nT(f))}o(j$,"isMatch");function U$(c,f,d){return d=typeof d=="function"?d:e,jv(c,f,nT(f),d)}o(U$,"isMatchWith");function $$(c){return yO(c)&&c!=+c}o($$,"isNaN");function B$(c){if(Cj(c))throw new We(i);return cI(c)}o(B$,"isNative");function H$(c){return c===null}o(H$,"isNull");function G$(c){return c==null}o(G$,"isNil");function yO(c){return typeof c=="number"||vn(c)&&xi(c)==kt}o(yO,"isNumber");function Xf(c){if(!vn(c)||xi(c)!=cn)return!1;var f=Rd(c);if(f===null)return!0;var d=Ft.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&Id.call(d)==U2}o(Xf,"isPlainObject");var dT=Rx?ar(Rx):Hk;function W$(c){return mO(c)&&c>=-Re&&c<=Re}o(W$,"isSafeInteger");var vO=Fx?ar(Fx):Gk;function og(c){return typeof c=="string"||!Ke(c)&&vn(c)&&xi(c)==ui}o(og,"isString");function cr(c){return typeof c=="symbol"||vn(c)&&xi(c)==Gt}o(cr,"isSymbol");var tl=Dx?ar(Dx):Wk;function K$(c){return c===e}o(K$,"isUndefined");function X$(c){return vn(c)&&di(c)==Ui}o(X$,"isWeakMap");function Q$(c){return vn(c)&&xi(c)==Of}o(Q$,"isWeakSet");var q$=qd($v),z$=qd(function(c,f){return c<=f});function TO(c){if(!c)return[];if(Bi(c))return og(c)?zr(c):$i(c);if(_f&&c[_f])return O2(c[_f]());var f=di(c),d=f==Xe?Ov:f==dn?Pd:nl;return d(c)}o(TO,"toArray");function ia(c){if(!c)return c===0?c:0;if(c=_r(c),c===Lt||c===-Lt){var f=c<0?-1:1;return f*Ci}return c===c?c:0}o(ia,"toFinite");function Ye(c){var f=ia(c),d=f%1;return f===f?d?f-d:f:0}o(Ye,"toInteger");function EO(c){return c?$s(Ye(c),0,Mt):0}o(EO,"toLength");function _r(c){if(typeof c=="number")return c;if(cr(c))return It;if(mn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=mn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=jx(c);var d=LM.test(c);return d||FM.test(c)?f2(c.slice(2),d?2:8):NM.test(c)?It:+c}o(_r,"toNumber");function bO(c){return Po(c,Hi(c))}o(bO,"toPlainObject");function Y$(c){return c?$s(Ye(c),-Re,Re):c===0?c:0}o(Y$,"toSafeInteger");function Ot(c){return c==null?"":sr(c)}o(Ot,"toString");var J$=Jc(function(c,f){if(Wf(f)||Bi(f)){Po(f,Xn(f),c);return}for(var d in f)Ft.call(f,d)&&jf(c,d,f[d])}),AO=Jc(function(c,f){Po(f,Hi(f),c)}),ag=Jc(function(c,f,d,y){Po(f,Hi(f),c,y)}),Z$=Jc(function(c,f,d,y){Po(f,Xn(f),c,y)}),e4=ea(_v);function t4(c,f){var d=Yc(c);return f==null?d:eI(d,f)}o(t4,"create");var n4=nt(function(c,f){c=Kt(c);var d=-1,y=f.length,b=y>2?f[2]:e;for(b&&Ii(f[0],f[1],b)&&(y=1);++d<y;)for(var x=f[d],L=Hi(x),R=-1,M=L.length;++R<M;){var Y=L[R],J=c[Y];(J===e||Jr(J,Qc[Y])&&!Ft.call(c,Y))&&(c[Y]=x[Y])}return c}),i4=nt(function(c){return c.push(e,jI),or(SO,e,c)});function r4(c,f){return Vx(c,Ve(f,3),So)}o(r4,"findKey");function o4(c,f){return Vx(c,Ve(f,3),wv)}o(o4,"findLastKey");function a4(c,f){return c==null?c:Vv(c,Ve(f,3),Hi)}o(a4,"forIn");function s4(c,f){return c==null?c:oI(c,Ve(f,3),Hi)}o(s4,"forInRight");function c4(c,f){return c&&So(c,Ve(f,3))}o(c4,"forOwn");function l4(c,f){return c&&wv(c,Ve(f,3))}o(l4,"forOwnRight");function f4(c){return c==null?[]:$d(c,Xn(c))}o(f4,"functions");function u4(c){return c==null?[]:$d(c,Hi(c))}o(u4,"functionsIn");function gT(c,f,d){var y=c==null?e:Bs(c,f);return y===e?d:y}o(gT,"get");function p4(c,f){return c!=null&&BI(c,f,Vk)}o(p4,"has");function mT(c,f){return c!=null&&BI(c,f,wk)}o(mT,"hasIn");var d4=_I(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Od.call(f)),c[f]=d},yT(Gi)),g4=_I(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Od.call(f)),Ft.call(c,f)?c[f].push(d):c[f]=[d]},Ve),m4=nt($f);function Xn(c){return Bi(c)?Jx(c):Uv(c)}o(Xn,"keys");function Hi(c){return Bi(c)?Jx(c,!0):Kk(c)}o(Hi,"keysIn");function h4(c,f){var d={};return f=Ve(f,3),So(c,function(y,b,x){Jo(d,f(y,b,x),y)}),d}o(h4,"mapKeys");function y4(c,f){var d={};return f=Ve(f,3),So(c,function(y,b,x){Jo(d,b,f(y,b,x))}),d}o(y4,"mapValues");var T4=Jc(function(c,f,d){Bd(c,f,d)}),SO=Jc(function(c,f,d,y){Bd(c,f,d,y)}),E4=ea(function(c,f){var d={};if(c==null)return d;var y=!1;f=fn(f,function(x){return x=Ua(x,c),y||(y=x.length>1),x}),Po(c,eT(c),d),y&&(d=Rr(d,p|g|m,dj));for(var b=f.length;b--;)Kv(d,f[b]);return d});function b4(c,f){return PO(c,ig(Ve(f)))}o(b4,"omitBy");var A4=ea(function(c,f){return c==null?{}:Qk(c,f)});function PO(c,f){if(c==null)return{};var d=fn(eT(c),function(y){return[y]});return f=Ve(f),mI(c,d,function(y,b){return f(y,b[0])})}o(PO,"pickBy");function S4(c,f,d){f=Ua(f,c);var y=-1,b=f.length;for(b||(b=1,c=e);++y<b;){var x=c==null?e:c[Co(f[y])];x===e&&(y=b,x=d),c=na(x)?x.call(c):x}return c}o(S4,"result");function P4(c,f,d){return c==null?c:Hf(c,f,d)}o(P4,"set");function C4(c,f,d,y){return y=typeof y=="function"?y:e,c==null?c:Hf(c,f,d,y)}o(C4,"setWith");var CO=MI(Xn),xO=MI(Hi);function x4(c,f,d){var y=Ke(c),b=y||Ba(c)||tl(c);if(f=Ve(f,4),d==null){var x=c&&c.constructor;b?d=y?new x:[]:mn(c)?d=na(x)?Yc(Rd(c)):{}:d={}}return(b?Or:So)(c,function(L,R,M){return f(d,L,R,M)}),d}o(x4,"transform");function I4(c,f){return c==null?!0:Kv(c,f)}o(I4,"unset");function O4(c,f,d){return c==null?c:EI(c,f,qv(d))}o(O4,"update");function N4(c,f,d,y){return y=typeof y=="function"?y:e,c==null?c:EI(c,f,qv(d),y)}o(N4,"updateWith");function nl(c){return c==null?[]:Iv(c,Xn(c))}o(nl,"values");function L4(c){return c==null?[]:Iv(c,Hi(c))}o(L4,"valuesIn");function R4(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=_r(d),d=d===d?d:0),f!==e&&(f=_r(f),f=f===f?f:0),$s(_r(c),f,d)}o(R4,"clamp");function F4(c,f,d){return f=ia(f),d===e?(d=f,f=0):d=ia(d),c=_r(c),Mk(c,f,d)}o(F4,"inRange");function D4(c,f,d){if(d&&typeof d!="boolean"&&Ii(c,f,d)&&(f=d=e),d===e&&(typeof f=="boolean"?(d=f,f=e):typeof c=="boolean"&&(d=c,c=e)),c===e&&f===e?(c=0,f=1):(c=ia(c),f===e?(f=c,c=0):f=ia(f)),c>f){var y=c;c=f,f=y}if(d||c%1||f%1){var b=zx();return pi(c+b*(f-c+l2("1e-"+((b+"").length-1))),f)}return Hv(c,f)}o(D4,"random");var _4=Zc(function(c,f,d){return f=f.toLowerCase(),c+(d?IO(f):f)});function IO(c){return hT(Ot(c).toLowerCase())}o(IO,"capitalize");function OO(c){return c=Ot(c),c&&c.replace(_M,S2).replace(ZM,"")}o(OO,"deburr");function V4(c,f,d){c=Ot(c),f=sr(f);var y=c.length;d=d===e?y:$s(Ye(d),0,y);var b=d;return d-=f.length,d>=0&&c.slice(d,b)==f}o(V4,"endsWith");function w4(c){return c=Ot(c),c&&Ie.test(c)?c.replace(Te,P2):c}o(w4,"escape");function M4(c){return c=Ot(c),c&&EM.test(c)?c.replace(Ff,"\\$&"):c}o(M4,"escapeRegExp");var k4=Zc(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),j4=Zc(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),U4=RI("toLowerCase");function $4(c,f,d){c=Ot(c),f=Ye(f);var y=f?Xc(c):0;if(!f||y>=f)return c;var b=(f-y)/2;return Qd(Vd(b),d)+c+Qd(_d(b),d)}o($4,"pad");function B4(c,f,d){c=Ot(c),f=Ye(f);var y=f?Xc(c):0;return f&&y<f?c+Qd(f-y,d):c}o(B4,"padEnd");function H4(c,f,d){c=Ot(c),f=Ye(f);var y=f?Xc(c):0;return f&&y<f?Qd(f-y,d)+c:c}o(H4,"padStart");function G4(c,f,d){return d||f==null?f=0:f&&(f=+f),z2(Ot(c).replace(pv,""),f||0)}o(G4,"parseInt");function W4(c,f,d){return(d?Ii(c,f,d):f===e)?f=1:f=Ye(f),Gv(Ot(c),f)}o(W4,"repeat");function K4(){var c=arguments,f=Ot(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(K4,"replace");var X4=Zc(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function Q4(c,f,d){return d&&typeof d!="number"&&Ii(c,f,d)&&(f=d=e),d=d===e?Mt:d>>>0,d?(c=Ot(c),c&&(typeof f=="string"||f!=null&&!dT(f))&&(f=sr(f),!f&&Kc(c))?$a(zr(c),0,d):c.split(f,d)):[]}o(Q4,"split");var q4=Zc(function(c,f,d){return c+(d?" ":"")+hT(f)});function z4(c,f,d){return c=Ot(c),d=d==null?0:$s(Ye(d),0,c.length),f=sr(f),c.slice(d,d+f.length)==f}o(z4,"startsWith");function Y4(c,f,d){var y=P.templateSettings;d&&Ii(c,f,d)&&(f=e),c=Ot(c),f=ag({},f,y,kI);var b=ag({},f.imports,y.imports,kI),x=Xn(b),L=Iv(b,x),R,M,Y=0,J=f.interpolate||Td,ee="__p += '",ge=Nv((f.escape||Td).source+"|"+J.source+"|"+(J===ln?OM:Td).source+"|"+(f.evaluate||Td).source+"|$","g"),Oe="//# sourceURL="+(Ft.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++r2+"]")+`
|
|
272
|
-
`;c.replace(ge,function(ke,st,gt,lr,Oi,fr){return gt||(gt=lr),ee+=c.slice(Y,fr).replace(
|
|
271
|
+
`)}o(Ej,"insertWrapDetails");function bj(c){return Ke(c)||Ws(c)||!!(Qx&&c&&c[Qx])}o(bj,"isFlattenable");function ta(c,f){var d=typeof c;return f=f??Re,!!f&&(d=="number"||d!="symbol"&&FM.test(c))&&c>-1&&c%1==0&&c<f}o(ta,"isIndex");function Ii(c,f,d){if(!mn(d))return!1;var y=typeof f;return(y=="number"?Bi(d)&&ta(f,d.length):y=="string"&&f in d)?Zr(d[f],c):!1}o(Ii,"isIterateeCall");function rT(c,f){if(Ke(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||cr(c)?!0:vd.test(c)||!rr.test(c)||f!=null&&c in Kt(f)}o(rT,"isKey");function Aj(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(Aj,"isKeyable");function oT(c){var f=zd(c),d=P[f];if(typeof d!="function"||!(f in pt.prototype))return!1;if(c===d)return!0;var y=tT(d);return!!y&&c===y[0]}o(oT,"isLaziable");function Sj(c){return!!Gx&&Gx in c}o(Sj,"isMasked");var Pj=xd?na:AT;function Wf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||Qc;return c===d}o(Wf,"isPrototype");function GI(c){return c===c&&!mn(c)}o(GI,"isStrictComparable");function WI(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Kt(d))}}o(WI,"matchesStrictComparable");function Cj(c){var f=ng(c,function(y){return d.size===l&&d.clear(),y}),d=f.cache;return f}o(Cj,"memoizeCapped");function xj(c,f){var d=c[1],y=f[1],b=d|y,x=b<(E|O|Z),L=y==Z&&d==j||y==Z&&d==re&&c[7].length<=f[8]||y==(Z|re)&&f[7].length<=f[8]&&d==j;if(!(x||L))return c;y&E&&(c[2]=f[2],b|=d&E?0:F);var R=f[3];if(R){var M=c[3];c[3]=M?II(M,R,f[4]):R,c[4]=M?Va(c[3],u):f[4]}return R=f[5],R&&(M=c[5],c[5]=M?OI(M,R,f[6]):R,c[6]=M?Va(c[5],u):f[6]),R=f[7],R&&(c[7]=R),y&Z&&(c[8]=c[8]==null?f[8]:pi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=b,c}o(xj,"mergeData");function Ij(c){var f=[];if(c!=null)for(var d in Kt(c))f.push(d);return f}o(Ij,"nativeKeysIn");function Oj(c){return Od.call(c)}o(Oj,"objectToString");function KI(c,f,d){return f=Un(f===e?c.length-1:f,0),function(){for(var y=arguments,b=-1,x=Un(y.length-f,0),L=W(x);++b<x;)L[b]=y[f+b];b=-1;for(var R=W(f+1);++b<f;)R[b]=y[b];return R[f]=d(L),or(c,this,R)}}o(KI,"overRest");function XI(c,f){return f.length<2?c:Bs(c,Fr(f,0,-1))}o(XI,"parent");function Nj(c,f){for(var d=c.length,y=pi(f.length,d),b=$i(c);y--;){var x=f[y];c[y]=ta(x,d)?b[x]:e}return c}o(Nj,"reorder");function aT(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(aT,"safeGet");var QI=zI(yI),Kf=G2||function(c,f){return Kn.setTimeout(c,f)},sT=zI(Jk);function qI(c,f,d){var y=f+"";return sT(c,Ej(y,Lj(yj(y),d)))}o(qI,"setWrapToString");function zI(c){var f=0,d=0;return function(){var y=Q2(),b=Ue-(y-d);if(d=y,b>0){if(++f>=yt)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(zI,"shortOut");function Jd(c,f){var d=-1,y=c.length,b=y-1;for(f=f===e?y:f;++d<f;){var x=Hv(d,b),L=c[x];c[x]=c[d],c[d]=L}return c.length=f,c}o(Jd,"shuffleSelf");var YI=Cj(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(uv,function(d,y,b,x){f.push(b?x.replace(xM,"$1"):y||d)}),f});function Co(c){if(typeof c=="string"||cr(c))return c;var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(Co,"toKey");function Gs(c){if(c!=null){try{return Id.call(c)}catch{}try{return c+""}catch{}}return""}o(Gs,"toSource");function Lj(c,f){return Or(Fe,function(d){var y="_."+d[0];f&d[1]&&!Ad(c,y)&&c.push(y)}),c.sort()}o(Lj,"updateWrapDetails");function JI(c){if(c instanceof pt)return c.clone();var f=new Lr(c.__wrapped__,c.__chain__);return f.__actions__=$i(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(JI,"wrapperClone");function Rj(c,f,d){(d?Ii(c,f,d):f===e)?f=1:f=Un(Ye(f),0);var y=c==null?0:c.length;if(!y||f<1)return[];for(var b=0,x=0,L=W(_d(y/f));b<y;)L[x++]=Fr(c,b,b+=f);return L}o(Rj,"chunk");function Fj(c){for(var f=-1,d=c==null?0:c.length,y=0,b=[];++f<d;){var x=c[f];x&&(b[y++]=x)}return b}o(Fj,"compact");function Dj(){var c=arguments.length;if(!c)return[];for(var f=W(c-1),d=arguments[0],y=c;y--;)f[y-1]=arguments[y];return _a(Ke(d)?$i(d):[d],ni(f,1))}o(Dj,"concat");var _j=nt(function(c,f){return xn(c)?Uf(c,ni(f,1,xn,!0)):[]}),Vj=nt(function(c,f){var d=Dr(f);return xn(d)&&(d=e),xn(c)?Uf(c,ni(f,1,xn,!0),Ve(d,2)):[]}),wj=nt(function(c,f){var d=Dr(f);return xn(d)&&(d=e),xn(c)?Uf(c,ni(f,1,xn,!0),e,d):[]});function Mj(c,f,d){var y=c==null?0:c.length;return y?(f=d||f===e?1:Ye(f),Fr(c,f<0?0:f,y)):[]}o(Mj,"drop");function kj(c,f,d){var y=c==null?0:c.length;return y?(f=d||f===e?1:Ye(f),f=y-f,Fr(c,0,f<0?0:f)):[]}o(kj,"dropRight");function jj(c,f){return c&&c.length?Gd(c,Ve(f,3),!0,!0):[]}o(jj,"dropRightWhile");function Uj(c,f){return c&&c.length?Gd(c,Ve(f,3),!0):[]}o(Uj,"dropWhile");function $j(c,f,d,y){var b=c==null?0:c.length;return b?(d&&typeof d!="number"&&Ii(c,f,d)&&(d=0,y=b),Dk(c,f,d,y)):[]}o($j,"fill");function ZI(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=d==null?0:Ye(d);return b<0&&(b=Un(y+b,0)),Sd(c,Ve(f,3),b)}o(ZI,"findIndex");function eO(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=y-1;return d!==e&&(b=Ye(d),b=d<0?Un(y+b,0):pi(b,y-1)),Sd(c,Ve(f,3),b,!0)}o(eO,"findLastIndex");function tO(c){var f=c==null?0:c.length;return f?ni(c,1):[]}o(tO,"flatten");function Bj(c){var f=c==null?0:c.length;return f?ni(c,Lt):[]}o(Bj,"flattenDeep");function Hj(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Ye(f),ni(c,f)):[]}o(Hj,"flattenDepth");function Gj(c){for(var f=-1,d=c==null?0:c.length,y={};++f<d;){var b=c[f];y[b[0]]=b[1]}return y}o(Gj,"fromPairs");function nO(c){return c&&c.length?c[0]:e}o(nO,"head");function Wj(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=d==null?0:Ye(d);return b<0&&(b=Un(y+b,0)),Wc(c,f,b)}o(Wj,"indexOf");function Kj(c){var f=c==null?0:c.length;return f?Fr(c,0,-1):[]}o(Kj,"initial");var Xj=nt(function(c){var f=fn(c,Qv);return f.length&&f[0]===c[0]?kv(f):[]}),Qj=nt(function(c){var f=Dr(c),d=fn(c,Qv);return f===Dr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?kv(d,Ve(f,2)):[]}),qj=nt(function(c){var f=Dr(c),d=fn(c,Qv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?kv(d,e,f):[]});function zj(c,f){return c==null?"":K2.call(c,f)}o(zj,"join");function Dr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(Dr,"last");function Yj(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=y;return d!==e&&(b=Ye(d),b=b<0?Un(y+b,0):pi(b,y-1)),f===f?L2(c,f,b):Sd(c,wx,b,!0)}o(Yj,"lastIndexOf");function Jj(c,f){return c&&c.length?dI(c,Ye(f)):e}o(Jj,"nth");var Zj=nt(iO);function iO(c,f){return c&&c.length&&f&&f.length?Bv(c,f):c}o(iO,"pullAll");function eU(c,f,d){return c&&c.length&&f&&f.length?Bv(c,f,Ve(d,2)):c}o(eU,"pullAllBy");function tU(c,f,d){return c&&c.length&&f&&f.length?Bv(c,f,e,d):c}o(tU,"pullAllWith");var nU=ea(function(c,f){var d=c==null?0:c.length,y=_v(c,f);return hI(c,fn(f,function(b){return ta(b,d)?+b:b}).sort(xI)),y});function iU(c,f){var d=[];if(!(c&&c.length))return d;var y=-1,b=[],x=c.length;for(f=Ve(f,3);++y<x;){var L=c[y];f(L,y,c)&&(d.push(L),b.push(y))}return hI(c,b),d}o(iU,"remove");function cT(c){return c==null?c:z2.call(c)}o(cT,"reverse");function rU(c,f,d){var y=c==null?0:c.length;return y?(d&&typeof d!="number"&&Ii(c,f,d)?(f=0,d=y):(f=f==null?0:Ye(f),d=d===e?y:Ye(d)),Fr(c,f,d)):[]}o(rU,"slice");function oU(c,f){return Hd(c,f)}o(oU,"sortedIndex");function aU(c,f,d){return Wv(c,f,Ve(d,2))}o(aU,"sortedIndexBy");function sU(c,f){var d=c==null?0:c.length;if(d){var y=Hd(c,f);if(y<d&&Zr(c[y],f))return y}return-1}o(sU,"sortedIndexOf");function cU(c,f){return Hd(c,f,!0)}o(cU,"sortedLastIndex");function lU(c,f,d){return Wv(c,f,Ve(d,2),!0)}o(lU,"sortedLastIndexBy");function fU(c,f){var d=c==null?0:c.length;if(d){var y=Hd(c,f,!0)-1;if(Zr(c[y],f))return y}return-1}o(fU,"sortedLastIndexOf");function uU(c){return c&&c.length?vI(c):[]}o(uU,"sortedUniq");function pU(c,f){return c&&c.length?vI(c,Ve(f,2)):[]}o(pU,"sortedUniqBy");function dU(c){var f=c==null?0:c.length;return f?Fr(c,1,f):[]}o(dU,"tail");function gU(c,f,d){return c&&c.length?(f=d||f===e?1:Ye(f),Fr(c,0,f<0?0:f)):[]}o(gU,"take");function mU(c,f,d){var y=c==null?0:c.length;return y?(f=d||f===e?1:Ye(f),f=y-f,Fr(c,f<0?0:f,y)):[]}o(mU,"takeRight");function hU(c,f){return c&&c.length?Gd(c,Ve(f,3),!1,!0):[]}o(hU,"takeRightWhile");function yU(c,f){return c&&c.length?Gd(c,Ve(f,3)):[]}o(yU,"takeWhile");var vU=nt(function(c){return ja(ni(c,1,xn,!0))}),TU=nt(function(c){var f=Dr(c);return xn(f)&&(f=e),ja(ni(c,1,xn,!0),Ve(f,2))}),EU=nt(function(c){var f=Dr(c);return f=typeof f=="function"?f:e,ja(ni(c,1,xn,!0),e,f)});function bU(c){return c&&c.length?ja(c):[]}o(bU,"uniq");function AU(c,f){return c&&c.length?ja(c,Ve(f,2)):[]}o(AU,"uniqBy");function SU(c,f){return f=typeof f=="function"?f:e,c&&c.length?ja(c,e,f):[]}o(SU,"uniqWith");function lT(c){if(!(c&&c.length))return[];var f=0;return c=Da(c,function(d){if(xn(d))return f=Un(d.length,f),!0}),xv(f,function(d){return fn(c,Sv(d))})}o(lT,"unzip");function rO(c,f){if(!(c&&c.length))return[];var d=lT(c);return f==null?d:fn(d,function(y){return or(f,e,y)})}o(rO,"unzipWith");var PU=nt(function(c,f){return xn(c)?Uf(c,f):[]}),CU=nt(function(c){return Xv(Da(c,xn))}),xU=nt(function(c){var f=Dr(c);return xn(f)&&(f=e),Xv(Da(c,xn),Ve(f,2))}),IU=nt(function(c){var f=Dr(c);return f=typeof f=="function"?f:e,Xv(Da(c,xn),e,f)}),OU=nt(lT);function NU(c,f){return AI(c||[],f||[],jf)}o(NU,"zipObject");function LU(c,f){return AI(c||[],f||[],Hf)}o(LU,"zipObjectDeep");var RU=nt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,rO(c,d)});function oO(c){var f=P(c);return f.__chain__=!0,f}o(oO,"chain");function FU(c,f){return f(c),c}o(FU,"tap");function Zd(c,f){return f(c)}o(Zd,"thru");var DU=ea(function(c){var f=c.length,d=f?c[0]:0,y=this.__wrapped__,b=o(function(x){return _v(x,c)},"interceptor");return f>1||this.__actions__.length||!(y instanceof pt)||!ta(d)?this.thru(b):(y=y.slice(d,+d+(f?1:0)),y.__actions__.push({func:Zd,args:[b],thisArg:e}),new Lr(y,this.__chain__).thru(function(x){return f&&!x.length&&x.push(e),x}))});function _U(){return oO(this)}o(_U,"wrapperChain");function VU(){return new Lr(this.value(),this.__chain__)}o(VU,"wrapperCommit");function wU(){this.__values__===e&&(this.__values__=TO(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(wU,"wrapperNext");function MU(){return this}o(MU,"wrapperToIterator");function kU(c){for(var f,d=this;d instanceof kd;){var y=JI(d);y.__index__=0,y.__values__=e,f?b.__wrapped__=y:f=y;var b=y;d=d.__wrapped__}return b.__wrapped__=c,f}o(kU,"wrapperPlant");function jU(){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:Zd,args:[cT],thisArg:e}),new Lr(f,this.__chain__)}return this.thru(cT)}o(jU,"wrapperReverse");function UU(){return bI(this.__wrapped__,this.__actions__)}o(UU,"wrapperValue");var $U=Wd(function(c,f,d){Ft.call(c,d)?++c[d]:Jo(c,d,1)});function BU(c,f,d){var y=Ke(c)?_x:Fk;return d&&Ii(c,f,d)&&(f=e),y(c,Ve(f,3))}o(BU,"every");function HU(c,f){var d=Ke(c)?Da:rI;return d(c,Ve(f,3))}o(HU,"filter");var GU=FI(ZI),WU=FI(eO);function KU(c,f){return ni(eg(c,f),1)}o(KU,"flatMap");function XU(c,f){return ni(eg(c,f),Lt)}o(XU,"flatMapDeep");function QU(c,f,d){return d=d===e?1:Ye(d),ni(eg(c,f),d)}o(QU,"flatMapDepth");function aO(c,f){var d=Ke(c)?Or:ka;return d(c,Ve(f,3))}o(aO,"forEach");function sO(c,f){var d=Ke(c)?p2:iI;return d(c,Ve(f,3))}o(sO,"forEachRight");var qU=Wd(function(c,f,d){Ft.call(c,d)?c[d].push(f):Jo(c,d,[f])});function zU(c,f,d,y){c=Bi(c)?c:nl(c),d=d&&!y?Ye(d):0;var b=c.length;return d<0&&(d=Un(b+d,0)),og(c)?d<=b&&c.indexOf(f,d)>-1:!!b&&Wc(c,f,d)>-1}o(zU,"includes");var YU=nt(function(c,f,d){var y=-1,b=typeof f=="function",x=Bi(c)?W(c.length):[];return ka(c,function(L){x[++y]=b?or(f,L,d):$f(L,f,d)}),x}),JU=Wd(function(c,f,d){Jo(c,d,f)});function eg(c,f){var d=Ke(c)?fn:fI;return d(c,Ve(f,3))}o(eg,"map");function ZU(c,f,d,y){return c==null?[]:(Ke(f)||(f=f==null?[]:[f]),d=y?e:d,Ke(d)||(d=d==null?[]:[d]),gI(c,f,d))}o(ZU,"orderBy");var e$=Wd(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function t$(c,f,d){var y=Ke(c)?bv:kx,b=arguments.length<3;return y(c,Ve(f,4),d,b,ka)}o(t$,"reduce");function n$(c,f,d){var y=Ke(c)?d2:kx,b=arguments.length<3;return y(c,Ve(f,4),d,b,iI)}o(n$,"reduceRight");function i$(c,f){var d=Ke(c)?Da:rI;return d(c,ig(Ve(f,3)))}o(i$,"reject");function r$(c){var f=Ke(c)?Zx:zk;return f(c)}o(r$,"sample");function o$(c,f,d){(d?Ii(c,f,d):f===e)?f=1:f=Ye(f);var y=Ke(c)?Ik:Yk;return y(c,f)}o(o$,"sampleSize");function a$(c){var f=Ke(c)?Ok:Zk;return f(c)}o(a$,"shuffle");function s$(c){if(c==null)return 0;if(Bi(c))return og(c)?Xc(c):c.length;var f=di(c);return f==Xe||f==dn?c.size:Uv(c).length}o(s$,"size");function c$(c,f,d){var y=Ke(c)?Av:ej;return d&&Ii(c,f,d)&&(f=e),y(c,Ve(f,3))}o(c$,"some");var l$=nt(function(c,f){if(c==null)return[];var d=f.length;return d>1&&Ii(c,f[0],f[1])?f=[]:d>2&&Ii(f[0],f[1],f[2])&&(f=[f[0]]),gI(c,ni(f,1),[])}),tg=H2||function(){return Kn.Date.now()};function f$(c,f){if(typeof f!="function")throw new Nr(r);return c=Ye(c),function(){if(--c<1)return f.apply(this,arguments)}}o(f$,"after");function cO(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,Zo(c,Z,e,e,e,e,f)}o(cO,"ary");function lO(c,f){var d;if(typeof f!="function")throw new Nr(r);return c=Ye(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(lO,"before");var fT=nt(function(c,f,d){var y=E;if(d.length){var b=Va(d,el(fT));y|=B}return Zo(c,y,f,d,b)}),fO=nt(function(c,f,d){var y=E|O;if(d.length){var b=Va(d,el(fO));y|=B}return Zo(f,y,c,d,b)});function uO(c,f,d){f=d?e:f;var y=Zo(c,j,e,e,e,e,e,f);return y.placeholder=uO.placeholder,y}o(uO,"curry");function pO(c,f,d){f=d?e:f;var y=Zo(c,G,e,e,e,e,e,f);return y.placeholder=pO.placeholder,y}o(pO,"curryRight");function dO(c,f,d){var y,b,x,L,R,M,Y=0,J=!1,ee=!1,ge=!0;if(typeof c!="function")throw new Nr(r);f=_r(f)||0,mn(d)&&(J=!!d.leading,ee="maxWait"in d,x=ee?Un(_r(d.maxWait)||0,f):x,ge="trailing"in d?!!d.trailing:ge);function Oe(In){var eo=y,ra=b;return y=b=e,Y=In,L=c.apply(ra,eo),L}o(Oe,"invokeFunc");function Me(In){return Y=In,R=Kf(st,f),J?Oe(In):L}o(Me,"leadingEdge");function Ze(In){var eo=In-M,ra=In-Y,FO=f-eo;return ee?pi(FO,x-ra):FO}o(Ze,"remainingWait");function ke(In){var eo=In-M,ra=In-Y;return M===e||eo>=f||eo<0||ee&&ra>=x}o(ke,"shouldInvoke");function st(){var In=tg();if(ke(In))return gt(In);R=Kf(st,Ze(In))}o(st,"timerExpired");function gt(In){return R=e,ge&&y?Oe(In):(y=b=e,L)}o(gt,"trailingEdge");function lr(){R!==e&&SI(R),Y=0,y=M=b=R=e}o(lr,"cancel");function Oi(){return R===e?L:gt(tg())}o(Oi,"flush");function fr(){var In=tg(),eo=ke(In);if(y=arguments,b=this,M=In,eo){if(R===e)return Me(M);if(ee)return SI(R),R=Kf(st,f),Oe(M)}return R===e&&(R=Kf(st,f)),L}return o(fr,"debounced"),fr.cancel=lr,fr.flush=Oi,fr}o(dO,"debounce");var u$=nt(function(c,f){return nI(c,1,f)}),p$=nt(function(c,f,d){return nI(c,_r(f)||0,d)});function d$(c){return Zo(c,Se)}o(d$,"flip");function ng(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Nr(r);var d=o(function(){var y=arguments,b=f?f.apply(this,y):y[0],x=d.cache;if(x.has(b))return x.get(b);var L=c.apply(this,y);return d.cache=x.set(b,L)||x,L},"memoized");return d.cache=new(ng.Cache||Yo),d}o(ng,"memoize"),ng.Cache=Yo;function ig(c){if(typeof c!="function")throw new Nr(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(ig,"negate");function g$(c){return lO(2,c)}o(g$,"once");var m$=tj(function(c,f){f=f.length==1&&Ke(f[0])?fn(f[0],ar(Ve())):fn(ni(f,1),ar(Ve()));var d=f.length;return nt(function(y){for(var b=-1,x=pi(y.length,d);++b<x;)y[b]=f[b].call(this,y[b]);return or(c,this,y)})}),uT=nt(function(c,f){var d=Va(f,el(uT));return Zo(c,B,e,f,d)}),gO=nt(function(c,f){var d=Va(f,el(gO));return Zo(c,ae,e,f,d)}),h$=ea(function(c,f){return Zo(c,re,e,e,e,f)});function y$(c,f){if(typeof c!="function")throw new Nr(r);return f=f===e?f:Ye(f),nt(c,f)}o(y$,"rest");function v$(c,f){if(typeof c!="function")throw new Nr(r);return f=f==null?0:Un(Ye(f),0),nt(function(d){var y=d[f],b=$a(d,0,f);return y&&_a(b,y),or(c,this,b)})}o(v$,"spread");function T$(c,f,d){var y=!0,b=!0;if(typeof c!="function")throw new Nr(r);return mn(d)&&(y="leading"in d?!!d.leading:y,b="trailing"in d?!!d.trailing:b),dO(c,f,{leading:y,maxWait:f,trailing:b})}o(T$,"throttle");function E$(c){return cO(c,1)}o(E$,"unary");function b$(c,f){return uT(qv(f),c)}o(b$,"wrap");function A$(){if(!arguments.length)return[];var c=arguments[0];return Ke(c)?c:[c]}o(A$,"castArray");function S$(c){return Rr(c,m)}o(S$,"clone");function P$(c,f){return f=typeof f=="function"?f:e,Rr(c,m,f)}o(P$,"cloneWith");function C$(c){return Rr(c,p|m)}o(C$,"cloneDeep");function x$(c,f){return f=typeof f=="function"?f:e,Rr(c,p|m,f)}o(x$,"cloneDeepWith");function I$(c,f){return f==null||tI(c,f,Xn(f))}o(I$,"conformsTo");function Zr(c,f){return c===f||c!==c&&f!==f}o(Zr,"eq");var O$=qd(Mv),N$=qd(function(c,f){return c>=f}),Ws=sI(function(){return arguments}())?sI:function(c){return vn(c)&&Ft.call(c,"callee")&&!Xx.call(c,"callee")},Ke=W.isArray,L$=Ox?ar(Ox):kk;function Bi(c){return c!=null&&rg(c.length)&&!na(c)}o(Bi,"isArrayLike");function xn(c){return vn(c)&&Bi(c)}o(xn,"isArrayLikeObject");function R$(c){return c===!0||c===!1||vn(c)&&xi(c)==I}o(R$,"isBoolean");var Ba=W2||AT,F$=Nx?ar(Nx):jk;function D$(c){return vn(c)&&c.nodeType===1&&!Xf(c)}o(D$,"isElement");function _$(c){if(c==null)return!0;if(Bi(c)&&(Ke(c)||typeof c=="string"||typeof c.splice=="function"||Ba(c)||tl(c)||Ws(c)))return!c.length;var f=di(c);if(f==Xe||f==dn)return!c.size;if(Wf(c))return!Uv(c).length;for(var d in c)if(Ft.call(c,d))return!1;return!0}o(_$,"isEmpty");function V$(c,f){return Bf(c,f)}o(V$,"isEqual");function w$(c,f,d){d=typeof d=="function"?d:e;var y=d?d(c,f):e;return y===e?Bf(c,f,e,d):!!y}o(w$,"isEqualWith");function pT(c){if(!vn(c))return!1;var f=xi(c);return f==V||f==z||typeof c.message=="string"&&typeof c.name=="string"&&!Xf(c)}o(pT,"isError");function M$(c){return typeof c=="number"&&qx(c)}o(M$,"isFinite");function na(c){if(!mn(c))return!1;var f=xi(c);return f==_e||f==Rt||f==at||f==ti}o(na,"isFunction");function mO(c){return typeof c=="number"&&c==Ye(c)}o(mO,"isInteger");function rg(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Re}o(rg,"isLength");function mn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(mn,"isObject");function vn(c){return c!=null&&typeof c=="object"}o(vn,"isObjectLike");var hO=Lx?ar(Lx):$k;function k$(c,f){return c===f||jv(c,f,nT(f))}o(k$,"isMatch");function j$(c,f,d){return d=typeof d=="function"?d:e,jv(c,f,nT(f),d)}o(j$,"isMatchWith");function U$(c){return yO(c)&&c!=+c}o(U$,"isNaN");function $$(c){if(Pj(c))throw new We(i);return cI(c)}o($$,"isNative");function B$(c){return c===null}o(B$,"isNull");function H$(c){return c==null}o(H$,"isNil");function yO(c){return typeof c=="number"||vn(c)&&xi(c)==kt}o(yO,"isNumber");function Xf(c){if(!vn(c)||xi(c)!=cn)return!1;var f=Rd(c);if(f===null)return!0;var d=Ft.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&Id.call(d)==j2}o(Xf,"isPlainObject");var dT=Rx?ar(Rx):Bk;function G$(c){return mO(c)&&c>=-Re&&c<=Re}o(G$,"isSafeInteger");var vO=Fx?ar(Fx):Hk;function og(c){return typeof c=="string"||!Ke(c)&&vn(c)&&xi(c)==ui}o(og,"isString");function cr(c){return typeof c=="symbol"||vn(c)&&xi(c)==Gt}o(cr,"isSymbol");var tl=Dx?ar(Dx):Gk;function W$(c){return c===e}o(W$,"isUndefined");function K$(c){return vn(c)&&di(c)==Ui}o(K$,"isWeakMap");function X$(c){return vn(c)&&xi(c)==Of}o(X$,"isWeakSet");var Q$=qd($v),q$=qd(function(c,f){return c<=f});function TO(c){if(!c)return[];if(Bi(c))return og(c)?Yr(c):$i(c);if(_f&&c[_f])return I2(c[_f]());var f=di(c),d=f==Xe?Ov:f==dn?Pd:nl;return d(c)}o(TO,"toArray");function ia(c){if(!c)return c===0?c:0;if(c=_r(c),c===Lt||c===-Lt){var f=c<0?-1:1;return f*Ci}return c===c?c:0}o(ia,"toFinite");function Ye(c){var f=ia(c),d=f%1;return f===f?d?f-d:f:0}o(Ye,"toInteger");function EO(c){return c?$s(Ye(c),0,Mt):0}o(EO,"toLength");function _r(c){if(typeof c=="number")return c;if(cr(c))return It;if(mn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=mn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=jx(c);var d=NM.test(c);return d||RM.test(c)?l2(c.slice(2),d?2:8):OM.test(c)?It:+c}o(_r,"toNumber");function bO(c){return Po(c,Hi(c))}o(bO,"toPlainObject");function z$(c){return c?$s(Ye(c),-Re,Re):c===0?c:0}o(z$,"toSafeInteger");function Ot(c){return c==null?"":sr(c)}o(Ot,"toString");var Y$=Jc(function(c,f){if(Wf(f)||Bi(f)){Po(f,Xn(f),c);return}for(var d in f)Ft.call(f,d)&&jf(c,d,f[d])}),AO=Jc(function(c,f){Po(f,Hi(f),c)}),ag=Jc(function(c,f,d,y){Po(f,Hi(f),c,y)}),J$=Jc(function(c,f,d,y){Po(f,Xn(f),c,y)}),Z$=ea(_v);function e4(c,f){var d=Yc(c);return f==null?d:eI(d,f)}o(e4,"create");var t4=nt(function(c,f){c=Kt(c);var d=-1,y=f.length,b=y>2?f[2]:e;for(b&&Ii(f[0],f[1],b)&&(y=1);++d<y;)for(var x=f[d],L=Hi(x),R=-1,M=L.length;++R<M;){var Y=L[R],J=c[Y];(J===e||Zr(J,Qc[Y])&&!Ft.call(c,Y))&&(c[Y]=x[Y])}return c}),n4=nt(function(c){return c.push(e,jI),or(SO,e,c)});function i4(c,f){return Vx(c,Ve(f,3),So)}o(i4,"findKey");function r4(c,f){return Vx(c,Ve(f,3),wv)}o(r4,"findLastKey");function o4(c,f){return c==null?c:Vv(c,Ve(f,3),Hi)}o(o4,"forIn");function a4(c,f){return c==null?c:oI(c,Ve(f,3),Hi)}o(a4,"forInRight");function s4(c,f){return c&&So(c,Ve(f,3))}o(s4,"forOwn");function c4(c,f){return c&&wv(c,Ve(f,3))}o(c4,"forOwnRight");function l4(c){return c==null?[]:$d(c,Xn(c))}o(l4,"functions");function f4(c){return c==null?[]:$d(c,Hi(c))}o(f4,"functionsIn");function gT(c,f,d){var y=c==null?e:Bs(c,f);return y===e?d:y}o(gT,"get");function u4(c,f){return c!=null&&BI(c,f,_k)}o(u4,"has");function mT(c,f){return c!=null&&BI(c,f,Vk)}o(mT,"hasIn");var p4=_I(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Od.call(f)),c[f]=d},yT(Gi)),d4=_I(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Od.call(f)),Ft.call(c,f)?c[f].push(d):c[f]=[d]},Ve),g4=nt($f);function Xn(c){return Bi(c)?Jx(c):Uv(c)}o(Xn,"keys");function Hi(c){return Bi(c)?Jx(c,!0):Wk(c)}o(Hi,"keysIn");function m4(c,f){var d={};return f=Ve(f,3),So(c,function(y,b,x){Jo(d,f(y,b,x),y)}),d}o(m4,"mapKeys");function h4(c,f){var d={};return f=Ve(f,3),So(c,function(y,b,x){Jo(d,b,f(y,b,x))}),d}o(h4,"mapValues");var y4=Jc(function(c,f,d){Bd(c,f,d)}),SO=Jc(function(c,f,d,y){Bd(c,f,d,y)}),T4=ea(function(c,f){var d={};if(c==null)return d;var y=!1;f=fn(f,function(x){return x=Ua(x,c),y||(y=x.length>1),x}),Po(c,eT(c),d),y&&(d=Rr(d,p|g|m,pj));for(var b=f.length;b--;)Kv(d,f[b]);return d});function E4(c,f){return PO(c,ig(Ve(f)))}o(E4,"omitBy");var b4=ea(function(c,f){return c==null?{}:Xk(c,f)});function PO(c,f){if(c==null)return{};var d=fn(eT(c),function(y){return[y]});return f=Ve(f),mI(c,d,function(y,b){return f(y,b[0])})}o(PO,"pickBy");function A4(c,f,d){f=Ua(f,c);var y=-1,b=f.length;for(b||(b=1,c=e);++y<b;){var x=c==null?e:c[Co(f[y])];x===e&&(y=b,x=d),c=na(x)?x.call(c):x}return c}o(A4,"result");function S4(c,f,d){return c==null?c:Hf(c,f,d)}o(S4,"set");function P4(c,f,d,y){return y=typeof y=="function"?y:e,c==null?c:Hf(c,f,d,y)}o(P4,"setWith");var CO=MI(Xn),xO=MI(Hi);function C4(c,f,d){var y=Ke(c),b=y||Ba(c)||tl(c);if(f=Ve(f,4),d==null){var x=c&&c.constructor;b?d=y?new x:[]:mn(c)?d=na(x)?Yc(Rd(c)):{}:d={}}return(b?Or:So)(c,function(L,R,M){return f(d,L,R,M)}),d}o(C4,"transform");function x4(c,f){return c==null?!0:Kv(c,f)}o(x4,"unset");function I4(c,f,d){return c==null?c:EI(c,f,qv(d))}o(I4,"update");function O4(c,f,d,y){return y=typeof y=="function"?y:e,c==null?c:EI(c,f,qv(d),y)}o(O4,"updateWith");function nl(c){return c==null?[]:Iv(c,Xn(c))}o(nl,"values");function N4(c){return c==null?[]:Iv(c,Hi(c))}o(N4,"valuesIn");function L4(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=_r(d),d=d===d?d:0),f!==e&&(f=_r(f),f=f===f?f:0),$s(_r(c),f,d)}o(L4,"clamp");function R4(c,f,d){return f=ia(f),d===e?(d=f,f=0):d=ia(d),c=_r(c),wk(c,f,d)}o(R4,"inRange");function F4(c,f,d){if(d&&typeof d!="boolean"&&Ii(c,f,d)&&(f=d=e),d===e&&(typeof f=="boolean"?(d=f,f=e):typeof c=="boolean"&&(d=c,c=e)),c===e&&f===e?(c=0,f=1):(c=ia(c),f===e?(f=c,c=0):f=ia(f)),c>f){var y=c;c=f,f=y}if(d||c%1||f%1){var b=zx();return pi(c+b*(f-c+c2("1e-"+((b+"").length-1))),f)}return Hv(c,f)}o(F4,"random");var D4=Zc(function(c,f,d){return f=f.toLowerCase(),c+(d?IO(f):f)});function IO(c){return hT(Ot(c).toLowerCase())}o(IO,"capitalize");function OO(c){return c=Ot(c),c&&c.replace(DM,A2).replace(JM,"")}o(OO,"deburr");function _4(c,f,d){c=Ot(c),f=sr(f);var y=c.length;d=d===e?y:$s(Ye(d),0,y);var b=d;return d-=f.length,d>=0&&c.slice(d,b)==f}o(_4,"endsWith");function V4(c){return c=Ot(c),c&&Ie.test(c)?c.replace(Te,S2):c}o(V4,"escape");function w4(c){return c=Ot(c),c&&TM.test(c)?c.replace(Ff,"\\$&"):c}o(w4,"escapeRegExp");var M4=Zc(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),k4=Zc(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),j4=RI("toLowerCase");function U4(c,f,d){c=Ot(c),f=Ye(f);var y=f?Xc(c):0;if(!f||y>=f)return c;var b=(f-y)/2;return Qd(Vd(b),d)+c+Qd(_d(b),d)}o(U4,"pad");function $4(c,f,d){c=Ot(c),f=Ye(f);var y=f?Xc(c):0;return f&&y<f?c+Qd(f-y,d):c}o($4,"padEnd");function B4(c,f,d){c=Ot(c),f=Ye(f);var y=f?Xc(c):0;return f&&y<f?Qd(f-y,d)+c:c}o(B4,"padStart");function H4(c,f,d){return d||f==null?f=0:f&&(f=+f),q2(Ot(c).replace(pv,""),f||0)}o(H4,"parseInt");function G4(c,f,d){return(d?Ii(c,f,d):f===e)?f=1:f=Ye(f),Gv(Ot(c),f)}o(G4,"repeat");function W4(){var c=arguments,f=Ot(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(W4,"replace");var K4=Zc(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function X4(c,f,d){return d&&typeof d!="number"&&Ii(c,f,d)&&(f=d=e),d=d===e?Mt:d>>>0,d?(c=Ot(c),c&&(typeof f=="string"||f!=null&&!dT(f))&&(f=sr(f),!f&&Kc(c))?$a(Yr(c),0,d):c.split(f,d)):[]}o(X4,"split");var Q4=Zc(function(c,f,d){return c+(d?" ":"")+hT(f)});function q4(c,f,d){return c=Ot(c),d=d==null?0:$s(Ye(d),0,c.length),f=sr(f),c.slice(d,d+f.length)==f}o(q4,"startsWith");function z4(c,f,d){var y=P.templateSettings;d&&Ii(c,f,d)&&(f=e),c=Ot(c),f=ag({},f,y,kI);var b=ag({},f.imports,y.imports,kI),x=Xn(b),L=Iv(b,x),R,M,Y=0,J=f.interpolate||Td,ee="__p += '",ge=Nv((f.escape||Td).source+"|"+J.source+"|"+(J===ln?IM:Td).source+"|"+(f.evaluate||Td).source+"|$","g"),Oe="//# sourceURL="+(Ft.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++i2+"]")+`
|
|
272
|
+
`;c.replace(ge,function(ke,st,gt,lr,Oi,fr){return gt||(gt=lr),ee+=c.slice(Y,fr).replace(_M,P2),st&&(R=!0,ee+=`' +
|
|
273
273
|
__e(`+st+`) +
|
|
274
274
|
'`),Oi&&(M=!0,ee+=`';
|
|
275
275
|
`+Oi+`;
|
|
@@ -279,19 +279,19 @@ __p += '`),gt&&(ee+=`' +
|
|
|
279
279
|
`;var Me=Ft.call(f,"variable")&&f.variable;if(!Me)ee=`with (obj) {
|
|
280
280
|
`+ee+`
|
|
281
281
|
}
|
|
282
|
-
`;else if(
|
|
282
|
+
`;else if(CM.test(Me))throw new We(a);ee=(M?ee.replace(gn,""):ee).replace(Cn,"$1").replace(tt,"$1;"),ee="function("+(Me||"obj")+`) {
|
|
283
283
|
`+(Me?"":`obj || (obj = {});
|
|
284
284
|
`)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
|
|
285
285
|
function print() { __p += __j.call(arguments, '') }
|
|
286
286
|
`:`;
|
|
287
287
|
`)+ee+`return __p
|
|
288
|
-
}`;var Ze=LO(function(){return St(x,Oe+"return "+ee).apply(e,L)});if(Ze.source=ee,pT(Ze))throw Ze;return Ze}o(Y4,"template");function J4(c){return Ot(c).toLowerCase()}o(J4,"toLower");function Z4(c){return Ot(c).toUpperCase()}o(Z4,"toUpper");function eB(c,f,d){if(c=Ot(c),c&&(d||f===e))return jx(c);if(!c||!(f=sr(f)))return c;var y=zr(c),b=zr(f),x=Ux(y,b),L=$x(y,b)+1;return $a(y,x,L).join("")}o(eB,"trim");function tB(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.slice(0,Hx(c)+1);if(!c||!(f=sr(f)))return c;var y=zr(c),b=$x(y,zr(f))+1;return $a(y,0,b).join("")}o(tB,"trimEnd");function nB(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.replace(pv,"");if(!c||!(f=sr(f)))return c;var y=zr(c),b=Ux(y,zr(f));return $a(y,b).join("")}o(nB,"trimStart");function iB(c,f){var d=D,y=ut;if(mn(f)){var b="separator"in f?f.separator:b;d="length"in f?Ye(f.length):d,y="omission"in f?sr(f.omission):y}c=Ot(c);var x=c.length;if(Kc(c)){var L=zr(c);x=L.length}if(d>=x)return c;var R=d-Xc(y);if(R<1)return y;var M=L?$a(L,0,R).join(""):c.slice(0,R);if(b===e)return M+y;if(L&&(R+=M.length-R),dT(b)){if(c.slice(R).search(b)){var Y,J=M;for(b.global||(b=Nv(b.source,Ot(sx.exec(b))+"g")),b.lastIndex=0;Y=b.exec(J);)var ee=Y.index;M=M.slice(0,ee===e?R:ee)}}else if(c.indexOf(sr(b),R)!=R){var ge=M.lastIndexOf(b);ge>-1&&(M=M.slice(0,ge))}return M+y}o(iB,"truncate");function rB(c){return c=Ot(c),c&&Pe.test(c)?c.replace(me,F2):c}o(rB,"unescape");var oB=Zc(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),hT=RI("toUpperCase");function NO(c,f,d){return c=Ot(c),f=d?e:f,f===e?I2(c)?V2(c):y2(c):c.match(f)||[]}o(NO,"words");var LO=nt(function(c,f){try{return or(c,e,f)}catch(d){return pT(d)?d:new We(d)}}),aB=ea(function(c,f){return Or(f,function(d){d=Co(d),Jo(c,d,fT(c[d],c))}),c});function sB(c){var f=c==null?0:c.length,d=Ve();return c=f?fn(c,function(y){if(typeof y[1]!="function")throw new Nr(r);return[d(y[0]),y[1]]}):[],nt(function(y){for(var b=-1;++b<f;){var x=c[b];if(or(x[0],this,y))return or(x[1],this,y)}})}o(sB,"cond");function cB(c){return Fk(Rr(c,p))}o(cB,"conforms");function yT(c){return function(){return c}}o(yT,"constant");function lB(c,f){return c==null||c!==c?f:c}o(lB,"defaultTo");var fB=DI(),uB=DI(!0);function Gi(c){return c}o(Gi,"identity");function vT(c){return lI(typeof c=="function"?c:Rr(c,p))}o(vT,"iteratee");function pB(c){return uI(Rr(c,p))}o(pB,"matches");function dB(c,f){return pI(c,Rr(f,p))}o(dB,"matchesProperty");var gB=nt(function(c,f){return function(d){return $f(d,c,f)}}),mB=nt(function(c,f){return function(d){return $f(c,d,f)}});function TT(c,f,d){var y=Xn(f),b=$d(f,y);d==null&&!(mn(f)&&(b.length||!y.length))&&(d=f,f=c,c=this,b=$d(f,Xn(f)));var x=!(mn(d)&&"chain"in d)||!!d.chain,L=na(c);return Or(b,function(R){var M=f[R];c[R]=M,L&&(c.prototype[R]=function(){var Y=this.__chain__;if(x||Y){var J=c(this.__wrapped__),ee=J.__actions__=$i(this.__actions__);return ee.push({func:M,args:arguments,thisArg:c}),J.__chain__=Y,J}return M.apply(c,_a([this.value()],arguments))})}),c}o(TT,"mixin");function hB(){return Kn._===this&&(Kn._=$2),this}o(hB,"noConflict");function ET(){}o(ET,"noop");function yB(c){return c=Ye(c),nt(function(f){return dI(f,c)})}o(yB,"nthArg");var vB=Yv(fn),TB=Yv(_x),EB=Yv(Av);function RO(c){return rT(c)?Sv(Co(c)):qk(c)}o(RO,"property");function bB(c){return function(f){return c==null?e:Bs(c,f)}}o(bB,"propertyOf");var AB=VI(),SB=VI(!0);function bT(){return[]}o(bT,"stubArray");function AT(){return!1}o(AT,"stubFalse");function PB(){return{}}o(PB,"stubObject");function CB(){return""}o(CB,"stubString");function xB(){return!0}o(xB,"stubTrue");function IB(c,f){if(c=Ye(c),c<1||c>Re)return[];var d=Mt,y=pi(c,Mt);f=Ve(f),c-=Mt;for(var b=xv(y,f);++d<c;)f(d);return b}o(IB,"times");function OB(c){return Ke(c)?fn(c,Co):cr(c)?[c]:$i(YI(Ot(c)))}o(OB,"toPath");function NB(c){var f=++j2;return Ot(c)+f}o(NB,"uniqueId");var LB=Xd(function(c,f){return c+f},0),RB=Jv("ceil"),FB=Xd(function(c,f){return c/f},1),DB=Jv("floor");function _B(c){return c&&c.length?Ud(c,Gi,Mv):e}o(_B,"max");function VB(c,f){return c&&c.length?Ud(c,Ve(f,2),Mv):e}o(VB,"maxBy");function wB(c){return Mx(c,Gi)}o(wB,"mean");function MB(c,f){return Mx(c,Ve(f,2))}o(MB,"meanBy");function kB(c){return c&&c.length?Ud(c,Gi,$v):e}o(kB,"min");function jB(c,f){return c&&c.length?Ud(c,Ve(f,2),$v):e}o(jB,"minBy");var UB=Xd(function(c,f){return c*f},1),$B=Jv("round"),BB=Xd(function(c,f){return c-f},0);function HB(c){return c&&c.length?Cv(c,Gi):0}o(HB,"sum");function GB(c,f){return c&&c.length?Cv(c,Ve(f,2)):0}return o(GB,"sumBy"),P.after=u$,P.ary=cO,P.assign=J$,P.assignIn=AO,P.assignInWith=ag,P.assignWith=Z$,P.at=e4,P.before=lO,P.bind=fT,P.bindAll=aB,P.bindKey=fO,P.castArray=S$,P.chain=oO,P.chunk=Fj,P.compact=Dj,P.concat=_j,P.cond=sB,P.conforms=cB,P.constant=yT,P.countBy=BU,P.create=t4,P.curry=uO,P.curryRight=pO,P.debounce=dO,P.defaults=n4,P.defaultsDeep=i4,P.defer=p$,P.delay=d$,P.difference=Vj,P.differenceBy=wj,P.differenceWith=Mj,P.drop=kj,P.dropRight=jj,P.dropRightWhile=Uj,P.dropWhile=$j,P.fill=Bj,P.filter=GU,P.flatMap=XU,P.flatMapDeep=QU,P.flatMapDepth=qU,P.flatten=tO,P.flattenDeep=Hj,P.flattenDepth=Gj,P.flip=g$,P.flow=fB,P.flowRight=uB,P.fromPairs=Wj,P.functions=f4,P.functionsIn=u4,P.groupBy=zU,P.initial=Xj,P.intersection=Qj,P.intersectionBy=qj,P.intersectionWith=zj,P.invert=d4,P.invertBy=g4,P.invokeMap=JU,P.iteratee=vT,P.keyBy=ZU,P.keys=Xn,P.keysIn=Hi,P.map=eg,P.mapKeys=h4,P.mapValues=y4,P.matches=pB,P.matchesProperty=dB,P.memoize=ng,P.merge=T4,P.mergeWith=SO,P.method=gB,P.methodOf=mB,P.mixin=TT,P.negate=ig,P.nthArg=yB,P.omit=E4,P.omitBy=b4,P.once=m$,P.orderBy=e$,P.over=vB,P.overArgs=h$,P.overEvery=TB,P.overSome=EB,P.partial=uT,P.partialRight=gO,P.partition=t$,P.pick=A4,P.pickBy=PO,P.property=RO,P.propertyOf=bB,P.pull=eU,P.pullAll=iO,P.pullAllBy=tU,P.pullAllWith=nU,P.pullAt=iU,P.range=AB,P.rangeRight=SB,P.rearg=y$,P.reject=r$,P.remove=rU,P.rest=v$,P.reverse=cT,P.sampleSize=a$,P.set=P4,P.setWith=C4,P.shuffle=s$,P.slice=oU,P.sortBy=f$,P.sortedUniq=pU,P.sortedUniqBy=dU,P.split=Q4,P.spread=T$,P.tail=gU,P.take=mU,P.takeRight=hU,P.takeRightWhile=yU,P.takeWhile=vU,P.tap=DU,P.throttle=E$,P.thru=Zd,P.toArray=TO,P.toPairs=CO,P.toPairsIn=xO,P.toPath=OB,P.toPlainObject=bO,P.transform=x4,P.unary=b$,P.union=TU,P.unionBy=EU,P.unionWith=bU,P.uniq=AU,P.uniqBy=SU,P.uniqWith=PU,P.unset=I4,P.unzip=lT,P.unzipWith=rO,P.update=O4,P.updateWith=N4,P.values=nl,P.valuesIn=L4,P.without=CU,P.words=NO,P.wrap=A$,P.xor=xU,P.xorBy=IU,P.xorWith=OU,P.zip=NU,P.zipObject=LU,P.zipObjectDeep=RU,P.zipWith=FU,P.entries=CO,P.entriesIn=xO,P.extend=AO,P.extendWith=ag,TT(P,P),P.add=LB,P.attempt=LO,P.camelCase=_4,P.capitalize=IO,P.ceil=RB,P.clamp=R4,P.clone=P$,P.cloneDeep=x$,P.cloneDeepWith=I$,P.cloneWith=C$,P.conformsTo=O$,P.deburr=OO,P.defaultTo=lB,P.divide=FB,P.endsWith=V4,P.eq=Jr,P.escape=w4,P.escapeRegExp=M4,P.every=HU,P.find=WU,P.findIndex=ZI,P.findKey=r4,P.findLast=KU,P.findLastIndex=eO,P.findLastKey=o4,P.floor=DB,P.forEach=aO,P.forEachRight=sO,P.forIn=a4,P.forInRight=s4,P.forOwn=c4,P.forOwnRight=l4,P.get=gT,P.gt=N$,P.gte=L$,P.has=p4,P.hasIn=mT,P.head=nO,P.identity=Gi,P.includes=YU,P.indexOf=Kj,P.inRange=F4,P.invoke=m4,P.isArguments=Ws,P.isArray=Ke,P.isArrayBuffer=R$,P.isArrayLike=Bi,P.isArrayLikeObject=xn,P.isBoolean=F$,P.isBuffer=Ba,P.isDate=D$,P.isElement=_$,P.isEmpty=V$,P.isEqual=w$,P.isEqualWith=M$,P.isError=pT,P.isFinite=k$,P.isFunction=na,P.isInteger=mO,P.isLength=rg,P.isMap=hO,P.isMatch=j$,P.isMatchWith=U$,P.isNaN=$$,P.isNative=B$,P.isNil=G$,P.isNull=H$,P.isNumber=yO,P.isObject=mn,P.isObjectLike=vn,P.isPlainObject=Xf,P.isRegExp=dT,P.isSafeInteger=W$,P.isSet=vO,P.isString=og,P.isSymbol=cr,P.isTypedArray=tl,P.isUndefined=K$,P.isWeakMap=X$,P.isWeakSet=Q$,P.join=Yj,P.kebabCase=k4,P.last=Dr,P.lastIndexOf=Jj,P.lowerCase=j4,P.lowerFirst=U4,P.lt=q$,P.lte=z$,P.max=_B,P.maxBy=VB,P.mean=wB,P.meanBy=MB,P.min=kB,P.minBy=jB,P.stubArray=bT,P.stubFalse=AT,P.stubObject=PB,P.stubString=CB,P.stubTrue=xB,P.multiply=UB,P.nth=Zj,P.noConflict=hB,P.noop=ET,P.now=tg,P.pad=$4,P.padEnd=B4,P.padStart=H4,P.parseInt=G4,P.random=D4,P.reduce=n$,P.reduceRight=i$,P.repeat=W4,P.replace=K4,P.result=S4,P.round=$B,P.runInContext=w,P.sample=o$,P.size=c$,P.snakeCase=X4,P.some=l$,P.sortedIndex=aU,P.sortedIndexBy=sU,P.sortedIndexOf=cU,P.sortedLastIndex=lU,P.sortedLastIndexBy=fU,P.sortedLastIndexOf=uU,P.startCase=q4,P.startsWith=z4,P.subtract=BB,P.sum=HB,P.sumBy=GB,P.template=Y4,P.times=IB,P.toFinite=ia,P.toInteger=Ye,P.toLength=EO,P.toLower=J4,P.toNumber=_r,P.toSafeInteger=Y$,P.toString=Ot,P.toUpper=Z4,P.trim=eB,P.trimEnd=tB,P.trimStart=nB,P.truncate=iB,P.unescape=rB,P.uniqueId=NB,P.upperCase=oB,P.upperFirst=hT,P.each=aO,P.eachRight=sO,P.first=nO,TT(P,function(){var c={};return So(P,function(f,d){Ft.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Or(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Or(["drop","take"],function(c,f){pt.prototype[c]=function(d){d=d===e?1:Un(Ye(d),0);var y=this.__filtered__&&!f?new pt(this):this.clone();return y.__filtered__?y.__takeCount__=pi(d,y.__takeCount__):y.__views__.push({size:pi(d,Mt),type:c+(y.__dir__<0?"Right":"")}),y},pt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Or(["filter","map","takeWhile"],function(c,f){var d=f+1,y=d==an||d==en;pt.prototype[c]=function(b){var x=this.clone();return x.__iteratees__.push({iteratee:Ve(b,3),type:d}),x.__filtered__=x.__filtered__||y,x}}),Or(["head","last"],function(c,f){var d="take"+(f?"Right":"");pt.prototype[c]=function(){return this[d](1).value()[0]}}),Or(["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(Gi)},pt.prototype.find=function(c){return this.filter(c).head()},pt.prototype.findLast=function(c){return this.reverse().find(c)},pt.prototype.invokeMap=nt(function(c,f){return typeof c=="function"?new pt(this):this.map(function(d){return $f(d,c,f)})}),pt.prototype.reject=function(c){return this.filter(ig(Ve(c)))},pt.prototype.slice=function(c,f){c=Ye(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=Ye(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(Mt)},So(pt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),y=/^(?:head|last)$/.test(f),b=P[y?"take"+(f=="last"?"Right":""):f],x=y||/^find/.test(f);b&&(P.prototype[f]=function(){var L=this.__wrapped__,R=y?[1]:arguments,M=L instanceof pt,Y=R[0],J=M||Ke(L),ee=o(function(st){var gt=b.apply(P,_a([st],R));return y&&ge?gt[0]:gt},"interceptor");J&&d&&typeof Y=="function"&&Y.length!=1&&(M=J=!1);var ge=this.__chain__,Oe=!!this.__actions__.length,Me=x&&!ge,Ze=M&&!Oe;if(!x&&J){L=Ze?L:new pt(this);var ke=c.apply(L,R);return ke.__actions__.push({func:Zd,args:[ee],thisArg:e}),new Lr(ke,ge)}return Me&&Ze?c.apply(this,R):(ke=this.thru(ee),Me?y?ke.value()[0]:ke.value():ke)})}),Or(["pop","push","shift","sort","splice","unshift"],function(c){var f=Cd[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",y=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var b=arguments;if(y&&!this.__chain__){var x=this.value();return f.apply(Ke(x)?x:[],b)}return this[d](function(L){return f.apply(Ke(L)?L:[],b)})}}),So(pt.prototype,function(c,f){var d=P[f];if(d){var y=d.name+"";Ft.call(zc,y)||(zc[y]=[]),zc[y].push({name:f,func:d})}}),zc[Kd(e,O).name]=[{name:"wrapper",func:e}],pt.prototype.clone=ik,pt.prototype.reverse=rk,pt.prototype.value=ok,P.prototype.at=_U,P.prototype.chain=VU,P.prototype.commit=wU,P.prototype.next=MU,P.prototype.plant=jU,P.prototype.reverse=UU,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=$U,P.prototype.first=P.prototype.head,_f&&(P.prototype[_f]=kU),P},"runInContext"),wa=w2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Kn._=wa,define(function(){return wa})):Ms?((Ms.exports=wa)._=wa,vv._=wa):Kn._=wa}).call(tf)});var yV=qe((Wce,hV)=>{var{findIndex:p6}=Sp();function d6(e,t){let i=p6(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(d6,"findNextTextualToken");hV.exports={findNextTextualToken:d6}});var EV=qe((Xce,TV)=>{var vV=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function g6({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(vV);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(g6,"isXMLNamespaceKey");function m6(e){if(typeof e!="string")return;let t=e.match(vV);if(t!==null)return t.groups&&t.groups.prefix||""}o(m6,"getXMLNamespaceKeyPrefix");TV.exports={isXMLNamespaceKey:g6,getXMLNamespaceKeyPrefix:m6}});var AV=qe((qce,bV)=>{var{findNextTextualToken:h6}=yV(),{isXMLNamespaceKey:y6,getXMLNamespaceKeyPrefix:v6}=EV();bV.exports={findNextTextualToken:h6,isXMLNamespaceKey:y6,getXMLNamespaceKeyPrefix:v6}});var CS=qe((zce,PV)=>{var{reduce:T6,has:SV,isArray:E6}=Sp();function b6(e){return T6(e,(n,i,r)=>(r==="parent"||(SV(i,"type")?n.push(i):E6(i)&&i.length>0&&SV(i[0],"type")&&(n=n.concat(i))),n),[])}o(b6,"getAstChildrenReflective");PV.exports={getAstChildrenReflective:b6}});var xS=qe((Jce,CV)=>{CV.exports={DEFAULT_NS:"::DEFAULT"}});var DV=qe((Zce,FV)=>{var{BaseXmlCstVisitor:A6}=PS(),{last:S6,forEach:NV,reduce:P6,map:Pp,pick:OS,sortBy:C6,isEmpty:x6,isArray:LV,assign:I6}=Sp(),{findNextTextualToken:O6,isXMLNamespaceKey:N6,getXMLNamespaceKeyPrefix:L6}=AV(),{getAstChildrenReflective:R6}=CS(),{DEFAULT_NS:F6}=xS();function D6(e,t){xV.setState({tokenVector:t});let n=xV.visit(e);return n.rootElement!==_c&&RV(n.rootElement),n}o(D6,"buildAst");var NS=class NS extends A6{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:_c,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&x6(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),Py(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Pp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),Py(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Pp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Pp(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:_c,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=Pp(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 w6(i,t),M6(i,t),k6(i,t,this.tokenVector),Py(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:_c,value:_c,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=Cy(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=_6(a.image),r.syntax.value=Cy(a)}return Py(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:_c},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=C6(r,["startOffset"]),s=Pp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(NS,"CstToAstVisitor");var IS=NS,xV=new IS;function Py(e){let t=R6(e);NV(t,n=>n.parent=e)}o(Py,"setChildrenParent");function RV(e,t=[]){let n=P6(e.attributes,(r,a)=>{if(a.key!==_c&&N6({key:a.key,includeEmptyPrefix:!1})===!0){let s=L6(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[F6]=l}}return r},{}),i=Object.create(null);e.namespaces=I6(i,t,n),NV(e.subElements,r=>RV(r,e.namespaces))}o(RV,"updateNamespaces");function Cy(e){return OS(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Cy,"toXMLToken");function IV(e){return OS(e,["startOffset","startLine","startColumn"])}o(IV,"startOfXMLToken");function OV(e){return OS(e,["endOffset","endLine","endColumn"])}o(OV,"endOfXMLToken");function Ia(e){return LV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Ia,"exists");function _6(e){return e.substring(1,e.length-1)}o(_6,"stripQuotes");function V6(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(V6,"nsToParts");var _c=null;function w6(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Cy(n);let i=V6(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=Cy(t.END_NAME[0]))}o(w6,"handleElementOpenCloseNameRanges");function M6(e,t){if(Ia(t.OPEN)){let n;Ia(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Ia(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...IV(t.OPEN[0]),...OV(n)}),Ia(t.SLASH_OPEN)&&Ia(t.END)&&(e.syntax.closeBody={...IV(t.SLASH_OPEN[0]),...OV(t.END[0])})}}o(M6,"handleElementOpenCloseBodyRanges");function k6(e,t,n){if(Ia(t.Name)){let i=t.Name[0].endOffset+2;if(Ia(t.START_CLOSE)||Ia(t.SLASH_CLOSE)){let r=(Ia(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=LV(t.attribute)?S6(t.attribute).location.endOffset:t.Name[0].endOffset,s=O6(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(k6,"handleElementAttributeRanges");FV.exports={buildAst:D6}});var wV=qe((tle,VV)=>{var{forEach:j6,isFunction:nf}=Sp(),{getAstChildrenReflective:U6}=CS();function _V(e,t){switch(e.type){case"XMLDocument":{nf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{nf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{nf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{nf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{nf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{nf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=U6(e);j6(n,i=>{_V(i,t)})}o(_V,"accept");VV.exports={accept:_V}});var kV=qe((ile,MV)=>{var{buildAst:$6}=DV(),{accept:B6}=wV(),{DEFAULT_NS:H6}=xS();MV.exports={buildAst:$6,accept:B6,DEFAULT_NS:H6}});var Di={};Ks(Di,{deleteConfigEntityByPath:()=>gY,exportConfig:()=>pY,exportConfigEntityByPath:()=>dY,generateCustomExtension:()=>tx,generateSchema:()=>uY,getApiVersion:()=>vY,getChanges:()=>TM,getGenericSchema:()=>av,getPathToGenericSchema:()=>Fw,getProject:()=>SY,importConfig:()=>mY,importProject:()=>hY,importProjectSchema:()=>yY,isDirectory:()=>EY,log:()=>se,prompts:()=>fY,readDirectory:()=>ax});module.exports=cg(Di);var pe=ie(le());var K=ie(le());var Be=o(e=>typeof e=="string","isString"),Qf=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),gR=o(e=>e==null?"":""+e,"makeString"),CG=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),xG=/###/g,mR=o(e=>e&&e.indexOf("###")>-1?e.replace(xG,"."):e,"cleanKey"),hR=o(e=>!e||Be(e),"canNotTraverseDeeper"),qf=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(hR(e))return{};let a=mR(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return hR(e)?{}:{obj:e,k:mR(i[r])}},"getLastOfPath"),yR=o((e,t,n)=>{let{obj:i,k:r}=qf(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=qf(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=qf(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),IG=o((e,t,n,i)=>{let{obj:r,k:a}=qf(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),fg=o((e,t)=>{let{obj:n,k:i}=qf(e,t);if(n)return n[i]},"getPath"),OG=o((e,t,n)=>{let i=fg(e,n);return i!==void 0?i:fg(t,n)},"getPathWithDefaults"),SR=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]):SR(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),rl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),NG={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},LG=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>NG[t]):e,"escape"),kT=class kT{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(kT,"RegExpCache");var RT=kT,RG=[" ",",","?","!",";"],FG=new RT(20),DG=o((e,t,n)=>{t=t||"",n=n||"";let i=RG.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=FG.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"),FT=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"),ug=o(e=>e&&e.replace("_","-"),"getCleanedCode"),_G={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)}},zf=class zf{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||_G,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 zf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new zf(this.logger,t)}};o(zf,"Logger");var DT=zf,xo=new DT,jT=class jT{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(jT,"EventEmitter");var al=jT,UT=class UT extends al{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let u=fg(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:FT(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),yR(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=fg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?SR(u,i,a):u={...u,...i},yR(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(UT,"ResourceStore");var pg=UT,PR={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}},vR={},hg=class hg extends al{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),CG(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=xo.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&&!DG(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let ae=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${ae}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${ae}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),v=m&&m.res,A=m&&m.usedKey||s,E=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(v),F=["[object Number]","[object Function]","[object RegExp]"],j=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,G=!this.i18nFormat||this.i18nFormat.handleAsObject,B=!Be(v)&&typeof v!="boolean"&&typeof v!="number";if(G&&v&&B&&F.indexOf(O)<0&&!(Be(j)&&Array.isArray(v))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ae=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,v,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=ae,m.usedParams=this.getUsedParamsDetails(n),m):ae}if(a){let ae=Array.isArray(v),Z=ae?[]:{},re=ae?E:A;for(let Se in v)if(Object.prototype.hasOwnProperty.call(v,Se)){let D=`${re}${a}${Se}`;Z[Se]=this.translate(D,{...n,joinArrays:!1,ns:l}),Z[Se]===D&&(Z[Se]=v[Se])}v=Z}}else if(G&&Be(j)&&Array.isArray(v))v=v.join(j),v&&(v=this.extendTranslation(v,t,n,i));else{let ae=!1,Z=!1,re=n.count!==void 0&&!Be(n.count),Se=hg.hasDefaultValue(n),D=re?this.pluralResolver.getSuffix(p,n.count,n):"",ut=n.ordinal&&re?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",yt=re&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ue=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${ut}`]||n.defaultValue;!this.isValidLookup(v)&&Se&&(ae=!0,v=Ue),this.isValidLookup(v)||(Z=!0,v=s);let Gn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:v,en=Se&&Ue!==v&&this.options.updateMissing;if(Z||ae||en){if(this.logger.log(en?"updateKey":"missingKey",p,u,s,en?Ue:v),a){let It=this.resolve(s,{...n,keySeparator:!1});It&&It.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Lt=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let It=0;It<Re.length;It++)Lt.push(Re[It]);else this.options.saveMissingTo==="all"?Lt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Lt.push(n.lng||this.language);let Ci=o((It,Mt,sn)=>{let ji=Se&&sn!==v?sn:Gn;this.options.missingKeyHandler?this.options.missingKeyHandler(It,u,Mt,ji,en,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(It,u,Mt,ji,en,n),this.emit("missingKey",It,u,Mt,v)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Lt.forEach(It=>{let Mt=this.pluralResolver.getSuffixes(It,n);yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Mt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Mt.push(`${this.options.pluralSeparator}zero`),Mt.forEach(sn=>{Ci([It],s+sn,n[`defaultValue${sn}`]||Ue)})}):Ci(Lt,s,Ue))}v=this.extendTranslation(v,t,n,m,i),Z&&v===s&&this.options.appendNamespaceToMissingKey&&(v=`${u}:${s}`),(Z||ae)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,ae?v:void 0):v=this.options.parseMissingKeyHandler(v))}return r?(m.res=v,m.usedParams=this.getUsedParamsDetails(n),m):v}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 v=t.match(this.interpolator.nestingRegexp);g=v&&v.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 v=t.match(this.interpolator.nestingRegexp),A=v&&v.length;g<A&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var v=arguments.length,A=new Array(v),E=0;E<v;E++)A[E]=arguments[E];return a&&a[0]===A[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${A[0]} in key: ${n[0]}`),null):s.translate(...A,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,u=Be(l)?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=PR.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 v=n.count!==void 0&&!Be(n.count),A=v&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),E=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(F=>{this.isValidLookup(i)||(l=F,!vR[`${O[0]}-${F}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(vR[`${O[0]}-${F}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(j=>{if(this.isValidLookup(i))return;s=j;let G=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(G,g,j,F,n);else{let ae;v&&(ae=this.pluralResolver.getSuffix(j,n.count,n));let Z=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(G.push(g+ae),n.ordinal&&ae.indexOf(re)===0&&G.push(g+ae.replace(re,this.options.pluralSeparator)),A&&G.push(g+Z)),E){let Se=`${g}${this.options.contextSeparator}${n.context}`;G.push(Se),v&&(G.push(Se+ae),n.ordinal&&ae.indexOf(re)===0&&G.push(Se+ae.replace(re,this.options.pluralSeparator)),A&&G.push(Se+Z))}}let B;for(;B=G.pop();)this.isValidLookup(i)||(a=B,i=this.getResource(j,F,B,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(hg,"Translator");var dg=hg,NT=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),$T=class $T{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xo.create("languageUtils")}getScriptPartFromCode(t){if(t=ug(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=ug(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]=NT(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]=NT(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=NT(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($T,"LanguageUtil");var gg=$T,VG=[{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}],wG={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},MG=["v1","v2","v3"],kG=["v4"],TR={zero:0,one:1,two:2,few:3,many:4,other:5},jG=o(()=>{let e={};return VG.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:wG[t.fc]}})}),e},"createRules"),BT=class BT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=xo.create("pluralResolver"),(!this.options.compatibilityJSON||kG.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=jG(),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=ug(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)=>TR[r]-TR[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!MG.includes(this.options.compatibilityJSON)}};o(BT,"PluralResolver");var _T=BT,ER=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=OG(e,t,n);return!a&&r&&Be(n)&&(a=FT(e,n,i),a===void 0&&(a=FT(t,n,i))),a},"deepFindWithDefaults"),LT=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),HT=class HT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xo.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:v,nestingPrefixEscaped:A,nestingSuffix:E,nestingSuffixEscaped:O,nestingOptionsSeparator:F,maxReplaces:j,alwaysFormat:G}=t.interpolation;this.escape=n!==void 0?n:LG,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?rl(a):s||"{{",this.suffix=l?rl(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=v?rl(v):A||rl("$t("),this.nestingSuffix=E?rl(E):O||rl(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=j||1e3,this.alwaysFormat=G!==void 0?G:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(A=>{if(A.indexOf(this.formatSeparator)<0){let j=ER(n,u,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,i,{...r,...n,interpolationkey:A}):j}let E=A.split(this.formatSeparator),O=E.shift().trim(),F=E.join(this.formatSeparator).trim();return this.format(ER(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),F,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(A=>LT(A),"safeValue")},{regex:this.regexp,safeValue:o(A=>this.escapeValue?LT(this.escape(A)):LT(A),"safeValue")}].forEach(A=>{for(l=0;a=A.regex.exec(t);){let E=a[1].trim();if(s=p(E),s===void 0)if(typeof g=="function"){let F=g(t,a,r);s=Be(F)?F:""}else if(r&&Object.prototype.hasOwnProperty.call(r,E))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=gR(s));let O=A.safeValue(s);if(t=t.replace(a[0],O),m?(A.regex.lastIndex+=s.length,A.regex.lastIndex-=a[0].length):A.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),v=`{${m[1]}`;u=m[0],v=this.interpolate(v,s);let A=v.match(/'/g),E=v.match(/"/g);(A&&A.length%2===0&&!E||E.length%2!==0)&&(v=v.replace(/'/g,'"'));try{s=JSON.parse(v),p&&(s={...p,...s})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,O),`${u}${g}${v}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!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=gR(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(HT,"Interpolator");var VT=HT,UG=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...u]=s.split(":"),p=u.join(":").trim().replace(/^'+|'+$/g,""),g=l.trim();n[g]||(n[g]=p),p==="false"&&(n[g]=!1),p==="true"&&(n[g]=!0),isNaN(p)||(n[g]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),ol=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(ug(i),r),t[s]=l),l(n)}},"createCachedFormatter"),GT=class GT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xo.create("formatter"),this.options=t,this.formats={number:ol((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:ol((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:ol((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:ol((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:ol((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ol(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=UG(u);if(this.formats[p]){let m=l;try{let v=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},A=v.locale||v.lng||r.locale||r.lng||i;m=this.formats[p](l,A,{...g,...r,...v})}catch(v){this.logger.warn(v)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(GT,"Formatter");var wT=GT,$G=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),WT=class WT extends al{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=xo.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 v=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?s[v]===void 0&&(s[v]=!0):(this.state[v]=1,g=!1,s[v]===void 0&&(s[v]=!0),a[v]===void 0&&(a[v]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{IG(u.loaded,[a],s),$G(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(WT,"Connector");var MT=WT,bR=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"),AR=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"),lg=o(()=>{},"noop"),BG=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Yf=class Yf extends al{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=AR(t),this.services={},this.logger=xo,this.modules={external:[]},BG(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=bR();this.options={...r,...this.options,...AR(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?xo.init(a(this.modules.logger),this.options):xo.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=wT);let m=new gg(this.options);this.store=new pg(this.options.resources,this.options);let v=this.services;v.logger=xo,v.resourceStore=this.store,v.languageUtils=m,v.pluralResolver=new _T(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)&&(v.formatter=a(g),v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new VT(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new MT(a(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(A){for(var E=arguments.length,O=new Array(E>1?E-1:0),F=1;F<E;F++)O[F-1]=arguments[F];t.emit(A,...O)}),this.modules.languageDetector&&(v.languageDetector=a(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=a(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new dg(this.services,this.options),this.translator.on("*",function(A){for(var E=arguments.length,O=new Array(E>1?E-1:0),F=1;F<E;F++)O[F-1]=arguments[F];t.emit(A,...O)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=lg),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=Qf(),p=o(()=>{let g=o((m,v)=>{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(v),i(m,v)},"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]:lg,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=Qf();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=lg),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"&&PR.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=Qf();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 v=r.options.keySeparator||".",A;return u.keyPrefix&&Array.isArray(s)?A=s.map(E=>`${u.keyPrefix}${v}${E}`):A=u.keyPrefix?`${u.keyPrefix}${v}${s}`:s,r.t(A,u)},"fixedT");return Be(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=Qf();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=Qf();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 gg(bR());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 Yf(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Yf(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 pg(this.store.data,r),a.services.resourceStore=a.store),a.translator=new dg(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(Yf,"I18n");var mg=Yf,q=mg.createInstance();q.createInstance=mg.createInstance;var _Y=q.createInstance,VY=q.dir,wY=q.init,MY=q.loadResources,kY=q.reloadResources,jY=q.use,UY=q.changeLanguage,$Y=q.getFixedT,BY=q.t,HY=q.exists,GY=q.setDefaultNamespace,WY=q.hasLoadedNamespace,KY=q.loadNamespaces,XY=q.loadLanguages;var jF=ie(KT()),UF=ie(YR()),Mg=ie(MF()),Je=require("@sap-ux/vocabularies-types/vocabularies/UI"),nu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Vg=ie(le());var se=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${Vg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Vg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Vg.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var U="#/definitions/",AW=[K.v4.FE_TEMPLATE_V4_LIST_REPORT,K.v4.FE_TEMPLATE_V4_ALP,K.v4.FE_TEMPLATE_V4_OBJECT_PAGE,K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],SW=["sap.fe.core","sap.fe.templates"],pl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),pr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function No(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,Mg.parse)(r.fileContent,r.dataSourceUri))}catch(a){return se(t,{severity:K.LogSeverity.Error,message:q.t("ANNOERR"),location:{path:q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,Mg.merge)(...n);i=(0,UF.convert)(r)}return i}o(No,"parseAndMergeAndConvert");var ul=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function uE(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(uE,"evaluateCommonLabel");function kg(e,t){let n=e.value;return e.$target&&(n=uE(e.$target.annotations,t,n)),n}o(kg,"getLabelForPropertyPath");function wg(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=uE(i.annotations,t,n)),n}o(wg,"getLabelForDataField");function PW(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 uE(a.annotations,t,s)}}}else return}o(PW,"getLabel");function kF(e,t,n){let i=wg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(kF,"getTitleForDataField");function yi(e,t){var s,l,u,p;let n="",i,r,a="";try{let g=PW(e.Label,t);switch(e.$Type){case Je.UIAnnotationTypes.DataField:n=kF(e,t,g);break;case Je.UIAnnotationTypes.DataFieldWithUrl:i=wg(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Je.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=wg(e,t),n=g||i||((l=(s=r.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((u=r.Target)==null?void 0:u.value.split("UI.v1.")[1]);break;case Je.UIAnnotationTypes.DataFieldForAction:case Je.UIAnnotationTypes.DataFieldWithAction:case Je.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,a=typeof e.Action=="string"?r.Action:(p=r.Action)==null?void 0:p.path,g?n=typeof g=="string"?g:a:n=a;break;case Je.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=wg(e,t),n=i||e.Value.path;break;case Je.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=kF(r,t,g);break;default:break}return n}catch{return n}}o(yi,"getDataFieldDescription");function dt(e){return e.replace("#","::").replace(/\//g,":2f")}o(dt,"prepareRef");function la(e){if(e){let t=`${K.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(la,"getPageTypeV2");function pE(e){if(e.name&&e.name!==K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${K.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return K.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return K.PageTypeV4.CustomPage}}o(pE,"getPageTypeV4");function CW(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(CW,"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 xW(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(xW,"getAnnotationFromMetaPath");function IW(e,t,n){var s,l;let i=e[e.length-1],r=xW(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(IW,"determineTargetAnnotation");function OW(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Je.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${K.UIVOCABULARY}`);return e}o(OW,"adjustKey");function NW(e,t,n,i,r=K.FioriElementsVersion.v2,a=!1){var m,v;let s=!1,l,u=i.split("/"),p=u.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=OW(t,u,a);let g=IW(u,n,e);if(g){let A=r===K.FioriElementsVersion.v2?"::":"#";t=CW(g,a).replace("#",A),l=(v=g.fullyQualifiedName)==null?void 0:v.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let A=r===K.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(A)}${A}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(NW,"getKeyAndEntityTypeOfReferenceFacet");function $F(e,t,n,i,r=K.FioriElementsVersion.v2,a=!1){var g,m,v;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((g=e.fullyQualifiedName)==null?void 0:g.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(v=e.fullyQualifiedName)==null?void 0:v.split("@")[0],p=t;if(e.$Type!==Je.UIAnnotationTypes.CollectionFacet&&"Target"in e){let A=ul(e.Target);if(!A){se(i,{severity:K.LogSeverity.Error,message:q.t("NOTARGET",{target:e.Target})});return}let{key:E,entityType:O,stopProcessing:F,namespace:j}=NW(n,l,p,A,r,a);if(F)return;l=E,p=O,u=j}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}o($F,"getSectionFacet");function LW(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(LW,"getDecodedPathElement");var dE=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),BF=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=LW(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=dE(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Lo=o((e,t,n,i,r=!1)=>BF(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),HF=o((e,t,n,i,r)=>{BF(e,t,i,r,n)},"setManifestSectionByPathV4");function gE(e){let t,n,i;switch(e.$Type){case Je.UIAnnotationTypes.DataField:t=ul(e.Value);break;case Je.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ul(e.Value);break;case Je.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${K.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Je.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${dt(e.Action)}`);break;case Je.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ul(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Je.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${dt(e.Action)}`);break;case Je.UIAnnotationTypes.DataFieldWithNavigationPath:i=ul(e.Value),n=ul(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(gE,"getSchemaKeyOfLineItemRecord");function RW(e,t,n){return e.includes(Je.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Je.UIAnnotationTerms.Chart:e.includes(Je.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Je.UIAnnotationTerms.Identification:n&&e.includes(Je.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Je.UIAnnotationTerms.LineItem:e.includes(Je.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Je.UIAnnotationTerms.FieldGroup:e.includes(Je.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Je.UIAnnotationTerms.DataPoint:e.includes(Je.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Je.UIAnnotationTerms.PresentationVariant:void 0}o(RW,"getUIAnnotationTerm");function FW(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?nu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?nu.CommunicationAnnotationTerms.Address:void 0}o(FW,"getCommunicationAnnotationTerm");function DW(e,t,n){return RW(e,t,n)||FW(e,t)}o(DW,"getAnnotationTerm");function _W(e,t,n,i,r){var p,g,m,v,A,E,O,F,j;let a=ii(K.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(DW(s,a,i)){case Je.UIAnnotationTerms.Chart:{n[s]={base:K.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.Identification:{n[s]={base:K.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.LineItem:{if(!s.includes(Je.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let G=s.split("::");G[G.length-1]=`@${Je.UIAnnotationTerms.LineItem}`,s=G.join("::")}n[s]={base:K.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.FieldGroup:{n[s]={base:K.FacetBase.Form},n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.DataPoint:{n[s]={base:K.FacetBase.DataPoint},n[s].Label=(A=t==null?void 0:t.Target)==null?void 0:A.$target.Title,n[s].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.PresentationVariant:{n[s]={base:K.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case nu.CommunicationAnnotationTerms.Contact:{n[s]={base:K.FacetBase.Contact},n[s].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case nu.CommunicationAnnotationTerms.Address:{n[s]={base:K.FacetBase.Address},n[s].target=(j=t==null?void 0:t.Target)==null?void 0:j.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:K.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",K.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(_W,"evaluateTargetAnnotation");function mE(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(mE,"getAnnotationPathUsingFullyQualifiedName");function hE(e,t,n,i,r,a=K.FioriElementsVersion.v2,s){var u;let l=$F(e,i,t,s,a,!1);if(l)switch(e.$Type){case Je.UIAnnotationTypes.ReferenceFacet:{_W(l,e,r,i,t);break}case Je.UIAnnotationTypes.CollectionFacet:{let p=mE(i,e.fullyQualifiedName),g=r[l.key]={base:K.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===K.FioriElementsVersion.v4&&se(s,{severity:K.LogSeverity.Error,message:q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{hE(m,t,n,i,g.facets,a,s)});break}}}o(hE,"addFacetToConfig");function jg(e,t,n=K.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ii(K.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{hE(m,t,g,e,r,n,i)})}return r}o(jg,"getObjectPageHeaderFacets");function Ug(e,t,n=K.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ii(K.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{hE(g,t,p,e,r,n,i)})}return r}o(Ug,"getObjectPageFacets");function yE(e){var t,n,i,r;if(e[K.ManifestSection.generic]&&Object.keys(e[K.ManifestSection.generic]).length>0||e[K.ManifestSection.ovp]&&Object.keys(e[K.ManifestSection.ovp]).length>0)return K.FioriElementsVersion.v2;{let a=(n=(t=e[K.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[K.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>AW.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>SW.indexOf(l)>-1)?K.FioriElementsVersion.v4:void 0}}o(yE,"getFEVersionFromManifest");function VW(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[K.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[K.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[K.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[K.ManifestSection.ui5].models[t].dataSource:void 0}o(VW,"getMainService");function GF(e){var i,r;let t=VW(e);if(!t)return K.OdataVersion.v2;let n=(i=e[K.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?K.OdataVersion.v4:K.OdataVersion.v2}o(GF,"getODataVersionFromManifest");function wW(e,t){var i,r;let n;if(e[K.ManifestSection.generic]){let a=e[K.ManifestSection.generic].pages;if(!a){se(t,{severity:K.LogSeverity.Error,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(la((i=l.component)==null?void 0:i.name)===K.PageTypeV2.AnalyticalListPage){n=K.TemplateType.AnalyticalListPageV2;break}else if(la((r=l.component)==null?void 0:r.name)===K.PageTypeV2.ListReport){n=K.TemplateType.ListReportObjectPageV2;break}}}else n||se(t,{severity:K.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:K.ManifestSection.generic}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return n}o(wW,"determineV2Template");function iu(e){var i,r,a,s;let t,n=pE(e);if(n===K.PageTypeV4.AnalyticalListPage)t=K.TemplateType.AnalyticalListPageV4;else if(n===K.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[K.ALPViewType.Primary]||l[K.ALPViewType.Secondary])?t=K.TemplateType.AnalyticalListPageV4:t=K.TemplateType.ListReportObjectPageV4}else n===K.PageTypeV4.ObjectPage?t=K.TemplateType.ListReportObjectPageV4:[K.PageTypeV4.CustomPage,K.PageTypeV4.FPMCustomPage].includes(n)&&(t=K.TemplateType.FreestylePageV4);return t}o(iu,"determineV4PageTemplateType");function MW(e){let t;for(let n in e){let i=e[n];if(t=iu(i),t)break}return t}o(MW,"determineV4TemplateFromPages");function kW(e,t){let n=e[K.ManifestSection.ui5].routing&&e[K.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return se(t,{severity:K.LogSeverity.Info,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing"]}}),K.TemplateType.ListReportObjectPageV4;let i=MW(n);return i||se(t,{severity:K.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:K.ManifestSection.ui5}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing","targets"]}}),i}o(kW,"determineV4Template");function vE(e,t,n){let i;return e[K.ManifestSection.ovp]?i=K.TemplateType.OverviewPageV2:t===K.FioriElementsVersion.v2?i=wW(e,n):t===K.FioriElementsVersion.v4&&(i=kW(e,n)),i}o(vE,"getTemplateTypeFromManifest");function fa(e,t,n){e!=null&&e.ID?(t.title=K.FACETTITLEPREFIX+e.ID,t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:n.replace(K.UIVOCABULARYALPHADOT,"")}])}o(fa,"addSectionTitle");function Ga(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(Ga,"addSectionDescription");function dl(e,t,n){var i,r;fa(e,t,n),Ga(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(dl,"addTargetTitleAndSectionDescription");function WF(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(WF,"addChartFacetID");function Ro(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[K.SchemaTag.isViewNode]=!0,i[K.SchemaTag.annotationPath]=t.annotationPath,dl(t,i,n),i}o(Ro,"createDefaultSection");function KF(e,t,n,i=K.FioriElementsVersion.v2,r=!1){var l,u;let a=ii(K.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let v=$F(m,e,t,n,i,!0);return v&&g.push(v),g},s)),s}}o(KF,"getObjectPageFacetSection");var Wa=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(),Wa(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),fE=o(e=>e===K.SchemaType.FreestylePage?K.PageTypeV2.CustomPage:e===K.SchemaType.FPMCustomPage?K.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Dt=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case K.SchemaType.Application:{i.filename="App",i.path=`./${K.DirName.Schemas}/${i.filename}`;break}case K.SchemaType.ListReport:case K.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:fE(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}case K.PageTypeV4.FPMCustomPage:case K.SchemaType.FPMCustomPage:{i.filename=n?`${K.SchemaType.FPMCustomPage}_${n}`:fE(K.SchemaType.FPMCustomPage),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}default:{i.filename=fE(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function $g(e,t,n,i){if(e===K.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o($g,"generatePageId");function TE(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split(U)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u]!==void 0)&&a.push(s)}return a}o(TE,"findMatchingKeysByAdditionalProperties");function jW(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split(U)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=TE(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(jW,"fillArrayFromAnyOfReference");function UW(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(U)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{jW(r,n,t,i)}),i.length===0))return;return i}o(UW,"fillArrayFromPropertyDefinition");function $W(e,t,n,i,r,a,s,l){var p,g,m,v;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let A=e[e.length-1];if(u.targetDefinition=t.definitions[A],(p=u==null?void 0:u.targetDefinition)!=null&&p.$ref||((g=u==null?void 0:u.targetDefinition)==null?void 0:g.type)==="array")return u=Fo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(F=>{F!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[F].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let E=A==null?void 0:A.split("<")[0],O=i||{};u.configObject=a.createInstance(s,E,O,(v=u==null?void 0:u.targetDefinition)==null?void 0:v.controlProperty)}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o($W,"determineNextDefinitionFromDefinitionArray");function Fo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Fo(e,t,n,i.items,r,a,s),l;let u=UW(i,n,e);if(u)return l=$W(u,e,t,n,r,a,s,i),l}o(Fo,"getNextTargetDefinition");var EE=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,jF.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Bg(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(Bg,"convertEnumToCSV");function Ki(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Ki,"convertActionKeyToStableId");function hn(e){return e==null?void 0:e.split(U)[1]}o(hn,"getDefinitionKey");function XF(e){return`#/definitions/${e}`}o(XF,"getDefinitionsRef");function Hg(e){return e instanceof Error?e.message:String(e)}o(Hg,"getErrorMessage");function zs(e,t){return e==null?void 0:e.includes(t)}o(zs,"isFeatureSupported");function Do(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Do,"updatePropertyIndices");function Gg(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(Gg,"getJSONPropertyByPath");function QF(e){return e=e.replace(K.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(QF,"removeNamespaces");function gl(e){return e=e.replace(K.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(gl,"replaceNamespaces");var Ao=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=ie(le());var Xi=ie(le());var zt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Wg=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Qn=o((e,t)=>{let n,i=Xi.FACETTITLEPREFIX;return t!==void 0&&t.includes(i)?n=t.split(i)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function BW(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(BW,"escapeId");var qF=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(qF||{}),zF=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(zF||{});function HW(e,t,n){let i;return e=e.map(function(r){if(r===Xi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Xi.PropertyName.sections)return i=t[a+1],t[a+1]=Qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(HW,"mapBreadcrumbs");var bE=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=HW(t,s,r)),s[0]===Xi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Xi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Xi.VOCWITHSLASH):t[0]===Xi.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,Xi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Xi.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,g=u.indexOf(":::");return u.startsWith("DataField")&&g>-1?(u=u.replace("/",":2f"),p=`${e}template:::TableColumn:::${u.substring(0,g)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${u.substring(g+3)}`):(u=u.replace("/","_"),p=`${e}${t.join("::")}-${u}`),BW(p)},"buildColumnControlId"),Qi=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function GW(e){let t=Xi.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(GW,"determinePattern");var AE=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split(U)[1]]:a,u=a.description?a.description:l.description,p=GW(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"),qn=o((e,t,n)=>{AE(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(qF);AE(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ri=o((e,t,n)=>{let i=Object.values(zF);AE(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function Ys(){}o(Ys,"doNotDelete");var BJ=ie(JF());var ZF=Symbol("specificationMetadataKey"),T=o(e=>Reflect.metadata(ZF,e),"syncRule");function zn(e,t){let n;return e&&(n=Reflect.getMetadata(ZF,e,t)),n}o(zn,"getReflectMetadata");var wr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),e0=Symbol("childId"),jt=o(e=>Reflect.metadata(e0,e),"childId"),Kg=o((e,t)=>Reflect.getMetadata(e0,e,t),"getChildId"),Xg=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),WW=Symbol("descriptionSrcURL"),Ne=o(e=>Reflect.metadata(WW,e),"descriptionSrcURL");var KW=Symbol("validityMetadataKey"),C=o(e=>Reflect.metadata(KW,e),"validity");function Qg(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(Qg,"getTextForDeprecated");var c0=ie(a0()),l0=ie(le());var f0=c0.default.change,s0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function u0(e,t){let n="";try{for(let i in s0)e[i]===void 0&&(e[i]=s0[i]);n=f0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(u0,"createChangeString");function to(e){try{return f0.parse(e)}catch{return!1}}o(to,"parseChangeString");function p0(e,t,n,i,r){let a=n.layer?n.layer===l0.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(p0,"fillFlexChangeContent");function d0(e,t){return u0(e,t)}o(d0,"exportToFlexChange");var Js=ie(le());function ml(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,a);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}o(ml,"importProperty");function qg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(se(i,{severity:Js.LogSeverity.Warning,message:Qg(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(qg,"checkDeprecatedProperties");function SE(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(U)[1]];return SE(n,t)}else return e.title?e.title.startsWith(Js.FACETTITLEPREFIX)?e.title.split(Js.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(SE,"getSectionTitle");function zg(e){let t=e.split(`${Js.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(zg,"getTargetFromCustomColumnRef");function _o(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(_o,"removeEmptyStructure");var Ut=require("@sap-ux/vocabularies-types/vocabularies/UI");var ua=require("@sap-ux/vocabularies-types/vocabularies/UI");function Yg(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(Yg,"replaceSpecialChars");var Zs=o(function(e){return Yg(QF(e))},"prepareId");function ZW(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(ZW,"evaluateConcat");function ec(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 ZW(e);if(e&&typeof e=="string")return Yg(e.replace(/ /g,"_"))}o(ec,"getStableIdPartFromValue");var g0=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"),pa=o(function(e){let t="";if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=g0(e),t;if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Zs(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=ec(e.Value)+"::"),t+=e.Action,Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataField)return t="DataField::",t+=ec(e.Value),Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=ec(e.Value)+"::",t+=g0(e),Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=ec(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=ec(e.Value),Zs(t)},"getStableIdPartFromDataField");var de=ie(le());var De=ie(le());var qi=require("@sap-ux/vocabularies-types/vocabularies/UI"),v0=require("path"),T0=ie(Qs());var Jg="ResponsiveTableWithMultiSelect<LineItems>",Zg="ResponsiveTableWithInlineDelete<LineItems>",e8="TreeTable<LineItems>",t8="AnalyticalTable<LineItems>",n8="GridTable<LineItems>",PE=[Jg,Zg,e8,t8,n8],m0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],h0="template::",em="template:::ObjectPageAction:::";function i8(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${U}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${U}${n}`},description:"Custom Columns"},e.definitions[t][De.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[De.SchemaTag.artifactType]=De.ArtifactType.Manifest)}o(i8,"addCustomColumnDefinition");function r8(e,t){let n;return e==="TableColumnActionIntentBased"?n=gE(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=dt(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===qi.UIAnnotationTypes.DataFieldForAction?n=dt(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=dt(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(r8,"getActionId");function CE(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=r8(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=yi(n.lineItemRecord,n.entityType);t.properties[l]={$ref:U+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=tc(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(CE,"handleActionRecord");function o8(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===qi.UIAnnotationTypes.DataFieldForAction||t.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===qi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(o8,"getColumnActionType");function a8(e,t){let n=[];if(!(e.$Type!==qi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),o8(t,e,n),n}o(a8,"getActionType");function E0(e,t,n){let i=gE(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:U+De.DefinitionName.TableColumn,description:yi(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,sm(r.properties[i],e.lineItemRecord),cm(e.lineItemRecord,r.properties,i)}}o(E0,"generateGenericColumn");function s8(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{CE(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&CE(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{CE(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":E0(i,t,r)}}o(s8,"handleAnyAction");function ru(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(ru,"retrieveNameWithoutVocabularyFromVisualization");function hl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=am(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},v=a8(g,r);v?v.forEach(A=>{s8(A,t,s,m,p,l,r)}):E0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${U}${a}`})}o(hl,"addLineItemsType");function c8(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(c8,"addListReportLeadingProperties");function l8(e,t,n,i){var s,l,u,p,g,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(a){let v=[];for(let A in a){let E=(m=a[A])==null?void 0:m.key;E!==void 0&&!v.includes(E)&&v.push(E)}da(v,r)}}o(l8,"addTabkeyEnum");function tm(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,T0.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("\\"+v0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),da(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(tm,"addFragmentEnum");function yl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){i8(e,a,s),c8(e,t,s),l8(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;tm(e,r,u,"fragmentName",s),tm(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),tm(e,r,u,"cellsFragmentName",s),tm(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(yl,"addTableColumnExtensions");function b0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(b0,"removeElementsFromEnum");function nm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=pr(n==null?void 0:n.fullyQualifiedName,qi.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${dt(s.value)}>`,p=no(s);s.type==="PropertyPath"&&(l=kg(s,n)),i.properties[s.value]={$ref:U+u},i.properties[s.value][De.SchemaTag.propertyIndex]=a,e.definitions[u]={type:"object",description:l,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[u][De.SchemaTag.dataType]=p,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.value,value:`${s.value}`}],e.definitions[u][De.SchemaTag.annotationPath]=`${i[De.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${U}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(nm,"addSelectionFields");function A0(e,t){for(let n of t.entityProperties)e.push(n.name)}o(A0,"addEntityPropertiesToEnum");function im(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(im,"isDraftEnabled");function S0(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(S0,"isEntityDeletable");function P0(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(P0,"isEntityUpdatable");function vl(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,u])=>{let p=u.$ref.split(U)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${U}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(vl,"addStandardHeaderActions");function C0(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(U)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${U}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(C0,"addStandardFooterActionsOP");function rm(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?q.t("NOUIANNOTATIONS",{entityType:t.name}):q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});se(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(rm,"getUIAnnotationForEntitySet");function om(e,t,n,i="string"){let r=e!==void 0&&(typeof e!="object"||e[t]!==void 0&&typeof e[t]!==i);return r&&se(n,{severity:De.LogSeverity.Error,message:q.t("TYPEERROR",{propertyName:t,expectedType:i})}),r}o(om,"hasPropertyTypeError");function f8(e,t,n,i){if(e===de.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ut.UIAnnotationTypes.DataField:case Ut.UIAnnotationTypes.DataFieldForAnnotation:case Ut.UIAnnotationTypes.DataFieldWithNavigationPath:case Ut.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===de.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ut.UIAnnotationTypes.DataField:case Ut.UIAnnotationTypes.DataFieldForAnnotation:case Ut.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(f8,"copyFieldProperties");function u8(e,t,n,i){let r=e===de.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===de.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(u8,"determineFieldDefinitionName");function p8(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][de.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][de.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][de.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][de.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(p8,"addKeysTagForDataField");function d8(e,t,n){if(e.$Type===Ut.UIAnnotationTypes.DataField||e.$Type===Ut.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ut.UIAnnotationTypes.DataFieldWithNavigationPath)p8(e,t,n);else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][de.SchemaTag.keys]=[{name:"Target",value:gl(e.Target.value)}],t.definitions[n][de.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][de.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][de.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][de.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][de.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][de.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(d8,"addKeysTagToField");function g8(e){var t,n;return e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Ut.UIAnnotationTypes.ConnectedFieldsType}o(g8,"isConnectedField");function m8(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===Ut.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let v=p[m];if(typeof v=="object"&&"$Type"in v){let A=u.findIndex(E=>E===m);A===-1&&(A=g,g++),xE(e,t,v,`ConnectedFields::${a.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(m8,"addConnectedFields");function x0(e,t,n){if(n)return n;let i=dt(t);return e.definitions[i].properties}o(x0,"getFieldsSchemaContainer");function xE(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){var E;let g=pa(n),m=s===de.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,v=u8(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===Ut.UIAnnotationTypes.DataFieldForAction||n.$Type===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===de.SectionType.Section){let O=x0(t,`${e}${de.DefinitionName.Actions}<${i}>`,u.actions),F=O[m]={$ref:`${U}${v}`};F[de.SchemaTag.propertyIndex]=parseInt(r)}}else{let O=x0(t,`${e}${de.DefinitionName.Fields}<${i}>`,u.fields);O[m]={$ref:`${U}${v}`,propertyIndex:parseInt(r)},g8(n)&&(A=m8(e,t,n,a,s))}t.definitions[v]={type:"object",properties:A,description:yi(n,a.entityType),additionalProperties:!1},d8(n,t,v),t.definitions[v][de.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[v][de.SchemaTag.annotationType]=n.$Type,t.definitions[v][de.SchemaTag.isViewNode]=!0,sm(t.definitions[v],n),f8(s,t,n,v),n.$Type===Ut.UIAnnotationTypes.DataFieldForAction&&((E=t.definitions)!=null&&E.FormAction)&&(t.definitions[v].$ref=`${U}${de.DefinitionName.FormAction}`,delete t.definitions[v].properties)}}o(xE,"addField");function h8(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(h8,"determineTargetIdOfForm");function y8(e,t,n,i,r,a){if(e.base===de.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&xE(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];xE(t,n,l,i,s,e,r)}}o(y8,"addFieldsToFormDefinition");function v8(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][de.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][de.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][de.SchemaTag.annotationPath]=pr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(v8,"addTagsToFormDefinition");function lm(e,t,n,i,r,a){if(!t.target)return;let s=h8(t),l=dt(`${e}${de.DefinitionName.Form}<${s}>`),u=dt(`${e}${de.DefinitionName.Fields}<${s}>`),p=dt(`${e}${de.DefinitionName.Actions}<${s}>`),g=!(t.base===de.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${U}${l}`},e===de.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${U}${p}`},fields:{$ref:`${U}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][de.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${U}${u}`}},description:"Form",additionalProperties:!1},v8(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][de.SchemaTag.isViewNode]=!0,y8(t,e,i,s,r,g),s}o(lm,"handleForm");function IE(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(IE,"replaceAlias");function fm(e,t){let n=IE(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(fm,"getActionNameAndId");function I0(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===de.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:I0(a.pages,t)}}o(I0,"isFirstObjectPage");function um(e,t,n,i,r){var g,m;e.definitions[de.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${de.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${U}${de.DefinitionName.ObjectPageFooter}`},e.definitions[de.DefinitionName.ObjectPageFooter].properties[de.PropertyName.actions]={$ref:`${U}${de.DefinitionName.FooterActions}`};let a=e.definitions[de.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[de.SchemaTag.isViewNode]=!0;let s=ii(de.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let v=p.fullyQualifiedName.replace(`@${Ut.UIAnnotationTerms.Identification}`,`/@${Ut.UIAnnotationTerms.Identification}`);a[de.SchemaTag.annotationPath]=`/${v}`,i(u,e,a,p)}else u&&(a[de.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${Ut.UIAnnotationTerms.Identification}`);n===de.FioriElementsVersion.v2&&I0(r,t)&&!im(l)&&C0(e,a),delete e.definitions[de.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${de.DefinitionName.ObjectPageFooter}<${de.DefinitionName.ObjectPageFooterActions}>`]}o(um,"addFooterActions");function pm(e,t,n,i,r,a=!1){var m,v;let s=de.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[de.DefinitionName.ObjectPageHeader].properties[de.PropertyName.actions]={$ref:`${U}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[de.SchemaTag.isViewNode]=!0;let p=ii(de.UIVOCABULARY,n.serviceAVT),g=p&&((v=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:v.Identification);g?u[de.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${Ut.UIAnnotationTerms.Identification}`,`/@${Ut.UIAnnotationTerms.Identification}`):t&&(u[de.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ut.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&vl(e,!0,l)}o(pm,"addHeaderActions");function dm(e,t){e.properties.header={$ref:`${U}${de.DefinitionName.ObjectPageHeader}`},e.definitions[de.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${de.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[de.DefinitionName.ObjectPageHeader][de.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ut.UIAnnotationTerms.HeaderInfo}`)}o(dm,"addCommonHeaderSchema");function O0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(O0,"determineEntitySetOfEntityType");var dr=require("@sap-ux/vocabularies-types/vocabularies/UI");var et=ie(le());function da(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(da,"addEnumToSchema");function ou(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)}}da(r,n)}o(ou,"addEnumForValidAnnotations");function Ka(e,t,n){let i=t.definitions[n].properties[et.SchemaTag.annotationPath],r=[dr.UIAnnotationTerms.SelectionVariant,dr.UIAnnotationTerms.SelectionPresentationVariant];ou(e,r,i)}o(Ka,"addEnumForSingleTabVariant");function N0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[dr.UIAnnotationTerms.SelectionVariant,dr.UIAnnotationTerms.SelectionPresentationVariant];ou(n.entityType,r,i)}o(N0,"addEnumForMultiTabVariant");function L0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),da(r,i)}o(L0,"addEnumForVariantEntitySet");function R0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[dr.UIAnnotationTerms.FieldGroup];ou(e,r,i)}o(R0,"addEnumFieldGroupAnnotationPath");function F0(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[et.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${U}${et.DefinitionName.RelatedFacetKeys}`},l]}}}}o(F0,"addDefinitionForRelatedFacetKeys");function nc(e){return e.replace("#","::")}o(nc,"getFacetKeyInSchema");function mm(e,t){return`${e}<${nc(t)}>`}o(mm,"getFacetDefinitionKey");function Et(e,t,n,i=!0){let r=t;if(i&&(r=mm(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(Et,"parseSchemaDefinition");function gm(e,t,n){let i;return t===et.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${dr.UIAnnotationTerms.LineItem}`?i=`${U}${n}`:(i=`${U}${n}<${t}>`,Et(n,t,e,!0)),i}o(gm,"getCustomExtensionDefinitionName");function am(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][et.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=gm(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?et.DefinitionName.ObjectPageToolBar:et.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${et.DefinitionName.Actions}<${dt(r)}>`;t.definitions[p].properties.actions.$ref=U+g;let m=r.startsWith(et.DefinitionName.LineItems)?et.DefinitionName.Actions:et.DefinitionName.ObjectPageToolBarActions,v;try{if(v=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),v.properties={},v.additionalProperties=!1,s){let O=gm(t,r,s);v.additionalProperties={$ref:O}}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let A,E;if(r===et.DefinitionName.LineItems&&t.properties.footer){E=`${et.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${U}${E}`;try{t.definitions[E]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.GenericFooter]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:et.DefinitionName.GenericFooter}))}let O=`${et.DefinitionName.FooterActions}<${dt(r)}>`;t.definitions[E].properties.actions.$ref=U+O,A=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.Actions])),A.properties={},A.additionalProperties=!1}return n&&(l=pr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][et.SchemaTag.annotationPath]=l,A&&(t.definitions[E][et.SchemaTag.annotationPath]=l))),{actions:v,footerActions:A,lineItemPath:l}}o(am,"addCommonLineItemDefinitions");function D0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(D0,"getDataTypeFromAnnotation");function ic(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=D0(e.$Type)),t}o(ic,"determineDataTypeOfTarget");function no(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=ic((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=D0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(no,"determineDataType");function sm(e,t){let n=no(t);n&&(e[et.SchemaTag.dataType]=n)}o(sm,"addDataTypeToDefinition");function vi(e,t){return`${U}${mm(e,t)}`}o(vi,"getFacetDefinitionLink");function Xa(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${U}${i}`}o(Xa,"addDefinitionRef");function hm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${et.UIVOCABULARY}`);t=`/${n}/@${et.UIVOCABULARY}${i}`}return t}o(hm,"getFacetAnnotationPath");function au(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:vi(a?u:l,t)};let p=Et(a?u:l,t,i,!0);fa(e,p,t),Ga(e,p,t),p[et.SchemaTag.annotationPath]=e.annotationPath,p[et.SchemaTag.isViewNode]=!0}o(au,"handleAddressContact");function OE(e,t,n){typeof e=="object"&&(e[t]=n)}o(OE,"updateSchemaProperty");function Tl(e,t,n=dt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${et.DefinitionName.Fields4Dialog}${n}`];OE(r.properties.fields.items,"enum",i)}o(Tl,"addFieldsType");function T8(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(T8,"findFirstSchemaDefinitionKey");function ym(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=hn(t.$ref),m=(p=e.definitions)==null?void 0:p[g];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,u=T8(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(ym,"getEnumEntry");function Qa(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=ym(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];OE(l,"oneOf",r)}else OE(a,"oneOf",r)}o(Qa,"addDescriptiveEnumDefinition");function tc(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(tc,"getActionKey");function cm(e,t,n){var i,r,a;try{if(e.Value)t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.value,value:ec(e.Value)}];else if(e.$Type===dr.UIAnnotationTypes.DataFieldWithAction||e.$Type===dr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=tc(e.Action,!0);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.action,value:s}],l&&(t[n][et.SchemaTag.target]=l)}else if(e.$Type===dr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=tc(e.Target.value,!1);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.target,value:gl(s)}],t[n][et.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===dr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===dr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=tc(s,!0);t[n][et.SchemaTag.keys]=[{name:"SemanticObject",value:e[et.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][et.SchemaTag.target]=u)}}catch{return}}o(cm,"addKeyToDefinition");var El=ie(le());var _0=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var w0="1.108.48";var M0={name:"@sap/ux-specification",version:w0,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/to-json-schema.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.33.4","@sap-ux/vocabularies-types":"0.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.9.11","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.108.48","@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.7.9",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.1","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var qa=class qa{constructor(){qa.distTagsOfSpec.length===0&&(qa.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){qa.distTagsOfSpec=[]}getSpecVersion(){return w0}getDistTagsOfVersion(){let t=[],n=_0,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let r=q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});se(n,{severity:El.LogSeverity.Info,message:r,location:{path:El.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(qa.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=q.t("WRONGMINUI5VERSION",{minUI5Version:t});se(n,{severity:El.LogSeverity.Warning,message:r,location:{path:El.MANIFESTPATH}})}}};o(qa,"DistTagEvaluator"),qa.distTagsOfSpec=[];var su=qa;var fe=ie(le());var _n=ie(le());var Ti=ie(le());function k0(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(k0,"getCustomPageFullName");function A8(e){let n=k0(e).split(".");return n[n.length-1]}o(A8,"getCustomPageName");function j0(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||Ti.ViewTypes.XML}o(j0,"getViewType");function S8(e,t){return j0(e,t).toLowerCase()}o(S8,"getViewTypeExtension");function P8(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=k0(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(P8,"getViewPath");function C8(e,t){let n=e.entitySet||A8(e),{viewPath:i,fileName:r}=P8(e,t,[n]),a=S8(e,t);return[...i,`${r}.view.${a}`].join("/")}o(C8,"getCustomPagePath");var NE=class NE{constructor(t,n,i,r){this.unhandledControllers=[];let a=Dt(Ti.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===Ti.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Ti.DirName.Pages}/${s}.json`]=u)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[Ti.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=j0(t,this.app)===Ti.ViewTypes.XML&&!!t.config;if(t.pageType===Ti.PageTypeV4.CustomPage||t.pageType===Ti.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Dt(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=Dt(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Dt(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Ti.PageTypeV4.CustomPage||t.pageType===Ti.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=C8(t,this.app);n.$filePath=i}};o(NE,"AppProvider");var za=NE;var lt=ie(le());var bl=ie(le());var $n=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),U0=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),$0=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function LE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(LE,"getNewPageTemplate");function x8(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(x8,"findPageInManifest");function I8(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=LE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:LE(e[t].pageType)}),!Array.isArray(n.pages))){let i=x8(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=LE(e[t].pageType)),RE(t,e,i)}}o(I8,"transformPageFromAssociation");function O8(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)===bl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===bl.PageTypeV2.ListReport||n.pageType===bl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(O8,"deletePage");function RE(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===bl.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)I8(t,r,n);Array.isArray(n.pages)||O8(n,t,i)}}o(RE,"transformPageToNewManifestV2");var x1=ie(Qs());var EA={};Ks(EA,{ALPAnalyticalTable:()=>Tb,ALPGridTable:()=>vb,ALPResponsiveTable:()=>yb,Action:()=>Sb,AnalyticalCard:()=>xl,AnalyticalCardSettings:()=>bm,AnalyticalCardSettingsv4:()=>ME,AnalyticalListPageFilterBar:()=>KE,AnalyticalTable:()=>hb,BaseCustomSection:()=>ju,ChartSettings:()=>$b,ChartSettingsType:()=>DE,CommonCardSettings:()=>es,CommonFilterBar:()=>Tu,CommonHeaderFacetSettings:()=>dc,CommonTableSettings:()=>rs,CommonTableSettingsForSections:()=>vc,CreateWithFilters:()=>lb,CustomCard:()=>VE,DataLoadSettings:()=>ub,DateRange:()=>BE,DefaultDateRange:()=>HE,DefaultSpanObject:()=>_E,FRAGMENT_DEFINITION:()=>wo,Field:()=>$E,FieldForAction:()=>YE,Fields4Dialog:()=>pb,Fields4DialogOP:()=>gA,FooterAction:()=>Cb,FormAction:()=>zE,GlobalChartSettings:()=>pA,GlobalTableSettings:()=>vA,GridTable:()=>Eb,HeaderActionStandard:()=>Lb,HeaderSections:()=>qb,KPISettings:()=>Bb,LinkListCardSettings:()=>jE,LinklistCard:()=>hu,ListCard:()=>Cl,ListCardSettings:()=>wE,ListReportFilterBar:()=>XE,MultiEdit:()=>fb,ObjectPageAnalyticalTable:()=>mA,ObjectPageChart:()=>uA,ObjectPageCustomSectionFragment:()=>Uu,ObjectPageCustomSectionView:()=>$u,ObjectPageFooterAction:()=>Yb,ObjectPageFooterActionStandard:()=>Fb,ObjectPageGridTable:()=>hA,ObjectPageHeader:()=>Hb,ObjectPageHeaderAction:()=>Gb,ObjectPageHeaderActionStandard:()=>Rb,ObjectPageHeaderSectionAddress:()=>Qb,ObjectPageHeaderSectionChart:()=>Kb,ObjectPageHeaderSectionDataPoint:()=>Xb,ObjectPageHeaderSectionForm:()=>Wb,ObjectPageLayout:()=>Zb,ObjectPageResponsiveTable:()=>Tc,ObjectPageSectionAddressV2:()=>rA,ObjectPageSectionChartV2:()=>nA,ObjectPageSectionContactV2:()=>oA,ObjectPageSectionFormV2:()=>tA,ObjectPageSectionTableV2:()=>iA,ObjectPageSectionV2:()=>eA,ObjectPageSubSectionChartV2:()=>cA,ObjectPageSubSectionContactV2:()=>lA,ObjectPageSubSectionFormV2:()=>sA,ObjectPageSubSectionTableV2:()=>fA,ObjectPageSubSectionV2:()=>aA,ObjectPageToolBarAction:()=>TA,ObjectPageTreeTable:()=>yA,QuickVariantSelection:()=>db,QuickVariantSelectionOP:()=>dA,QuickVariantSelectionX:()=>gb,ResponsiveTable:()=>cc,SAP_UI_TABLE:()=>Om,SaveAndEditOP:()=>Nb,SelectionFieldDateSettings:()=>GE,SelectionFields:()=>WE,Share:()=>xb,ShareOP:()=>Ib,StackCard:()=>mu,StackCardSettings:()=>kE,TableALP:()=>Rl,TableCard:()=>Il,TableCardSettings:()=>UE,TableColumn:()=>Vb,TableColumnAction:()=>qm,TableColumnActionIntentBased:()=>wb,TableCustomColumn:()=>Mb,ToolBar:()=>jb,ToolBarAction:()=>Pb,TreeTable:()=>mb,UpAndDownNavigationOP:()=>Ob,buildIntentBasedActionId:()=>Db,deleteColumnFromFragment:()=>Rm,deleteType:()=>Dl,exportColorPalette:()=>W0,exportCreateParametersFields:()=>jm,exportCustomColumnsToFragment:()=>sb,exportDateSettingsField:()=>q0,exportDefaultSpan:()=>K0,exportType:()=>Fl,getChartSectionControlId:()=>b1,getContactSubSectionControlId:()=>S1,getCustomColumnPath:()=>Fm,getFormSectionControlId:()=>E1,getRootCustomColumnFromFragmentJSON:()=>Au,getSectionControlId:()=>hc,getSmartChartControlId:()=>Ru,getSmartTableControlId:()=>sc,getSubSectionControlId:()=>A1,getTableSectionControlId:()=>T1,importCreateParameters:()=>km,importDateSettings:()=>QE});var Yn=ie(le());var je=o(e=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),ro=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),B0=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),H0=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var En=o(()=>Yn.ManifestSection.ovp,"getOVPsettingPath"),Ce=o(e=>{let t=[Yn.ManifestSection.ovp];return e.forEach(n=>{n in Yn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var rc=o((e,t)=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Em=o(e=>{let t=[Yn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ni=o(e=>{let t=[];return t.push(Em(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),oc=o(e=>Ni(e)+"/tableSettings","getGlobalTableSettingsPathV2"),oo=o((e,t,n)=>{let i=[];i.push(Em(e));let r=n.replace(Yn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Mr=o((e,t,n)=>oo(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),G0=o((e,t,n)=>oo(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),FE=o(()=>`sap.ui5/extends/extensions/${Yn.v2.SAPUI5_VIEW_EXTENSION}/${Yn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),ga=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),`${FE()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Tm=class Tm{};o(Tm,"ApplicationV2"),h([jt("settings")],Tm.prototype,"settings",2);var vm=Tm,io=class io{};o(io,"AppSettings"),h([T({manifest:{path:o(()=>"sap.app","path")}})],io.prototype,"title",2),h([T({manifest:{path:o(()=>"sap.app","path")}})],io.prototype,"description",2),h([T({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.50.0"})],io.prototype,"flexibleColumnLayout",2),h([T({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.46.0"})],io.prototype,"forceGlobalRefresh",2),h([T({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.74.0"})],io.prototype,"tableColumnVerticalAlignment",2),h([T({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"}),Ne("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],io.prototype,"flexEnabled",2),h([T({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],io.prototype,"draftDiscardConfirmationSettings",2),h([T({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],io.prototype,"statePreservationMode",2);var Ya=io;var cu=ie(le());function N8(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=cu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=cu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:cu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(N8,"importColorPalette");function W0(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===cu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(W0,"exportColorPalette");function K0(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(K0,"exportDefaultSpan");var Am=class Am{};o(Am,"ChartSettingsType"),h([T({manifest:{path:o(()=>En()+"/chartSettings","path")}})],Am.prototype,"showDataLabel",2);var DE=Am,Ja=class Ja{};o(Ja,"DefaultSpanObject"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"cols",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"rows",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"showOnlyHeader",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"minimumTitleRow",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"minimumSubTitleRow",2);var _E=Ja,Xt=class Xt{};o(Xt,"CommonCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"entitySet",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"title",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"subTitle",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"annotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"dataPointAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"selectionPresentationAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"kpiAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"category",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"dynamicSubtitleAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"valueSelectionInfo",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showFilterInHeader",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"sortBy",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"sortOrder",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"identificationAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"selectionAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"presentationAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"enableLocaleCurrencyFormatting",2),h([T({manifest:{path:o(t=>Ce(t),"path"),export:K0}})],Xt.prototype,"defaultSpan",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"requireAppAuthorization",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showSortingInHeader",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"tabs",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"addODataSelect",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showRefresh",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"customParams",2);var es=Xt,Al=class Al{};o(Al,"CustomCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Al.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Al.prototype,"template",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Al.prototype,"settings",2);var VE=Al,Za=class Za extends es{};o(Za,"ListCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Za.prototype,"showLineItemDetail",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Za.prototype,"imageSupported",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Za.prototype,"enableAddToInsights",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Za.prototype,"listFlavor",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Za.prototype,"listType",2);var wE=Za,lu=class lu{};o(lu,"ListCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],lu.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],lu.prototype,"template",2);var Cl=lu,ao=class ao extends es{};o(ao,"AnalyticalCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"chartAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"ignoreSapText",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"enableAddToInsights",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"navigation",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"valueSelectionInfo",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"chartProperties",2),h([T({manifest:{path:o(t=>Ce(t),"path"),import:N8,export:W0}})],ao.prototype,"colorPalette",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"bEnableStableColors",2);var bm=ao,Sm=class Sm extends bm{};o(Sm,"AnalyticalCardSettingsv4"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Sm.prototype,"measureAggregate",2);var ME=Sm,fu=class fu{};o(fu,"AnalyticalCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],fu.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],fu.prototype,"template",2);var xl=fu,Sl=class Sl extends es{};o(Sl,"StackCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"itemText",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"objectStreamCardsNavigationProperty",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"objectStreamCardsSettings",2);var kE=Sl,uu=class uu{};o(uu,"StackCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],uu.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],uu.prototype,"template",2);var mu=uu,Pl=class Pl extends es{};o(Pl,"LinkListCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"listFlavor",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"headerAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"staticContent",2);var jE=Pl,pu=class pu{};o(pu,"LinklistCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],pu.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],pu.prototype,"template",2);var hu=pu,du=class du extends es{};o(du,"TableCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],du.prototype,"showLineItemDetail",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],du.prototype,"enableAddToInsights",2);var UE=du,gu=class gu{};o(gu,"TableCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],gu.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],gu.prototype,"template",2);var Il=gu;var X0=ie(le());var L8=o((e,t,n,i,r)=>{let a=Qn(n[1],r),s=n.slice(-1)[0];return zt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Pm=class Pm{};o(Pm,"Field"),h([T({flex:{controlId:L8,controlType:o(()=>X0.ControlType.GroupElement,"controlType")},generate:mt})],Pm.prototype,"visible",2);var $E=Pm;var ac=ie(le());function QE(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(QE,"importDateSettings");function R8(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(R8,"importDateSettingsField");function q0(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(q0,"exportDateSettingsField");var Ol=class Ol{};o(Ol,"DateRange"),h([T({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],Ol.prototype,"useDateRange",2),h([T({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path"),import:QE,export:Bg}}),C({since:"1.77.0"})],Ol.prototype,"selectedValues",2),h([T({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],Ol.prototype,"exclude",2);var BE=Ol,Cm={controlId:zt,controlType:o(()=>ac.ControlType.SmartFilterBar,"controlType")},yu={path:o((e,t,n)=>`${je(e)}${ac.DATESETTINGSPATH}/fields/${n}`,"path")},Q0={...yu,import:R8,export:q0},xm=class xm{};o(xm,"DefaultDateRange"),h([T({manifest:yu}),C({since:"1.90.0"})],xm.prototype,"operation",2);var HE=xm,ts=class ts{};o(ts,"SelectionFieldDateSettings"),h([T({manifest:Q0}),C({since:"1.77.0"})],ts.prototype,"selectedValues",2),h([T({manifest:yu}),C({since:"1.77.0"})],ts.prototype,"exclude",2),h([T({manifest:yu}),C({since:"1.77.0"})],ts.prototype,"customDateRangeImplementation",2),h([T({manifest:Q0}),C({since:"1.77.0"})],ts.prototype,"filter",2),h([T({manifest:yu}),C({since:"1.90.0"})],ts.prototype,"defaultValue",2);var GE=ts,qE=class qE{};o(qE,"SelectionFields");var WE=qE,so=class so{};o(so,"CommonFilterBar"),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.38.0"})],so.prototype,"smartVariantManagement",2),h([T({flex:Cm}),C({since:"1.40.0"})],so.prototype,"liveMode",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.48.0"})],so.prototype,"variantManagementHidden",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.52.0"})],so.prototype,"subTitleIfVariantMgmtHidden",2),h([T({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:QE}}),C({since:"1.77.0"})],so.prototype,"dateSettings",2),h([T({flex:Cm}),C({since:"1.28.0"})],so.prototype,"showClearOnFB",2),h([T({flex:Cm}),C({since:"1.38.0"})],so.prototype,"showFilterConfiguration",2),h([T({flex:Cm}),C({since:"1.28.0"})],so.prototype,"showRestoreOnFB",2);var Tu=so,vu=class vu extends Tu{};o(vu,"AnalyticalListPageFilterBar"),h([T({manifest:{path:o(t=>je(t),"path")}})],vu.prototype,"showGoButtonOnFilterBar",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.60.0"})],vu.prototype,"filterDefaultsFromSelectionVariant",2);var KE=vu,Im=class Im extends Tu{};o(Im,"ListReportFilterBar"),h([T({manifest:{path:o(t=>je(t),"path")}}),Ne("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),C({since:"1.86.0"})],Im.prototype,"annotationPath",2);var XE=Im;var JE=ie(le());var F8=o((e,t,n,i,r)=>{if(i()===JE.ControlType.Button){let a=n[n.length-1],s=Qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return zt(e,t)},"getFormActionButtonId"),Vo={controlId:F8,controlType:o(()=>JE.ControlType.Button,"controlType")},ns=class ns{};o(ns,"FormAction"),h([T({flex:Vo,generate:mt})],ns.prototype,"visible",2),h([T({flex:Vo})],ns.prototype,"tooltip",2),h([T({flex:Vo})],ns.prototype,"icon",2),h([T({flex:Vo})],ns.prototype,"activeIcon",2),h([T({flex:Vo})],ns.prototype,"type",2);var zE=ns,is=class is{};o(is,"FieldForAction"),h([T({flex:Vo,generate:mt})],is.prototype,"visible",2),h([T({flex:Vo})],is.prototype,"tooltip",2),h([T({flex:Vo})],is.prototype,"icon",2),h([T({flex:Vo})],is.prototype,"activeIcon",2),h([T({flex:Vo}),C({since:"1.73.0"})],is.prototype,"type",2);var YE=is;var bt=ie(le()),co=ie(Qs());var nb=require("path"),z8=ie(le()),c1=ie(s1()),l1=require("fs");var Y8=(0,nb.join)(__dirname,"templates");var J8=o((e,t)=>{let n=(0,l1.readFileSync)(e,"utf8");return(0,c1.render)(n,t)},"renderTemplate");var ib=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 J8((0,nb.join)(Y8,t+".xml"),n)},"getSingleColumnContent"),rb=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=ib(i,t);n=n+`
|
|
288
|
+
}`;var Ze=LO(function(){return St(x,Oe+"return "+ee).apply(e,L)});if(Ze.source=ee,pT(Ze))throw Ze;return Ze}o(z4,"template");function Y4(c){return Ot(c).toLowerCase()}o(Y4,"toLower");function J4(c){return Ot(c).toUpperCase()}o(J4,"toUpper");function Z4(c,f,d){if(c=Ot(c),c&&(d||f===e))return jx(c);if(!c||!(f=sr(f)))return c;var y=Yr(c),b=Yr(f),x=Ux(y,b),L=$x(y,b)+1;return $a(y,x,L).join("")}o(Z4,"trim");function eB(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.slice(0,Hx(c)+1);if(!c||!(f=sr(f)))return c;var y=Yr(c),b=$x(y,Yr(f))+1;return $a(y,0,b).join("")}o(eB,"trimEnd");function tB(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.replace(pv,"");if(!c||!(f=sr(f)))return c;var y=Yr(c),b=Ux(y,Yr(f));return $a(y,b).join("")}o(tB,"trimStart");function nB(c,f){var d=D,y=ut;if(mn(f)){var b="separator"in f?f.separator:b;d="length"in f?Ye(f.length):d,y="omission"in f?sr(f.omission):y}c=Ot(c);var x=c.length;if(Kc(c)){var L=Yr(c);x=L.length}if(d>=x)return c;var R=d-Xc(y);if(R<1)return y;var M=L?$a(L,0,R).join(""):c.slice(0,R);if(b===e)return M+y;if(L&&(R+=M.length-R),dT(b)){if(c.slice(R).search(b)){var Y,J=M;for(b.global||(b=Nv(b.source,Ot(sx.exec(b))+"g")),b.lastIndex=0;Y=b.exec(J);)var ee=Y.index;M=M.slice(0,ee===e?R:ee)}}else if(c.indexOf(sr(b),R)!=R){var ge=M.lastIndexOf(b);ge>-1&&(M=M.slice(0,ge))}return M+y}o(nB,"truncate");function iB(c){return c=Ot(c),c&&Pe.test(c)?c.replace(me,R2):c}o(iB,"unescape");var rB=Zc(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),hT=RI("toUpperCase");function NO(c,f,d){return c=Ot(c),f=d?e:f,f===e?x2(c)?_2(c):h2(c):c.match(f)||[]}o(NO,"words");var LO=nt(function(c,f){try{return or(c,e,f)}catch(d){return pT(d)?d:new We(d)}}),oB=ea(function(c,f){return Or(f,function(d){d=Co(d),Jo(c,d,fT(c[d],c))}),c});function aB(c){var f=c==null?0:c.length,d=Ve();return c=f?fn(c,function(y){if(typeof y[1]!="function")throw new Nr(r);return[d(y[0]),y[1]]}):[],nt(function(y){for(var b=-1;++b<f;){var x=c[b];if(or(x[0],this,y))return or(x[1],this,y)}})}o(aB,"cond");function sB(c){return Rk(Rr(c,p))}o(sB,"conforms");function yT(c){return function(){return c}}o(yT,"constant");function cB(c,f){return c==null||c!==c?f:c}o(cB,"defaultTo");var lB=DI(),fB=DI(!0);function Gi(c){return c}o(Gi,"identity");function vT(c){return lI(typeof c=="function"?c:Rr(c,p))}o(vT,"iteratee");function uB(c){return uI(Rr(c,p))}o(uB,"matches");function pB(c,f){return pI(c,Rr(f,p))}o(pB,"matchesProperty");var dB=nt(function(c,f){return function(d){return $f(d,c,f)}}),gB=nt(function(c,f){return function(d){return $f(c,d,f)}});function TT(c,f,d){var y=Xn(f),b=$d(f,y);d==null&&!(mn(f)&&(b.length||!y.length))&&(d=f,f=c,c=this,b=$d(f,Xn(f)));var x=!(mn(d)&&"chain"in d)||!!d.chain,L=na(c);return Or(b,function(R){var M=f[R];c[R]=M,L&&(c.prototype[R]=function(){var Y=this.__chain__;if(x||Y){var J=c(this.__wrapped__),ee=J.__actions__=$i(this.__actions__);return ee.push({func:M,args:arguments,thisArg:c}),J.__chain__=Y,J}return M.apply(c,_a([this.value()],arguments))})}),c}o(TT,"mixin");function mB(){return Kn._===this&&(Kn._=U2),this}o(mB,"noConflict");function ET(){}o(ET,"noop");function hB(c){return c=Ye(c),nt(function(f){return dI(f,c)})}o(hB,"nthArg");var yB=Yv(fn),vB=Yv(_x),TB=Yv(Av);function RO(c){return rT(c)?Sv(Co(c)):Qk(c)}o(RO,"property");function EB(c){return function(f){return c==null?e:Bs(c,f)}}o(EB,"propertyOf");var bB=VI(),AB=VI(!0);function bT(){return[]}o(bT,"stubArray");function AT(){return!1}o(AT,"stubFalse");function SB(){return{}}o(SB,"stubObject");function PB(){return""}o(PB,"stubString");function CB(){return!0}o(CB,"stubTrue");function xB(c,f){if(c=Ye(c),c<1||c>Re)return[];var d=Mt,y=pi(c,Mt);f=Ve(f),c-=Mt;for(var b=xv(y,f);++d<c;)f(d);return b}o(xB,"times");function IB(c){return Ke(c)?fn(c,Co):cr(c)?[c]:$i(YI(Ot(c)))}o(IB,"toPath");function OB(c){var f=++k2;return Ot(c)+f}o(OB,"uniqueId");var NB=Xd(function(c,f){return c+f},0),LB=Jv("ceil"),RB=Xd(function(c,f){return c/f},1),FB=Jv("floor");function DB(c){return c&&c.length?Ud(c,Gi,Mv):e}o(DB,"max");function _B(c,f){return c&&c.length?Ud(c,Ve(f,2),Mv):e}o(_B,"maxBy");function VB(c){return Mx(c,Gi)}o(VB,"mean");function wB(c,f){return Mx(c,Ve(f,2))}o(wB,"meanBy");function MB(c){return c&&c.length?Ud(c,Gi,$v):e}o(MB,"min");function kB(c,f){return c&&c.length?Ud(c,Ve(f,2),$v):e}o(kB,"minBy");var jB=Xd(function(c,f){return c*f},1),UB=Jv("round"),$B=Xd(function(c,f){return c-f},0);function BB(c){return c&&c.length?Cv(c,Gi):0}o(BB,"sum");function HB(c,f){return c&&c.length?Cv(c,Ve(f,2)):0}return o(HB,"sumBy"),P.after=f$,P.ary=cO,P.assign=Y$,P.assignIn=AO,P.assignInWith=ag,P.assignWith=J$,P.at=Z$,P.before=lO,P.bind=fT,P.bindAll=oB,P.bindKey=fO,P.castArray=A$,P.chain=oO,P.chunk=Rj,P.compact=Fj,P.concat=Dj,P.cond=aB,P.conforms=sB,P.constant=yT,P.countBy=$U,P.create=e4,P.curry=uO,P.curryRight=pO,P.debounce=dO,P.defaults=t4,P.defaultsDeep=n4,P.defer=u$,P.delay=p$,P.difference=_j,P.differenceBy=Vj,P.differenceWith=wj,P.drop=Mj,P.dropRight=kj,P.dropRightWhile=jj,P.dropWhile=Uj,P.fill=$j,P.filter=HU,P.flatMap=KU,P.flatMapDeep=XU,P.flatMapDepth=QU,P.flatten=tO,P.flattenDeep=Bj,P.flattenDepth=Hj,P.flip=d$,P.flow=lB,P.flowRight=fB,P.fromPairs=Gj,P.functions=l4,P.functionsIn=f4,P.groupBy=qU,P.initial=Kj,P.intersection=Xj,P.intersectionBy=Qj,P.intersectionWith=qj,P.invert=p4,P.invertBy=d4,P.invokeMap=YU,P.iteratee=vT,P.keyBy=JU,P.keys=Xn,P.keysIn=Hi,P.map=eg,P.mapKeys=m4,P.mapValues=h4,P.matches=uB,P.matchesProperty=pB,P.memoize=ng,P.merge=y4,P.mergeWith=SO,P.method=dB,P.methodOf=gB,P.mixin=TT,P.negate=ig,P.nthArg=hB,P.omit=T4,P.omitBy=E4,P.once=g$,P.orderBy=ZU,P.over=yB,P.overArgs=m$,P.overEvery=vB,P.overSome=TB,P.partial=uT,P.partialRight=gO,P.partition=e$,P.pick=b4,P.pickBy=PO,P.property=RO,P.propertyOf=EB,P.pull=Zj,P.pullAll=iO,P.pullAllBy=eU,P.pullAllWith=tU,P.pullAt=nU,P.range=bB,P.rangeRight=AB,P.rearg=h$,P.reject=i$,P.remove=iU,P.rest=y$,P.reverse=cT,P.sampleSize=o$,P.set=S4,P.setWith=P4,P.shuffle=a$,P.slice=rU,P.sortBy=l$,P.sortedUniq=uU,P.sortedUniqBy=pU,P.split=X4,P.spread=v$,P.tail=dU,P.take=gU,P.takeRight=mU,P.takeRightWhile=hU,P.takeWhile=yU,P.tap=FU,P.throttle=T$,P.thru=Zd,P.toArray=TO,P.toPairs=CO,P.toPairsIn=xO,P.toPath=IB,P.toPlainObject=bO,P.transform=C4,P.unary=E$,P.union=vU,P.unionBy=TU,P.unionWith=EU,P.uniq=bU,P.uniqBy=AU,P.uniqWith=SU,P.unset=x4,P.unzip=lT,P.unzipWith=rO,P.update=I4,P.updateWith=O4,P.values=nl,P.valuesIn=N4,P.without=PU,P.words=NO,P.wrap=b$,P.xor=CU,P.xorBy=xU,P.xorWith=IU,P.zip=OU,P.zipObject=NU,P.zipObjectDeep=LU,P.zipWith=RU,P.entries=CO,P.entriesIn=xO,P.extend=AO,P.extendWith=ag,TT(P,P),P.add=NB,P.attempt=LO,P.camelCase=D4,P.capitalize=IO,P.ceil=LB,P.clamp=L4,P.clone=S$,P.cloneDeep=C$,P.cloneDeepWith=x$,P.cloneWith=P$,P.conformsTo=I$,P.deburr=OO,P.defaultTo=cB,P.divide=RB,P.endsWith=_4,P.eq=Zr,P.escape=V4,P.escapeRegExp=w4,P.every=BU,P.find=GU,P.findIndex=ZI,P.findKey=i4,P.findLast=WU,P.findLastIndex=eO,P.findLastKey=r4,P.floor=FB,P.forEach=aO,P.forEachRight=sO,P.forIn=o4,P.forInRight=a4,P.forOwn=s4,P.forOwnRight=c4,P.get=gT,P.gt=O$,P.gte=N$,P.has=u4,P.hasIn=mT,P.head=nO,P.identity=Gi,P.includes=zU,P.indexOf=Wj,P.inRange=R4,P.invoke=g4,P.isArguments=Ws,P.isArray=Ke,P.isArrayBuffer=L$,P.isArrayLike=Bi,P.isArrayLikeObject=xn,P.isBoolean=R$,P.isBuffer=Ba,P.isDate=F$,P.isElement=D$,P.isEmpty=_$,P.isEqual=V$,P.isEqualWith=w$,P.isError=pT,P.isFinite=M$,P.isFunction=na,P.isInteger=mO,P.isLength=rg,P.isMap=hO,P.isMatch=k$,P.isMatchWith=j$,P.isNaN=U$,P.isNative=$$,P.isNil=H$,P.isNull=B$,P.isNumber=yO,P.isObject=mn,P.isObjectLike=vn,P.isPlainObject=Xf,P.isRegExp=dT,P.isSafeInteger=G$,P.isSet=vO,P.isString=og,P.isSymbol=cr,P.isTypedArray=tl,P.isUndefined=W$,P.isWeakMap=K$,P.isWeakSet=X$,P.join=zj,P.kebabCase=M4,P.last=Dr,P.lastIndexOf=Yj,P.lowerCase=k4,P.lowerFirst=j4,P.lt=Q$,P.lte=q$,P.max=DB,P.maxBy=_B,P.mean=VB,P.meanBy=wB,P.min=MB,P.minBy=kB,P.stubArray=bT,P.stubFalse=AT,P.stubObject=SB,P.stubString=PB,P.stubTrue=CB,P.multiply=jB,P.nth=Jj,P.noConflict=mB,P.noop=ET,P.now=tg,P.pad=U4,P.padEnd=$4,P.padStart=B4,P.parseInt=H4,P.random=F4,P.reduce=t$,P.reduceRight=n$,P.repeat=G4,P.replace=W4,P.result=A4,P.round=UB,P.runInContext=w,P.sample=r$,P.size=s$,P.snakeCase=K4,P.some=c$,P.sortedIndex=oU,P.sortedIndexBy=aU,P.sortedIndexOf=sU,P.sortedLastIndex=cU,P.sortedLastIndexBy=lU,P.sortedLastIndexOf=fU,P.startCase=Q4,P.startsWith=q4,P.subtract=$B,P.sum=BB,P.sumBy=HB,P.template=z4,P.times=xB,P.toFinite=ia,P.toInteger=Ye,P.toLength=EO,P.toLower=Y4,P.toNumber=_r,P.toSafeInteger=z$,P.toString=Ot,P.toUpper=J4,P.trim=Z4,P.trimEnd=eB,P.trimStart=tB,P.truncate=nB,P.unescape=iB,P.uniqueId=OB,P.upperCase=rB,P.upperFirst=hT,P.each=aO,P.eachRight=sO,P.first=nO,TT(P,function(){var c={};return So(P,function(f,d){Ft.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Or(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Or(["drop","take"],function(c,f){pt.prototype[c]=function(d){d=d===e?1:Un(Ye(d),0);var y=this.__filtered__&&!f?new pt(this):this.clone();return y.__filtered__?y.__takeCount__=pi(d,y.__takeCount__):y.__views__.push({size:pi(d,Mt),type:c+(y.__dir__<0?"Right":"")}),y},pt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Or(["filter","map","takeWhile"],function(c,f){var d=f+1,y=d==an||d==en;pt.prototype[c]=function(b){var x=this.clone();return x.__iteratees__.push({iteratee:Ve(b,3),type:d}),x.__filtered__=x.__filtered__||y,x}}),Or(["head","last"],function(c,f){var d="take"+(f?"Right":"");pt.prototype[c]=function(){return this[d](1).value()[0]}}),Or(["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(Gi)},pt.prototype.find=function(c){return this.filter(c).head()},pt.prototype.findLast=function(c){return this.reverse().find(c)},pt.prototype.invokeMap=nt(function(c,f){return typeof c=="function"?new pt(this):this.map(function(d){return $f(d,c,f)})}),pt.prototype.reject=function(c){return this.filter(ig(Ve(c)))},pt.prototype.slice=function(c,f){c=Ye(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=Ye(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(Mt)},So(pt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),y=/^(?:head|last)$/.test(f),b=P[y?"take"+(f=="last"?"Right":""):f],x=y||/^find/.test(f);b&&(P.prototype[f]=function(){var L=this.__wrapped__,R=y?[1]:arguments,M=L instanceof pt,Y=R[0],J=M||Ke(L),ee=o(function(st){var gt=b.apply(P,_a([st],R));return y&&ge?gt[0]:gt},"interceptor");J&&d&&typeof Y=="function"&&Y.length!=1&&(M=J=!1);var ge=this.__chain__,Oe=!!this.__actions__.length,Me=x&&!ge,Ze=M&&!Oe;if(!x&&J){L=Ze?L:new pt(this);var ke=c.apply(L,R);return ke.__actions__.push({func:Zd,args:[ee],thisArg:e}),new Lr(ke,ge)}return Me&&Ze?c.apply(this,R):(ke=this.thru(ee),Me?y?ke.value()[0]:ke.value():ke)})}),Or(["pop","push","shift","sort","splice","unshift"],function(c){var f=Cd[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",y=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var b=arguments;if(y&&!this.__chain__){var x=this.value();return f.apply(Ke(x)?x:[],b)}return this[d](function(L){return f.apply(Ke(L)?L:[],b)})}}),So(pt.prototype,function(c,f){var d=P[f];if(d){var y=d.name+"";Ft.call(zc,y)||(zc[y]=[]),zc[y].push({name:f,func:d})}}),zc[Kd(e,O).name]=[{name:"wrapper",func:e}],pt.prototype.clone=nk,pt.prototype.reverse=ik,pt.prototype.value=rk,P.prototype.at=DU,P.prototype.chain=_U,P.prototype.commit=VU,P.prototype.next=wU,P.prototype.plant=kU,P.prototype.reverse=jU,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=UU,P.prototype.first=P.prototype.head,_f&&(P.prototype[_f]=MU),P},"runInContext"),wa=V2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Kn._=wa,define(function(){return wa})):Ms?((Ms.exports=wa)._=wa,vv._=wa):Kn._=wa}).call(tf)});var hV=qe((Gce,mV)=>{var{findIndex:u6}=Sp();function p6(e,t){let i=u6(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(p6,"findNextTextualToken");mV.exports={findNextTextualToken:p6}});var TV=qe((Kce,vV)=>{var yV=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function d6({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(yV);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(d6,"isXMLNamespaceKey");function g6(e){if(typeof e!="string")return;let t=e.match(yV);if(t!==null)return t.groups&&t.groups.prefix||""}o(g6,"getXMLNamespaceKeyPrefix");vV.exports={isXMLNamespaceKey:d6,getXMLNamespaceKeyPrefix:g6}});var bV=qe((Qce,EV)=>{var{findNextTextualToken:m6}=hV(),{isXMLNamespaceKey:h6,getXMLNamespaceKeyPrefix:y6}=TV();EV.exports={findNextTextualToken:m6,isXMLNamespaceKey:h6,getXMLNamespaceKeyPrefix:y6}});var CS=qe((qce,SV)=>{var{reduce:v6,has:AV,isArray:T6}=Sp();function E6(e){return v6(e,(n,i,r)=>(r==="parent"||(AV(i,"type")?n.push(i):T6(i)&&i.length>0&&AV(i[0],"type")&&(n=n.concat(i))),n),[])}o(E6,"getAstChildrenReflective");SV.exports={getAstChildrenReflective:E6}});var xS=qe((Yce,PV)=>{PV.exports={DEFAULT_NS:"::DEFAULT"}});var FV=qe((Jce,RV)=>{var{BaseXmlCstVisitor:b6}=PS(),{last:A6,forEach:OV,reduce:S6,map:Pp,pick:OS,sortBy:P6,isEmpty:C6,isArray:NV,assign:x6}=Sp(),{findNextTextualToken:I6,isXMLNamespaceKey:O6,getXMLNamespaceKeyPrefix:N6}=bV(),{getAstChildrenReflective:L6}=CS(),{DEFAULT_NS:R6}=xS();function F6(e,t){CV.setState({tokenVector:t});let n=CV.visit(e);return n.rootElement!==_c&&LV(n.rootElement),n}o(F6,"buildAst");var NS=class NS extends b6{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:_c,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&C6(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),Py(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Pp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),Py(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Pp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Pp(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:_c,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=Pp(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 V6(i,t),w6(i,t),M6(i,t,this.tokenVector),Py(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:_c,value:_c,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=Cy(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=D6(a.image),r.syntax.value=Cy(a)}return Py(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:_c},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=P6(r,["startOffset"]),s=Pp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(NS,"CstToAstVisitor");var IS=NS,CV=new IS;function Py(e){let t=L6(e);OV(t,n=>n.parent=e)}o(Py,"setChildrenParent");function LV(e,t=[]){let n=S6(e.attributes,(r,a)=>{if(a.key!==_c&&O6({key:a.key,includeEmptyPrefix:!1})===!0){let s=N6(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[R6]=l}}return r},{}),i=Object.create(null);e.namespaces=x6(i,t,n),OV(e.subElements,r=>LV(r,e.namespaces))}o(LV,"updateNamespaces");function Cy(e){return OS(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Cy,"toXMLToken");function xV(e){return OS(e,["startOffset","startLine","startColumn"])}o(xV,"startOfXMLToken");function IV(e){return OS(e,["endOffset","endLine","endColumn"])}o(IV,"endOfXMLToken");function Ia(e){return NV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Ia,"exists");function D6(e){return e.substring(1,e.length-1)}o(D6,"stripQuotes");function _6(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(_6,"nsToParts");var _c=null;function V6(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Cy(n);let i=_6(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=Cy(t.END_NAME[0]))}o(V6,"handleElementOpenCloseNameRanges");function w6(e,t){if(Ia(t.OPEN)){let n;Ia(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Ia(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...xV(t.OPEN[0]),...IV(n)}),Ia(t.SLASH_OPEN)&&Ia(t.END)&&(e.syntax.closeBody={...xV(t.SLASH_OPEN[0]),...IV(t.END[0])})}}o(w6,"handleElementOpenCloseBodyRanges");function M6(e,t,n){if(Ia(t.Name)){let i=t.Name[0].endOffset+2;if(Ia(t.START_CLOSE)||Ia(t.SLASH_CLOSE)){let r=(Ia(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=NV(t.attribute)?A6(t.attribute).location.endOffset:t.Name[0].endOffset,s=I6(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(M6,"handleElementAttributeRanges");RV.exports={buildAst:F6}});var VV=qe((ele,_V)=>{var{forEach:k6,isFunction:nf}=Sp(),{getAstChildrenReflective:j6}=CS();function DV(e,t){switch(e.type){case"XMLDocument":{nf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{nf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{nf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{nf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{nf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{nf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=j6(e);k6(n,i=>{DV(i,t)})}o(DV,"accept");_V.exports={accept:DV}});var MV=qe((nle,wV)=>{var{buildAst:U6}=FV(),{accept:$6}=VV(),{DEFAULT_NS:B6}=xS();wV.exports={buildAst:U6,accept:$6,DEFAULT_NS:B6}});var Di={};Ks(Di,{deleteConfigEntityByPath:()=>dY,exportConfig:()=>uY,exportConfigEntityByPath:()=>pY,generateCustomExtension:()=>tx,generateSchema:()=>fY,getApiVersion:()=>yY,getChanges:()=>vM,getGenericSchema:()=>av,getPathToGenericSchema:()=>Rw,getProject:()=>AY,importConfig:()=>gY,importProject:()=>mY,importProjectSchema:()=>hY,isDirectory:()=>TY,log:()=>se,prompts:()=>lY,readDirectory:()=>ax});module.exports=cg(Di);var pe=ie(le());var K=ie(le());var Be=o(e=>typeof e=="string","isString"),Qf=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),dR=o(e=>e==null?"":""+e,"makeString"),PG=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),CG=/###/g,gR=o(e=>e&&e.indexOf("###")>-1?e.replace(CG,"."):e,"cleanKey"),mR=o(e=>!e||Be(e),"canNotTraverseDeeper"),qf=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(mR(e))return{};let a=gR(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return mR(e)?{}:{obj:e,k:gR(i[r])}},"getLastOfPath"),hR=o((e,t,n)=>{let{obj:i,k:r}=qf(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=qf(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=qf(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),xG=o((e,t,n,i)=>{let{obj:r,k:a}=qf(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),fg=o((e,t)=>{let{obj:n,k:i}=qf(e,t);if(n)return n[i]},"getPath"),IG=o((e,t,n)=>{let i=fg(e,n);return i!==void 0?i:fg(t,n)},"getPathWithDefaults"),AR=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]):AR(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),rl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),OG={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},NG=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>OG[t]):e,"escape"),kT=class kT{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(kT,"RegExpCache");var RT=kT,LG=[" ",",","?","!",";"],RG=new RT(20),FG=o((e,t,n)=>{t=t||"",n=n||"";let i=LG.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=RG.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"),FT=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"),ug=o(e=>e&&e.replace("_","-"),"getCleanedCode"),DG={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)}},zf=class zf{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||DG,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 zf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new zf(this.logger,t)}};o(zf,"Logger");var DT=zf,xo=new DT,jT=class jT{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(jT,"EventEmitter");var al=jT,UT=class UT extends al{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let u=fg(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:FT(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),hR(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=fg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?AR(u,i,a):u={...u,...i},hR(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(UT,"ResourceStore");var pg=UT,SR={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}},yR={},hg=class hg extends al{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),PG(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=xo.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&&!FG(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let ae=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${ae}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${ae}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),v=m&&m.res,A=m&&m.usedKey||s,E=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(v),F=["[object Number]","[object Function]","[object RegExp]"],j=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,G=!this.i18nFormat||this.i18nFormat.handleAsObject,B=!Be(v)&&typeof v!="boolean"&&typeof v!="number";if(G&&v&&B&&F.indexOf(O)<0&&!(Be(j)&&Array.isArray(v))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ae=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,v,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=ae,m.usedParams=this.getUsedParamsDetails(n),m):ae}if(a){let ae=Array.isArray(v),Z=ae?[]:{},re=ae?E:A;for(let Se in v)if(Object.prototype.hasOwnProperty.call(v,Se)){let D=`${re}${a}${Se}`;Z[Se]=this.translate(D,{...n,joinArrays:!1,ns:l}),Z[Se]===D&&(Z[Se]=v[Se])}v=Z}}else if(G&&Be(j)&&Array.isArray(v))v=v.join(j),v&&(v=this.extendTranslation(v,t,n,i));else{let ae=!1,Z=!1,re=n.count!==void 0&&!Be(n.count),Se=hg.hasDefaultValue(n),D=re?this.pluralResolver.getSuffix(p,n.count,n):"",ut=n.ordinal&&re?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",yt=re&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ue=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${ut}`]||n.defaultValue;!this.isValidLookup(v)&&Se&&(ae=!0,v=Ue),this.isValidLookup(v)||(Z=!0,v=s);let Gn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:v,en=Se&&Ue!==v&&this.options.updateMissing;if(Z||ae||en){if(this.logger.log(en?"updateKey":"missingKey",p,u,s,en?Ue:v),a){let It=this.resolve(s,{...n,keySeparator:!1});It&&It.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Lt=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let It=0;It<Re.length;It++)Lt.push(Re[It]);else this.options.saveMissingTo==="all"?Lt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Lt.push(n.lng||this.language);let Ci=o((It,Mt,sn)=>{let ji=Se&&sn!==v?sn:Gn;this.options.missingKeyHandler?this.options.missingKeyHandler(It,u,Mt,ji,en,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(It,u,Mt,ji,en,n),this.emit("missingKey",It,u,Mt,v)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Lt.forEach(It=>{let Mt=this.pluralResolver.getSuffixes(It,n);yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Mt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Mt.push(`${this.options.pluralSeparator}zero`),Mt.forEach(sn=>{Ci([It],s+sn,n[`defaultValue${sn}`]||Ue)})}):Ci(Lt,s,Ue))}v=this.extendTranslation(v,t,n,m,i),Z&&v===s&&this.options.appendNamespaceToMissingKey&&(v=`${u}:${s}`),(Z||ae)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,ae?v:void 0):v=this.options.parseMissingKeyHandler(v))}return r?(m.res=v,m.usedParams=this.getUsedParamsDetails(n),m):v}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 v=t.match(this.interpolator.nestingRegexp);g=v&&v.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 v=t.match(this.interpolator.nestingRegexp),A=v&&v.length;g<A&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var v=arguments.length,A=new Array(v),E=0;E<v;E++)A[E]=arguments[E];return a&&a[0]===A[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${A[0]} in key: ${n[0]}`),null):s.translate(...A,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,u=Be(l)?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=SR.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 v=n.count!==void 0&&!Be(n.count),A=v&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),E=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(F=>{this.isValidLookup(i)||(l=F,!yR[`${O[0]}-${F}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(yR[`${O[0]}-${F}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(j=>{if(this.isValidLookup(i))return;s=j;let G=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(G,g,j,F,n);else{let ae;v&&(ae=this.pluralResolver.getSuffix(j,n.count,n));let Z=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(G.push(g+ae),n.ordinal&&ae.indexOf(re)===0&&G.push(g+ae.replace(re,this.options.pluralSeparator)),A&&G.push(g+Z)),E){let Se=`${g}${this.options.contextSeparator}${n.context}`;G.push(Se),v&&(G.push(Se+ae),n.ordinal&&ae.indexOf(re)===0&&G.push(Se+ae.replace(re,this.options.pluralSeparator)),A&&G.push(Se+Z))}}let B;for(;B=G.pop();)this.isValidLookup(i)||(a=B,i=this.getResource(j,F,B,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(hg,"Translator");var dg=hg,NT=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),$T=class $T{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xo.create("languageUtils")}getScriptPartFromCode(t){if(t=ug(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=ug(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]=NT(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]=NT(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=NT(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($T,"LanguageUtil");var gg=$T,_G=[{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}],VG={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},wG=["v1","v2","v3"],MG=["v4"],vR={zero:0,one:1,two:2,few:3,many:4,other:5},kG=o(()=>{let e={};return _G.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:VG[t.fc]}})}),e},"createRules"),BT=class BT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=xo.create("pluralResolver"),(!this.options.compatibilityJSON||MG.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=kG(),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=ug(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)=>vR[r]-vR[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!wG.includes(this.options.compatibilityJSON)}};o(BT,"PluralResolver");var _T=BT,TR=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=IG(e,t,n);return!a&&r&&Be(n)&&(a=FT(e,n,i),a===void 0&&(a=FT(t,n,i))),a},"deepFindWithDefaults"),LT=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),HT=class HT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xo.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:v,nestingPrefixEscaped:A,nestingSuffix:E,nestingSuffixEscaped:O,nestingOptionsSeparator:F,maxReplaces:j,alwaysFormat:G}=t.interpolation;this.escape=n!==void 0?n:NG,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?rl(a):s||"{{",this.suffix=l?rl(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=v?rl(v):A||rl("$t("),this.nestingSuffix=E?rl(E):O||rl(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=j||1e3,this.alwaysFormat=G!==void 0?G:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(A=>{if(A.indexOf(this.formatSeparator)<0){let j=TR(n,u,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,i,{...r,...n,interpolationkey:A}):j}let E=A.split(this.formatSeparator),O=E.shift().trim(),F=E.join(this.formatSeparator).trim();return this.format(TR(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),F,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(A=>LT(A),"safeValue")},{regex:this.regexp,safeValue:o(A=>this.escapeValue?LT(this.escape(A)):LT(A),"safeValue")}].forEach(A=>{for(l=0;a=A.regex.exec(t);){let E=a[1].trim();if(s=p(E),s===void 0)if(typeof g=="function"){let F=g(t,a,r);s=Be(F)?F:""}else if(r&&Object.prototype.hasOwnProperty.call(r,E))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=dR(s));let O=A.safeValue(s);if(t=t.replace(a[0],O),m?(A.regex.lastIndex+=s.length,A.regex.lastIndex-=a[0].length):A.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),v=`{${m[1]}`;u=m[0],v=this.interpolate(v,s);let A=v.match(/'/g),E=v.match(/"/g);(A&&A.length%2===0&&!E||E.length%2!==0)&&(v=v.replace(/'/g,'"'));try{s=JSON.parse(v),p&&(s={...p,...s})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,O),`${u}${g}${v}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!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=dR(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(HT,"Interpolator");var VT=HT,jG=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...u]=s.split(":"),p=u.join(":").trim().replace(/^'+|'+$/g,""),g=l.trim();n[g]||(n[g]=p),p==="false"&&(n[g]=!1),p==="true"&&(n[g]=!0),isNaN(p)||(n[g]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),ol=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(ug(i),r),t[s]=l),l(n)}},"createCachedFormatter"),GT=class GT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xo.create("formatter"),this.options=t,this.formats={number:ol((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:ol((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:ol((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:ol((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:ol((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ol(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=jG(u);if(this.formats[p]){let m=l;try{let v=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},A=v.locale||v.lng||r.locale||r.lng||i;m=this.formats[p](l,A,{...g,...r,...v})}catch(v){this.logger.warn(v)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(GT,"Formatter");var wT=GT,UG=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),WT=class WT extends al{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=xo.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 v=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?s[v]===void 0&&(s[v]=!0):(this.state[v]=1,g=!1,s[v]===void 0&&(s[v]=!0),a[v]===void 0&&(a[v]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{xG(u.loaded,[a],s),UG(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(WT,"Connector");var MT=WT,ER=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"),bR=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"),lg=o(()=>{},"noop"),$G=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Yf=class Yf extends al{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=bR(t),this.services={},this.logger=xo,this.modules={external:[]},$G(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=ER();this.options={...r,...this.options,...bR(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?xo.init(a(this.modules.logger),this.options):xo.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=wT);let m=new gg(this.options);this.store=new pg(this.options.resources,this.options);let v=this.services;v.logger=xo,v.resourceStore=this.store,v.languageUtils=m,v.pluralResolver=new _T(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)&&(v.formatter=a(g),v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new VT(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new MT(a(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(A){for(var E=arguments.length,O=new Array(E>1?E-1:0),F=1;F<E;F++)O[F-1]=arguments[F];t.emit(A,...O)}),this.modules.languageDetector&&(v.languageDetector=a(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=a(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new dg(this.services,this.options),this.translator.on("*",function(A){for(var E=arguments.length,O=new Array(E>1?E-1:0),F=1;F<E;F++)O[F-1]=arguments[F];t.emit(A,...O)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=lg),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=Qf(),p=o(()=>{let g=o((m,v)=>{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(v),i(m,v)},"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]:lg,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=Qf();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=lg),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"&&SR.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=Qf();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 v=r.options.keySeparator||".",A;return u.keyPrefix&&Array.isArray(s)?A=s.map(E=>`${u.keyPrefix}${v}${E}`):A=u.keyPrefix?`${u.keyPrefix}${v}${s}`:s,r.t(A,u)},"fixedT");return Be(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=Qf();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=Qf();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 gg(ER());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 Yf(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Yf(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 pg(this.store.data,r),a.services.resourceStore=a.store),a.translator=new dg(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(Yf,"I18n");var mg=Yf,q=mg.createInstance();q.createInstance=mg.createInstance;var DY=q.createInstance,_Y=q.dir,VY=q.init,wY=q.loadResources,MY=q.reloadResources,kY=q.use,jY=q.changeLanguage,UY=q.getFixedT,$Y=q.t,BY=q.exists,HY=q.setDefaultNamespace,GY=q.hasLoadedNamespace,WY=q.loadNamespaces,KY=q.loadLanguages;var kF=ie(KT()),jF=ie(zR()),Mg=ie(wF()),Je=require("@sap-ux/vocabularies-types/vocabularies/UI"),nu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Vg=ie(le());var se=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${Vg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Vg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Vg.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var U="#/definitions/",bW=[K.v4.FE_TEMPLATE_V4_LIST_REPORT,K.v4.FE_TEMPLATE_V4_ALP,K.v4.FE_TEMPLATE_V4_OBJECT_PAGE,K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],AW=["sap.fe.core","sap.fe.templates"],pl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),pr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function No(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,Mg.parse)(r.fileContent,r.dataSourceUri))}catch(a){return se(t,{severity:K.LogSeverity.Error,message:q.t("ANNOERR"),location:{path:q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,Mg.merge)(...n);i=(0,jF.convert)(r)}return i}o(No,"parseAndMergeAndConvert");var ul=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function uE(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(uE,"evaluateCommonLabel");function kg(e,t){let n=e.value;return e.$target&&(n=uE(e.$target.annotations,t,n)),n}o(kg,"getLabelForPropertyPath");function wg(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=uE(i.annotations,t,n)),n}o(wg,"getLabelForDataField");function SW(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 uE(a.annotations,t,s)}}}else return}o(SW,"getLabel");function MF(e,t,n){let i=wg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(MF,"getTitleForDataField");function yi(e,t){var s,l,u,p;let n="",i,r,a="";try{let g=SW(e.Label,t);switch(e.$Type){case Je.UIAnnotationTypes.DataField:n=MF(e,t,g);break;case Je.UIAnnotationTypes.DataFieldWithUrl:i=wg(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Je.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=wg(e,t),n=g||i||((l=(s=r.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((u=r.Target)==null?void 0:u.value.split("UI.v1.")[1]);break;case Je.UIAnnotationTypes.DataFieldForAction:case Je.UIAnnotationTypes.DataFieldWithAction:case Je.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,a=typeof e.Action=="string"?r.Action:(p=r.Action)==null?void 0:p.path,g?n=typeof g=="string"?g:a:n=a;break;case Je.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=wg(e,t),n=i||e.Value.path;break;case Je.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=MF(r,t,g);break;default:break}return n}catch{return n}}o(yi,"getDataFieldDescription");function dt(e){return e.replace("#","::").replace(/\//g,":2f")}o(dt,"prepareRef");function la(e){if(e){let t=`${K.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(la,"getPageTypeV2");function pE(e){if(e.name&&e.name!==K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${K.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return K.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return K.PageTypeV4.CustomPage}}o(pE,"getPageTypeV4");function PW(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(PW,"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 CW(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(CW,"getAnnotationFromMetaPath");function xW(e,t,n){var s,l;let i=e[e.length-1],r=CW(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(xW,"determineTargetAnnotation");function IW(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Je.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${K.UIVOCABULARY}`);return e}o(IW,"adjustKey");function OW(e,t,n,i,r=K.FioriElementsVersion.v2,a=!1){var m,v;let s=!1,l,u=i.split("/"),p=u.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=IW(t,u,a);let g=xW(u,n,e);if(g){let A=r===K.FioriElementsVersion.v2?"::":"#";t=PW(g,a).replace("#",A),l=(v=g.fullyQualifiedName)==null?void 0:v.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let A=r===K.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(A)}${A}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(OW,"getKeyAndEntityTypeOfReferenceFacet");function UF(e,t,n,i,r=K.FioriElementsVersion.v2,a=!1){var g,m,v;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((g=e.fullyQualifiedName)==null?void 0:g.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(v=e.fullyQualifiedName)==null?void 0:v.split("@")[0],p=t;if(e.$Type!==Je.UIAnnotationTypes.CollectionFacet&&"Target"in e){let A=ul(e.Target);if(!A){se(i,{severity:K.LogSeverity.Error,message:q.t("NOTARGET",{target:e.Target})});return}let{key:E,entityType:O,stopProcessing:F,namespace:j}=OW(n,l,p,A,r,a);if(F)return;l=E,p=O,u=j}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}o(UF,"getSectionFacet");function NW(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(NW,"getDecodedPathElement");var dE=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),$F=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=NW(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=dE(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Lo=o((e,t,n,i,r=!1)=>$F(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),BF=o((e,t,n,i,r)=>{$F(e,t,i,r,n)},"setManifestSectionByPathV4");function gE(e){let t,n,i;switch(e.$Type){case Je.UIAnnotationTypes.DataField:t=ul(e.Value);break;case Je.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ul(e.Value);break;case Je.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${K.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Je.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${dt(e.Action)}`);break;case Je.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ul(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Je.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${dt(e.Action)}`);break;case Je.UIAnnotationTypes.DataFieldWithNavigationPath:i=ul(e.Value),n=ul(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(gE,"getSchemaKeyOfLineItemRecord");function LW(e,t,n){return e.includes(Je.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Je.UIAnnotationTerms.Chart:e.includes(Je.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Je.UIAnnotationTerms.Identification:n&&e.includes(Je.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Je.UIAnnotationTerms.LineItem:e.includes(Je.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Je.UIAnnotationTerms.FieldGroup:e.includes(Je.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Je.UIAnnotationTerms.DataPoint:e.includes(Je.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Je.UIAnnotationTerms.PresentationVariant:void 0}o(LW,"getUIAnnotationTerm");function RW(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?nu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?nu.CommunicationAnnotationTerms.Address:void 0}o(RW,"getCommunicationAnnotationTerm");function FW(e,t,n){return LW(e,t,n)||RW(e,t)}o(FW,"getAnnotationTerm");function DW(e,t,n,i,r){var p,g,m,v,A,E,O,F,j;let a=ii(K.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(FW(s,a,i)){case Je.UIAnnotationTerms.Chart:{n[s]={base:K.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.Identification:{n[s]={base:K.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.LineItem:{if(!s.includes(Je.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let G=s.split("::");G[G.length-1]=`@${Je.UIAnnotationTerms.LineItem}`,s=G.join("::")}n[s]={base:K.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.FieldGroup:{n[s]={base:K.FacetBase.Form},n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.DataPoint:{n[s]={base:K.FacetBase.DataPoint},n[s].Label=(A=t==null?void 0:t.Target)==null?void 0:A.$target.Title,n[s].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.PresentationVariant:{n[s]={base:K.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case nu.CommunicationAnnotationTerms.Contact:{n[s]={base:K.FacetBase.Contact},n[s].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case nu.CommunicationAnnotationTerms.Address:{n[s]={base:K.FacetBase.Address},n[s].target=(j=t==null?void 0:t.Target)==null?void 0:j.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:K.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",K.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(DW,"evaluateTargetAnnotation");function mE(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(mE,"getAnnotationPathUsingFullyQualifiedName");function hE(e,t,n,i,r,a=K.FioriElementsVersion.v2,s){var u;let l=UF(e,i,t,s,a,!1);if(l)switch(e.$Type){case Je.UIAnnotationTypes.ReferenceFacet:{DW(l,e,r,i,t);break}case Je.UIAnnotationTypes.CollectionFacet:{let p=mE(i,e.fullyQualifiedName),g=r[l.key]={base:K.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===K.FioriElementsVersion.v4&&se(s,{severity:K.LogSeverity.Error,message:q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{hE(m,t,n,i,g.facets,a,s)});break}}}o(hE,"addFacetToConfig");function jg(e,t,n=K.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ii(K.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{hE(m,t,g,e,r,n,i)})}return r}o(jg,"getObjectPageHeaderFacets");function Ug(e,t,n=K.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ii(K.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{hE(g,t,p,e,r,n,i)})}return r}o(Ug,"getObjectPageFacets");function yE(e){var t,n,i,r;if(e[K.ManifestSection.generic]&&Object.keys(e[K.ManifestSection.generic]).length>0||e[K.ManifestSection.ovp]&&Object.keys(e[K.ManifestSection.ovp]).length>0)return K.FioriElementsVersion.v2;{let a=(n=(t=e[K.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[K.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>bW.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>AW.indexOf(l)>-1)?K.FioriElementsVersion.v4:void 0}}o(yE,"getFEVersionFromManifest");function _W(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[K.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[K.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[K.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[K.ManifestSection.ui5].models[t].dataSource:void 0}o(_W,"getMainService");function HF(e){var i,r;let t=_W(e);if(!t)return K.OdataVersion.v2;let n=(i=e[K.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?K.OdataVersion.v4:K.OdataVersion.v2}o(HF,"getODataVersionFromManifest");function VW(e,t){var i,r;let n;if(e[K.ManifestSection.generic]){let a=e[K.ManifestSection.generic].pages;if(!a){se(t,{severity:K.LogSeverity.Error,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(la((i=l.component)==null?void 0:i.name)===K.PageTypeV2.AnalyticalListPage){n=K.TemplateType.AnalyticalListPageV2;break}else if(la((r=l.component)==null?void 0:r.name)===K.PageTypeV2.ListReport){n=K.TemplateType.ListReportObjectPageV2;break}}}else n||se(t,{severity:K.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:K.ManifestSection.generic}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return n}o(VW,"determineV2Template");function iu(e){var i,r,a,s;let t,n=pE(e);if(n===K.PageTypeV4.AnalyticalListPage)t=K.TemplateType.AnalyticalListPageV4;else if(n===K.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[K.ALPViewType.Primary]||l[K.ALPViewType.Secondary])?t=K.TemplateType.AnalyticalListPageV4:t=K.TemplateType.ListReportObjectPageV4}else n===K.PageTypeV4.ObjectPage?t=K.TemplateType.ListReportObjectPageV4:[K.PageTypeV4.CustomPage,K.PageTypeV4.FPMCustomPage].includes(n)&&(t=K.TemplateType.FreestylePageV4);return t}o(iu,"determineV4PageTemplateType");function wW(e){let t;for(let n in e){let i=e[n];if(t=iu(i),t)break}return t}o(wW,"determineV4TemplateFromPages");function MW(e,t){let n=e[K.ManifestSection.ui5].routing&&e[K.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return se(t,{severity:K.LogSeverity.Info,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing"]}}),K.TemplateType.ListReportObjectPageV4;let i=wW(n);return i||se(t,{severity:K.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:K.ManifestSection.ui5}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing","targets"]}}),i}o(MW,"determineV4Template");function vE(e,t,n){let i;return e[K.ManifestSection.ovp]?i=K.TemplateType.OverviewPageV2:t===K.FioriElementsVersion.v2?i=VW(e,n):t===K.FioriElementsVersion.v4&&(i=MW(e,n)),i}o(vE,"getTemplateTypeFromManifest");function fa(e,t,n){e!=null&&e.ID?(t.title=K.FACETTITLEPREFIX+e.ID,t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:n.replace(K.UIVOCABULARYALPHADOT,"")}])}o(fa,"addSectionTitle");function Ga(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(Ga,"addSectionDescription");function dl(e,t,n){var i,r;fa(e,t,n),Ga(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(dl,"addTargetTitleAndSectionDescription");function GF(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(GF,"addChartFacetID");function Ro(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[K.SchemaTag.isViewNode]=!0,i[K.SchemaTag.annotationPath]=t.annotationPath,dl(t,i,n),i}o(Ro,"createDefaultSection");function WF(e,t,n,i=K.FioriElementsVersion.v2,r=!1){var l,u;let a=ii(K.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let v=UF(m,e,t,n,i,!0);return v&&g.push(v),g},s)),s}}o(WF,"getObjectPageFacetSection");var Wa=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(),Wa(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),fE=o(e=>e===K.SchemaType.FreestylePage?K.PageTypeV2.CustomPage:e===K.SchemaType.FPMCustomPage?K.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Dt=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case K.SchemaType.Application:{i.filename="App",i.path=`./${K.DirName.Schemas}/${i.filename}`;break}case K.SchemaType.ListReport:case K.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:fE(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}case K.PageTypeV4.FPMCustomPage:case K.SchemaType.FPMCustomPage:{i.filename=n?`${K.SchemaType.FPMCustomPage}_${n}`:fE(K.SchemaType.FPMCustomPage),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}default:{i.filename=fE(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function $g(e,t,n,i){if(e===K.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o($g,"generatePageId");function TE(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split(U)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u]!==void 0)&&a.push(s)}return a}o(TE,"findMatchingKeysByAdditionalProperties");function kW(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split(U)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=TE(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(kW,"fillArrayFromAnyOfReference");function jW(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(U)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{kW(r,n,t,i)}),i.length===0))return;return i}o(jW,"fillArrayFromPropertyDefinition");function UW(e,t,n,i,r,a,s,l){var p,g,m,v;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let A=e[e.length-1];if(u.targetDefinition=t.definitions[A],(p=u==null?void 0:u.targetDefinition)!=null&&p.$ref||((g=u==null?void 0:u.targetDefinition)==null?void 0:g.type)==="array")return u=Fo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(F=>{F!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[F].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let E=A==null?void 0:A.split("<")[0],O=i||{};u.configObject=a.createInstance(s,E,O,(v=u==null?void 0:u.targetDefinition)==null?void 0:v.controlProperty)}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(UW,"determineNextDefinitionFromDefinitionArray");function Fo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Fo(e,t,n,i.items,r,a,s),l;let u=jW(i,n,e);if(u)return l=UW(u,e,t,n,r,a,s,i),l}o(Fo,"getNextTargetDefinition");var EE=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,kF.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Bg(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(Bg,"convertEnumToCSV");function Ki(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Ki,"convertActionKeyToStableId");function hn(e){return e==null?void 0:e.split(U)[1]}o(hn,"getDefinitionKey");function KF(e){return`#/definitions/${e}`}o(KF,"getDefinitionsRef");function Hg(e){return e instanceof Error?e.message:String(e)}o(Hg,"getErrorMessage");function zs(e,t){return e==null?void 0:e.includes(t)}o(zs,"isFeatureSupported");function Do(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Do,"updatePropertyIndices");function Gg(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(Gg,"getJSONPropertyByPath");function XF(e){return e=e.replace(K.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(XF,"removeNamespaces");function gl(e){return e=e.replace(K.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(gl,"replaceNamespaces");var Ao=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=ie(le());var Xi=ie(le());var zt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Wg=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Qn=o((e,t)=>{let n,i=Xi.FACETTITLEPREFIX;return t!==void 0&&t.includes(i)?n=t.split(i)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function $W(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($W,"escapeId");var QF=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(QF||{}),qF=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(qF||{});function BW(e,t,n){let i;return e=e.map(function(r){if(r===Xi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Xi.PropertyName.sections)return i=t[a+1],t[a+1]=Qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(BW,"mapBreadcrumbs");var bE=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=BW(t,s,r)),s[0]===Xi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Xi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Xi.VOCWITHSLASH):t[0]===Xi.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,Xi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Xi.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,g=u.indexOf(":::");return u.startsWith("DataField")&&g>-1?(u=u.replace("/",":2f"),p=`${e}template:::TableColumn:::${u.substring(0,g)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${u.substring(g+3)}`):(u=u.replace("/","_"),p=`${e}${t.join("::")}-${u}`),$W(p)},"buildColumnControlId"),Qi=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function HW(e){let t=Xi.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(HW,"determinePattern");var AE=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split(U)[1]]:a,u=a.description?a.description:l.description,p=HW(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"),qn=o((e,t,n)=>{AE(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(QF);AE(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ri=o((e,t,n)=>{let i=Object.values(qF);AE(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function Ys(){}o(Ys,"doNotDelete");var $J=ie(YF());var JF=Symbol("specificationMetadataKey"),T=o(e=>Reflect.metadata(JF,e),"syncRule");function zn(e,t){let n;return e&&(n=Reflect.getMetadata(JF,e,t)),n}o(zn,"getReflectMetadata");var wr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),ZF=Symbol("childId"),jt=o(e=>Reflect.metadata(ZF,e),"childId"),Kg=o((e,t)=>Reflect.getMetadata(ZF,e,t),"getChildId"),Xg=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),GW=Symbol("descriptionSrcURL"),Ne=o(e=>Reflect.metadata(GW,e),"descriptionSrcURL");var WW=Symbol("validityMetadataKey"),C=o(e=>Reflect.metadata(WW,e),"validity");function Qg(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(Qg,"getTextForDeprecated");var s0=ie(o0()),c0=ie(le());var l0=s0.default.change,a0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function f0(e,t){let n="";try{for(let i in a0)e[i]===void 0&&(e[i]=a0[i]);n=l0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(f0,"createChangeString");function no(e){try{return l0.parse(e)}catch{return!1}}o(no,"parseChangeString");function u0(e,t,n,i,r){let a=n.layer?n.layer===c0.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(u0,"fillFlexChangeContent");function p0(e,t){return f0(e,t)}o(p0,"exportToFlexChange");var Js=ie(le());function ml(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,a);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}o(ml,"importProperty");function qg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(se(i,{severity:Js.LogSeverity.Warning,message:Qg(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(qg,"checkDeprecatedProperties");function SE(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(U)[1]];return SE(n,t)}else return e.title?e.title.startsWith(Js.FACETTITLEPREFIX)?e.title.split(Js.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(SE,"getSectionTitle");function zg(e){let t=e.split(`${Js.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(zg,"getTargetFromCustomColumnRef");function _o(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(_o,"removeEmptyStructure");var Ut=require("@sap-ux/vocabularies-types/vocabularies/UI");var ua=require("@sap-ux/vocabularies-types/vocabularies/UI");function Yg(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(Yg,"replaceSpecialChars");var Zs=o(function(e){return Yg(XF(e))},"prepareId");function JW(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(JW,"evaluateConcat");function ec(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 JW(e);if(e&&typeof e=="string")return Yg(e.replace(/ /g,"_"))}o(ec,"getStableIdPartFromValue");var d0=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"),pa=o(function(e){let t="";if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=d0(e),t;if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Zs(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=ec(e.Value)+"::"),t+=e.Action,Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataField)return t="DataField::",t+=ec(e.Value),Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=ec(e.Value)+"::",t+=d0(e),Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=ec(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=ec(e.Value),Zs(t)},"getStableIdPartFromDataField");var de=ie(le());var De=ie(le());var qi=require("@sap-ux/vocabularies-types/vocabularies/UI"),y0=require("path"),v0=ie(Qs());var Jg="ResponsiveTableWithMultiSelect<LineItems>",Zg="ResponsiveTableWithInlineDelete<LineItems>",ZW="TreeTable<LineItems>",e8="AnalyticalTable<LineItems>",t8="GridTable<LineItems>",PE=[Jg,Zg,ZW,e8,t8],g0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],m0="template::",em="template:::ObjectPageAction:::";function n8(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${U}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${U}${n}`},description:"Custom Columns"},e.definitions[t][De.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[De.SchemaTag.artifactType]=De.ArtifactType.Manifest)}o(n8,"addCustomColumnDefinition");function i8(e,t){let n;return e==="TableColumnActionIntentBased"?n=gE(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=dt(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===qi.UIAnnotationTypes.DataFieldForAction?n=dt(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=dt(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(i8,"getActionId");function CE(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=i8(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=yi(n.lineItemRecord,n.entityType);t.properties[l]={$ref:U+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=tc(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(CE,"handleActionRecord");function r8(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===qi.UIAnnotationTypes.DataFieldForAction||t.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===qi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(r8,"getColumnActionType");function o8(e,t){let n=[];if(!(e.$Type!==qi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===qi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),r8(t,e,n),n}o(o8,"getActionType");function T0(e,t,n){let i=gE(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:U+De.DefinitionName.TableColumn,description:yi(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,sm(r.properties[i],e.lineItemRecord),cm(e.lineItemRecord,r.properties,i)}}o(T0,"generateGenericColumn");function a8(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{CE(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&CE(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{CE(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":T0(i,t,r)}}o(a8,"handleAnyAction");function ru(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(ru,"retrieveNameWithoutVocabularyFromVisualization");function hl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=am(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},v=o8(g,r);v?v.forEach(A=>{a8(A,t,s,m,p,l,r)}):T0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${U}${a}`})}o(hl,"addLineItemsType");function s8(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(s8,"addListReportLeadingProperties");function c8(e,t,n,i){var s,l,u,p,g,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(a){let v=[];for(let A in a){let E=(m=a[A])==null?void 0:m.key;E!==void 0&&!v.includes(E)&&v.push(E)}da(v,r)}}o(c8,"addTabkeyEnum");function tm(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,v0.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("\\"+y0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),da(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(tm,"addFragmentEnum");function yl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){n8(e,a,s),s8(e,t,s),c8(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;tm(e,r,u,"fragmentName",s),tm(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),tm(e,r,u,"cellsFragmentName",s),tm(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(yl,"addTableColumnExtensions");function E0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(E0,"removeElementsFromEnum");function nm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=pr(n==null?void 0:n.fullyQualifiedName,qi.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${dt(s.value)}>`,p=io(s);s.type==="PropertyPath"&&(l=kg(s,n)),i.properties[s.value]={$ref:U+u},i.properties[s.value][De.SchemaTag.propertyIndex]=a,e.definitions[u]={type:"object",description:l,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[u][De.SchemaTag.dataType]=p,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.value,value:`${s.value}`}],e.definitions[u][De.SchemaTag.annotationPath]=`${i[De.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${U}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(nm,"addSelectionFields");function b0(e,t){for(let n of t.entityProperties)e.push(n.name)}o(b0,"addEntityPropertiesToEnum");function im(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(im,"isDraftEnabled");function A0(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(A0,"isEntityDeletable");function S0(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(S0,"isEntityUpdatable");function vl(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,u])=>{let p=u.$ref.split(U)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${U}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(vl,"addStandardHeaderActions");function P0(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(U)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${U}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(P0,"addStandardFooterActionsOP");function rm(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?q.t("NOUIANNOTATIONS",{entityType:t.name}):q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});se(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(rm,"getUIAnnotationForEntitySet");function om(e,t,n,i="string"){let r=e!==void 0&&(typeof e!="object"||e[t]!==void 0&&typeof e[t]!==i);return r&&se(n,{severity:De.LogSeverity.Error,message:q.t("TYPEERROR",{propertyName:t,expectedType:i})}),r}o(om,"hasPropertyTypeError");function l8(e,t,n,i){if(e===de.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ut.UIAnnotationTypes.DataField:case Ut.UIAnnotationTypes.DataFieldForAnnotation:case Ut.UIAnnotationTypes.DataFieldWithNavigationPath:case Ut.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===de.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ut.UIAnnotationTypes.DataField:case Ut.UIAnnotationTypes.DataFieldForAnnotation:case Ut.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(l8,"copyFieldProperties");function f8(e,t,n,i){let r=e===de.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===de.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(f8,"determineFieldDefinitionName");function u8(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][de.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][de.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][de.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][de.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(u8,"addKeysTagForDataField");function p8(e,t,n){if(e.$Type===Ut.UIAnnotationTypes.DataField||e.$Type===Ut.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ut.UIAnnotationTypes.DataFieldWithNavigationPath)u8(e,t,n);else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][de.SchemaTag.keys]=[{name:"Target",value:gl(e.Target.value)}],t.definitions[n][de.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][de.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][de.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][de.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][de.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][de.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(p8,"addKeysTagToField");function d8(e){var t,n;return e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Ut.UIAnnotationTypes.ConnectedFieldsType}o(d8,"isConnectedField");function g8(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===Ut.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let v=p[m];if(typeof v=="object"&&"$Type"in v){let A=u.findIndex(E=>E===m);A===-1&&(A=g,g++),xE(e,t,v,`ConnectedFields::${a.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(g8,"addConnectedFields");function C0(e,t,n){if(n)return n;let i=dt(t);return e.definitions[i].properties}o(C0,"getFieldsSchemaContainer");function xE(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){var E;let g=pa(n),m=s===de.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,v=f8(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===Ut.UIAnnotationTypes.DataFieldForAction||n.$Type===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===de.SectionType.Section){let O=C0(t,`${e}${de.DefinitionName.Actions}<${i}>`,u.actions),F=O[m]={$ref:`${U}${v}`};F[de.SchemaTag.propertyIndex]=parseInt(r)}}else{let O=C0(t,`${e}${de.DefinitionName.Fields}<${i}>`,u.fields);O[m]={$ref:`${U}${v}`,propertyIndex:parseInt(r)},d8(n)&&(A=g8(e,t,n,a,s))}t.definitions[v]={type:"object",properties:A,description:yi(n,a.entityType),additionalProperties:!1},p8(n,t,v),t.definitions[v][de.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[v][de.SchemaTag.annotationType]=n.$Type,t.definitions[v][de.SchemaTag.isViewNode]=!0,sm(t.definitions[v],n),l8(s,t,n,v),n.$Type===Ut.UIAnnotationTypes.DataFieldForAction&&((E=t.definitions)!=null&&E.FormAction)&&(t.definitions[v].$ref=`${U}${de.DefinitionName.FormAction}`,delete t.definitions[v].properties)}}o(xE,"addField");function m8(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(m8,"determineTargetIdOfForm");function h8(e,t,n,i,r,a){if(e.base===de.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&xE(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];xE(t,n,l,i,s,e,r)}}o(h8,"addFieldsToFormDefinition");function y8(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][de.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][de.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][de.SchemaTag.annotationPath]=pr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(y8,"addTagsToFormDefinition");function lm(e,t,n,i,r,a){if(!t.target)return;let s=m8(t),l=dt(`${e}${de.DefinitionName.Form}<${s}>`),u=dt(`${e}${de.DefinitionName.Fields}<${s}>`),p=dt(`${e}${de.DefinitionName.Actions}<${s}>`),g=!(t.base===de.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${U}${l}`},e===de.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${U}${p}`},fields:{$ref:`${U}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][de.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${U}${u}`}},description:"Form",additionalProperties:!1},y8(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][de.SchemaTag.isViewNode]=!0,h8(t,e,i,s,r,g),s}o(lm,"handleForm");function IE(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(IE,"replaceAlias");function fm(e,t){let n=IE(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(fm,"getActionNameAndId");function x0(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===de.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:x0(a.pages,t)}}o(x0,"isFirstObjectPage");function um(e,t,n,i,r){var g,m;e.definitions[de.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${de.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${U}${de.DefinitionName.ObjectPageFooter}`},e.definitions[de.DefinitionName.ObjectPageFooter].properties[de.PropertyName.actions]={$ref:`${U}${de.DefinitionName.FooterActions}`};let a=e.definitions[de.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[de.SchemaTag.isViewNode]=!0;let s=ii(de.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let v=p.fullyQualifiedName.replace(`@${Ut.UIAnnotationTerms.Identification}`,`/@${Ut.UIAnnotationTerms.Identification}`);a[de.SchemaTag.annotationPath]=`/${v}`,i(u,e,a,p)}else u&&(a[de.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${Ut.UIAnnotationTerms.Identification}`);n===de.FioriElementsVersion.v2&&x0(r,t)&&!im(l)&&P0(e,a),delete e.definitions[de.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${de.DefinitionName.ObjectPageFooter}<${de.DefinitionName.ObjectPageFooterActions}>`]}o(um,"addFooterActions");function pm(e,t,n,i,r,a=!1){var m,v;let s=de.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[de.DefinitionName.ObjectPageHeader].properties[de.PropertyName.actions]={$ref:`${U}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[de.SchemaTag.isViewNode]=!0;let p=ii(de.UIVOCABULARY,n.serviceAVT),g=p&&((v=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:v.Identification);g?u[de.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${Ut.UIAnnotationTerms.Identification}`,`/@${Ut.UIAnnotationTerms.Identification}`):t&&(u[de.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ut.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&vl(e,!0,l)}o(pm,"addHeaderActions");function dm(e,t){e.properties.header={$ref:`${U}${de.DefinitionName.ObjectPageHeader}`},e.definitions[de.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${de.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[de.DefinitionName.ObjectPageHeader][de.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ut.UIAnnotationTerms.HeaderInfo}`)}o(dm,"addCommonHeaderSchema");function I0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(I0,"determineEntitySetOfEntityType");var dr=require("@sap-ux/vocabularies-types/vocabularies/UI");var et=ie(le());function da(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(da,"addEnumToSchema");function ou(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)}}da(r,n)}o(ou,"addEnumForValidAnnotations");function Ka(e,t,n){let i=t.definitions[n].properties[et.SchemaTag.annotationPath],r=[dr.UIAnnotationTerms.SelectionVariant,dr.UIAnnotationTerms.SelectionPresentationVariant];ou(e,r,i)}o(Ka,"addEnumForSingleTabVariant");function O0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[dr.UIAnnotationTerms.SelectionVariant,dr.UIAnnotationTerms.SelectionPresentationVariant];ou(n.entityType,r,i)}o(O0,"addEnumForMultiTabVariant");function N0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),da(r,i)}o(N0,"addEnumForVariantEntitySet");function L0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[dr.UIAnnotationTerms.FieldGroup];ou(e,r,i)}o(L0,"addEnumFieldGroupAnnotationPath");function R0(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[et.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${U}${et.DefinitionName.RelatedFacetKeys}`},l]}}}}o(R0,"addDefinitionForRelatedFacetKeys");function nc(e){return e.replace("#","::")}o(nc,"getFacetKeyInSchema");function mm(e,t){return`${e}<${nc(t)}>`}o(mm,"getFacetDefinitionKey");function Et(e,t,n,i=!0){let r=t;if(i&&(r=mm(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(Et,"parseSchemaDefinition");function gm(e,t,n){let i;return t===et.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${dr.UIAnnotationTerms.LineItem}`?i=`${U}${n}`:(i=`${U}${n}<${t}>`,Et(n,t,e,!0)),i}o(gm,"getCustomExtensionDefinitionName");function am(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][et.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=gm(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?et.DefinitionName.ObjectPageToolBar:et.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${et.DefinitionName.Actions}<${dt(r)}>`;t.definitions[p].properties.actions.$ref=U+g;let m=r.startsWith(et.DefinitionName.LineItems)?et.DefinitionName.Actions:et.DefinitionName.ObjectPageToolBarActions,v;try{if(v=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),v.properties={},v.additionalProperties=!1,s){let O=gm(t,r,s);v.additionalProperties={$ref:O}}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let A,E;if(r===et.DefinitionName.LineItems&&t.properties.footer){E=`${et.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${U}${E}`;try{t.definitions[E]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.GenericFooter]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:et.DefinitionName.GenericFooter}))}let O=`${et.DefinitionName.FooterActions}<${dt(r)}>`;t.definitions[E].properties.actions.$ref=U+O,A=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.Actions])),A.properties={},A.additionalProperties=!1}return n&&(l=pr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][et.SchemaTag.annotationPath]=l,A&&(t.definitions[E][et.SchemaTag.annotationPath]=l))),{actions:v,footerActions:A,lineItemPath:l}}o(am,"addCommonLineItemDefinitions");function F0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(F0,"getDataTypeFromAnnotation");function ic(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=F0(e.$Type)),t}o(ic,"determineDataTypeOfTarget");function io(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=ic((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=F0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(io,"determineDataType");function sm(e,t){let n=io(t);n&&(e[et.SchemaTag.dataType]=n)}o(sm,"addDataTypeToDefinition");function vi(e,t){return`${U}${mm(e,t)}`}o(vi,"getFacetDefinitionLink");function Xa(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${U}${i}`}o(Xa,"addDefinitionRef");function hm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${et.UIVOCABULARY}`);t=`/${n}/@${et.UIVOCABULARY}${i}`}return t}o(hm,"getFacetAnnotationPath");function au(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:vi(a?u:l,t)};let p=Et(a?u:l,t,i,!0);fa(e,p,t),Ga(e,p,t),p[et.SchemaTag.annotationPath]=e.annotationPath,p[et.SchemaTag.isViewNode]=!0}o(au,"handleAddressContact");function OE(e,t,n){typeof e=="object"&&(e[t]=n)}o(OE,"updateSchemaProperty");function Tl(e,t,n=dt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${et.DefinitionName.Fields4Dialog}${n}`];OE(r.properties.fields.items,"enum",i)}o(Tl,"addFieldsType");function v8(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(v8,"findFirstSchemaDefinitionKey");function ym(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=hn(t.$ref),m=(p=e.definitions)==null?void 0:p[g];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,u=v8(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(ym,"getEnumEntry");function Qa(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=ym(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];OE(l,"oneOf",r)}else OE(a,"oneOf",r)}o(Qa,"addDescriptiveEnumDefinition");function tc(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(tc,"getActionKey");function cm(e,t,n){var i,r,a;try{if(e.Value)t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.value,value:ec(e.Value)}];else if(e.$Type===dr.UIAnnotationTypes.DataFieldWithAction||e.$Type===dr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=tc(e.Action,!0);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.action,value:s}],l&&(t[n][et.SchemaTag.target]=l)}else if(e.$Type===dr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=tc(e.Target.value,!1);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.target,value:gl(s)}],t[n][et.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===dr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===dr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=tc(s,!0);t[n][et.SchemaTag.keys]=[{name:"SemanticObject",value:e[et.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][et.SchemaTag.target]=u)}}catch{return}}o(cm,"addKeyToDefinition");var El=ie(le());var D0=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var V0="1.108.49";var w0={name:"@sap/ux-specification",version:V0,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/to-json-schema.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.33.14","@sap-ux/vocabularies-types":"0.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.9.11","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.108.49","@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.8.1",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.1","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var qa=class qa{constructor(){qa.distTagsOfSpec.length===0&&(qa.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){qa.distTagsOfSpec=[]}getSpecVersion(){return V0}getDistTagsOfVersion(){let t=[],n=D0,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let r=q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});se(n,{severity:El.LogSeverity.Info,message:r,location:{path:El.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(qa.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=q.t("WRONGMINUI5VERSION",{minUI5Version:t});se(n,{severity:El.LogSeverity.Warning,message:r,location:{path:El.MANIFESTPATH}})}}};o(qa,"DistTagEvaluator"),qa.distTagsOfSpec=[];var su=qa;var fe=ie(le());var _n=ie(le());var Ti=ie(le());function M0(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(M0,"getCustomPageFullName");function b8(e){let n=M0(e).split(".");return n[n.length-1]}o(b8,"getCustomPageName");function k0(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||Ti.ViewTypes.XML}o(k0,"getViewType");function A8(e,t){return k0(e,t).toLowerCase()}o(A8,"getViewTypeExtension");function S8(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=M0(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(S8,"getViewPath");function P8(e,t){let n=e.entitySet||b8(e),{viewPath:i,fileName:r}=S8(e,t,[n]),a=A8(e,t);return[...i,`${r}.view.${a}`].join("/")}o(P8,"getCustomPagePath");var NE=class NE{constructor(t,n,i,r){this.unhandledControllers=[];let a=Dt(Ti.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===Ti.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Ti.DirName.Pages}/${s}.json`]=u)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[Ti.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=k0(t,this.app)===Ti.ViewTypes.XML&&!!t.config;if(t.pageType===Ti.PageTypeV4.CustomPage||t.pageType===Ti.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Dt(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=Dt(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Dt(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Ti.PageTypeV4.CustomPage||t.pageType===Ti.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=P8(t,this.app);n.$filePath=i}};o(NE,"AppProvider");var za=NE;var lt=ie(le());var bl=ie(le());var $n=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),j0=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"),U0=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 LE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(LE,"getNewPageTemplate");function C8(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(C8,"findPageInManifest");function x8(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=LE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:LE(e[t].pageType)}),!Array.isArray(n.pages))){let i=C8(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=LE(e[t].pageType)),RE(t,e,i)}}o(x8,"transformPageFromAssociation");function I8(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)===bl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===bl.PageTypeV2.ListReport||n.pageType===bl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(I8,"deletePage");function RE(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===bl.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)x8(t,r,n);Array.isArray(n.pages)||I8(n,t,i)}}o(RE,"transformPageToNewManifestV2");var C1=ie(Qs());var EA={};Ks(EA,{ALPAnalyticalTable:()=>Tb,ALPGridTable:()=>vb,ALPResponsiveTable:()=>yb,Action:()=>Sb,AnalyticalCard:()=>xl,AnalyticalCardSettings:()=>bm,AnalyticalCardSettingsv4:()=>ME,AnalyticalListPageFilterBar:()=>KE,AnalyticalTable:()=>hb,BaseCustomSection:()=>ju,ChartSettings:()=>$b,ChartSettingsType:()=>DE,CommonCardSettings:()=>es,CommonFilterBar:()=>Tu,CommonHeaderFacetSettings:()=>dc,CommonTableSettings:()=>rs,CommonTableSettingsForSections:()=>vc,CreateWithFilters:()=>lb,CustomCard:()=>VE,DataLoadSettings:()=>ub,DateRange:()=>BE,DefaultDateRange:()=>HE,DefaultSpanObject:()=>_E,FRAGMENT_DEFINITION:()=>wo,Field:()=>$E,FieldForAction:()=>YE,Fields4Dialog:()=>pb,Fields4DialogOP:()=>gA,FooterAction:()=>Cb,FormAction:()=>zE,GlobalChartSettings:()=>pA,GlobalTableSettings:()=>vA,GridTable:()=>Eb,HeaderActionStandard:()=>Lb,HeaderSections:()=>qb,KPISettings:()=>Bb,LinkListCardSettings:()=>jE,LinklistCard:()=>hu,ListCard:()=>Cl,ListCardSettings:()=>wE,ListReportFilterBar:()=>XE,MultiEdit:()=>fb,ObjectPageAnalyticalTable:()=>mA,ObjectPageChart:()=>uA,ObjectPageCustomSectionFragment:()=>Uu,ObjectPageCustomSectionView:()=>$u,ObjectPageFooterAction:()=>Yb,ObjectPageFooterActionStandard:()=>Fb,ObjectPageGridTable:()=>hA,ObjectPageHeader:()=>Hb,ObjectPageHeaderAction:()=>Gb,ObjectPageHeaderActionStandard:()=>Rb,ObjectPageHeaderSectionAddress:()=>Qb,ObjectPageHeaderSectionChart:()=>Kb,ObjectPageHeaderSectionDataPoint:()=>Xb,ObjectPageHeaderSectionForm:()=>Wb,ObjectPageLayout:()=>Zb,ObjectPageResponsiveTable:()=>Tc,ObjectPageSectionAddressV2:()=>rA,ObjectPageSectionChartV2:()=>nA,ObjectPageSectionContactV2:()=>oA,ObjectPageSectionFormV2:()=>tA,ObjectPageSectionTableV2:()=>iA,ObjectPageSectionV2:()=>eA,ObjectPageSubSectionChartV2:()=>cA,ObjectPageSubSectionContactV2:()=>lA,ObjectPageSubSectionFormV2:()=>sA,ObjectPageSubSectionTableV2:()=>fA,ObjectPageSubSectionV2:()=>aA,ObjectPageToolBarAction:()=>TA,ObjectPageTreeTable:()=>yA,QuickVariantSelection:()=>db,QuickVariantSelectionOP:()=>dA,QuickVariantSelectionX:()=>gb,ResponsiveTable:()=>cc,SAP_UI_TABLE:()=>Om,SaveAndEditOP:()=>Nb,SelectionFieldDateSettings:()=>GE,SelectionFields:()=>WE,Share:()=>xb,ShareOP:()=>Ib,StackCard:()=>mu,StackCardSettings:()=>kE,TableALP:()=>Rl,TableCard:()=>Il,TableCardSettings:()=>UE,TableColumn:()=>Vb,TableColumnAction:()=>qm,TableColumnActionIntentBased:()=>wb,TableCustomColumn:()=>Mb,ToolBar:()=>jb,ToolBarAction:()=>Pb,TreeTable:()=>mb,UpAndDownNavigationOP:()=>Ob,buildIntentBasedActionId:()=>Db,deleteColumnFromFragment:()=>Rm,deleteType:()=>Dl,exportColorPalette:()=>G0,exportCreateParametersFields:()=>jm,exportCustomColumnsToFragment:()=>sb,exportDateSettingsField:()=>Q0,exportDefaultSpan:()=>W0,exportType:()=>Fl,getChartSectionControlId:()=>E1,getContactSubSectionControlId:()=>A1,getCustomColumnPath:()=>Fm,getFormSectionControlId:()=>T1,getRootCustomColumnFromFragmentJSON:()=>Au,getSectionControlId:()=>hc,getSmartChartControlId:()=>Ru,getSmartTableControlId:()=>sc,getSubSectionControlId:()=>b1,getTableSectionControlId:()=>v1,importCreateParameters:()=>km,importDateSettings:()=>QE});var Yn=ie(le());var je=o(e=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),ro=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),$0=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),B0=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var En=o(()=>Yn.ManifestSection.ovp,"getOVPsettingPath"),Ce=o(e=>{let t=[Yn.ManifestSection.ovp];return e.forEach(n=>{n in Yn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var rc=o((e,t)=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Em=o(e=>{let t=[Yn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ni=o(e=>{let t=[];return t.push(Em(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),oc=o(e=>Ni(e)+"/tableSettings","getGlobalTableSettingsPathV2"),oo=o((e,t,n)=>{let i=[];i.push(Em(e));let r=n.replace(Yn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),kr=o((e,t,n)=>oo(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),H0=o((e,t,n)=>oo(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),FE=o(()=>`sap.ui5/extends/extensions/${Yn.v2.SAPUI5_VIEW_EXTENSION}/${Yn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),ga=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),`${FE()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Tm=class Tm{};o(Tm,"ApplicationV2"),h([jt("settings")],Tm.prototype,"settings",2);var vm=Tm,Mr=class Mr{};o(Mr,"AppSettings"),h([T({manifest:{path:o(()=>"sap.app","path")}})],Mr.prototype,"title",2),h([T({manifest:{path:o(()=>"sap.app","path")}})],Mr.prototype,"description",2),h([T({manifest:{path:o(()=>"sap.fiori","path")}})],Mr.prototype,"cloudDevAdaptationStatus",2),h([T({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.50.0"})],Mr.prototype,"flexibleColumnLayout",2),h([T({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.46.0"})],Mr.prototype,"forceGlobalRefresh",2),h([T({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.74.0"})],Mr.prototype,"tableColumnVerticalAlignment",2),h([T({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"}),Ne("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Mr.prototype,"flexEnabled",2),h([T({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],Mr.prototype,"draftDiscardConfirmationSettings",2),h([T({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],Mr.prototype,"statePreservationMode",2);var Ya=Mr;var cu=ie(le());function O8(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=cu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=cu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:cu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(O8,"importColorPalette");function G0(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===cu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(G0,"exportColorPalette");function W0(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(W0,"exportDefaultSpan");var Am=class Am{};o(Am,"ChartSettingsType"),h([T({manifest:{path:o(()=>En()+"/chartSettings","path")}})],Am.prototype,"showDataLabel",2);var DE=Am,Ja=class Ja{};o(Ja,"DefaultSpanObject"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"cols",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"rows",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"showOnlyHeader",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"minimumTitleRow",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Ja.prototype,"minimumSubTitleRow",2);var _E=Ja,Xt=class Xt{};o(Xt,"CommonCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"entitySet",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"title",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"subTitle",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"annotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"dataPointAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"selectionPresentationAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"kpiAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"category",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"dynamicSubtitleAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"valueSelectionInfo",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showFilterInHeader",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"sortBy",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"sortOrder",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"identificationAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"selectionAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"presentationAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"enableLocaleCurrencyFormatting",2),h([T({manifest:{path:o(t=>Ce(t),"path"),export:W0}})],Xt.prototype,"defaultSpan",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"requireAppAuthorization",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showSortingInHeader",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"tabs",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"addODataSelect",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"showRefresh",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Xt.prototype,"customParams",2);var es=Xt,Al=class Al{};o(Al,"CustomCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Al.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Al.prototype,"template",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Al.prototype,"settings",2);var VE=Al,Za=class Za extends es{};o(Za,"ListCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Za.prototype,"showLineItemDetail",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Za.prototype,"imageSupported",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Za.prototype,"enableAddToInsights",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Za.prototype,"listFlavor",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Za.prototype,"listType",2);var wE=Za,lu=class lu{};o(lu,"ListCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],lu.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],lu.prototype,"template",2);var Cl=lu,ao=class ao extends es{};o(ao,"AnalyticalCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"chartAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"ignoreSapText",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"enableAddToInsights",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"navigation",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"valueSelectionInfo",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"chartProperties",2),h([T({manifest:{path:o(t=>Ce(t),"path"),import:O8,export:G0}})],ao.prototype,"colorPalette",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],ao.prototype,"bEnableStableColors",2);var bm=ao,Sm=class Sm extends bm{};o(Sm,"AnalyticalCardSettingsv4"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Sm.prototype,"measureAggregate",2);var ME=Sm,fu=class fu{};o(fu,"AnalyticalCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],fu.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],fu.prototype,"template",2);var xl=fu,Sl=class Sl extends es{};o(Sl,"StackCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"itemText",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"objectStreamCardsNavigationProperty",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"objectStreamCardsSettings",2);var kE=Sl,uu=class uu{};o(uu,"StackCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],uu.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],uu.prototype,"template",2);var mu=uu,Pl=class Pl extends es{};o(Pl,"LinkListCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"listFlavor",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"headerAnnotationPath",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"staticContent",2);var jE=Pl,pu=class pu{};o(pu,"LinklistCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],pu.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],pu.prototype,"template",2);var hu=pu,du=class du extends es{};o(du,"TableCardSettings"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],du.prototype,"showLineItemDetail",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],du.prototype,"enableAddToInsights",2);var UE=du,gu=class gu{};o(gu,"TableCard"),h([T({manifest:{path:o(t=>Ce(t),"path")}})],gu.prototype,"model",2),h([T({manifest:{path:o(t=>Ce(t),"path")}})],gu.prototype,"template",2);var Il=gu;var K0=ie(le());var N8=o((e,t,n,i,r)=>{let a=Qn(n[1],r),s=n.slice(-1)[0];return zt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Pm=class Pm{};o(Pm,"Field"),h([T({flex:{controlId:N8,controlType:o(()=>K0.ControlType.GroupElement,"controlType")},generate:mt})],Pm.prototype,"visible",2);var $E=Pm;var ac=ie(le());function QE(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(QE,"importDateSettings");function L8(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(L8,"importDateSettingsField");function Q0(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(Q0,"exportDateSettingsField");var Ol=class Ol{};o(Ol,"DateRange"),h([T({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],Ol.prototype,"useDateRange",2),h([T({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path"),import:QE,export:Bg}}),C({since:"1.77.0"})],Ol.prototype,"selectedValues",2),h([T({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],Ol.prototype,"exclude",2);var BE=Ol,Cm={controlId:zt,controlType:o(()=>ac.ControlType.SmartFilterBar,"controlType")},yu={path:o((e,t,n)=>`${je(e)}${ac.DATESETTINGSPATH}/fields/${n}`,"path")},X0={...yu,import:L8,export:Q0},xm=class xm{};o(xm,"DefaultDateRange"),h([T({manifest:yu}),C({since:"1.90.0"})],xm.prototype,"operation",2);var HE=xm,ts=class ts{};o(ts,"SelectionFieldDateSettings"),h([T({manifest:X0}),C({since:"1.77.0"})],ts.prototype,"selectedValues",2),h([T({manifest:yu}),C({since:"1.77.0"})],ts.prototype,"exclude",2),h([T({manifest:yu}),C({since:"1.77.0"})],ts.prototype,"customDateRangeImplementation",2),h([T({manifest:X0}),C({since:"1.77.0"})],ts.prototype,"filter",2),h([T({manifest:yu}),C({since:"1.90.0"})],ts.prototype,"defaultValue",2);var GE=ts,qE=class qE{};o(qE,"SelectionFields");var WE=qE,so=class so{};o(so,"CommonFilterBar"),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.38.0"})],so.prototype,"smartVariantManagement",2),h([T({flex:Cm}),C({since:"1.40.0"})],so.prototype,"liveMode",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.48.0"})],so.prototype,"variantManagementHidden",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.52.0"})],so.prototype,"subTitleIfVariantMgmtHidden",2),h([T({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:QE}}),C({since:"1.77.0"})],so.prototype,"dateSettings",2),h([T({flex:Cm}),C({since:"1.28.0"})],so.prototype,"showClearOnFB",2),h([T({flex:Cm}),C({since:"1.38.0"})],so.prototype,"showFilterConfiguration",2),h([T({flex:Cm}),C({since:"1.28.0"})],so.prototype,"showRestoreOnFB",2);var Tu=so,vu=class vu extends Tu{};o(vu,"AnalyticalListPageFilterBar"),h([T({manifest:{path:o(t=>je(t),"path")}})],vu.prototype,"showGoButtonOnFilterBar",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.60.0"})],vu.prototype,"filterDefaultsFromSelectionVariant",2);var KE=vu,Im=class Im extends Tu{};o(Im,"ListReportFilterBar"),h([T({manifest:{path:o(t=>je(t),"path")}}),Ne("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),C({since:"1.86.0"})],Im.prototype,"annotationPath",2);var XE=Im;var JE=ie(le());var R8=o((e,t,n,i,r)=>{if(i()===JE.ControlType.Button){let a=n[n.length-1],s=Qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return zt(e,t)},"getFormActionButtonId"),Vo={controlId:R8,controlType:o(()=>JE.ControlType.Button,"controlType")},ns=class ns{};o(ns,"FormAction"),h([T({flex:Vo,generate:mt})],ns.prototype,"visible",2),h([T({flex:Vo})],ns.prototype,"tooltip",2),h([T({flex:Vo})],ns.prototype,"icon",2),h([T({flex:Vo})],ns.prototype,"activeIcon",2),h([T({flex:Vo})],ns.prototype,"type",2);var zE=ns,is=class is{};o(is,"FieldForAction"),h([T({flex:Vo,generate:mt})],is.prototype,"visible",2),h([T({flex:Vo})],is.prototype,"tooltip",2),h([T({flex:Vo})],is.prototype,"icon",2),h([T({flex:Vo})],is.prototype,"activeIcon",2),h([T({flex:Vo}),C({since:"1.73.0"})],is.prototype,"type",2);var YE=is;var bt=ie(le()),co=ie(Qs());var nb=require("path"),q8=ie(le()),s1=ie(a1()),c1=require("fs");var z8=(0,nb.join)(__dirname,"templates");var Y8=o((e,t)=>{let n=(0,c1.readFileSync)(e,"utf8");return(0,s1.render)(n,t)},"renderTemplate");var ib=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 Y8((0,nb.join)(z8,t+".xml"),n)},"getSingleColumnContent"),rb=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=ib(i,t);n=n+`
|
|
289
289
|
`+r}return n+`
|
|
290
290
|
</core:FragmentDefinition>`},"getColumnFragmentContent"),ob=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 Nm=require("path");var wo="core:FragmentDefinition",Om="sap.ui.table",ab=new Map([[bt.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[bt.ViewTemplateType.TreeTableColumnsExtension,{namespace:Om,name:"Column"}],[bt.ViewTemplateType.GridTableColumnsExtension,{namespace:Om,name:"Column"}],[bt.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Om,name:"AnalyticalColumn"}]]),Z8=new Map([[bt.v2.FE_TEMPLATE_V2_LIST_REPORT,bt.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[bt.v2.FE_TEMPLATE_V2_ALP,bt.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[bt.v2.FE_TEMPLATE_V2_OBJECT_PAGE,bt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),u1={type:"element",name:"Text",attributes:{text:"Placeholder"}},eK=JSON.stringify(u1);function tK(e,t){var i;let n=t?(i=e==null?void 0:e[wo])==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(tK,"getFragmentNamespaces");function f1(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(f1,"getTagName");function Lm(e,t,n=e){let i=tK(n,!!(t||n!==e));if(t){let r=ab.get(t);return f1(r,i.get(r.namespace))}else{let r=ab.keys();for(let a of r){let s=ab.get(a),l=i?f1(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(Lm,"getTagNameFromFragmentJSON");function Au(e,t=e){let n=Lm(e,void 0,t);return e[n]}o(Au,"getRootCustomColumnFromFragmentJSON");function nK(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(nK,"addP13nData");function p1(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=nK(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(p1,"handleFragmentColumn");function iK(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]+bt.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(Nm.sep);if(p[p.length-1]===l){let g=JSON.parse((0,co.xml2json)(u.fileContent,{compact:!0}));try{let m=Lm(g[wo]);m&&(delete g[wo][m],u.fileContent=(0,co.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${u.dataSourceUri}, please check content`)}break}}}o(iK,"deleteColumnsFromFragment");function d1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===eK&&(e.splice(n,1),t-=1,t===0));n++);}o(d1,"deleteNumberOfCells");function rK(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+bt.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,co.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&d1(l.elements[0].elements,u.length),s.fileContent=(0,co.json2xml)(JSON.stringify(l),{spaces:4});break}}o(rK,"deleteCellsFromFragment");function Rm(e,t,n,i){if(i){iK(e,i,t,n);let r=t.replace(bt.ViewTemplateType.ResponsiveTableColumnsExtension,bt.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&rK(a,i,n)}}o(Rm,"deleteColumnFromFragment");function oK(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(u1)}o(oK,"addNewColumnsInFragment");function aK(e,t){let n=JSON.parse((0,co.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)oK(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;d1(a,r)}e.fileContent=(0,co.json2xml)(JSON.stringify(n),{spaces:4})}}o(aK,"updateNonEmptyCellsFragment");function sK(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(Nm.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=bt.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=ob(n):aK(r,n);break}}return i}o(sK,"updateCellsFragment");function cK(e,t,n,i,r){var g;let a,s,l=t.manifest,u=$n(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){se(r,{severity:bt.LogSeverity.Error,message:q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=bt.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,a=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,Nm.sep))+bt.FRAGMENTNAMEPART+p}if(e.indexOf(bt.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=bt.ChangeIndicator.Updated;let m=e.replace(bt.ViewTemplateType.ResponsiveTableColumnsExtension,bt.ViewTemplateType.ResponsiveTableCellsExtension),v=$n(l,m),A=n.reduce((E,O)=>O.cellsFragmentName?O:E);A&&A.cellsFragmentName?(v.fragmentName=s=A.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):$0(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(cK,"exportCustomColumnsToManifest");function lK(e,t,n,i,r){let a=ib(e,t);if(a){let s=JSON.parse((0,co.xml2json)(a,{compact:!0})),l=Au(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(lK,"insertNewColumnInFragment");function fK(e,t){let n=[];for(let i=0;i<e.length;i++)p1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(fK,"processCustomColumnInArray");function uK(e,t,n){if(e){if(Array.isArray(e))fK(e,t);else if(!p1(e,t)){let r=Lm(n[wo]);r&&(delete n[wo][r],e=void 0)}}return e}o(uK,"maintainExistingColumnInFragment");function pK(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=lK(a,i,n,r,s)}return n}o(pK,"insertNewColumnsInFragment");function dK(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=bt.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=rb(i,r);else{let u=JSON.parse((0,co.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Au(u[wo]),l=uK(l,i,u),l=pK(i,n,l,r,u);let g=Lm(u,r);u[wo][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,co.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(dK,"updateColumnsInFragment");function sb(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=cK(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),v=l.fragmentName,A=v.substr(i.length+1),E=A.split(".");v=E[E.length-1]+bt.FRAGMENTNAMEPART+g;let F=p==null?void 0:p.split("."),j=F?F[F.length-1]:null,G=j?j+bt.FRAGMENTNAMEPART+g:null,B=dK(s,v,A,m,r),ae=!1;if(p?ae=sK(s,G,n):ae=!0,!B){let Z={fileContent:rb(m,r),dataSourceUri:u,changeIndicator:bt.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!ae){let Z={fileContent:ob(n),dataSourceUri:u.replace(v,G),changeIndicator:bt.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(sb,"exportCustomColumnsToFragment");var Fm=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=Z8.get((u=e.component)==null?void 0:u.name);if(!i){let v=(m=(g=(p=e.component)==null?void 0:p.settings)==null?void 0:g.tableSettings)==null?void 0:m.type;v||(v="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(v="AnalyticalTable"),i=v+"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 oi=ie(le());var cb="/multiEdit",sc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+oi.PropertyName.table:zt(e,t),"getSmartTableControlId");function km(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(km,"importCreateParameters");function jm(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(jm,"exportCreateParametersFields");function gK(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(gK,"exportVariants");function mK(e,t){t.variants&&(Object.keys(t.variants).length>0?gK(e,t):delete e.variants)}o(mK,"exportQuickVariantSelectionX");function hK(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(hK,"importMultiEdit");var Dm=class Dm{};o(Dm,"CreateWithFilters"),h([T({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],Dm.prototype,"strategy",2);var lb=Dm,Nl=class Nl{};o(Nl,"MultiEdit"),h([T({manifest:{path:o(t=>ro(t)+cb,"path")}})],Nl.prototype,"enabled",2),h([T({manifest:{path:o(t=>ro(t)+cb,"path")}})],Nl.prototype,"annotationPath",2),h([T({manifest:{path:o(t=>ro(t)+cb,"path"),export:Bg}})],Nl.prototype,"ignoredFields",2);var fb=Nl;function Cu(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(Cu,"importType");function Fl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Fl,"exportType");function Dl(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(Dl,"deleteType");var _m=class _m{};o(_m,"DataLoadSettings"),h([T({manifest:{path:o(t=>H0(t),"path")}}),C({since:"1.75.2"})],_m.prototype,"loadDataOnAppLaunch",2);var ub=_m,Vm=class Vm{};o(Vm,"Fields4Dialog"),h([T({manifest:{path:o(t=>ro(t)+"/createWithParameterDialog","path"),export:jm}}),C({since:"1.77.0"})],Vm.prototype,"fields",2);var pb=Vm,Su=class Su{};o(Su,"QuickVariantSelection"),h([T({manifest:{path:o(t=>je(t)+oi.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Su.prototype,"showCounts",2),h([T({manifest:{path:o(t=>je(t)+oi.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Su.prototype,"variants",2);var db=Su,Ll=class Ll{};o(Ll,"QuickVariantSelectionX"),h([T({manifest:{path:o(t=>je(t)+oi.QUICKVARPATHX,"path")}}),C({since:"1.48.0"})],Ll.prototype,"showCounts",2),h([T({manifest:{path:o(t=>je(t)+oi.QUICKVARPATHX,"path")}}),C({since:"1.48.0"})],Ll.prototype,"enableAutoBinding",2),h([T({manifest:{path:o(t=>je(t)+oi.QUICKVARPATHX,"path"),export:mK}}),C({since:"1.48.0"})],Ll.prototype,"variants",2);var gb=Ll,Ei=class Ei{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(Ei,"CommonTableSettings"),h([T({manifest:{key:"createWithParameterDialog",path:o(t=>ro(t),"path"),import:km}}),C({since:"1.77.0"})],Ei.prototype,"createWithParameterDialog",2),h([T({flex:{controlId:zt,controlType:o(()=>oi.ControlType.SmartTable,"controlType")}}),C({since:"1.38.0"})],Ei.prototype,"showTablePersonalisation",2),h([T({flex:{controlId:sc,controlType:o(()=>oi.ControlType.SmartTable,"controlType")}}),C({since:"1.26.0"})],Ei.prototype,"useExportToExcel",2),h([T({flex:{controlId:sc,controlType:o(()=>oi.ControlType.SmartTable,"controlType")}}),C({since:"1.50.0"})],Ei.prototype,"exportType",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.48.0"})],Ei.prototype,"quickVariantSelection",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.48.0"})],Ei.prototype,"quickVariantSelectionX",2),h([T({manifest:{path:o(t=>ro(t),"path")}}),C({since:"1.38.0"})],Ei.prototype,"multiSelect",2),h([T({manifest:{path:o(t=>ro(t),"path")}}),C({since:"1.70.0"})],Ei.prototype,"selectAll",2),h([T({manifest:{path:o(t=>ro(t),"path")}}),C({since:"1.70.0"})],Ei.prototype,"selectionLimit",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.75.2"})],Ei.prototype,"dataLoadSettings",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.42.0"})],Ei.prototype,"condensedTableLayout",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.56.0"}),Ne("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],Ei.prototype,"enableTableFilterInPageVariant",2),h([jt("toolBar")],Ei.prototype,"toolBar",2);var rs=Ei,Mo=class Mo extends rs{};o(Mo,"ResponsiveTable"),h([T({manifest:{path:o(t=>je(t),"path"),import:Cu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],Mo.prototype,"type",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.54.0"})],Mo.prototype,"createWithFilters",2),h([T({flex:{controlId:sc,controlType:o(()=>oi.ControlType.Table,"controlType")},generate:qn}),C({since:"1.52.0"})],Mo.prototype,"popinLayout",2),h([T({flex:{controlId:sc,controlType:o(()=>oi.ControlType.Table,"controlType")}})],Mo.prototype,"includeItemInSelection",2),h([T({manifest:{path:o(t=>ro(t),"path")}}),C({since:"1.77.0"})],Mo.prototype,"inlineDelete",2),h([T({flex:{controlId:sc,controlType:o(()=>oi.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],Mo.prototype,"growingThreshold",2),h([T({manifest:{path:o(t=>ro(t),"path"),import:hK}}),C({since:"1.98.0"})],Mo.prototype,"multiEdit",2);var cc=Mo,wm=class wm extends rs{};o(wm,"TreeTable"),h([T({manifest:{path:o(t=>je(t),"path"),import:Cu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],wm.prototype,"type",2);var mb=wm,lo=class lo extends rs{};o(lo,"AnalyticalTable"),h([T({manifest:{path:o(t=>je(t),"path"),import:Cu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],lo.prototype,"type",2),h([T({manifest:{path:o(t=>je(t),"path")}})],lo.prototype,"qualifier",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.38.0"}),T({manifest:{path:o(t=>je(t),"path")}})],lo.prototype,"defaultContentView",2),h([T({manifest:{path:o(t=>je(t),"path")}})],lo.prototype,"defaultFilterMode",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.60.0"})],lo.prototype,"contentTitle",2),h([T({manifest:{path:o(t=>je(t),"path")}})],lo.prototype,"autoHide",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.78.0"})],lo.prototype,"allFiltersAsInParameters",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.54.0"})],lo.prototype,"createWithFilters",2);var hb=lo,ko=class ko extends rs{};o(ko,"TableALP"),h([T({manifest:{path:o(t=>je(t),"path"),import:Cu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],ko.prototype,"type",2),h([T({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"qualifier",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.38.0"}),T({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"defaultContentView",2),h([T({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"defaultFilterMode",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.60.0"})],ko.prototype,"contentTitle",2),h([T({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"autoHide",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.78.0"})],ko.prototype,"allFiltersAsInParameters",2);var Rl=ko,Mm=class Mm extends Rl{};o(Mm,"ALPResponsiveTable"),h([T({flex:{controlId:sc,controlType:o(()=>oi.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],Mm.prototype,"growingThreshold",2);var yb=Mm,bb=class bb extends Rl{};o(bb,"ALPGridTable");var vb=bb,Ab=class Ab extends Rl{};o(Ab,"ALPAnalyticalTable");var Tb=Ab,Pu=class Pu extends rs{};o(Pu,"GridTable"),h([T({manifest:{path:o(t=>je(t),"path"),import:Cu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],Pu.prototype,"type",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.54.0"})],Pu.prototype,"createWithFilters",2);var Eb=Pu;var xu=ie(le());var yK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}action::${Ki(i).replace(":2f","::")}`},"getActionButtonId"),vK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}template::${i}`},"getStandardActionButtonId"),TK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}${em}${i}`},"getStandardFooterActionOPButtonId"),Db=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Qi(n);return`${e}action::${i}::${Ki(r)}`},"buildIntentBasedActionId"),EK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}action::${Ki(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),os={controlId:yK,controlType:o(()=>xu.ControlType.Button,"controlType")},Iu={controlId:vK,controlType:o(()=>xu.ControlType.Button,"controlType")},g1={controlId:TK,controlType:o(()=>xu.ControlType.Button,"controlType")},Um={controlId:EK,controlType:o(()=>xu.ControlType.Button,"controlType")},lc=class lc{};o(lc,"Action"),h([T({flex:os})],lc.prototype,"tooltip",2),h([T({flex:os})],lc.prototype,"icon",2),h([T({flex:os})],lc.prototype,"activeIcon",2),h([T({flex:os})],lc.prototype,"type",2);var Sb=lc,fc=class fc{};o(fc,"ToolBarAction"),h([T({flex:os})],fc.prototype,"tooltip",2),h([T({flex:os})],fc.prototype,"icon",2),h([T({flex:os})],fc.prototype,"activeIcon",2),h([T({flex:os})],fc.prototype,"type",2);var Pb=fc,uc=class uc{};o(uc,"FooterAction"),h([T({flex:Um})],uc.prototype,"tooltip",2),h([T({flex:Um})],uc.prototype,"icon",2),h([T({flex:Um})],uc.prototype,"activeIcon",2),h([T({flex:Um})],uc.prototype,"type",2);var Cb=uc,$m=class $m{};o($m,"Share"),h([T({flex:Iu})],$m.prototype,"visible",2);var xb=$m,Bm=class Bm{};o(Bm,"ShareOP"),h([T({flex:Iu})],Bm.prototype,"visible",2);var Ib=Bm,Hm=class Hm{};o(Hm,"UpAndDownNavigationOP"),h([T({flex:Iu})],Hm.prototype,"visible",2);var Ob=Hm,Gm=class Gm{};o(Gm,"SaveAndEditOP"),h([T({flex:g1,generate:mt})],Gm.prototype,"visible",2);var Nb=Gm,Wm=class Wm{};o(Wm,"HeaderActionStandard"),h([T({flex:Iu})],Wm.prototype,"visible",2);var Lb=Wm,Km=class Km{};o(Km,"ObjectPageHeaderActionStandard"),h([T({flex:Iu})],Km.prototype,"visible",2);var Rb=Km,Xm=class Xm{};o(Xm,"ObjectPageFooterActionStandard"),h([T({flex:g1})],Xm.prototype,"visible",2);var Fb=Xm;var Lu=ie(le());var bK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Qi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),AK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Qi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),SK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),_b={controlId:bK,controlType:o(()=>Lu.ControlType.TableColumn,"controlType")},Ou={controlId:SK,controlType:o(()=>Lu.ControlType.Button,"controlType")},m1={..._b,controlId:AK},Qm={...Ou,controlId:Db},Nu=class Nu{};o(Nu,"TableColumn"),h([T({flex:{controlId:bE,controlType:o(()=>Lu.ControlType.TableColumn,"controlType")}})],Nu.prototype,"width",2),h([T({flex:{controlId:bE,controlType:o(()=>Lu.ControlType.TableColumn,"controlType")},generate:qn})],Nu.prototype,"hAlign",2);var Vb=Nu,ma=class ma{};o(ma,"TableColumnAction"),h([T({flex:_b})],ma.prototype,"width",2),h([T({flex:_b,generate:qn})],ma.prototype,"hAlign",2),h([T({flex:Ou})],ma.prototype,"tooltip",2),h([T({flex:Ou})],ma.prototype,"icon",2),h([T({flex:Ou})],ma.prototype,"activeIcon",2),h([T({flex:Ou})],ma.prototype,"type",2);var qm=ma,ha=class ha extends qm{};o(ha,"TableColumnActionIntentBased"),h([T({flex:m1})],ha.prototype,"width",2),h([T({flex:m1,generate:qn})],ha.prototype,"hAlign",2),h([T({flex:Qm})],ha.prototype,"tooltip",2),h([T({flex:Qm})],ha.prototype,"icon",2),h([T({flex:Qm})],ha.prototype,"activeIcon",2),h([T({flex:Qm})],ha.prototype,"type",2);var wb=ha,kb=class kb{};o(kb,"TableCustomColumn");var Mb=kb;var Ub=class Ub{};o(Ub,"ToolBar");var jb=Ub;var pc=ie(le());var Ru=o(e=>e+pc.PropertyName.chart,"getSmartChartControlId"),as=class as{};o(as,"ChartSettings"),h([T({flex:{controlId:Ru,controlType:o(()=>pc.ControlType.SmartChart,"controlType")}})],as.prototype,"showLegendButton",2),h([T({flex:{controlId:Ru,controlType:o(()=>pc.ControlType.SmartChart,"controlType")}})],as.prototype,"showDownloadButton",2),h([T({flex:{controlId:Ru,controlType:o(()=>pc.ControlType.SmartChart,"controlType")}})],as.prototype,"showChartTypeSelectionButton",2),h([T({flex:{controlId:Ru,controlType:o(()=>pc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],as.prototype,"ignoredChartTypes",2),h([T({manifest:{path:o(t=>B0(t),"path")}}),C({since:"1.81.0"})],as.prototype,"showDataLabel",2);var $b=as;var ya=class ya{};o(ya,"KPISettings"),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ya.prototype,"model",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ya.prototype,"entitySet",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ya.prototype,"qualifier",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ya.prototype,"filterable",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ya.prototype,"detailNavigation",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ya.prototype,"groupId",2);var Bb=ya;var h1=ie(le());var PK=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",zt(e,n)},"getAvatarControlId"),ss=class ss{};o(ss,"ObjectPageHeader"),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.46.0"})],ss.prototype,"showRelatedApps",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.46.0"})],ss.prototype,"editableHeaderContent",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.48.0"})],ss.prototype,"simpleHeaderFacets",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.48.0"}),Ne("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],ss.prototype,"showHeaderAsCarouselOnDesktop",2),h([T({flex:{controlId:PK,controlType:o(()=>h1.ControlType.Avatar,"controlType")},generate:mt})],ss.prototype,"displayShape",2);var Hb=ss;var zm=ie(le());var CK=o((e,t,n,i)=>{if(i()===zm.ControlType.Button||i()===zm.ControlType.HeaderAction){let r=n[2];return`${e}action::${Ki(r)}`}return zt(e,t)},"getActionButtonId"),Fu={controlId:CK,controlType:o(()=>zm.ControlType.HeaderAction,"controlType")},cs=class cs{};o(cs,"ObjectPageHeaderAction"),h([T({flex:Fu,generate:mt})],cs.prototype,"visible",2),h([T({flex:Fu})],cs.prototype,"tooltip",2),h([T({flex:Fu})],cs.prototype,"icon",2),h([T({flex:Fu})],cs.prototype,"activeIcon",2),h([T({flex:Fu})],cs.prototype,"type",2);var Gb=cs;var Du=ie(le());var nh="header::headerEditable::",xK=o((e,t,n,i,r)=>`${e}${nh}${r}`,"getDataPointHeaderSectionId"),IK=o((e,t,n,i,r)=>`${e}${nh}${r}::ContactAddress`,"getAddressHeaderSectionId"),OK=o((e,t,n,i,r)=>`${e}${nh}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),y1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(Du.FACETTITLEPREFIX)?r.split(Du.FACETTITLEPREFIX)[1]:a;return`${e}${nh}${s}::Form`},"getFormHeaderSectionId"),_u={controlType:o(()=>Du.ControlType.ObjectPageHeaderSection,"controlType")},Ym=class Ym{};o(Ym,"CommonHeaderFacetSettings"),h([T({flex:{..._u,controlId:y1},generate:mt})],Ym.prototype,"visible",2);var dc=Ym,Jm=class Jm extends dc{};o(Jm,"ObjectPageHeaderSectionForm"),h([T({flex:{..._u,controlId:y1}})],Jm.prototype,"visible",2);var Wb=Jm,Zm=class Zm extends dc{};o(Zm,"ObjectPageHeaderSectionChart"),h([T({flex:{..._u,controlId:OK}})],Zm.prototype,"visible",2);var Kb=Zm,eh=class eh extends dc{};o(eh,"ObjectPageHeaderSectionDataPoint"),h([T({flex:{..._u,controlId:xK}})],eh.prototype,"visible",2);var Xb=eh,th=class th extends dc{};o(th,"ObjectPageHeaderSectionAddress"),h([T({flex:{..._u,controlId:IK}})],th.prototype,"visible",2);var Qb=th,zb=class zb{};o(zb,"HeaderSections");var qb=zb;var Jb=ie(le());var NK=o((e,t,n,i)=>{if(i()===Jb.ControlType.Button){let{actionId:r}=Qi(n);return`${e}action::${Ki(r)}::Determining`}return zt(e,t)},"getFooterActionButtonId"),Vu={controlId:NK,controlType:o(()=>Jb.ControlType.Button,"controlType")},ls=class ls{};o(ls,"ObjectPageFooterAction"),h([T({flex:Vu,generate:mt})],ls.prototype,"visible",2),h([T({flex:Vu})],ls.prototype,"tooltip",2),h([T({flex:Vu})],ls.prototype,"icon",2),h([T({flex:Vu})],ls.prototype,"activeIcon",2),h([T({flex:Vu})],ls.prototype,"type",2);var Yb=ls;var wu=ie(le());var ih=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",zt(e,n)},"getControlId"),gc=class gc{};o(gc,"ObjectPageLayout"),h([T({flex:{controlId:ih,controlType:o(()=>wu.ControlType.ObjectPageLayout,"controlType")},generate:mt})],gc.prototype,"showHeaderContent",2),h([T({flex:{controlId:ih,controlType:o(()=>wu.ControlType.ObjectPageLayout,"controlType")}})],gc.prototype,"showAnchorBar",2),h([T({flex:{controlId:ih,controlType:o(()=>wu.ControlType.ObjectPageLayout,"controlType")}})],gc.prototype,"useIconTabBar",2),h([T({flex:{controlId:ih,controlType:o(()=>wu.ControlType.ObjectPageLayout,"controlType")}}),C({since:"1.34.0"})],gc.prototype,"alwaysShowContentHeader",2);var Zb=gc;var v1=ie(le());var mc=class mc{};o(mc,"BaseCustomSection"),h([T({manifest:{path:ga,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),C({since:"1.52.0"})],mc.prototype,"relatedFacet",2),h([T({manifest:{path:ga,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),C({since:"1.52.0"})],mc.prototype,"relativePosition",2),h([T({manifest:{path:o((t,n,i)=>ga(t,{},i,v1.ManifestSection.generic),"path")}}),C({since:"1.52.0"})],mc.prototype,"title",2),h([T({manifest:{path:ga}}),C({since:"1.52.0"})],mc.prototype,"className",2);var ju=mc,Mu=class Mu extends ju{};o(Mu,"ObjectPageCustomSectionFragment"),h([T({manifest:{path:ga}}),C({since:"1.52.0"})],Mu.prototype,"fragmentName",2),h([T({manifest:{path:ga}}),C({since:"1.52.0"})],Mu.prototype,"type",2);var Uu=Mu,ku=class ku extends ju{};o(ku,"ObjectPageCustomSectionView"),h([T({manifest:{path:ga}}),C({since:"1.52.0"})],ku.prototype,"viewName",2),h([T({manifest:{path:ga}}),C({since:"1.52.0"})],ku.prototype,"type",2);var $u=ku;var zi=ie(le());var T1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),zi.DefinitionName.Table];return zt(e,s)},"getTableSectionControlId"),E1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"FormGroup"];return zt(e,s)},"getFormSectionControlId"),b1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Chart"];return zt(e,s)},"getChartSectionControlId"),hc=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Section"];return zt(e,s)},"getSectionControlId"),A1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"SubSection"];return zt(e,s)},"getSubSectionControlId"),S1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"ContactsList"];return zt(e,s)},"getContactSubSectionControlId"),rh=class rh{};o(rh,"ObjectPageSectionV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:mt})],rh.prototype,"visible",2);var eA=rh,oh=class oh{};o(oh,"ObjectPageSectionFormV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:mt})],oh.prototype,"visible",2);var tA=oh,ah=class ah{};o(ah,"ObjectPageSectionChartV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:mt})],ah.prototype,"visible",2);var nA=ah,sh=class sh{};o(sh,"ObjectPageSectionTableV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:mt})],sh.prototype,"visible",2);var iA=sh,ch=class ch{};o(ch,"ObjectPageSectionAddressV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:mt})],ch.prototype,"visible",2);var rA=ch,lh=class lh{};o(lh,"ObjectPageSectionContactV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:mt})],lh.prototype,"visible",2);var oA=lh,fh=class fh{};o(fh,"ObjectPageSubSectionV2"),h([T({flex:{controlId:A1,controlType:o(()=>zi.ControlType.SubSection,"controlType")},generate:mt})],fh.prototype,"visible",2);var aA=fh,uh=class uh{};o(uh,"ObjectPageSubSectionFormV2"),h([T({flex:{controlId:E1,controlType:o(()=>zi.ControlType.Group,"controlType")},generate:mt})],uh.prototype,"visible",2);var sA=uh,ph=class ph{};o(ph,"ObjectPageSubSectionChartV2"),h([T({flex:{controlId:b1,controlType:o(()=>zi.ControlType.SmartChart,"controlType")},generate:mt})],ph.prototype,"visible",2);var cA=ph,dh=class dh{};o(dh,"ObjectPageSubSectionContactV2"),h([T({flex:{controlId:S1,controlType:o(()=>zi.ControlType.SubSection,"controlType")},generate:mt})],dh.prototype,"visible",2);var lA=dh,gh=class gh{};o(gh,"ObjectPageSubSectionTableV2"),h([T({flex:{controlId:T1,controlType:o(()=>zi.ControlType.SmartTable,"controlType")},generate:mt})],gh.prototype,"visible",2);var fA=gh;var mh=class mh{};o(mh,"ObjectPageChart"),h([T({manifest:{path:G0}}),C({since:"1.78.0"})],mh.prototype,"variantManagement",2);var uA=mh,hh=class hh{};o(hh,"GlobalChartSettings"),h([T({manifest:{path:o(t=>Ni(t)+"/chartSettings","path")}}),C({since:"1.78.0"})],hh.prototype,"variantManagement",2);var pA=hh;var gr=ie(le());var yc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=gr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=Qn(a[0],r),zt(e,a)},"getSmartTableControlId"),Bu=class Bu{};o(Bu,"QuickVariantSelectionOP"),h([T({manifest:{path:o((t,n,i)=>oo(t,n,i)+gr.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Bu.prototype,"showCounts",2),h([T({manifest:{path:o((t,n,i)=>oo(t,n,i)+gr.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Bu.prototype,"variants",2);var dA=Bu,yh=class yh{};o(yh,"Fields4DialogOP"),h([T({manifest:{path:o((t,n,i)=>Mr(t,n,i)+"/createWithParameterDialog","path"),export:jm}}),C({since:"1.77.0"})],yh.prototype,"fields",2);var gA=yh,bi=class bi{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(bi,"CommonTableSettingsForSections"),h([T({manifest:{key:"createWithParameterDialog",path:Mr,import:km}}),C({since:"1.77.0"})],bi.prototype,"createWithParameterDialog",2),h([T({flex:{controlId:yc,controlType:o(()=>gr.ControlType.SmartTable,"controlType")}}),C({since:"1.28.0"})],bi.prototype,"editable",2),h([T({flex:{controlId:yc,controlType:o(()=>gr.ControlType.SmartTable,"controlType")}}),C({since:"1.95.0"}),Ne("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],bi.prototype,"showPasteButton",2),h([T({manifest:{path:Mr}}),C({since:"1.54.0"})],bi.prototype,"multiSelect",2),h([T({manifest:{path:Mr}}),C({since:"1.70.0"})],bi.prototype,"selectAll",2),h([T({manifest:{path:Mr}}),C({since:"1.70.0"})],bi.prototype,"selectionLimit",2),h([T({manifest:{path:oo}}),C({since:"1.63.0"})],bi.prototype,"quickVariantSelection",2),h([T({flex:{controlId:yc,controlType:o(()=>gr.ControlType.SmartTable,"controlType")}}),C({since:"1.26.0"})],bi.prototype,"useExportToExcel",2),h([T({flex:{controlId:yc,controlType:o(()=>gr.ControlType.SmartTable,"controlType")}}),C({since:"1.50.0"})],bi.prototype,"exportType",2),h([T({manifest:{path:oo}}),C({since:"1.48.5"}),Ne("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],bi.prototype,"createMode",2),h([T({manifest:{path:oo}}),C({since:"1.61.0"})],bi.prototype,"disableDefaultInlineCreateSort",2),h([T({manifest:{path:Mr}}),C({since:"1.78.0"})],bi.prototype,"variantManagement",2),h([jt("toolBar")],bi.prototype,"toolBar",2);var vc=bi,fs=class fs extends vc{};o(fs,"ObjectPageResponsiveTable"),h([T({manifest:{path:Mr}})],fs.prototype,"type",2),h([T({flex:{controlId:yc,controlType:o(()=>gr.ControlType.Table,"controlType")}})],fs.prototype,"includeItemInSelection",2),h([T({flex:{controlId:yc,controlType:o(()=>gr.ControlType.Table,"controlType")},generate:mt}),C({since:"1.52.0"})],fs.prototype,"popinLayout",2),h([T({manifest:{path:Mr}}),C({since:"1.77.0"})],fs.prototype,"inlineDelete",2),h([T({flex:{controlId:yc,controlType:o(()=>gr.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],fs.prototype,"growingThreshold",2);var Tc=fs,Hu=class Hu extends vc{};o(Hu,"ObjectPageAnalyticalTable"),h([T({manifest:{path:Mr}})],Hu.prototype,"type",2),h([T({manifest:{path:oo}}),C({since:"1.67.0"})],Hu.prototype,"condensedTableLayout",2);var mA=Hu,Gu=class Gu extends vc{};o(Gu,"ObjectPageGridTable"),h([T({manifest:{path:Mr}})],Gu.prototype,"type",2),h([T({manifest:{path:oo}}),C({since:"1.67.0"})],Gu.prototype,"condensedTableLayout",2);var hA=Gu,Wu=class Wu extends vc{};o(Wu,"ObjectPageTreeTable"),h([T({manifest:{path:Mr}})],Wu.prototype,"type",2),h([T({manifest:{path:oo}}),C({since:"1.67.0"})],Wu.prototype,"condensedTableLayout",2);var yA=Wu,va=class va{};o(va,"GlobalTableSettings"),h([T({manifest:{path:oc}}),C({since:"1.70.0"})],va.prototype,"selectAll",2),h([T({manifest:{path:oc}}),C({since:"1.78.0"})],va.prototype,"variantManagement",2),h([T({manifest:{path:oc}})],va.prototype,"type",2),h([T({manifest:{path:oc}}),C({since:"1.54.0"})],va.prototype,"multiSelect",2),h([T({manifest:{path:oc}}),C({since:"1.67.0"})],va.prototype,"condensedTableLayout",2),h([T({manifest:{path:oc}}),C({since:"1.77.0"})],va.prototype,"inlineDelete",2);var vA=va;var P1=ie(le());var LK=o((e,t,n,i,r)=>{let{actionId:a}=Qi(n),s=Qn(n[1],r);return`${e}${s}::action::${Ki(a).replace(":2f","::")}`},"getActionButtonId"),Ku={controlId:LK,controlType:o(()=>P1.ControlType.Button,"controlType")},us=class us{};o(us,"ObjectPageToolBarAction"),h([T({flex:Ku,generate:mt})],us.prototype,"visible",2),h([T({flex:Ku})],us.prototype,"tooltip",2),h([T({flex:Ku})],us.prototype,"icon",2),h([T({flex:Ku})],us.prototype,"activeIcon",2),h([T({flex:Ku})],us.prototype,"type",2);var TA=us;var Li=ie(le());function bA(e,t,n,i){if(t.controlType===Li.ControlType.TableColumn||t.controlType===Li.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===Li.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Li.VOCWITHCOLONS),u=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(u!=null&&u.startsWith("DataField")?u=u==null?void 0:u.replace("/",":2f"):u=u==null?void 0:u.replace("/","_"),u!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(bA,"addFlexChangeToConfigTableColumn");function vh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Li.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(vh,"addFlexChangeToConfigTable");function Th(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,v,A;let s=to(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(g=s.content)!=null&&g.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},u;if(s.controlType===Li.ControlType.TableColumn)u=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let E=(!t.table.type||t.table.type===Li.v2.TableTypeV2.ResponsiveTable)&&!((v=l.controlId)!=null&&v.includes(Li.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Li.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;u=(A=e.jsonSchema.definitions[`${E}<${r}>`])==null?void 0:A.properties[l.propertyId]}u&&bA(t.table,l,n,i)})}o(Th,"importFlexChangesOfColumn");function ps(e){return e.replace("/","::")}o(ps,"convertActionKey");function AA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(AA,"convertSelector");function RK(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(RK,"addSmartFilterBarFlex");function FK(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=Ki((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let u=a.split(":::"),p=u.find(v=>v.startsWith("sSemanticObject")),g=u.find(v=>v.startsWith("sAction")),m=g.split("sAction::")[1].replace(":2f","::");if(p){let v=`${p.split("::")[1]}::${m}`,A=`${u[0]}:::${p}:::${g}`;i.set(v,r),i.set(r,A)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(FK,"filterActions");function DK(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(DK,"addColumnActionConfigPart");function _K(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(_K,"getActionId");function VK(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=FK(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"&&DK(s,e,m);let v=s.configPart[m];((p=i.definitions[g])==null?void 0:p.properties[t])&&v&&(v[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(VK,"addActionFlex");function wK(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=zn(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(wK,"addSmartChartFlex");function Eh(e,t,n,i){var r,a;try{let s=to(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=AA(s.controlId),s.controlType){case lt.ControlType.SmartFilterBar:{RK(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=_K(s);u&&VK(e,l,s,n,u);break}case lt.ControlType.SmartChart:{wK(e,l,s,n);break}default:break}}catch(s){se(i,{severity:lt.LogSeverity.Error,message:q.t("FLEXERROR")},...s)}}o(Eh,"addFlex");function MK(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(MK,"adjustQuickVariantSelectionX");function Dn(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=zn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=$n(t,g),ml(p,s,u,e),qg(l,s,g,r)}MK(u,e)}}o(Dn,"transferSettingsOfObject");function bh(e,t){var r,a,s,l,u,p,g,m,v;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):((v=n.component)==null?void 0:v.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=lt.v2.TableTypeV2.AnalyticalTable),i}o(bh,"determineTableType");function C1(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 v={...(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&&(v.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(v)}}o(C1,"evaluateFragmentColumn");function kK(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(kK,"determineCellsFragmentName");function jK(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,x1.xml2json)(e[0].fileContent,{compact:!0}))[wo];try{let g=Au(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)C1(m,n,i,r,t,a,s);else C1(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(jK,"analyzeFilteredFragments");function UK(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",v=e[s].fragmentName;if(!v)continue;let A=kK(u,e,p,g),E=v.split(".");v=E[E.length-1]+lt.FRAGMENTNAMEPART+m;let O=i.fragments.filter(F=>F.dataSourceUri.endsWith(v));try{jK(O,n,e,s,g,u,A)}catch(F){i.logger.error(F.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(F=>{Th(i,n,F.id,F,r)})}}}o(UK,"processViewExtensions");function _l(e,t,n,i,r,a="LineItems"){var s,l,u;if(t.fragments&&(u=(l=(s=t.manifest[lt.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&u["sap.ui.viewExtensions"]){let p=lt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),g=t.manifest[lt.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!g)return;let m=r&&r.target?r.target:n.entitySet;UK(g,m,e,t,a)}}o(_l,"addFragments");function Ah(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(Ah,"importHeaderActions");var Qt=ie(le());var O1=ie(le());var SA={};Ks(SA,{ANNOERR:()=>a3,ANNOTATIONFILE:()=>s3,COMPONENTNOTDEFINED:()=>c3,CONTEXTPATHCOULDNOTBERESOLVED:()=>n3,ENTITYSETNOTFOUND:()=>t3,FLEXERROR:()=>v3,INCONSISTENTSCHEMA:()=>I3,INVALIDANCHOR:()=>T3,INVALIDEXTENSION:()=>E3,INVALIDTARGETDEFINITION:()=>A3,MACROS_ANNOTATION_ERROR:()=>C3,NOALP:()=>r3,NOANNOTATIONFORPATH:()=>ZK,NOBASEPATH:()=>HK,NOCHARTS:()=>p3,NOENTITYSET:()=>QK,NOENTITYTYPE4SET:()=>qK,NOFE:()=>WK,NOFRAGMENT:()=>b3,NOGENERICSCHEMA:()=>KK,NOID4SECTION:()=>S3,NOLINEITEMANDCHARTS:()=>d3,NOLINEITEMFORPATH:()=>e3,NOLINEITEMS:()=>u3,NOLR:()=>i3,NOPAGEFORENTITYSET:()=>XK,NOPAGES:()=>GK,NOPRESENTATIONVARIANT:()=>zK,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>YK,NOPRESENTATIONVARIANTFORSPV:()=>JK,NOROUTING:()=>l3,NOROUTINGID:()=>y3,NOTARGET:()=>h3,NOTARGETS:()=>m3,NOTEMPLATE:()=>o3,NOUIANNOTATIONS:()=>f3,NOVISUALIZATIONS:()=>g3,TYPEERROR:()=>x3,UNKNOWNMINUI5VERSION:()=>BK,WRONGMINUI5VERSION:()=>$K,XMLPARSEFAILURE:()=>P3,default:()=>O3});var $K="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",BK="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",HK="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",GK="No pages found in manifest for app with id '{{- appId}}'",WK="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",KK="No generic schema found while generating page schema for {{- pageType}}",XK="No page found in manifest for entitySet '{{- entitySet}}'",QK="No entitySet defined for page '{{- pageName}}'",qK="No entityType could be found for the given entity set '{{- entitySetName}}'",zK="No PresentationVariant defined for '{{- key}}'",YK="No PresentationVariant found for default SelectionPresentationVariant",JK="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",ZK="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",e3="No line item annotation found for path '{{- annotationPath}}'",t3="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",n3="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",i3="No page found in manifest for list report",r3="No page found in manifest for analytical list page",o3="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",a3="Error while parsing annotation files",s3="Annotation file: '{{- file}}'",c3="Component name is not defined for page '{{- pageName}}'",l3="Incomplete manifest definition: no routing defined",f3="No UI Annotation defined for entity type '{{- entityType }}'",u3="UI.LineItem annotation has not been defined",p3="UI.Chart annotation has not been defined",d3="Neither UI.LineItem nor UI.Chart annotation has been defined",g3="Empty Collection for Visualizations",m3="Incomplete manifest definition: no targets defined",h3="Invalid reference: annotation target '{{- target}}' not found",y3="No page found in manifest for routingId '{{- routingId}}'",v3="Error while parsing flex change",T3="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",E3="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",b3="fragmentName is undefined for columnKey '{{- columnKey}}'",A3="Invalid routing target definition in manifest: '{{- target}}'",S3="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",P3="Parsing of XML file failed with error - {{- error}}",C3="Error during resolving annotation for '{{- control}}'",x3="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",I3="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",O3={WRONGMINUI5VERSION:$K,UNKNOWNMINUI5VERSION:BK,NOBASEPATH:HK,NOPAGES:GK,NOFE:WK,NOGENERICSCHEMA:KK,NOPAGEFORENTITYSET:XK,NOENTITYSET:QK,NOENTITYTYPE4SET:qK,NOPRESENTATIONVARIANT:zK,NOPRESENTATIONVARIANTFORDEFAULTSPV:YK,NOPRESENTATIONVARIANTFORSPV:JK,NOANNOTATIONFORPATH:ZK,NOLINEITEMFORPATH:e3,ENTITYSETNOTFOUND:t3,CONTEXTPATHCOULDNOTBERESOLVED:n3,NOLR:i3,NOALP:r3,NOTEMPLATE:o3,ANNOERR:a3,ANNOTATIONFILE:s3,COMPONENTNOTDEFINED:c3,NOROUTING:l3,NOUIANNOTATIONS:f3,NOLINEITEMS:u3,NOCHARTS:p3,NOLINEITEMANDCHARTS:d3,NOVISUALIZATIONS:g3,NOTARGETS:m3,NOTARGET:h3,NOROUTINGID:y3,FLEXERROR:v3,INVALIDANCHOR:T3,INVALIDEXTENSION:E3,NOFRAGMENT:b3,INVALIDTARGETDEFINITION:A3,NOID4SECTION:S3,XMLPARSEFAILURE:P3,MACROS_ANNOTATION_ERROR:C3,TYPEERROR:x3,INCONSISTENTSCHEMA:I3};function I1(e){e.addResourceBundle(e.language,"translation",SA)}o(I1,"initI18n");function nn(e="en"){q.init({resources:{en:{translation:O1.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
292
|
+
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var Nm=require("path");var wo="core:FragmentDefinition",Om="sap.ui.table",ab=new Map([[bt.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[bt.ViewTemplateType.TreeTableColumnsExtension,{namespace:Om,name:"Column"}],[bt.ViewTemplateType.GridTableColumnsExtension,{namespace:Om,name:"Column"}],[bt.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Om,name:"AnalyticalColumn"}]]),J8=new Map([[bt.v2.FE_TEMPLATE_V2_LIST_REPORT,bt.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[bt.v2.FE_TEMPLATE_V2_ALP,bt.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[bt.v2.FE_TEMPLATE_V2_OBJECT_PAGE,bt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),f1={type:"element",name:"Text",attributes:{text:"Placeholder"}},Z8=JSON.stringify(f1);function eK(e,t){var i;let n=t?(i=e==null?void 0:e[wo])==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(eK,"getFragmentNamespaces");function l1(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(l1,"getTagName");function Lm(e,t,n=e){let i=eK(n,!!(t||n!==e));if(t){let r=ab.get(t);return l1(r,i.get(r.namespace))}else{let r=ab.keys();for(let a of r){let s=ab.get(a),l=i?l1(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(Lm,"getTagNameFromFragmentJSON");function Au(e,t=e){let n=Lm(e,void 0,t);return e[n]}o(Au,"getRootCustomColumnFromFragmentJSON");function tK(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(tK,"addP13nData");function u1(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=tK(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(u1,"handleFragmentColumn");function nK(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]+bt.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(Nm.sep);if(p[p.length-1]===l){let g=JSON.parse((0,co.xml2json)(u.fileContent,{compact:!0}));try{let m=Lm(g[wo]);m&&(delete g[wo][m],u.fileContent=(0,co.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${u.dataSourceUri}, please check content`)}break}}}o(nK,"deleteColumnsFromFragment");function p1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===Z8&&(e.splice(n,1),t-=1,t===0));n++);}o(p1,"deleteNumberOfCells");function iK(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+bt.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,co.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&p1(l.elements[0].elements,u.length),s.fileContent=(0,co.json2xml)(JSON.stringify(l),{spaces:4});break}}o(iK,"deleteCellsFromFragment");function Rm(e,t,n,i){if(i){nK(e,i,t,n);let r=t.replace(bt.ViewTemplateType.ResponsiveTableColumnsExtension,bt.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&iK(a,i,n)}}o(Rm,"deleteColumnFromFragment");function rK(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(f1)}o(rK,"addNewColumnsInFragment");function oK(e,t){let n=JSON.parse((0,co.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)rK(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;p1(a,r)}e.fileContent=(0,co.json2xml)(JSON.stringify(n),{spaces:4})}}o(oK,"updateNonEmptyCellsFragment");function aK(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(Nm.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=bt.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=ob(n):oK(r,n);break}}return i}o(aK,"updateCellsFragment");function sK(e,t,n,i,r){var g;let a,s,l=t.manifest,u=$n(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){se(r,{severity:bt.LogSeverity.Error,message:q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=bt.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,a=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,Nm.sep))+bt.FRAGMENTNAMEPART+p}if(e.indexOf(bt.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=bt.ChangeIndicator.Updated;let m=e.replace(bt.ViewTemplateType.ResponsiveTableColumnsExtension,bt.ViewTemplateType.ResponsiveTableCellsExtension),v=$n(l,m),A=n.reduce((E,O)=>O.cellsFragmentName?O:E);A&&A.cellsFragmentName?(v.fragmentName=s=A.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):U0(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(sK,"exportCustomColumnsToManifest");function cK(e,t,n,i,r){let a=ib(e,t);if(a){let s=JSON.parse((0,co.xml2json)(a,{compact:!0})),l=Au(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(cK,"insertNewColumnInFragment");function lK(e,t){let n=[];for(let i=0;i<e.length;i++)u1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(lK,"processCustomColumnInArray");function fK(e,t,n){if(e){if(Array.isArray(e))lK(e,t);else if(!u1(e,t)){let r=Lm(n[wo]);r&&(delete n[wo][r],e=void 0)}}return e}o(fK,"maintainExistingColumnInFragment");function uK(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=cK(a,i,n,r,s)}return n}o(uK,"insertNewColumnsInFragment");function pK(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=bt.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=rb(i,r);else{let u=JSON.parse((0,co.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Au(u[wo]),l=fK(l,i,u),l=uK(i,n,l,r,u);let g=Lm(u,r);u[wo][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,co.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(pK,"updateColumnsInFragment");function sb(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=sK(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),v=l.fragmentName,A=v.substr(i.length+1),E=A.split(".");v=E[E.length-1]+bt.FRAGMENTNAMEPART+g;let F=p==null?void 0:p.split("."),j=F?F[F.length-1]:null,G=j?j+bt.FRAGMENTNAMEPART+g:null,B=pK(s,v,A,m,r),ae=!1;if(p?ae=aK(s,G,n):ae=!0,!B){let Z={fileContent:rb(m,r),dataSourceUri:u,changeIndicator:bt.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!ae){let Z={fileContent:ob(n),dataSourceUri:u.replace(v,G),changeIndicator:bt.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(sb,"exportCustomColumnsToFragment");var Fm=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=J8.get((u=e.component)==null?void 0:u.name);if(!i){let v=(m=(g=(p=e.component)==null?void 0:p.settings)==null?void 0:g.tableSettings)==null?void 0:m.type;v||(v="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(v="AnalyticalTable"),i=v+"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 oi=ie(le());var cb="/multiEdit",sc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+oi.PropertyName.table:zt(e,t),"getSmartTableControlId");function km(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(km,"importCreateParameters");function jm(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(jm,"exportCreateParametersFields");function dK(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(dK,"exportVariants");function gK(e,t){t.variants&&(Object.keys(t.variants).length>0?dK(e,t):delete e.variants)}o(gK,"exportQuickVariantSelectionX");function mK(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(mK,"importMultiEdit");var Dm=class Dm{};o(Dm,"CreateWithFilters"),h([T({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],Dm.prototype,"strategy",2);var lb=Dm,Nl=class Nl{};o(Nl,"MultiEdit"),h([T({manifest:{path:o(t=>ro(t)+cb,"path")}})],Nl.prototype,"enabled",2),h([T({manifest:{path:o(t=>ro(t)+cb,"path")}})],Nl.prototype,"annotationPath",2),h([T({manifest:{path:o(t=>ro(t)+cb,"path"),export:Bg}})],Nl.prototype,"ignoredFields",2);var fb=Nl;function Cu(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(Cu,"importType");function Fl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Fl,"exportType");function Dl(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(Dl,"deleteType");var _m=class _m{};o(_m,"DataLoadSettings"),h([T({manifest:{path:o(t=>B0(t),"path")}}),C({since:"1.75.2"})],_m.prototype,"loadDataOnAppLaunch",2);var ub=_m,Vm=class Vm{};o(Vm,"Fields4Dialog"),h([T({manifest:{path:o(t=>ro(t)+"/createWithParameterDialog","path"),export:jm}}),C({since:"1.77.0"})],Vm.prototype,"fields",2);var pb=Vm,Su=class Su{};o(Su,"QuickVariantSelection"),h([T({manifest:{path:o(t=>je(t)+oi.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Su.prototype,"showCounts",2),h([T({manifest:{path:o(t=>je(t)+oi.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Su.prototype,"variants",2);var db=Su,Ll=class Ll{};o(Ll,"QuickVariantSelectionX"),h([T({manifest:{path:o(t=>je(t)+oi.QUICKVARPATHX,"path")}}),C({since:"1.48.0"})],Ll.prototype,"showCounts",2),h([T({manifest:{path:o(t=>je(t)+oi.QUICKVARPATHX,"path")}}),C({since:"1.48.0"})],Ll.prototype,"enableAutoBinding",2),h([T({manifest:{path:o(t=>je(t)+oi.QUICKVARPATHX,"path"),export:gK}}),C({since:"1.48.0"})],Ll.prototype,"variants",2);var gb=Ll,Ei=class Ei{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(Ei,"CommonTableSettings"),h([T({manifest:{key:"createWithParameterDialog",path:o(t=>ro(t),"path"),import:km}}),C({since:"1.77.0"})],Ei.prototype,"createWithParameterDialog",2),h([T({flex:{controlId:zt,controlType:o(()=>oi.ControlType.SmartTable,"controlType")}}),C({since:"1.38.0"})],Ei.prototype,"showTablePersonalisation",2),h([T({flex:{controlId:sc,controlType:o(()=>oi.ControlType.SmartTable,"controlType")}}),C({since:"1.26.0"})],Ei.prototype,"useExportToExcel",2),h([T({flex:{controlId:sc,controlType:o(()=>oi.ControlType.SmartTable,"controlType")}}),C({since:"1.50.0"})],Ei.prototype,"exportType",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.48.0"})],Ei.prototype,"quickVariantSelection",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.48.0"})],Ei.prototype,"quickVariantSelectionX",2),h([T({manifest:{path:o(t=>ro(t),"path")}}),C({since:"1.38.0"})],Ei.prototype,"multiSelect",2),h([T({manifest:{path:o(t=>ro(t),"path")}}),C({since:"1.70.0"})],Ei.prototype,"selectAll",2),h([T({manifest:{path:o(t=>ro(t),"path")}}),C({since:"1.70.0"})],Ei.prototype,"selectionLimit",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.75.2"})],Ei.prototype,"dataLoadSettings",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.42.0"})],Ei.prototype,"condensedTableLayout",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.56.0"}),Ne("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],Ei.prototype,"enableTableFilterInPageVariant",2),h([jt("toolBar")],Ei.prototype,"toolBar",2);var rs=Ei,Mo=class Mo extends rs{};o(Mo,"ResponsiveTable"),h([T({manifest:{path:o(t=>je(t),"path"),import:Cu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],Mo.prototype,"type",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.54.0"})],Mo.prototype,"createWithFilters",2),h([T({flex:{controlId:sc,controlType:o(()=>oi.ControlType.Table,"controlType")},generate:qn}),C({since:"1.52.0"})],Mo.prototype,"popinLayout",2),h([T({flex:{controlId:sc,controlType:o(()=>oi.ControlType.Table,"controlType")}})],Mo.prototype,"includeItemInSelection",2),h([T({manifest:{path:o(t=>ro(t),"path")}}),C({since:"1.77.0"})],Mo.prototype,"inlineDelete",2),h([T({flex:{controlId:sc,controlType:o(()=>oi.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],Mo.prototype,"growingThreshold",2),h([T({manifest:{path:o(t=>ro(t),"path"),import:mK}}),C({since:"1.98.0"})],Mo.prototype,"multiEdit",2);var cc=Mo,wm=class wm extends rs{};o(wm,"TreeTable"),h([T({manifest:{path:o(t=>je(t),"path"),import:Cu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],wm.prototype,"type",2);var mb=wm,lo=class lo extends rs{};o(lo,"AnalyticalTable"),h([T({manifest:{path:o(t=>je(t),"path"),import:Cu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],lo.prototype,"type",2),h([T({manifest:{path:o(t=>je(t),"path")}})],lo.prototype,"qualifier",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.38.0"}),T({manifest:{path:o(t=>je(t),"path")}})],lo.prototype,"defaultContentView",2),h([T({manifest:{path:o(t=>je(t),"path")}})],lo.prototype,"defaultFilterMode",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.60.0"})],lo.prototype,"contentTitle",2),h([T({manifest:{path:o(t=>je(t),"path")}})],lo.prototype,"autoHide",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.78.0"})],lo.prototype,"allFiltersAsInParameters",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.54.0"})],lo.prototype,"createWithFilters",2);var hb=lo,ko=class ko extends rs{};o(ko,"TableALP"),h([T({manifest:{path:o(t=>je(t),"path"),import:Cu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],ko.prototype,"type",2),h([T({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"qualifier",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.38.0"}),T({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"defaultContentView",2),h([T({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"defaultFilterMode",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.60.0"})],ko.prototype,"contentTitle",2),h([T({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"autoHide",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.78.0"})],ko.prototype,"allFiltersAsInParameters",2);var Rl=ko,Mm=class Mm extends Rl{};o(Mm,"ALPResponsiveTable"),h([T({flex:{controlId:sc,controlType:o(()=>oi.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],Mm.prototype,"growingThreshold",2);var yb=Mm,bb=class bb extends Rl{};o(bb,"ALPGridTable");var vb=bb,Ab=class Ab extends Rl{};o(Ab,"ALPAnalyticalTable");var Tb=Ab,Pu=class Pu extends rs{};o(Pu,"GridTable"),h([T({manifest:{path:o(t=>je(t),"path"),import:Cu,export:Fl,delete:Dl}}),C({since:"1.50.0"})],Pu.prototype,"type",2),h([T({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.54.0"})],Pu.prototype,"createWithFilters",2);var Eb=Pu;var xu=ie(le());var hK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}action::${Ki(i).replace(":2f","::")}`},"getActionButtonId"),yK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}template::${i}`},"getStandardActionButtonId"),vK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}${em}${i}`},"getStandardFooterActionOPButtonId"),Db=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Qi(n);return`${e}action::${i}::${Ki(r)}`},"buildIntentBasedActionId"),TK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}action::${Ki(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),os={controlId:hK,controlType:o(()=>xu.ControlType.Button,"controlType")},Iu={controlId:yK,controlType:o(()=>xu.ControlType.Button,"controlType")},d1={controlId:vK,controlType:o(()=>xu.ControlType.Button,"controlType")},Um={controlId:TK,controlType:o(()=>xu.ControlType.Button,"controlType")},lc=class lc{};o(lc,"Action"),h([T({flex:os})],lc.prototype,"tooltip",2),h([T({flex:os})],lc.prototype,"icon",2),h([T({flex:os})],lc.prototype,"activeIcon",2),h([T({flex:os})],lc.prototype,"type",2);var Sb=lc,fc=class fc{};o(fc,"ToolBarAction"),h([T({flex:os})],fc.prototype,"tooltip",2),h([T({flex:os})],fc.prototype,"icon",2),h([T({flex:os})],fc.prototype,"activeIcon",2),h([T({flex:os})],fc.prototype,"type",2);var Pb=fc,uc=class uc{};o(uc,"FooterAction"),h([T({flex:Um})],uc.prototype,"tooltip",2),h([T({flex:Um})],uc.prototype,"icon",2),h([T({flex:Um})],uc.prototype,"activeIcon",2),h([T({flex:Um})],uc.prototype,"type",2);var Cb=uc,$m=class $m{};o($m,"Share"),h([T({flex:Iu})],$m.prototype,"visible",2);var xb=$m,Bm=class Bm{};o(Bm,"ShareOP"),h([T({flex:Iu})],Bm.prototype,"visible",2);var Ib=Bm,Hm=class Hm{};o(Hm,"UpAndDownNavigationOP"),h([T({flex:Iu})],Hm.prototype,"visible",2);var Ob=Hm,Gm=class Gm{};o(Gm,"SaveAndEditOP"),h([T({flex:d1,generate:mt})],Gm.prototype,"visible",2);var Nb=Gm,Wm=class Wm{};o(Wm,"HeaderActionStandard"),h([T({flex:Iu})],Wm.prototype,"visible",2);var Lb=Wm,Km=class Km{};o(Km,"ObjectPageHeaderActionStandard"),h([T({flex:Iu})],Km.prototype,"visible",2);var Rb=Km,Xm=class Xm{};o(Xm,"ObjectPageFooterActionStandard"),h([T({flex:d1})],Xm.prototype,"visible",2);var Fb=Xm;var Lu=ie(le());var EK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Qi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),bK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Qi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),AK=o((e,t,n)=>{let{actionId:i}=Qi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),_b={controlId:EK,controlType:o(()=>Lu.ControlType.TableColumn,"controlType")},Ou={controlId:AK,controlType:o(()=>Lu.ControlType.Button,"controlType")},g1={..._b,controlId:bK},Qm={...Ou,controlId:Db},Nu=class Nu{};o(Nu,"TableColumn"),h([T({flex:{controlId:bE,controlType:o(()=>Lu.ControlType.TableColumn,"controlType")}})],Nu.prototype,"width",2),h([T({flex:{controlId:bE,controlType:o(()=>Lu.ControlType.TableColumn,"controlType")},generate:qn})],Nu.prototype,"hAlign",2);var Vb=Nu,ma=class ma{};o(ma,"TableColumnAction"),h([T({flex:_b})],ma.prototype,"width",2),h([T({flex:_b,generate:qn})],ma.prototype,"hAlign",2),h([T({flex:Ou})],ma.prototype,"tooltip",2),h([T({flex:Ou})],ma.prototype,"icon",2),h([T({flex:Ou})],ma.prototype,"activeIcon",2),h([T({flex:Ou})],ma.prototype,"type",2);var qm=ma,ha=class ha extends qm{};o(ha,"TableColumnActionIntentBased"),h([T({flex:g1})],ha.prototype,"width",2),h([T({flex:g1,generate:qn})],ha.prototype,"hAlign",2),h([T({flex:Qm})],ha.prototype,"tooltip",2),h([T({flex:Qm})],ha.prototype,"icon",2),h([T({flex:Qm})],ha.prototype,"activeIcon",2),h([T({flex:Qm})],ha.prototype,"type",2);var wb=ha,kb=class kb{};o(kb,"TableCustomColumn");var Mb=kb;var Ub=class Ub{};o(Ub,"ToolBar");var jb=Ub;var pc=ie(le());var Ru=o(e=>e+pc.PropertyName.chart,"getSmartChartControlId"),as=class as{};o(as,"ChartSettings"),h([T({flex:{controlId:Ru,controlType:o(()=>pc.ControlType.SmartChart,"controlType")}})],as.prototype,"showLegendButton",2),h([T({flex:{controlId:Ru,controlType:o(()=>pc.ControlType.SmartChart,"controlType")}})],as.prototype,"showDownloadButton",2),h([T({flex:{controlId:Ru,controlType:o(()=>pc.ControlType.SmartChart,"controlType")}})],as.prototype,"showChartTypeSelectionButton",2),h([T({flex:{controlId:Ru,controlType:o(()=>pc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],as.prototype,"ignoredChartTypes",2),h([T({manifest:{path:o(t=>$0(t),"path")}}),C({since:"1.81.0"})],as.prototype,"showDataLabel",2);var $b=as;var ya=class ya{};o(ya,"KPISettings"),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ya.prototype,"model",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ya.prototype,"entitySet",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ya.prototype,"qualifier",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ya.prototype,"filterable",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ya.prototype,"detailNavigation",2),h([T({manifest:{path:o((t,n,i)=>rc(t,i),"path")}})],ya.prototype,"groupId",2);var Bb=ya;var m1=ie(le());var SK=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",zt(e,n)},"getAvatarControlId"),ss=class ss{};o(ss,"ObjectPageHeader"),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.46.0"})],ss.prototype,"showRelatedApps",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.46.0"})],ss.prototype,"editableHeaderContent",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.48.0"})],ss.prototype,"simpleHeaderFacets",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.48.0"}),Ne("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],ss.prototype,"showHeaderAsCarouselOnDesktop",2),h([T({flex:{controlId:SK,controlType:o(()=>m1.ControlType.Avatar,"controlType")},generate:mt})],ss.prototype,"displayShape",2);var Hb=ss;var zm=ie(le());var PK=o((e,t,n,i)=>{if(i()===zm.ControlType.Button||i()===zm.ControlType.HeaderAction){let r=n[2];return`${e}action::${Ki(r)}`}return zt(e,t)},"getActionButtonId"),Fu={controlId:PK,controlType:o(()=>zm.ControlType.HeaderAction,"controlType")},cs=class cs{};o(cs,"ObjectPageHeaderAction"),h([T({flex:Fu,generate:mt})],cs.prototype,"visible",2),h([T({flex:Fu})],cs.prototype,"tooltip",2),h([T({flex:Fu})],cs.prototype,"icon",2),h([T({flex:Fu})],cs.prototype,"activeIcon",2),h([T({flex:Fu})],cs.prototype,"type",2);var Gb=cs;var Du=ie(le());var nh="header::headerEditable::",CK=o((e,t,n,i,r)=>`${e}${nh}${r}`,"getDataPointHeaderSectionId"),xK=o((e,t,n,i,r)=>`${e}${nh}${r}::ContactAddress`,"getAddressHeaderSectionId"),IK=o((e,t,n,i,r)=>`${e}${nh}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),h1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(Du.FACETTITLEPREFIX)?r.split(Du.FACETTITLEPREFIX)[1]:a;return`${e}${nh}${s}::Form`},"getFormHeaderSectionId"),_u={controlType:o(()=>Du.ControlType.ObjectPageHeaderSection,"controlType")},Ym=class Ym{};o(Ym,"CommonHeaderFacetSettings"),h([T({flex:{..._u,controlId:h1},generate:mt})],Ym.prototype,"visible",2);var dc=Ym,Jm=class Jm extends dc{};o(Jm,"ObjectPageHeaderSectionForm"),h([T({flex:{..._u,controlId:h1}})],Jm.prototype,"visible",2);var Wb=Jm,Zm=class Zm extends dc{};o(Zm,"ObjectPageHeaderSectionChart"),h([T({flex:{..._u,controlId:IK}})],Zm.prototype,"visible",2);var Kb=Zm,eh=class eh extends dc{};o(eh,"ObjectPageHeaderSectionDataPoint"),h([T({flex:{..._u,controlId:CK}})],eh.prototype,"visible",2);var Xb=eh,th=class th extends dc{};o(th,"ObjectPageHeaderSectionAddress"),h([T({flex:{..._u,controlId:xK}})],th.prototype,"visible",2);var Qb=th,zb=class zb{};o(zb,"HeaderSections");var qb=zb;var Jb=ie(le());var OK=o((e,t,n,i)=>{if(i()===Jb.ControlType.Button){let{actionId:r}=Qi(n);return`${e}action::${Ki(r)}::Determining`}return zt(e,t)},"getFooterActionButtonId"),Vu={controlId:OK,controlType:o(()=>Jb.ControlType.Button,"controlType")},ls=class ls{};o(ls,"ObjectPageFooterAction"),h([T({flex:Vu,generate:mt})],ls.prototype,"visible",2),h([T({flex:Vu})],ls.prototype,"tooltip",2),h([T({flex:Vu})],ls.prototype,"icon",2),h([T({flex:Vu})],ls.prototype,"activeIcon",2),h([T({flex:Vu})],ls.prototype,"type",2);var Yb=ls;var wu=ie(le());var ih=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",zt(e,n)},"getControlId"),gc=class gc{};o(gc,"ObjectPageLayout"),h([T({flex:{controlId:ih,controlType:o(()=>wu.ControlType.ObjectPageLayout,"controlType")},generate:mt})],gc.prototype,"showHeaderContent",2),h([T({flex:{controlId:ih,controlType:o(()=>wu.ControlType.ObjectPageLayout,"controlType")}})],gc.prototype,"showAnchorBar",2),h([T({flex:{controlId:ih,controlType:o(()=>wu.ControlType.ObjectPageLayout,"controlType")}})],gc.prototype,"useIconTabBar",2),h([T({flex:{controlId:ih,controlType:o(()=>wu.ControlType.ObjectPageLayout,"controlType")}}),C({since:"1.34.0"})],gc.prototype,"alwaysShowContentHeader",2);var Zb=gc;var y1=ie(le());var mc=class mc{};o(mc,"BaseCustomSection"),h([T({manifest:{path:ga,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),C({since:"1.52.0"})],mc.prototype,"relatedFacet",2),h([T({manifest:{path:ga,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),C({since:"1.52.0"})],mc.prototype,"relativePosition",2),h([T({manifest:{path:o((t,n,i)=>ga(t,{},i,y1.ManifestSection.generic),"path")}}),C({since:"1.52.0"})],mc.prototype,"title",2),h([T({manifest:{path:ga}}),C({since:"1.52.0"})],mc.prototype,"className",2);var ju=mc,Mu=class Mu extends ju{};o(Mu,"ObjectPageCustomSectionFragment"),h([T({manifest:{path:ga}}),C({since:"1.52.0"})],Mu.prototype,"fragmentName",2),h([T({manifest:{path:ga}}),C({since:"1.52.0"})],Mu.prototype,"type",2);var Uu=Mu,ku=class ku extends ju{};o(ku,"ObjectPageCustomSectionView"),h([T({manifest:{path:ga}}),C({since:"1.52.0"})],ku.prototype,"viewName",2),h([T({manifest:{path:ga}}),C({since:"1.52.0"})],ku.prototype,"type",2);var $u=ku;var zi=ie(le());var v1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),zi.DefinitionName.Table];return zt(e,s)},"getTableSectionControlId"),T1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"FormGroup"];return zt(e,s)},"getFormSectionControlId"),E1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Chart"];return zt(e,s)},"getChartSectionControlId"),hc=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Section"];return zt(e,s)},"getSectionControlId"),b1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"SubSection"];return zt(e,s)},"getSubSectionControlId"),A1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"ContactsList"];return zt(e,s)},"getContactSubSectionControlId"),rh=class rh{};o(rh,"ObjectPageSectionV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:mt})],rh.prototype,"visible",2);var eA=rh,oh=class oh{};o(oh,"ObjectPageSectionFormV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:mt})],oh.prototype,"visible",2);var tA=oh,ah=class ah{};o(ah,"ObjectPageSectionChartV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:mt})],ah.prototype,"visible",2);var nA=ah,sh=class sh{};o(sh,"ObjectPageSectionTableV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:mt})],sh.prototype,"visible",2);var iA=sh,ch=class ch{};o(ch,"ObjectPageSectionAddressV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:mt})],ch.prototype,"visible",2);var rA=ch,lh=class lh{};o(lh,"ObjectPageSectionContactV2"),h([T({flex:{controlId:hc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:mt})],lh.prototype,"visible",2);var oA=lh,fh=class fh{};o(fh,"ObjectPageSubSectionV2"),h([T({flex:{controlId:b1,controlType:o(()=>zi.ControlType.SubSection,"controlType")},generate:mt})],fh.prototype,"visible",2);var aA=fh,uh=class uh{};o(uh,"ObjectPageSubSectionFormV2"),h([T({flex:{controlId:T1,controlType:o(()=>zi.ControlType.Group,"controlType")},generate:mt})],uh.prototype,"visible",2);var sA=uh,ph=class ph{};o(ph,"ObjectPageSubSectionChartV2"),h([T({flex:{controlId:E1,controlType:o(()=>zi.ControlType.SmartChart,"controlType")},generate:mt})],ph.prototype,"visible",2);var cA=ph,dh=class dh{};o(dh,"ObjectPageSubSectionContactV2"),h([T({flex:{controlId:A1,controlType:o(()=>zi.ControlType.SubSection,"controlType")},generate:mt})],dh.prototype,"visible",2);var lA=dh,gh=class gh{};o(gh,"ObjectPageSubSectionTableV2"),h([T({flex:{controlId:v1,controlType:o(()=>zi.ControlType.SmartTable,"controlType")},generate:mt})],gh.prototype,"visible",2);var fA=gh;var mh=class mh{};o(mh,"ObjectPageChart"),h([T({manifest:{path:H0}}),C({since:"1.78.0"})],mh.prototype,"variantManagement",2);var uA=mh,hh=class hh{};o(hh,"GlobalChartSettings"),h([T({manifest:{path:o(t=>Ni(t)+"/chartSettings","path")}}),C({since:"1.78.0"})],hh.prototype,"variantManagement",2);var pA=hh;var gr=ie(le());var yc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=gr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=Qn(a[0],r),zt(e,a)},"getSmartTableControlId"),Bu=class Bu{};o(Bu,"QuickVariantSelectionOP"),h([T({manifest:{path:o((t,n,i)=>oo(t,n,i)+gr.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Bu.prototype,"showCounts",2),h([T({manifest:{path:o((t,n,i)=>oo(t,n,i)+gr.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Bu.prototype,"variants",2);var dA=Bu,yh=class yh{};o(yh,"Fields4DialogOP"),h([T({manifest:{path:o((t,n,i)=>kr(t,n,i)+"/createWithParameterDialog","path"),export:jm}}),C({since:"1.77.0"})],yh.prototype,"fields",2);var gA=yh,bi=class bi{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(bi,"CommonTableSettingsForSections"),h([T({manifest:{key:"createWithParameterDialog",path:kr,import:km}}),C({since:"1.77.0"})],bi.prototype,"createWithParameterDialog",2),h([T({flex:{controlId:yc,controlType:o(()=>gr.ControlType.SmartTable,"controlType")}}),C({since:"1.28.0"})],bi.prototype,"editable",2),h([T({flex:{controlId:yc,controlType:o(()=>gr.ControlType.SmartTable,"controlType")}}),C({since:"1.95.0"}),Ne("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],bi.prototype,"showPasteButton",2),h([T({manifest:{path:kr}}),C({since:"1.54.0"})],bi.prototype,"multiSelect",2),h([T({manifest:{path:kr}}),C({since:"1.70.0"})],bi.prototype,"selectAll",2),h([T({manifest:{path:kr}}),C({since:"1.70.0"})],bi.prototype,"selectionLimit",2),h([T({manifest:{path:oo}}),C({since:"1.63.0"})],bi.prototype,"quickVariantSelection",2),h([T({flex:{controlId:yc,controlType:o(()=>gr.ControlType.SmartTable,"controlType")}}),C({since:"1.26.0"})],bi.prototype,"useExportToExcel",2),h([T({flex:{controlId:yc,controlType:o(()=>gr.ControlType.SmartTable,"controlType")}}),C({since:"1.50.0"})],bi.prototype,"exportType",2),h([T({manifest:{path:oo}}),C({since:"1.48.5"}),Ne("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],bi.prototype,"createMode",2),h([T({manifest:{path:oo}}),C({since:"1.61.0"})],bi.prototype,"disableDefaultInlineCreateSort",2),h([T({manifest:{path:kr}}),C({since:"1.78.0"})],bi.prototype,"variantManagement",2),h([jt("toolBar")],bi.prototype,"toolBar",2);var vc=bi,fs=class fs extends vc{};o(fs,"ObjectPageResponsiveTable"),h([T({manifest:{path:kr}})],fs.prototype,"type",2),h([T({flex:{controlId:yc,controlType:o(()=>gr.ControlType.Table,"controlType")}})],fs.prototype,"includeItemInSelection",2),h([T({flex:{controlId:yc,controlType:o(()=>gr.ControlType.Table,"controlType")},generate:mt}),C({since:"1.52.0"})],fs.prototype,"popinLayout",2),h([T({manifest:{path:kr}}),C({since:"1.77.0"})],fs.prototype,"inlineDelete",2),h([T({flex:{controlId:yc,controlType:o(()=>gr.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],fs.prototype,"growingThreshold",2);var Tc=fs,Hu=class Hu extends vc{};o(Hu,"ObjectPageAnalyticalTable"),h([T({manifest:{path:kr}})],Hu.prototype,"type",2),h([T({manifest:{path:oo}}),C({since:"1.67.0"})],Hu.prototype,"condensedTableLayout",2);var mA=Hu,Gu=class Gu extends vc{};o(Gu,"ObjectPageGridTable"),h([T({manifest:{path:kr}})],Gu.prototype,"type",2),h([T({manifest:{path:oo}}),C({since:"1.67.0"})],Gu.prototype,"condensedTableLayout",2);var hA=Gu,Wu=class Wu extends vc{};o(Wu,"ObjectPageTreeTable"),h([T({manifest:{path:kr}})],Wu.prototype,"type",2),h([T({manifest:{path:oo}}),C({since:"1.67.0"})],Wu.prototype,"condensedTableLayout",2);var yA=Wu,va=class va{};o(va,"GlobalTableSettings"),h([T({manifest:{path:oc}}),C({since:"1.70.0"})],va.prototype,"selectAll",2),h([T({manifest:{path:oc}}),C({since:"1.78.0"})],va.prototype,"variantManagement",2),h([T({manifest:{path:oc}})],va.prototype,"type",2),h([T({manifest:{path:oc}}),C({since:"1.54.0"})],va.prototype,"multiSelect",2),h([T({manifest:{path:oc}}),C({since:"1.67.0"})],va.prototype,"condensedTableLayout",2),h([T({manifest:{path:oc}}),C({since:"1.77.0"})],va.prototype,"inlineDelete",2);var vA=va;var S1=ie(le());var NK=o((e,t,n,i,r)=>{let{actionId:a}=Qi(n),s=Qn(n[1],r);return`${e}${s}::action::${Ki(a).replace(":2f","::")}`},"getActionButtonId"),Ku={controlId:NK,controlType:o(()=>S1.ControlType.Button,"controlType")},us=class us{};o(us,"ObjectPageToolBarAction"),h([T({flex:Ku,generate:mt})],us.prototype,"visible",2),h([T({flex:Ku})],us.prototype,"tooltip",2),h([T({flex:Ku})],us.prototype,"icon",2),h([T({flex:Ku})],us.prototype,"activeIcon",2),h([T({flex:Ku})],us.prototype,"type",2);var TA=us;var Li=ie(le());function bA(e,t,n,i){if(t.controlType===Li.ControlType.TableColumn||t.controlType===Li.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===Li.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Li.VOCWITHCOLONS),u=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(u!=null&&u.startsWith("DataField")?u=u==null?void 0:u.replace("/",":2f"):u=u==null?void 0:u.replace("/","_"),u!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(bA,"addFlexChangeToConfigTableColumn");function vh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Li.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(vh,"addFlexChangeToConfigTable");function Th(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,v,A;let s=no(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(g=s.content)!=null&&g.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},u;if(s.controlType===Li.ControlType.TableColumn)u=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let E=(!t.table.type||t.table.type===Li.v2.TableTypeV2.ResponsiveTable)&&!((v=l.controlId)!=null&&v.includes(Li.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Li.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;u=(A=e.jsonSchema.definitions[`${E}<${r}>`])==null?void 0:A.properties[l.propertyId]}u&&bA(t.table,l,n,i)})}o(Th,"importFlexChangesOfColumn");function ps(e){return e.replace("/","::")}o(ps,"convertActionKey");function AA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(AA,"convertSelector");function LK(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(LK,"addSmartFilterBarFlex");function RK(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=Ki((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let u=a.split(":::"),p=u.find(v=>v.startsWith("sSemanticObject")),g=u.find(v=>v.startsWith("sAction")),m=g.split("sAction::")[1].replace(":2f","::");if(p){let v=`${p.split("::")[1]}::${m}`,A=`${u[0]}:::${p}:::${g}`;i.set(v,r),i.set(r,A)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(RK,"filterActions");function FK(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(FK,"addColumnActionConfigPart");function DK(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(DK,"getActionId");function _K(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=RK(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"&&FK(s,e,m);let v=s.configPart[m];((p=i.definitions[g])==null?void 0:p.properties[t])&&v&&(v[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(_K,"addActionFlex");function VK(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=zn(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(VK,"addSmartChartFlex");function Eh(e,t,n,i){var r,a;try{let s=no(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=AA(s.controlId),s.controlType){case lt.ControlType.SmartFilterBar:{LK(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=DK(s);u&&_K(e,l,s,n,u);break}case lt.ControlType.SmartChart:{VK(e,l,s,n);break}default:break}}catch(s){se(i,{severity:lt.LogSeverity.Error,message:q.t("FLEXERROR")},...s)}}o(Eh,"addFlex");function wK(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(wK,"adjustQuickVariantSelectionX");function Dn(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=zn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=$n(t,g),ml(p,s,u,e),qg(l,s,g,r)}wK(u,e)}}o(Dn,"transferSettingsOfObject");function bh(e,t){var r,a,s,l,u,p,g,m,v;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):((v=n.component)==null?void 0:v.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=lt.v2.TableTypeV2.AnalyticalTable),i}o(bh,"determineTableType");function P1(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 v={...(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&&(v.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(v)}}o(P1,"evaluateFragmentColumn");function MK(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(MK,"determineCellsFragmentName");function kK(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,C1.xml2json)(e[0].fileContent,{compact:!0}))[wo];try{let g=Au(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)P1(m,n,i,r,t,a,s);else P1(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(kK,"analyzeFilteredFragments");function jK(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",v=e[s].fragmentName;if(!v)continue;let A=MK(u,e,p,g),E=v.split(".");v=E[E.length-1]+lt.FRAGMENTNAMEPART+m;let O=i.fragments.filter(F=>F.dataSourceUri.endsWith(v));try{kK(O,n,e,s,g,u,A)}catch(F){i.logger.error(F.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(F=>{Th(i,n,F.id,F,r)})}}}o(jK,"processViewExtensions");function _l(e,t,n,i,r,a="LineItems"){var s,l,u;if(t.fragments&&(u=(l=(s=t.manifest[lt.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&u["sap.ui.viewExtensions"]){let p=lt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),g=t.manifest[lt.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!g)return;let m=r&&r.target?r.target:n.entitySet;jK(g,m,e,t,a)}}o(_l,"addFragments");function Ah(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(Ah,"importHeaderActions");var Qt=ie(le());var I1=ie(le());var SA={};Ks(SA,{ANNOERR:()=>o3,ANNOTATIONFILE:()=>a3,COMPONENTNOTDEFINED:()=>s3,CONTEXTPATHCOULDNOTBERESOLVED:()=>t3,ENTITYSETNOTFOUND:()=>e3,FLEXERROR:()=>y3,INCONSISTENTSCHEMA:()=>x3,INVALIDANCHOR:()=>v3,INVALIDEXTENSION:()=>T3,INVALIDTARGETDEFINITION:()=>b3,MACROS_ANNOTATION_ERROR:()=>P3,NOALP:()=>i3,NOANNOTATIONFORPATH:()=>JK,NOBASEPATH:()=>BK,NOCHARTS:()=>u3,NOENTITYSET:()=>XK,NOENTITYTYPE4SET:()=>QK,NOFE:()=>GK,NOFRAGMENT:()=>E3,NOGENERICSCHEMA:()=>WK,NOID4SECTION:()=>A3,NOLINEITEMANDCHARTS:()=>p3,NOLINEITEMFORPATH:()=>ZK,NOLINEITEMS:()=>f3,NOLR:()=>n3,NOPAGEFORENTITYSET:()=>KK,NOPAGES:()=>HK,NOPRESENTATIONVARIANT:()=>qK,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>zK,NOPRESENTATIONVARIANTFORSPV:()=>YK,NOROUTING:()=>c3,NOROUTINGID:()=>h3,NOTARGET:()=>m3,NOTARGETS:()=>g3,NOTEMPLATE:()=>r3,NOUIANNOTATIONS:()=>l3,NOVISUALIZATIONS:()=>d3,TYPEERROR:()=>C3,UNKNOWNMINUI5VERSION:()=>$K,WRONGMINUI5VERSION:()=>UK,XMLPARSEFAILURE:()=>S3,default:()=>I3});var UK="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",$K="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",BK="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",HK="No pages found in manifest for app with id '{{- appId}}'",GK="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",WK="No generic schema found while generating page schema for {{- pageType}}",KK="No page found in manifest for entitySet '{{- entitySet}}'",XK="No entitySet defined for page '{{- pageName}}'",QK="No entityType could be found for the given entity set '{{- entitySetName}}'",qK="No PresentationVariant defined for '{{- key}}'",zK="No PresentationVariant found for default SelectionPresentationVariant",YK="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",JK="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",ZK="No line item annotation found for path '{{- annotationPath}}'",e3="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",t3="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",n3="No page found in manifest for list report",i3="No page found in manifest for analytical list page",r3="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",o3="Error while parsing annotation files",a3="Annotation file: '{{- file}}'",s3="Component name is not defined for page '{{- pageName}}'",c3="Incomplete manifest definition: no routing defined",l3="No UI Annotation defined for entity type '{{- entityType }}'",f3="UI.LineItem annotation has not been defined",u3="UI.Chart annotation has not been defined",p3="Neither UI.LineItem nor UI.Chart annotation has been defined",d3="Empty Collection for Visualizations",g3="Incomplete manifest definition: no targets defined",m3="Invalid reference: annotation target '{{- target}}' not found",h3="No page found in manifest for routingId '{{- routingId}}'",y3="Error while parsing flex change",v3="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",T3="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",E3="fragmentName is undefined for columnKey '{{- columnKey}}'",b3="Invalid routing target definition in manifest: '{{- target}}'",A3="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",S3="Parsing of XML file failed with error - {{- error}}",P3="Error during resolving annotation for '{{- control}}'",C3="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",x3="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",I3={WRONGMINUI5VERSION:UK,UNKNOWNMINUI5VERSION:$K,NOBASEPATH:BK,NOPAGES:HK,NOFE:GK,NOGENERICSCHEMA:WK,NOPAGEFORENTITYSET:KK,NOENTITYSET:XK,NOENTITYTYPE4SET:QK,NOPRESENTATIONVARIANT:qK,NOPRESENTATIONVARIANTFORDEFAULTSPV:zK,NOPRESENTATIONVARIANTFORSPV:YK,NOANNOTATIONFORPATH:JK,NOLINEITEMFORPATH:ZK,ENTITYSETNOTFOUND:e3,CONTEXTPATHCOULDNOTBERESOLVED:t3,NOLR:n3,NOALP:i3,NOTEMPLATE:r3,ANNOERR:o3,ANNOTATIONFILE:a3,COMPONENTNOTDEFINED:s3,NOROUTING:c3,NOUIANNOTATIONS:l3,NOLINEITEMS:f3,NOCHARTS:u3,NOLINEITEMANDCHARTS:p3,NOVISUALIZATIONS:d3,NOTARGETS:g3,NOTARGET:m3,NOROUTINGID:h3,FLEXERROR:y3,INVALIDANCHOR:v3,INVALIDEXTENSION:T3,NOFRAGMENT:E3,INVALIDTARGETDEFINITION:b3,NOID4SECTION:A3,XMLPARSEFAILURE:S3,MACROS_ANNOTATION_ERROR:P3,TYPEERROR:C3,INCONSISTENTSCHEMA:x3};function x1(e){e.addResourceBundle(e.language,"translation",SA)}o(x1,"initI18n");function nn(e="en"){q.init({resources:{en:{translation:I1.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
293
293
|
|
|
294
|
-
`}),I1(q)}o(nn,"initI18n");var $t=ie(le());function Ec(e,t,n){var r;let i;for(let a in e){let s=e[a];if(la((r=s.component)==null?void 0:r.name)===$t.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Ec(s.pages,t,n),i))return n.unshift(a),i}}o(Ec,"findObjectPageV2");function Vl(e,t){var n;for(let i in e){let r=e[i];if(la((n=r.component)==null?void 0:n.name)===$t.PageTypeV2.ListReport)return t.push(i),r}}o(Vl,"findListReportPageV2");function wl(e){if(!e.manifest[$t.ManifestSection.generic]){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOFE"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}let t=e.manifest[$t.ManifestSection.generic].pages;if(!t){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}return t}o(wl,"getV2Pages");function Ml(e,t,n){var i;if(!e){se(t,{severity:$t.LogSeverity.Error,message:q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;se(t,{severity:$t.LogSeverity.Error,message:q.t("NOENTITYSET",{pageName:r}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}}o(Ml,"checkV2Page");function kl(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),la((i=a.component)==null?void 0:i.name)===$t.PageTypeV2.AnalyticalListPage)return a}se(n,{severity:$t.LogSeverity.Error,message:q.t("NOALP"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}o(kl,"findAnalyticalListPage");function PA(e,t){let n=e.split("|");return $t.v2.SectionPosition[n[0]]&&n[1]===t}o(PA,"isAssociatedCustomSection");function N1(e,t){let n=$n(e,`sap.ui5/extends/extensions/${$t.v2.SAPUI5_VIEW_EXTENSION}/${$t.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)PA(r,t)&&(i[r]=n[r]);return i}o(N1,"findCustomSectionExtensions");function N3(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(N3,"removeEmptySettingsOfFooter");function L3(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(L3,"removeEmptySettingsOfFilterBar");function R3(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(R3,"removeEmptySettingsOfToolBar");function Sh(e){R3(e),L3(e),N3(e)}o(Sh,"removeEmptySettings");var xA={};Ks(xA,{AnalyticalListPage:()=>jr,ListReport:()=>fo,ObjectPage:()=>ai,OverviewPage:()=>Yt,exportFilterSettings:()=>F1,importDateSettingsOVP:()=>L1,importFilterSettings:()=>R1});var Ph=ie(le());var jr=class{};o(jr,"AnalyticalListPage"),h([T({flex:{controlId:Wg,controlType:o(()=>Ph.ControlType.DynamicPage,"controlType")}})],jr.prototype,"fitContent",2),h([jt("table")],jr.prototype,"table",2),h([jt("template::SmartFilterBar")],jr.prototype,"filterBar",2),h([jt("analyticalListPageChart")],jr.prototype,"chart",2),h([jt("analyticalListFooter")],jr.prototype,"footer",2),jr=h([wr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Ph.v2.FE_TEMPLATE_V2_ALP})],jr);var Xu=ie(le());var fo=class{};o(fo,"ListReport"),h([T({flex:{controlId:Wg,controlType:o(()=>Xu.ControlType.DynamicPage,"controlType")}})],fo.prototype,"fitContent",2),h([jt("listReportFilter")],fo.prototype,"filterBar",2),h([jt("listReport")],fo.prototype,"table",2),h([jt("listReportFooter")],fo.prototype,"footer",2),fo=h([wr({id:Xu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Xu.v2.FE_TEMPLATE_V2_LIST_REPORT})],fo);var CA=ie(le());var ai=class{};o(ai,"ObjectPage"),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.52.0"})],ai.prototype,"showConfirmationOnDraftActivate",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.52.1"})],ai.prototype,"hideChevronForUnauthorizedExtNav",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.48.0"})],ai.prototype,"allowDeepLinking",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.52.0"})],ai.prototype,"navToListOnSave",2),h([jt("header")],ai.prototype,"header",2),h([jt("sections")],ai.prototype,"sections",2),h([jt("layout")],ai.prototype,"layout",2),h([T({manifest:{path:o(t=>Em(t),"path")}}),C({since:"1.77.0"})],ai.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([T({manifest:{path:o(t=>Ni(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),C({since:"1.78.0"})],ai.prototype,"globalChartSettings",2),h([T({manifest:{path:o(t=>Ni(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Ys}}),C({since:"1.71.0"})],ai.prototype,"globalTableSettings",2),ai=h([wr({id:CA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:CA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ai);function F3(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(F3,"importDateSettingsFieldsOVP");function L1(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&&F3(e,t),t}o(L1,"importDateSettingsOVP");function R1(e){let t={};return t.dateSettings=L1(e.filterSettings),t}o(R1,"importFilterSettings");function D3(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(D3,"exportFilterFields");function F1(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&&D3(t,n,e))}o(F1,"exportFilterSettings");var Yt=class{};o(Yt,"OverviewPage"),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"globalFilterModel",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"globalFilterEntityType",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"globalFilterEntitySet",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"showBasicSearch",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"disableErrorPage",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"smartVariantRequired",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"bHeaderExpanded",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"containerLayout",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"showDateInRelativeFormat",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"disableTableCardFlexibility",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"enableLiveFilter",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"enableLazyRendering",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"refreshStrategyOnAppRestore",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"considerAnalyticalParameters",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"refreshIntervalInMinutes",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"useDateRangeType",2),h([T({manifest:{path:o(()=>En(),"path"),import:R1,export:F1}}),C({since:"1.80.0"})],Yt.prototype,"filterSettings",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"dataLoadSettings",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"resizableLayout",2),Yt=h([wr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Yt);var IA=class IA{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(IA,"MetadataFactory");var jl=IA;var Jn=ie(le());var _3={},V3={Table:cc,ResponsiveTableWithMultiSelect:cc,ResponsiveTableWithInlineDelete:cc},w3={[Jn.v2.CardSettingsType.listCardSettings]:Cl,[Jn.v2.CardSettingsType.listCardSettingsv4]:Cl,[Jn.v2.CardSettingsType.analyticalCardSettings]:xl,[Jn.v2.CardSettingsType.analyticalCardSettingsv4]:xl,[Jn.v2.CardSettingsType.stackCardSettings]:mu,[Jn.v2.CardSettingsType.linkListCardSettings]:hu,[Jn.v2.CardSettingsType.tableCardSettings]:Il,[Jn.v2.CardSettingsType.tableCardSettingsv4]:Il},M3={[Jn.SAPUI5_VIEW_CLASS]:$u,[Jn.SAPUI5_FRAGMENT_CLASS]:Uu,Table:Tc,ObjectPageResponsiveTableWithMultiSelect:Tc,ObjectPageResponsiveTableWithInlineDelete:Tc},k3={[Jn.PageTypeV2.AnalyticalListPage]:_3,[Jn.PageTypeV2.ListReport]:V3,[Jn.PageTypeV2.ObjectPage]:M3,[Jn.PageTypeV2.OverviewPage]:w3},OA=class OA extends jl{constructor(){super(EA,xA,k3)}};o(OA,"MetadataInstanceFactoryV2");var Ri=OA;function j3(e,t,n,i,r){if(e.filterBar=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar),Dn(e.filterBar,n.manifest,i[Qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),Dn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(j3,"importFilterBar");function NA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=to(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};vh(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"&&Th(e,n,s)}o(NA,"importFlexChangesOfTableAndColumns");function U3(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Jg]&&t[Zg]&&(a=JSON.parse(JSON.stringify(t[Jg])),a.properties={...a.properties,...t[Zg].properties}),Dn(n.table,i.manifest,a,r,i.logger),NA(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&se(i.logger,{severity:Qt.LogSeverity.Error,message:q.t("NOLINEITEMS")})}o(U3,"importTable");function $3(e,t,n,i){let r=e.jsonSchema.definitions,a=bh(e.manifest,i);if(t.table=n.createInstance(Qt.PageTypeV2.ListReport,a,t.table),Ah(t,n,r),U3(a,r,t,e,i),t.table.toolBar=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,r[Qt.DefinitionName.ToolBarLR],i,e.logger),r[Qt.DefinitionName.ActionsLR])for(let l in r[Qt.DefinitionName.ActionsLR].properties){let u=ps(l);t.table.toolBar.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.Action),Dn(t.table.toolBar.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}j3(t,n,e,r,i),t.footer={actions:{}};let s=r[Qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=ps(l);t.footer.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.FooterAction),Dn(t.footer.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}}o($3,"addSettings");function Ch(e){if(nn(),!wl(e))return;let n=new Ri,i=n.createPageInstance(Qt.PageTypeV2.ListReport),r=[],a=Vl(e.manifest[Qt.ManifestSection.generic].pages,r);if(Ml(a,e.logger,a==null?void 0:a.entitySet),!!a)return $3(e,i,n,r[0]),e.flex.forEach(s=>{to(s)&&Eh(i,s,e.jsonSchema,e.logger)}),_l(i,e,a,Qt.PageTypeV2.ListReport),Sh(i),i}o(Ch,"createListReportConfig");var Ct=ie(le());function B3(e,t,n,i){var p,g;let r=bh(e.manifest,i),a=e.jsonSchema.definitions;Ah(t,n,a),t.table=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(Dn(t.table,e.manifest,s,i,e.logger),NA(e,s,t),t.table.toolBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,a[Ct.DefinitionName.ToolBar],i,e.logger),a[Ct.DefinitionName.ActionsLR])for(let m in a[Ct.DefinitionName.ActionsLR].properties){let v=ps(m);t.table.toolBar.actions[v]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.Action),Dn(t.table.toolBar.actions[v],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Dn(t.filterBar,e.manifest,a[Ct.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[Ct.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[Ct.DefinitionName.SelectionFields].properties;for(let v in m){let A=v;t.filterBar.selectionFields[A]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),Dn(t.filterBar.selectionFields[A],e.manifest,a.SelectionFieldDateSettings,i,e.logger,A)}}t.chart=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Dn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[Ct.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let v=ps(m);t.footer.actions[v]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.FooterAction),Dn(t.footer.actions[v],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[Ct.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:g.keyPerformanceIndicators;u&&Object.keys(u).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Dn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(B3,"addSettings");function xh(e){if(nn(),!wl(e))return;let n=new Ri,i=n.createPageInstance(Ct.PageTypeV2.AnalyticalListPage),r=[],a=kl(e.manifest[Ct.ManifestSection.generic].pages,r,e.logger);if(Ml(a,e.logger,a==null?void 0:a.entitySet),!!a)return B3(e,i,n,r[0]),e.flex.forEach(s=>{to(s)&&Eh(i,s,e.jsonSchema,e.logger)}),_l(i,e,a,Ct.PageTypeV2.AnalyticalListPage),Sh(i),i}o(xh,"createAnalyticalListPageConfig");var Ee=ie(le());var Qu=require("@sap-ux/vocabularies-types/vocabularies/UI");var G3=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function W3(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(`${Qu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Qu.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(W3,"getSingleSelectorIdPart");function K3(e){let t,n=e.split(":::");if(n.length===1)t=W3(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(`::${Qu.UIAnnotationTerms.LineItem}`,`/@${Qu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(K3,"getFacetID");function X3(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=to(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(Ee.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let v=m[1].replace(/:3a:3a/g,"::");r.exec(v)!==null&&(v=v.split("template:::TableColumn:::")[1]);let A=K3(v);v=AA(v).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${v}::${g.content.property}`]={controlId:v,propertyId:g.content.property,facetId:A,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){se(n,{severity:Ee.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(X3,"prepareFlexChanges");var Q3=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(U,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace(U,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function q3(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&bA(i,t,r)}o(q3,"addFlexChangeToColumns");function D1(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,Ee.VOCWITHSLASH)];for(let u in e){let p=e[u],g=p.propertyId===t,m=t==="columns"&&p.controlType===Ee.ControlType.TableColumn;(g||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?q3(a,p,r.properties,n):vh(n,p,r))}}o(D1,"importFlexChangesOfTable");function z3(e,t){return e.facetId==="template"&&t}o(z3,"isStandardActionFlexChange");var _1=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 Y3(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===Ee.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(Ee.ACTIONTITLEPREFIX))&&!r&&s,m=r&&_1(u,r.split("::"))&&s,v=e.title&&_1(u,e.title.split("::"),!0),A=!t.facetId&&G3.includes(t.controlType),E=z3(t,l);return p||g||m||v||A||E}o(Y3,"matchSelector");function J3(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[Ee.SchemaTag.controlType]))continue;Y3(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(J3,"importFlexChanges");function Z3(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(se(n.logger,{severity:Ee.LogSeverity.Warning,message:Qg(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(Z3,"checkDeprecatedProperties");function eX(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=$n(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=$n(n.manifest,u))):(u=e.manifest.path(t,{},l),p=$n(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 Z3(p,a,n,u),p}o(eX,"importManifestSetting");function Fi(e,t,n,i,r,a){var u,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let g in n.properties||n){let m=zn(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 v=n.properties[g].$ref.split(U)[1],A=e.jsonSchema.definitions[v];D1(i.flexChanges,g,t,r,A,l)}else D1(i.flexChanges,g,t,r,n);else{let v=(r==null?void 0:r.title)||(r==null?void 0:r.id);J3(n,t,i.flexChanges,g,v,a)}else m!=null&&m.manifest&&eX(m,i.pageKeys,e,t,g,s,r)}}o(Fi,"transferSettingsAndFlexChanges");function w1(e,t,n,i){let r=Ki(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${h0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${em}${r}`;break}}return r.replace(/@/g,"")}o(w1,"getActionId");function tX(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split(U)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=w1(s,a,"","");e.actions[a]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,l,{}),Fi(n,e[Ee.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(tX,"fillStandardActions");function Ih(e,t,n,i,r,a){var l;n[Ee.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=ps(p),m=w1(s,g,r,a);m&&(n[Ee.PropertyName.actions][g]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,s),Fi(e,n[Ee.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[Ee.PropertyName.actions])!=null&&l[g]&&Object.keys(n[Ee.PropertyName.actions][g]).length===0&&delete n[Ee.PropertyName.actions][g]}}tX(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}o(Ih,"fillActions");function nX(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(Ee.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(Ee.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Fi(e,i[t.id].form.fields[l],e.jsonSchema.definitions[Ee.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(nX,"fillFields");function iX(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(iX,"prepareTableSchema");function rX(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(Ee.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][Ee.PropertyName.table]=g;let m=e.jsonSchema.definitions,v=iX(p,t,m);Fi(e,i[t.id],t.schema,r,{title:t.title}),Fi(e,i[t.id][Ee.PropertyName.table],v,r,t);let A=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(A!=null&&A.properties){let E=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");Ih(e,A.properties,i[t.id][Ee.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",E)}Object.keys(i[t.id][Ee.PropertyName.table].toolBar).length===0&&delete i[t.id][Ee.PropertyName.table].toolBar}}o(rX,"fillTableInConfig");function oX(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?zg(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};_l(n[t],e,i,Ee.PageTypeV2.ObjectPage,l,r)}}o(oX,"fillCustomColumnsInConfig");function aX(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(Ee.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][Ee.PropertyName.chart]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(Fi(e,i[t.id],t.schema,r,{title:t.title}),Fi(e,i[t.id][Ee.PropertyName.chart],e.jsonSchema.definitions[Ee.DefinitionName.ObjectPageChart],r,t))}o(aX,"fillChartSection");function sX(e,t,n,i){n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Fi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(sX,"fillHeaderSection");function cX(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Fi(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&Ih(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&nX(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(cX,"fillFormSection");function V1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Fi(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,LA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(V1,"fillSubSection");function LA(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:Q3(t[l]),schema:t[l],title:SE(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],rX(e,p,n,i,r),oX(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],aX(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],cX(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}>`],V1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],sX(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],V1(e,p,n,i,r))}}o(LA,"fillSectionsInConfig");function lX(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(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Fi(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(lX,"fillCustomSectionsInConfig");function fX(e,t){var g,m;let n=t.factory.createPageInstance(Ee.PageTypeV2.ObjectPage);Fi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Fi(e,n.globalTableSettings,i[Ee.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.ObjectPageHeader);let r=i[Ee.DefinitionName.ObjectPageHeader]?i[Ee.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Fi(e,n.header,r,t);let a=i[Ee.DefinitionName.ObjectPageHeaderActions];a&&Ih(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&Ih(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageLayout"),Fi(e,n.layout,i[Ee.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[Ee.DefinitionName.HeaderSections];if(l){let v=(g=t.v2Page.component)==null?void 0:g.settings;LA(e,l.properties,v,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[Ee.DefinitionName.Sections];if(u){let v=(m=t.v2Page.component)==null?void 0:m.settings;LA(e,u.properties,v,n.sections,t)}let p=N1(e.manifest,e.entitySet);return lX(p,n,t,i,e),n}o(fX,"fillConfig");function Oh(e){nn();let t=wl(e);if(!t)return;let n=e.entitySet,i=[],r=Ec(t,e.entitySet,i);if(Ml(r,e.logger,n),!r)return;let a=X3(e.flex,n),s=new Ri;return fX(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(Oh,"createObjectPageConfigV2");function Lh(e,t){var n,i;return(n=e.component)!=null&&n.name?$g(la((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(Lh,"generateId");function uX(e,t,n,i){e.navigation={};let r=M1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=Lh(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(uX,"getPageConfigsAndNavigations");function M1(e,t){var i;let n={};for(let r in e){let a=e[r],s=Lh(a,r);if(!s)continue;let l={pageType:la((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let u=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(u)if(l.pageType===_n.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Ch(p)}else if(l.pageType===_n.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=xh(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=Oh(p)}a.pages&&uX(l,a,t,n)}return n}o(M1,"getPagesAndConfigs");var RA=class RA extends za{constructor(t){nn();let n;t.manifest[_n.ManifestSection.generic]?n=t.manifest[_n.ManifestSection.generic].pages:se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOFE"),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}}),n||se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&Lh(n[i],i),a=new Ya,s=Dt(_n.SchemaType.Application),l=t.appSchemas[s.filename];Dn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,M1(n,t),a)}};o(RA,"V2AppProvider");var Nh=RA;function qu(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||se(n,{severity:_n.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:_n.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=Lh(l,s);i[u]=l}if(t===_n.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=qu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(qu,"getPages");var Ac=ie(le());var jo=ie(le());var DA=ie(KT());var _t=ie(le());var pX=["colorPalette","tabs"];function dX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(dX,"createCard");function k1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),k1(e,n.join("|"))}return t}o(k1,"findAvailableId");function zu(e,t,n,i,r,a,s){i!=null&&i.properties&&FA(e,t,n,i.properties,r,a,s)}o(zu,"transferManifestEntriesOVP");function bc(e,t,n,i){return e.createInstance(_t.PageTypeV2.OverviewPage,i,n,t)}o(bc,"assignReflectMetadataRules");function gX(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split(U),r=e.appSchema.definitions[i[1]];t=bc(e.factory,i[1],t,"CustomCard"),zu(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(gX,"processAnyOfDefinitionsOfOVP");function mX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!pX.includes(i)?t[i]=(0,DA.default)(t[i]||{},r||{},{arrayMerge:EE}):t[i]=r}o(mX,"checkSyncRuleForExport");function hX(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=$n(i.manifest,s);if(n in _t.v2.CardSettingsType||n==="settings")l.settings=(0,DA.default)(l.settings||{},r||{},{arrayMerge:EE});else if(r!==void 0){let u=e.manifest.export;mX(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(hX,"transferToManifest");function yX(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(_t.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=bc(e.factory,i[0],e.currentObject[t],"CustomCard"),dX(t,e.exportResults.manifest[_t.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,zu(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[_t.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[_t.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated)})}o(yX,"transferCards");function vX(e,t){if(t==="cards")yX(e);else{let n=Fo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,_t.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(U);e.currentObject=bc(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],zu(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],FA(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],FA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(vX,"exportOfObject");function FA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!pl(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=zn(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=gX(g)):u&&typeof u=="object"&&i[l]&&vX(g,l),p!=null&&p.manifest&&hX(p,a,l,t,u,e)}}o(FA,"processProperties");function TX(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=p0(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=d0(p,g);e.exportResults.flexChanges.find(A=>{let E=!1,O=JSON.parse(A);O={content:O.content,selector:O.selector};let F=JSON.parse(m);return F={content:F.content,selector:F.selector},JSON.stringify(O)===JSON.stringify(F)&&(E=!0),E})||e.exportResults.flexChanges.push(m)}o(TX,"evaluateFlexRule");function EX(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated}}o(EX,"exportConfigValueToManifest");function bX(e,t,n,i,r){let a=$n(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)EX(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,Wa(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(bX,"evaluateManifestRule");function AX(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(_t.FACETTITLEPREFIX)?r.split(_t.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(AX,"getManifestPathOfSections");function SX(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(SX,"getManifestPathOfTable");function PX(e,t,n,i,r){let a;return t[0]===_t.PropertyName.sections?a=AX(t,a,n,e,r):t[0]===_t.PropertyName.table?a=SX(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(PX,"getManifestPath");function CX(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)TX(e,i,t,r,a,n,s);else if(t.manifest){let u=PX(e,i,t,n,a);bX(e,u,t,s,n)}}o(CX,"evaluateExportRule");function xX(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)&&(Rm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(_t.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(_t.ViewTemplateType.ResponsiveTableColumnsExtension,_t.ViewTemplateType.ResponsiveTableCellsExtension);Rm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(xX,"deleteObsoleteColumn");function IX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=U0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,xX(r,e,n))}o(IX,"deleteObsoleteColumnsFromFragment");function OX(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}=Fm(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(OX,"clusterConfigColumnsByPath");function j1(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in _t.v2.TableColumnExtensionTypeV2){let{path:u}=Fm(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{IX(p)}catch(g){e.logger.error(g.message)}}if(t){let l=OX(t,n,e.v2Page,s,r);for(let u in l)sb(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(j1,"transferColumnExtensions");function NX(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=k1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(A=>{var E;return(E=A.$ref)==null?void 0:E.includes(t[p].constructor.name)}).$ref.split(U),v=e.appSchema.definitions[m[m.length-1]];ds(e,t[p],i,[...r,s[p]],v)}let u=$n(e.exportResults.manifest,FE());for(let p in u)PA(p,l)&&!s.includes(p)&&delete u[p]}o(NX,"transferManifestExtensions");function LX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===_t.PropertyName.table){n=e[i-1];break}return Qn(n,t)}o(LX,"getSectionId");function RX(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Fo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);ds(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(RX,"transferIndexTable");function FX(e,t,n,i,r,a){let s,l=zg(e.$ref);l&&(s={target:l,key:LX(t,n)}),j1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(FX,"transferCustomColumns");function DX(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Fo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&ds(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(DX,"handleAnyOfDefinitions");function _X(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")NX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){FX(l,t,s,e,n,a);return}else a?ds(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&DX(l,e,s,n==null?void 0:n[r],r,i,t)}o(_X,"transferComplexProperty");function ds(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!pl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Kg(t,l),p=u?[...n,u]:n,g=zn(t,l),m=e.propertyDefinition=r.properties[l],v=e.nextDefinition=Fo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(CX(e,g,t,[...i],p,a,l),RX(s,e,a,l,p,i),s===void 0||typeof s=="object")_X(e,i,t,p,l,v,a);else if((m==null?void 0:m.$ref)===U+"TableCustomColumns"){j1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(ds,"transferManifestEntriesAndFlexChange");function U1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=bc(r,i,n[i],s),a.push(i),_A(r,n[i],e,l.properties,a)}o(U1,"transferSettingsOfRef");function VX(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(U);U1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${U}${jo.v2.cardTemplateSettingsMap[e.template]}`.split(U);U1(i,l,e,t,r,a)}}o(VX,"processPropertiesOfObject");function wX(e,t,n,i,r,a){let s=zn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=$n(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{ml(s,u,t,e)}catch(p){se(i.logger,{severity:jo.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Hg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&VX(e,t,r,i,a,n)}o(wX,"processOvpProperty");function _A(e,t,n,i,r){for(let a in i)wX(t,a,r,n,i,e)}o(_A,"processOvpProperties");function MX(e,t,n){_A(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[jo.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[jo.ManifestSection.ovp].cards[i].template,a=jo.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=bc(n,a,{},"CustomCard"),e.cards=bc(n,a,e.cards,"CustomCard"),_A(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(MX,"addSettings");function Rh(e){let t=new Ri,n=t.createPageInstance(jo.PageTypeV2.OverviewPage);return e.jsonSchema&&MX(n,e,t),n}o(Rh,"createOverviewPageConfig");var VA=class VA extends za{constructor(t){let n={},i=t.manifest[Ac.ManifestSection.ovp],r=new Ya,a=Dt(Ac.SchemaType.Application);Dn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Ac.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Ac.PageTypeV2.OverviewPage,config:Rh(l),entitySet:i.globalFilterEntitySet},p=$g(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(VA,"V2OvpProvider");var Fh=VA;var Uo=require("@sap-ux/vocabularies-types/vocabularies/UI");var te=ie(le()),$1=require("path");function kX(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(kX,"sortByPropertyIndex");function Yu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(kX())}o(Yu,"sortPropertiesRecords");function jX(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(jX,"getExtensionText");function wA(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||te.v4.Placement.After)===te.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(wA,"addExtensionToSortedArray");function UX(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(UX,"addRemainingTargetByBefore");function B1(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=jX(e);return{$ref:`${U}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(B1,"getExtensionDetails");function MA(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=B1(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let v=n.findIndex(A=>A[0]===g.position.anchor);v>-1?(wA(g,n,v,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(se(i,{severity:Di.LogSeverity.Error,message:q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&UX(e,p,g,n,m)}else r&&(wA(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?MA(e,t,n,i):s>0&&MA(e,t,n,i,!0)}o(MA,"adjustCustomExtReferringToCustomExt");function $X(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||te.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===te.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o($X,"getExtensionAnchor");function BX(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(BX,"getLocalExtensionsToSkip");function HX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||te.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let v=t[m[0]];if(g(v))break;p++}return p},"findNextIndex"),s=0;return i===te.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==te.v4.Placement.Before))}),s>-1?s:0}o(HX,"getExtensionIndexByMergedApproach");function GX(e,t,n,i,r=!1){return r?HX(e,t,n):n.findIndex(a=>a[0]===i)}o(GX,"getExtensionIndex");function WX(e,t,n,i,r){se(e,{severity:Di.LogSeverity.Error,message:q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(WX,"handleInvalidExtension");function Ta(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=BX(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=B1(g,n,p,te.ActionType.Custom);if(typeof g!="object"){WX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let v=$X(g,s);if(v){let A=GX(g,e,t,v,a);A>-1&&(wA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&MA(l,n,t,r),t}o(Ta,"addExtensionToArray");function kA(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(kA,"addEnumForProperties");function KX(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];kA(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(KX,"addColumnPropertyIndexAndEnum");function Sc(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var v,A,E,O;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Yu(l),p=a?a.replace(/::/g,"/"):`@${Uo.UIAnnotationTerms.LineItem}`,g=(O=(E=(A=(v=t.options)==null?void 0:v.settings)==null?void 0:A.controlConfiguration)==null?void 0:E[p])==null?void 0:O.columns;g&&(u=Ta(g,u,i,void 0,n)),KX(u,e,l,i);let m={};u.forEach(([F,j])=>m[F]=j),e.definitions[s].properties=m}o(Sc,"addCustomColumnDefinition");function XX(e){let t;return e.lineItemId.startsWith(te.DefinitionName.LineItemsOfView)?t=te.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(te.DefinitionName.LineItems)?t=te.DefinitionName.ToolBarAction:t=te.DefinitionName.ObjectPageToolBarAction,t}o(XX,"determineActionDefinitionName");function QX(e,t,n){e[te.SchemaTag.keys]=[],t[te.SchemaKeyName.semanticObject]&&e[te.SchemaTag.keys].push({name:te.SchemaKeyName.semanticObject,value:t[te.SchemaKeyName.semanticObject]});let{key:i,ns:r}=tc(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(QX,"addTargetAndKeysOfAction");function qX(e,t,n,i,r,a=!0){if(i.Determining===!0)return;let s=XX(e),l=yi(i,e.entityType),u=i.$Type.split(`${te.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=Yg(p),m=t.properties[`${u}::${g}`]={description:l};if(a?m.$ref=vi(s,dt(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[te.SchemaTag.propertyIndex]=r,m[te.SchemaTag.dataType]=no(i),QX(m,i,p),m[te.SchemaTag.annotationType]=i.$Type,a){let v=Et(s,dt(g),e.appSchema);v[te.SchemaTag.annotationPath]=`${n}/${r}`}else m[te.SchemaTag.annotationPath]=`${n}/${r}`}o(qX,"addActionRecordToSchema");function zX(e,t,n,i,r){var u;let a=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ii(te.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=pa(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[a]);let g=p.properties,m={description:yi(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=U+n,m[te.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[te.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[te.SchemaTag.propertyIndex]=i,m[te.SchemaTag.dataType]=no(s),g[l]=m,cm(s,g,l)}}o(zX,"addLineItemRecordToSchema");function jA(e,t,n,i,r=te.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Uo.UIAnnotationTypes.DataFieldForAction||s.$Type===Uo.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))qX(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===Uo.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;zX(e,l,u,a,i)}a++})}o(jA,"appendLineItemsToSchema");function Pc(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=am(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);jA(e,r,a,void 0,t)}o(Pc,"addLineItemsTypeToSchema");function Cc(e,t,n,i=te.DefinitionName.Position,r){var p,g,m,v,A;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let E in a)E!=="custom"&&s.push(E);let l=t!==te.DefinitionName.LineItems?r:`@${Uo.UIAnnotationTerms.LineItem}`,u=(A=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[l])==null?void 0:A.columns;if(u)for(let E in u)s.indexOf(E)===-1&&s.push(E);if(s.length>0){let E=e.definitions[i].properties.anchor;da(s,E)}}o(Cc,"addFragmentEnumForAnchor");function uo(e,t,n=te.DefinitionName.CustomActionPosition){Qa(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(uo,"addEnumForActionAnchor");function Dh(e,t,n,i){var a,s,l,u;let r;for(let p in e)if((i&&((s=(a=e[p].options)==null?void 0:a.settings)==null?void 0:s.contextPath)===i||((u=(l=e[p].options)==null?void 0:l.settings)==null?void 0:u.entitySet)===(n==null?void 0:n.name))&&(e[p].name===t||t===te.v4.FE_TEMPLATE_V4_ALP&&e[p].name===te.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[p];break}return r}o(Dh,"findPageV4");function H1(e,t){let n,i=e.properties[te.PropertyName.table];return t.templateType===te.TemplateType.AnalyticalListPageV4?(n=te.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${U}${te.DefinitionName.ALPTableView}`,delete e.definitions[te.DefinitionName.Table],delete e.definitions[te.DefinitionName.LRChartView],delete e.definitions[te.DefinitionName.LRTableView],delete e.definitions[te.DefinitionName.MultiTableModeV4]):t.templateType===te.TemplateType.ListReportObjectPageV4&&(n=te.DefinitionName.Table,delete i.anyOf,i.$ref=`${U}${te.DefinitionName.Table}`,e.definitions[n].properties[te.PropertyName.annotationPath][te.SchemaTag.hidden]=!0,delete e.definitions[te.DefinitionName.ALPTableView],e.properties[te.PropertyName.defaultPath][te.SchemaTag.hidden]=!0),n}o(H1,"alignSchemaWithTemplateType");function Ea(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var g,m,v,A,E,O,F,j,G,B;let s=e.definitions[r];if(!s)return;let l=Yu(s),u;a?i.indexOf(te.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===te.DefinitionName.CustomFormActionOP?u=`@${Uo.UIAnnotationTerms.FieldGroup}`:u=`@${Uo.UIAnnotationTerms.LineItem}`;let p;if(r.includes(te.DefinitionName.ObjectPageCustomSectionActions)?p=(O=(E=(A=(v=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:A.sections)==null?void 0:E[u])==null?void 0:O.actions:p=(B=(G=(j=(F=t.options)==null?void 0:F.settings)==null?void 0:j.controlConfiguration)==null?void 0:G[u])==null?void 0:B.actions,p&&(l=Ta(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][te.SchemaTag.propertyIndex]=Z;let ae={};l.forEach(([Z,re])=>ae[Z]=re),e.definitions[r].properties=ae}}o(Ea,"addCustomActionDefinition");function _h(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,v,A,E,O,F;let a=e.definitions[r];if(!a)return;let s=Yu(a),l;[te.DefinitionName.CustomHeaderAction,te.DefinitionName.CustomHeaderActionOP].includes(i)?l=(v=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:v.actions:l=(F=(O=(E=(A=t.options)==null?void 0:A.settings)==null?void 0:E.content)==null?void 0:O.footer)==null?void 0:F.actions,l&&(s=Ta(l,s,i,"press",n));let u={};if(s){for(let j=0;j<s.length;j++)s[j][1][te.SchemaTag.propertyIndex]=j;s.forEach(([j,G])=>u[j]=G)}e.definitions[r].properties=u}o(_h,"addHeaderFooterCustomActionDefinition");function xc(e,t,n){let i=Gg(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){se(n,{severity:Di.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Gg(i,[t]);if(!r){se(n,{severity:Di.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(xc,"getManifestPage");function Ic(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,$1.join)(...p,g),v=e.find(A=>A.dataSourceUri.endsWith(m));if(v){let A=(s=t.options)==null?void 0:s.settings;return{file:v,relativeFilePath:m,connection:{contextPath:A==null?void 0:A.contextPath,entitySet:A==null?void 0:A.entitySet}}}}}o(Ic,"getPageCustomExtensionFile");function $o(e,t,n,i){let r=xc(n,t,i),a=Gg(r,["options","settings","viewName"]);return r&&typeof a=="string"?Ic(e,r,n,"view",a):void 0}o($o,"getPageCustomViewFile");function G1(e,t,n,i,r,a,s){var g,m,v,A,E,O,F,j,G,B,ae,Z;let l=Yu(t),u=new Map;if(l=l.map(re=>{let Se=ym(e,re[1],re[0],{keyProperties:[te.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Se.const,re[0]),[Se.const,re[1]]}),a){let re=(E=(A=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:A.sections)==null?void 0:E[a];re&&"subSections"in re&&(l=Ta(re.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let re=(j=(F=(O=n.options)==null?void 0:O.settings)==null?void 0:F.content)==null?void 0:j.header;re&&"facets"in re&&(l=Ta(re.facets,l,i,"template",s,r))}else{let re=(Z=(ae=(B=(G=n.options)==null?void 0:G.settings)==null?void 0:B.content)==null?void 0:ae.body)==null?void 0:Z.sections;re&&(l=Ta(re,l,i,"template",s,r))}for(let re=0;re<l.length;re++)l[re][1][te.SchemaTag.propertyIndex]=re;let p={};l.forEach(([re,Se])=>{re=u.get(re)||re,p[re]=Se}),t.properties=p}o(G1,"addCustomSectionDefinition");function W1(e,t,n){var l,u,p;let i=Yu(t),r=new Map;i=i.map(g=>{let m=ym(e,g[1],g[0],{keyProperties:[te.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${Uo.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=Ta(a.filterFields,i,te.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][te.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(W1,"addCustomFilterFieldDefinition");var _=ie(le()),Oc=require("@sap-ux/vocabularies-types/vocabularies/UI");var YX=["header","filterBar","chart","table"],UA="@UI.LineItem";function $A(e,t,n,i,r){i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=pr(e.fullyQualifiedName,Oc.UIAnnotationTerms.SelectionFields,r));let a=0;return n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+dt(s.value);s.type==="PropertyPath"&&(l=kg(s,e)),i.properties[u]={$ref:U+u},i.properties[u][_.SchemaTag.propertyIndex]=a;let p=no(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($A,"addSelectionFields");function JX(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Oc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(JX,"getVisualFilters");function ZX(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(ZX,"getPropertiesIndex");function e7(e,t,n,i){var s,l,u,p,g,m;let r=ZX(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let v in n){let A=n[v];if(!A.template){let E=a.properties[v]={$ref:vi(_.DefinitionName.VisualFilter,v)},O=r.indexOf(v);O!==-1&&(E[_.SchemaTag.propertyIndex]=O);let F=Et(_.DefinitionName.VisualFilter,v,t);(s=A.visualFilter)!=null&&s.valueList&&(F[_.SchemaTag.annotationPath]=`${v}/@${A.visualFilter.valueList}`);let j=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(G=>G.name===v))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();F.description=j||v,F[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}o(e7,"addVisualFilters");function t7(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},W1(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&Qa(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(t7,"applyCustomFilterFields");function n7(e,t,n,i){var l,u;let r=JX(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={},e7(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=$A(e,t,a,s),t7(t,s,n)}o(n7,"addFilterBar");function K1(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=dt(`${_.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=yi(u,r),m=u.$Type.split(`${_.UIVOCABULARY}.`)[1],v=a.properties[`${m}::${u.Action}`]={$ref:U+p,description:g};v[_.SchemaTag.propertyIndex]=l,v[_.SchemaTag.annotationType]=u.$Type,v[_.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(K1,"defineActions");function X1(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"?gl(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(X1,"findTheRightVisualization");function i7(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(i7,"analyzeChartAnnotation");function r7(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=X1((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(se(r,{severity:_.LogSeverity.Error,message:q.t("NOVISUALIZATIONS")}),s=UA,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(r7,"analyzeSPVforView");function Ul(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}=X1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return r7(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=UA,m=`/${s}/@${Oc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=UA;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:v}=i7(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:v}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(Ul,"analyzeViewAnnotation");function o7(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=`${U}${_.DefinitionName.ALPChart}`,t){let a=t.split(_.UIVOCABULARYDOT)[1],s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(o7,"addALPChartView");function a7(e,t,n,i,r,a){var j,G,B,ae,Z,re,Se,D;let s=(j=n.entityType)==null?void 0:j.annotations.UI,l=(ae=(B=(G=t==null?void 0:t[0])==null?void 0:G.primary)==null?void 0:B[0])==null?void 0:ae[_.SchemaTag.annotationPath],{targetAnnotation:u}=Ul(l,s,n.serviceAVT,"primary",void 0,n.logger);o7(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=U+p,K1(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=Ul((Se=(re=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:re[0])==null?void 0:Se[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),v=e.definitions[a];g||i?(v.properties.toolBar.$ref=`${U}${_.DefinitionName.ToolBarLR}`,v.properties.columns={$ref:U+_.DefinitionName.LineItems},v.properties.annotationPath[_.SchemaTag.hidden]=!0):v.properties={};let A=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(A)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],A.additionalProperties=!1,A.description="Table (key: secondary)",A.title="Table",g?(delete A.properties,A.$ref=`${U}${_.DefinitionName.ALPTable}`):i||(A.properties={}),A[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let E,O;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(E=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(E=O=i.split(_.UIVOCABULARYDOT)[1]),E){let ut={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[E],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};Pc(ut,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let yt=s[O].fullyQualifiedName.split("@");A[_.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,A[_.SchemaTag.key]="secondary",A[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}Sc(e,r,n.logger);let F=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;Ea(e,r,n.logger,void 0,F),uo(e,F,_.DefinitionName.CustomActionPosition)}o(a7,"addALPViews");function s7(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=`${U}${i}`;let r=`${_.DefinitionName.Actions}<${e.viewKey}>`;return K1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${U}${r}`,n}o(s7,"addViewChartDefinitions");function c7(e,t,n,i,r,a){let s=s7(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:`${U}${s}`,description:a||l,title:l}}o(c7,"addViewChart");function l7(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=Et(_.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),Xa(l.properties.toolBar,_.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${U}${a}`,description:e.title||u,title:u},Xa(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};Pc(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(l7,"addViewLineItems");function f7(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(f7,"addTagsToView");function u7(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(u7,"getTargetEntityType");function p7(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Oc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=Et(_.DefinitionName.ViewCustomColumn,r,e.appSchema);Xa(l.properties.position,_.DefinitionName.ViewPosition,r),Et(_.DefinitionName.ViewPosition,r,e.appSchema),Sc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Cc(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),Et(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${U}${g}`,uo(e.appSchema,u,g)}o(p7,"addViewCustomExtensions");function d7(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)l7(n,t,e,n.targetAnnotation,i),p7(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)c7(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${U}${_.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${U}${_.DefinitionName.LRTableView}`}}}o(d7,"addLRViewParts");function g7(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=u7(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:v,targetAnnotation:A,namespace:E,title:O}=Ul(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(G=>G.targetTypeName===E))==null?void 0:l.name);let F=dt(u[_.SchemaTag.key]),j={viewKey:F,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};d7(v,s,j,n,i,m,u),f7(s,F,E,u)}}o(g7,"addLRViews");function m7(e,t,n,i,r,a){var g,m,v,A,E,O,F,j,G,B,ae,Z,re;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=Ul(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Se=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${dt(Se)}`,ut=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ut[_.SchemaTag.isViewNode],Xa(ut.properties.toolBar,_.DefinitionName.ToolBar,D),ut[_.SchemaTag.annotationPath]=u,ut.properties.columns={},Xa(ut.properties.columns,D),delete s.properties,Xa(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let yt=(m=t.entityType)==null?void 0:m.annotations.UI[Se];yt||se(t.logger,{severity:_.LogSeverity.Error,message:q.t("NOTARGET",{target:Se})});let Ue={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};Pc(Ue);let an=(v=Se.split("#"))==null?void 0:v[1],Gn=an?`@${Oc.UIAnnotationTerms.LineItem}#${an}`:`@${Oc.UIAnnotationTerms.LineItem}`;Sc(e,i,t.logger,void 0,D,Gn),Cc(e,D,i,void 0,Gn);let en=`${_.DefinitionName.Actions}<${D}>`,Lt=gm(e,D,_.DefinitionName.CustomTableAction);Ea(e,i,t.logger,hn(Lt),en,Gn),uo(e,en,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${U}${_.DefinitionName.ToolBarLR}`,Xa(s.properties.columns,_.DefinitionName.LineItems);let Se=(O=(E=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:E[r])==null?void 0:O.LineItem;!Se&&!((G=(j=(F=i.options)==null?void 0:F.settings)==null?void 0:j.views)!=null&&G.paths)&&se(t.logger,{severity:_.LogSeverity.Error,message:q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Se,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};Pc(D),Sc(e,i,t.logger),Cc(e,_.DefinitionName.LineItems,i),Se&&!((Z=(ae=(B=i.options)==null?void 0:B.settings)==null?void 0:ae.views)!=null&&Z.paths)&&(s[_.SchemaTag.annotationPath]=pr((re=t.entityType)==null?void 0:re.fullyQualifiedName,Se.term,Se.qualifier));let ut=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;Ea(e,i,t.logger,void 0,ut),uo(e,ut,_.DefinitionName.CustomActionPosition)}}o(m7,"adaptTableDefinition");function h7(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(h7,"getDefaultAnnotationPath");function y7(e,t,n,i){var u,p,g,m,v;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=h7(t,n.entityType,n.templateType),l=H1(e,n);n7(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(m7(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],g7(e,r,n,t,l)):(v=(m=t.options)==null?void 0:m.settings)!=null&&v.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[_.PropertyName.chart][_.SchemaTag.hidden]=!0):n.templateType===_.TemplateType.AnalyticalListPageV4&&(a7(e,r,n,s,t,l),Cc(e,_.DefinitionName.LineItems,t))}o(y7,"addTableAndViews");function v7(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",_h(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;Et(l,l,e,!1),s.properties.position.$ref=`${U}${l}`,uo(e,i,l)}o(v7,"addHeaderActions");function Ju(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,Ka(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return se(e.logger,{severity:_.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=Dh(l,n,e.entitySet,i);if(!u)return r;v7(r,u,e.logger),y7(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Do(r,YX),r}o(Ju,"generateListReportSchemaV4");var Er=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=ie(le());var jV=ie(Qs()),UV=ie(kV()),$V=ie(PS());var BV=ie(le()),HV=ie(le());function G6(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(G6,"findElementByXMLPath");function GV(e,t){return e[t]?!1:(e[t]={},!0)}o(GV,"ensureObjectExists");function W6(e,t){let n={},i=hn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(W6,"getPropertiesFromRef");function K6(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=GV(l,i),m=l[i];return Vc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(K6,"traverseDefaultAggregation");function X6(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(X6,"isDefaultAggregationAppliable");function Vc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=W6(s,n.$ref));for(let v in u){let A=u[v],E=typeof A=="object";if(E&&(p==null?void 0:p.defaultAggregation)===v&&X6(u,p)&&(l=K6(e,t,p)||l,E=!1),!!E)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let O=A.metadata.path,F=O.slice(r.length),j=G6(i,F);l=GV(a,v)||l;let G=a[v];l=Vc({fullSchema:e.fullSchema,schema:A,element:j,contextPath:O,config:G,parent:e},t)||l}else l=t(e,A,a,v)||l}return l}o(Vc,"traverseSchema");function rf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,$V.parse)(e.fileContent),s=(0,UV.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,jV.xml2js)(e.fileContent)}catch(r){se(n,{severity:HV.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Hg(r)}),location:{path:e.dataSourceUri}})}return i}o(rf,"parseXML");function of(e){return`${BV.DefinitionName.CustomExtensionFragment}<${e}>`}o(of,"getCustomExtensionFragmentDefinitionKey");function xy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(xy,"getRootElement");var VS=ie(le()),wS=ie(le());var Cp=ie(le());function Es(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(Es,"getAttribute");function WV(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(WV,"getNodeByName");function Q6(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(Q6,"resolveMetaPath");function LS(e){var E;let{node:t,serviceAVT:n,connectionContext:i}=e,r=Es(t,"contextPath")||i.contextPath,a=Es(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=Q6(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((E=p==null?void 0:p.target)==null?void 0:E._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,v=a.split("#");v.length&&(m=v[1]);let A;if(a){let O=a.split(".");O.length&&(A=O[O.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:A}:void 0}o(LS,"getEntityTypeResolution");function KV(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(KV,"applyAnnotationPath");function q6(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=Ul(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=mE(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(q6,"getTableLineItemAnnotationData");var XV={"sap.fe.macros.Chart":o(e=>{let t=LS(e);KV(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=LS(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(Cp.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);$A(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=LS(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(Cp.UIVOCABULARY,n);if(KV(t,r),t.annotationPath){let u=q6(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:Cp.DefinitionName.LineItems};jA(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var QV=ie(le());var z6=new Map([["filterFields","SelectionField::"]]),Y6=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),xp={anchor:"anchor",placement:"placement",key:"key"};function J6(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[hn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return xp.anchor in r&&xp.placement in r}return!1}o(J6,"isCustomExtensionSchema");function qV(e){let t=z6.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=Y6.get(e),t&&(n.prefix=t)),n}o(qV,"getAnnotationPrefix");function Z6(e,t,n,i){let r=t.properties[n],a=qV(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=Es(l,xp.key)||n,p=Es(l,xp.anchor),g=Es(l,xp.placement)||QV.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,v={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:v}}o(Z6,"getExtensionData");function eq(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}=Z6(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}Ta(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(eq,"updatePropertyIndices");function tq(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=Es(e.subElements[s],"key")||r}return r}o(tq,"getCorrectedAnchorEnumKey");function nq(e,t,n,i){var a,s;let r=qV(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;Qa(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=tq(e,m.const,r,t.properties[m.const]))}}o(nq,"applyEnumsForAnchors");function zV(e,t,n,i){J6(t,n)&&(i=i||e.name,eq(e,t,i),nq(e,t,n,i))}o(zV,"handleExtensions");var li=[];for(let e=0;e<256;++e)li.push((e+256).toString(16).slice(1));function YV(e,t=0){return(li[e[t+0]]+li[e[t+1]]+li[e[t+2]]+li[e[t+3]]+"-"+li[e[t+4]]+li[e[t+5]]+"-"+li[e[t+6]]+li[e[t+7]]+"-"+li[e[t+8]]+li[e[t+9]]+"-"+li[e[t+10]]+li[e[t+11]]+li[e[t+12]]+li[e[t+13]]+li[e[t+14]]+li[e[t+15]]).toLowerCase()}o(YV,"unsafeStringify");var JV=require("crypto");var Oy=new Uint8Array(256),Iy=Oy.length;function RS(){return Iy>Oy.length-16&&((0,JV.randomFillSync)(Oy),Iy=0),Oy.slice(Iy,Iy+=16)}o(RS,"rng");var ZV=require("crypto"),FS={randomUUID:ZV.randomUUID};function iq(e,t,n){var r;if(FS.randomUUID&&!t&&!e)return FS.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??RS();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 YV(i)}o(iq,"v4");var DS=iq;var _S="sap.fe.macros",rq=["id","key","title","text","label","header"];function ew(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(ew,"getElementName");function oq(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(oq,"isElementWithNamespace");function aq(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(aq,"getDependencies");function sq(e,t){let n="",i=e.attributes||[];for(let r of rq){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(sq,"getViewNodeDescription");function cq(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(cq,"findAvailableName");function tw(e,t){if(e.properties={},e.$ref){let n=hn(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(tw,"prepareSchemaProperties");function lq(e,t,n){t.properties||tw(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(lq,"handleAttributes");function fq(e){e.type===wS.MacrosPropertyType.Control&&(e.internalId=DS())}o(fq,"applyIdForMacros");function uq(e,t,n){var i,r;try{(r=(i=XV)[e])==null||r.call(i,t)}catch{se(n,{severity:VS.LogSeverity.Error,message:q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(uq,"callAnnotationHandler");function pq(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===wS.MacrosPropertyType.Control&&(e.controlName=n)}o(pq,"updateMetadataByReference");function dq(e,t,n,i){var v,A,E,O,F;let r=n.schema;t.properties||tw(t,r);let a=t.properties[i],s=(v=a==null?void 0:a.metadata)==null?void 0:v.type,l=(A=a==null?void 0:a.metadata)==null?void 0:A.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(E=a==null?void 0:a.metadata)==null?void 0:E.path)!=null&&O.length?cq(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(hn(a.$ref)):g=[`${_S}.${i}`,`${_S}.table.${i}`,`${_S}.filterBar.${i}`];let m=!1;for(let j of g){let G=(F=r.definitions)==null?void 0:F[j];if(typeof G!="object")continue;pq(u,G,j);let B=sq(e,i),ae={$ref:XF(j),description:B,propertyIndex:n.index,metadata:u};lq(e,ae,r),t.properties[p]=ae,m=!0,uq(j,{...n,node:e,schema:ae,rootSchema:n.schema},n.logger);break}if(fq(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let j={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=j}return p}o(dq,"addControlToSchema");function nw(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split(U)[1];a&&t.indexOf(a)===-1&&t.push(a)}nw(r,t)}}o(nw,"populateUsedDefinitionKeys");function gq(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(gq,"isElementAddableToSchema");function mq(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!WV(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(mq,"getDefaultAggregation");function hq(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,iw(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:ew(s),index:a}]},i)}}o(hq,"handleSubElementsOfXMLNode");function iw(e,t,n,i){var g,m,v;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[hn(t.$ref)]:t;if(oq(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(v=t.metadata)==null?void 0:v.defaultAggregation;A&&gq(e,t.properties[A])&&(t=t.properties[A]);let E=e.name.split(":"),O=dq(e,t,n,E[E.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),nw(t,i));let p=mq(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),hq(l,t,n,i),r.push({node:e,schema:t});for(let A of r)zV(A.node,A.schema,n.schema,A.name)}o(iw,"handleXMLNode");function yq(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(yq,"getMacrosPrefixes");function wc(e,t,n,i){let r=rf(t.file,!0,i),a=[];if(!r)return;nn();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){se(i,{severity:VS.LogSeverity.Error,message:q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=aq(l),p=yq(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let v=l.subElements[m],A=!g[v.name];g[v.name]=!0,iw(v,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:ew(v),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(wc,"generateMacrosSchemaDefinition");function rw(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&&rw(i.subSections,t)}}o(rw,"populateTemplates");function ow(e,t,n,i){var s,l,u;let r=xc(n.manifest,i),a=[];rw(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=of(p);e.definitions[m]=g;let v=Ic(n.fragments,r,n.manifest,"fragment",p);if(v){g.metadata.filePath=v.relativeFilePath;let{properties:A={},definitions:E={}}=wc(t,v,n.serviceAVT,n.logger)||{};g.properties=A;for(let O in E)e.definitions[O]||(e.definitions[O]=E[O])}}return t}o(ow,"resolveFragments");var vq=["header","layout","sections","footer"],Tq=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],MS="Custom Action";function kS(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=fm(t.item,e),p=pa(t.item),g=t.item.fullyQualifiedName.replace(`@${Er.UIAnnotationTerms.Identification}`,`/@${Er.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${dt(p)}>`,v=i.definitions[m]={type:"object",$ref:`${U}${N.DefinitionName.ObjectPageHeaderAction}`,description:yi(t.item,r)};v[N.SchemaTag.isViewNode]=!0,v[N.SchemaTag.dataType]=no(t.item),v[N.SchemaTag.propertyIndex]=s,v[N.SchemaTag.keys]=[],t.item[N.SchemaKeyName.semanticObject]&&v[N.SchemaTag.keys].push({name:N.SchemaKeyName.semanticObject,value:t.item[N.SchemaKeyName.semanticObject]}),v[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:l}),u&&(i.definitions[m][N.SchemaTag.target]=u),v[N.SchemaTag.actionType]=n,v[N.SchemaTag.annotationPath]=`/${g}`,a.properties[p]={$ref:`${U}${m}`},a.properties[p][N.SchemaTag.propertyIndex]=s}o(kS,"addSingleHeaderActionV4");function aw(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[N.SchemaTag.isViewNode]=!0,s[N.SchemaTag.propertyIndex]=i,s[N.SchemaTag.keys]=[],s[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:e}),s[N.SchemaTag.actionType]=N.ActionType.Standard,n.properties[r]={$ref:`${U}${a}`},n.properties[r][N.SchemaTag.propertyIndex]=i,s}o(aw,"addStandardHeaderAction");function sw(e,t,n,i,r,a){let s=pa(e.item),l=yi(e.item,n),u=dt(`${N.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Er.UIAnnotationTerms.Identification}`,`/@${Er.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${U}${N.DefinitionName.FooterActionV4}`,description:l};g[N.SchemaTag.isViewNode]=!0,g[N.SchemaTag.actionType]=t,g[N.SchemaTag.propertyIndex]=a,g[N.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${U}${u}`}}o(sw,"addSingleFooterAction");function Eq(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Er.UIAnnotationTypes.DataFieldForAction||i.$Type===Er.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(Tq.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(Eq,"groupByCriticality");function bq(e,t,n,i,r){for(let a=0;a<e.length;a++)kS(t,e[a],N.ActionType.Criticality,n,i,r,a)}o(bq,"addCriticalActions");function Aq(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&&(kS(t,e[s],N.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(Aq,"addCopyAction");function Sq(e,t,n,i,r,a){for(let s of e)kS(t,s,N.ActionType.Annotation,n,i,r,a),a++}o(Sq,"addUncriticalActions");function Pq(e){let t="RelatedApps",n=e.properties[t]={$ref:`${U}${t}`,description:"Related Apps"};n[N.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[N.SchemaTag.artifactType]=N.ArtifactType.Manifest,n[N.SchemaTag.actionType]=N.ActionType.Standard,n[N.SchemaTag.isViewNode]=!0,n[N.SchemaTag.keys]=[{name:N.SchemaKeyName.action,value:t}]}o(Pq,"addRelatedAppsButton");function cw(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[N.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`:e[N.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`}o(cw,"setAnnotationPathFromEntitySetOrEntityType");function Cq(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?Eq(n):{};if(bq(s,r.serviceAVT,t,e,i),r.entitySet){let p=S0(r.entitySet),g=P0(r.entitySet);if(im(r.entitySet)&&g){let m=aw("Edit",t,i,s.length);cw(m,r.entitySet,e,"UpdateHidden")}if(p){let m=aw("Delete",t,i,s.length+1);cw(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;Aq(l,r.serviceAVT,t,e,i,u),Sq(l,r.serviceAVT,t,e,i,u),fw(t,a,N.DefinitionName.CustomHeaderActionOP,r.logger),Pq(i)}o(Cq,"addHeaderActionCallBackV4");function xq(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Er.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];sw(l,N.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];sw(l,N.ActionType.Annotation,e,t,n,r.length+s)}}o(xq,"addFooterActionCallBackV4");function Iq(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Er.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomColumnOP}<${n}>`:N.DefinitionName.CustomColumnOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${N.DefinitionName.CustomColumnOP}<${n}>`;Sc(e,t,r,u,n,i);let p=a?n:N.DefinitionName.PositionOP;Et(N.DefinitionName.PositionOP,p,e,a);let g=a?`${N.DefinitionName.PositionOP}<${n}>`:N.DefinitionName.PositionOP;l.properties.position.$ref=`${U}${g}`,Cc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&kA(m,l)}o(Iq,"addCustomColumnsOP");function Oq(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Er.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomTableActionOP}<${n}>`:N.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description=MS;let u=`${N.DefinitionName.CustomTableActionOP}<${n}>`,p=`${N.DefinitionName.Actions}<${dt(n)}>`;Ea(e,t,r,u,p,i);let g=a?n:N.DefinitionName.CustomActionPositionOP;Et(N.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${N.DefinitionName.CustomActionPositionOP}<${n}>`:N.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${U}${m}`,uo(e,p,m)}o(Oq,"addTableCustomActionsOP");function fw(e,t,n,i){let r=e.definitions[n];r[N.SchemaTag.isViewNode]=!0,r.description=MS;let a=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.ObjectPageHeaderActions:N.DefinitionName.FooterActions;_h(e,t,i,n,a);let s=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.CustomHeaderActionPositionOP:N.DefinitionName.CustomFooterActionPositionOP;Et(s,s,e,!1),r.properties.position.$ref=`${U}${s}`,uo(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${U}${n}`})}o(fw,"addHeaderFooterCustomActionsOP");function Nq(e,t,n,i,r){let a=`${N.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[N.SchemaTag.isViewNode]=!0,s.description=MS;let l=`${N.DefinitionName.CustomFormActionOP}<${n}>`,u=`${N.DefinitionName.SectionActions}<${dt(n)}>`;Ea(e,t,r,l,u,i),Et(N.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${N.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${U}${p}`,uo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${U}${a}`})}o(Nq,"addFormCustomActionsOP");function Lq(e,t,n,i,r,a,s){let l=nc(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=Et(N.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${U}${l}`},g.properties.toolBar.$ref=vi(N.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=vi(N.DefinitionName.QuickVariantSelectionV4OP,t);let m=Et(N.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=vi(N.DefinitionName.AnnotationPathAsObject,t),Et(N.DefinitionName.AnnotationPathAsObject,t,n),Ka(e.entityType,n,`${N.DefinitionName.AnnotationPathAsObject}<${l}>`);let v={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Pc(v,N.DefinitionName.ObjectPageTableColumn,N.DefinitionName.CustomColumnOP,N.DefinitionName.CustomTableActionOP),Iq(n,a,l,t,s),Oq(n,a,l,t,s),g}o(Lq,"handleLineItem");function uw(e,t,n,i,r,a,s){s&&Ny(s,t,N.DefinitionName.ObjectPageSectionTableV4);let l=Et(N.DefinitionName.ObjectPageSectionTableV4,t,n);fa(e,l,nc(t)),Ga(e,l,nc(t)),l[N.SchemaTag.annotationPath]=e.annotationPath,l[N.SchemaTag.target]=e.namespace,l.properties.table.$ref=vi(N.DefinitionName.ObjectPageTable,t);let u=Lq(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(uw,"handleSectionTable");function Rq(e,t,n,i,r,a,s){let l;a===N.SectionType.Section?l=N.DefinitionName.ObjectPageSectionForm:a===N.SectionType.HeaderSection&&(l=N.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:vi(l,n)};let u=Et(l,n,r);e.ID||(u.properties={}),fa(e,u,n),Ga(e,u,n),u[N.SchemaTag.annotationPath]=e.annotationPath,u[N.SchemaTag.target]=e.namespace,u[N.SchemaTag.isViewNode]=!0;let p=lm(a,e,u,r,N.FioriElementsVersion.v4,n);if(e.base===N.FacetBase.Form){let g=nc(n);Et(N.DefinitionName.CustomFormActionOP,p,r),Nq(r,t,p,g,s)}}o(Rq,"handleFormIdentification");function lw(e,t,n,i,r){n.properties[t]={$ref:`${U}${r}`};let a=Et(N.DefinitionName.CommonHeaderFacetSettings,r,i,!1);dl(e,a,t),a[N.SchemaTag.annotationPath]=e.annotationPath,a[N.SchemaTag.target]=e.namespace,a[N.SchemaTag.dataType]=ic(e==null?void 0:e.target),a[N.SchemaTag.isViewNode]=!0}o(lw,"handleHeaderFacet");function Fq(e,t,n,i){let r=Et(N.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,u=yi(l,i),p=l.$Type.split(N.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:vi(N.DefinitionName.ObjectPageToolBarAction,g),description:u};m[N.SchemaTag.propertyIndex]=a,m[N.SchemaTag.annotationType]=l.$Type;let v=Et(N.DefinitionName.ObjectPageToolBarAction,dt(g),n);v[N.SchemaTag.annotationPath]=hm(l),v[N.SchemaTag.dataType]=no(l),v.properties={},a++})}return r}o(Fq,"handleChartActions");function Dq(e,t,n,i){let r=Et(N.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[N.SchemaTag.annotationPath]=hm(e),r[N.SchemaTag.dataType]=ic(e.target||e),r[N.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=vi(N.DefinitionName.ObjectPageToolBar,t);let a=Et(N.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=vi(N.DefinitionName.ObjectPageToolBarActions,t);let s=Fq(e,t,n,i);return{chart:r,chartActions:s}}o(Dq,"handleChart");function pw(e,t,n,i,r=e.entityType,a=!1,s){let l=a?N.DefinitionName.CommonHeaderFacetSettings:N.DefinitionName.ObjectPageSectionChart,u=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart;i&&Ny(i,t,l);let p=mm(u,t),g=Et(l,p,n,!1);if(dl(e,g,t),a)return delete g.properties.chart,{parentChartRef:g};g[N.SchemaTag.annotationPath]=hm(e),g.properties.chart.$ref=vi(N.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:v}=Dq(e.target||e,t,n,r);return m[N.SchemaTag.target]=s,{parentChartRef:g,chart:m,chartActions:v}}o(pw,"handleSectionChart");function _q(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${IE(r,n.serviceAVT)}`,l=s.split(N.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(_q,"getVisualizationKeyAndType");function Vq(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(Vq,"getTargetFromNavigation");function wq(e,t,n){let i=e.target[N.FacetBase.PresentationVariant]?e.target[N.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:u}=_q(!!r,a,n),p=r?a:Vq(n,s,u),g=e.target[N.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:u,target:p,namespace:g,navigationPath:s}}o(wq,"getVisualizationProps");function Ny(e,t,n,i){e.properties[t]={$ref:vi(n,i||t)}}o(Ny,"addPropertyRef");function dw(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(dw,"getSectionPropertyRef");function Mq(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:u}=dw(t,r);Ny(i,l,N.DefinitionName.ObjectPageSectionTableV4,u);let{sectionTable:p,table:g}=uw(e,u,n,{target:r.target,entityType:e.entityType},a,s);p[N.SchemaTag.annotationPath]=e.annotationPath,dl(e,p,t),delete p[N.SchemaTag.isViewNode],g[N.SchemaTag.annotationPath]=`/${r.namespace}/${r.key}`,g[N.SchemaTag.target]=r.namespace}o(Mq,"addPVLineItemSection");function kq(e,t,n,i,r,a=!1){let s=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:u}=dw(t,r);Ny(i,l,s,u);let{parentChartRef:p}=pw(r.target,u,n,void 0,e.entityType,a,r.namespace);p[N.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(fa(e,p,t),WF(e,p)):dl(e,p,t)}o(kq,"addPVChartSection");function jq(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){se(a.logger,{severity:N.LogSeverity.Error,message:q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=wq(e,t,a),u=r===N.SectionType.HeaderSection;l&&(l.type.startsWith(N.Visualization.Chart)?kq(e,t,n,i,l,u):l.type.startsWith(N.Visualization.LineItem)&&Mq(e,t,n,i,l,a,s))}o(jq,"handleSectionPresentationVariant");function Uq(e){let t=e.facets||{};for(let n in t)if(t[n].base===N.FacetBase.CollectionFacet)return!0;return!1}o(Uq,"containsCollectionFacet");function $q(e,t,n){var a;let i=`${N.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[N.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};zs(n,N.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o($q,"createCustomSubSectionReference");function Bq(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=Et(n,p,e),m=Et(N.DefinitionName.ObjectPageCustomSectionActions,p,e),v=Et(N.DefinitionName.CustomSectionActionOP,p,e),A=`${N.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${U}${A}`};let E=`${N.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${U}${E}`},Et(N.DefinitionName.CustomSectionActionPositionOP,p,e);let O=`${N.DefinitionName.CustomSectionActionPositionOP}<${p}>`;v.properties.position.$ref=`${U}${O}`,v[N.SchemaTag.isViewNode]=!0,Ea(e,t,i,E,A,p),uo(e,A,O)}}o(Bq,"applyCustomActionsToCustomSections");function jS(e,t,n,i,r,a,s){var m,v,A,E,O;let l=!1,u;a&&s?(l=!Uq(a),u=$q(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${U}${u}`},G1(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&Qa(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[N.SchemaKeyName.id,N.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(N.DefinitionName.ObjectPageCustomSectionFragment)){let F=t.definitions[N.DefinitionName.ObjectPageCustomSectionActions];F.properties={},Bq(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(N.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let F=(O=(E=(A=(v=(m=i.options)==null?void 0:m.settings)==null?void 0:v.content)==null?void 0:A.body)==null?void 0:E.sections)==null?void 0:O[s],j=F&&"subSections"in F?F.subSections:{};for(let G=g.oneOf.length-1;G>=0;G--){let B=g.oneOf[G];j[B.const]||(B.hidden=!0)}}}o(jS,"applyCustomSections");function Hq(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=Ro(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[N.SchemaTag.annotationPath]=e.annotationPath,g[N.SchemaTag.target]=e.namespace,g[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}],g[N.SchemaTag.isViewNode]=!0;let m=l+1;for(let v in e.facets)US(a,e.facets,v,g,n,r,s,m);u&&jS(g,n,a,s,N.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(Hq,"handleCollection");function US(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${nc(n)}>`;switch(u.base){case N.FacetBase.PresentationVariant:case N.FacetBase.SelectionPresentationVariant:{jq(u,n,r,i,a,e,s);break}case N.FacetBase.CollectionFacet:{Hq(u,n,r,i,a,e,s,l);break}case N.FacetBase.LineItem:{if(a===N.SectionType.Section){let g=t[n];uw(u,n,r,g,e,s,i)}break}case N.FacetBase.Form:case N.FacetBase.Identification:{Rq(u,s,n,i,r,a,e.logger);break}case N.FacetBase.DataPoint:{lw(u,n,i,r,p);break}case N.FacetBase.Chart:{a===N.SectionType.HeaderSection?lw(u,n,i,r,p):a===N.SectionType.Section&&pw(u,n,r,i);break}case N.FacetBase.Address:case N.FacetBase.Contact:{au(u,n,i,r,a);break}default:i.properties[n]=Ro(r,u,n)}}o(US,"addSection");function Gq(e,t,n){let i=Ug(e.entityType,e.serviceAVT,N.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[N.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[N.DefinitionName.Sections];for(let a in i)US(e,i,a,r,t,N.SectionType.Section,n);jS(r,t,e,n,N.DefinitionName.ObjectPageCustomSectionFragment)}o(Gq,"addSections");function Wq(e,t,n,i){let r=jg(n,e.serviceAVT,N.FioriElementsVersion.v4,e.logger),a=t.definitions[N.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)US(e,r,s,a,t,N.SectionType.HeaderSection,i);jS(a,t,e,i,N.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionAddress]}}o(Wq,"addHeaderSections");function Kq(e,t,n){let i=e.entityType;dm(t,i),pm(t,i,e,Cq,n),i&&(t.definitions[N.DefinitionName.HeaderSections][N.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Er.UIAnnotationTerms.HeaderFacets}`),Wq(e,t,i,n)}o(Kq,"addHeader");function Ip(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${U}${N.DefinitionName.Sections}`},!e.manifest[N.ManifestSection.ui5].routing||!e.manifest[N.ManifestSection.ui5].routing.targets)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:N.MANIFESTPATH}}),r;let a=r.definitions[N.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:N.DefinitionName.Sections};if(a[N.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[N.ManifestSection.ui5].routing.targets;if(!s)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}}),r;let l=Dh(s,N.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(Kq(e,r,l),a[N.SchemaTag.isViewNode]=!0,e.entityType&&(a[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Er.UIAnnotationTerms.Facets}`),zs(e.featureToggles,N.Features.BuildingBlocks)&&i){r.definitions[N.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{ow(r,i,e,l.id)}catch(u){se(e.logger,{severity:N.LogSeverity.Error,message:u})}}Gq(e,r,l),um(r,e,N.FioriElementsVersion.v4,xq),fw(r,l,N.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[N.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[N.DefinitionName.GenericColumnsOP],delete r.definitions[N.DefinitionName.GenericSections],delete r.definitions[N.DefinitionName.GenericSubSections],delete r.definitions[N.DefinitionName.ObjectPageChart],delete r.definitions[N.DefinitionName.ObjectPageSectionAddress],delete r.definitions[N.DefinitionName.ObjectPageSectionChart],delete r.definitions[N.DefinitionName.ObjectPageSectionContact],delete r.definitions[N.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[N.DefinitionName.ObjectPageSectionForm],delete r.definitions[N.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[N.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[N.DefinitionName.ObjectPageSubSections],delete r.definitions[N.DefinitionName.ObjectPageTable],delete r.definitions[N.DefinitionName.ObjectPageToolBar],delete r.definitions[N.DefinitionName.ObjectPageToolBarAction],delete r.definitions[N.DefinitionName.ObjectPageToolBarActions],delete r.definitions[N.DefinitionName.QuickVariantSelectionV4OP],Do(r,vq),r}o(Ip,"generateObjectPageSchemaV4");function $S(e,t){return JSON.parse(JSON.stringify(t))}o($S,"generateFreestyleSchemaV4");var Gr=ie(le());function BS(e,t,n,i,r,a,s,l,u){let p=No(n,r),{entitySet:g,entityType:m}=Mc(p,s,t,r),v={templateType:Gr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Gr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Ip(v,e,s,l)}o(BS,"generateObjectPageInterfaceV4");function Ly(e,t,n,i,r,a,s){nn();let l=No(i,r),{entitySet:u,entityType:p}=Mc(l,s,n,r),g={templateType:e,fioriElementsVersion:Gr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Gr.TemplateType.ListReportObjectPageV4?Gr.v4.FE_TEMPLATE_V4_LIST_REPORT:Gr.v4.FE_TEMPLATE_V4_ALP;return Ju(g,t,m,s)}o(Ly,"generateListReportInterfaceV4");function HS(e,t,n,i,r,a){let s=No(n,a),l={templateType:e,fioriElementsVersion:Gr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return $S(l,t)}o(HS,"generateFreestyleInterfaceV4");function GS(e,t,n,i,r,a,s){let l={};if(zs(a,Gr.Features.BuildingBlocks)){let u=No(r,s),p=$o(i||[],t,n,s);l=p!=null&&p.file.fileContent?wc(e,p,u,s):{}}return l}o(GS,"generateFPMCustomPageInterfaceV4");var jc=require("@sap-ux/vocabularies-types/vocabularies/UI"),vw=ie(le());var kc=ie(le());var hw=new Map([[kc.PageTypeV2.ListReport,kc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[kc.PageTypeV2.ObjectPage,kc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),gw=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"),mw=o(e=>{var t;for(let[n,i]of hw)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"),Xq=o((e,t)=>{let n="";for(let[r,a]of hw)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),yw={manifest:{path:o(()=>`sap.ui5/extends/extensions/${kc.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=mw(n);i&&(t[i]={},gw(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=Xq(s,i);e[l]||(e[l]={}),gw(r[s],e[l])}for(let s in e){let l=mw(s);l&&!r[l]&&delete e[s]}},"export")}};var ft=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Dy=o(e=>ft(e)+"/views/paths","getSettingsPathForLRViewsPaths"),_y=o(e=>ft(e)+"/content/header","getSettingsPathForHeaderOP"),Qq=o(e=>ft(e)+"/content/footer","getSettingsPathForFooterOP"),Kr=o(e=>ft(e)+"/controlConfiguration","getControlConfigurationPath"),Vy=o((e,t,n)=>Kr(e)+`/@${jc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),wy=o(e=>Kr(e)+`/@${jc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),bs=o((e,t,n,i)=>Kr(e)+`/@${jc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),WS=o((e,t,n,i)=>wy(e)+`/filterFields/${i}`,"getFilterFieldPath"),br=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Kr(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),Ji=o((e,t,n,i,r)=>r?br(e,t,n,i,r):Kr(e)+`/@${jc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),My=o((e,t,n,i,r)=>Ji(e,t,n,i,r)+vw.QUICKVARPATH,"getQuickVariantPath"),Zi=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Kr(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),ki=o((e,t,n,i,r)=>r?Zi(e,t,n,i,r):Kr(e)+`/@${jc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),Xr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Kr(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Ar=o((e,t,n,i,r)=>r?Xr(e,t,n,i,r):Kr(e)+`/@${jc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),er=o((e,t,n,i)=>Kr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=o((e,t,n,i)=>Kr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),fi=o((e,t,n,i)=>_y(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),ky=o((e,t,n,i)=>ft(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),ho=o((e,t,n,i)=>Qq(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Fn=o((e,t,n)=>Kr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),sf=o((e,t,n,i)=>{let r=ft(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),As=o((e,t,n,i)=>ft(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Sr=o((e,t,n,i)=>{let r=ft(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),cf=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=ft(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),Fy=class Fy{};o(Fy,"ApplicationV4"),h([jt("settings")],Fy.prototype,"settings",2);var Ry=Fy,Wr=class Wr{};o(Wr,"AppSettings"),h([T({manifest:{path:o(()=>"sap.app","path")}})],Wr.prototype,"title",2),h([T({manifest:{path:o(()=>"sap.app","path")}})],Wr.prototype,"description",2),h([T({manifest:{path:o(()=>"sap.fiori","path")}})],Wr.prototype,"cloudDevAdaptationStatus",2),h([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),C({since:"1.78.0"})],Wr.prototype,"flexibleColumnLayout",2),h([T({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"})],Wr.prototype,"flexEnabled",2),h([T({manifest:{path:o(()=>"sap.ui5","path")}})],Wr.prototype,"dependencies",2),h([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Wr.prototype,"viewType",2),h([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Wr.prototype,"path",2),h([T(yw)],Wr.prototype,"controllerExtensions",2);var af=Wr;var he=ie(le());function At(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=zn(e,g);if(m!=null&&m.manifest){let v=m.manifest.path([i],t,p,...r);l=Lo(t,v,a,p,!0),l&&Object.keys(l).length>0&&(ml(m,l,g,e,a,r),qg(u,l,v,s))}}}o(At,"importSettingsOfObject");var DC={};Ks(DC,{ALPChart:()=>qP,ALPTable:()=>yf,ActionAfterExecutionConfiguration:()=>mC,ActionAfterExecutionConfigurationFooter:()=>pP,ActionAfterExecutionConfigurationForm:()=>hP,ActionAfterExecutionConfigurationOP:()=>Xp,ActionAfterExecutionConfigurationObjectPageHeader:()=>xP,ActionAfterExecutionConfigurationToolBarLR:()=>xC,Actions:()=>AC,AdditionalSemanticObject:()=>dC,CommonHeaderFacetSettings:()=>Rs,CommonViewSettings:()=>hf,CustomActionPosition:()=>NC,CustomActionPositionOP:()=>uC,CustomFilterField:()=>qS,CustomFilterFieldPosition:()=>QS,CustomFooterActionOP:()=>mP,CustomFooterActionPositionOP:()=>gP,CustomFormActionOP:()=>AP,CustomHeaderAction:()=>eP,CustomHeaderActionOP:()=>NP,CustomHeaderActionPosition:()=>Rp,CustomHeaderActionPositionOP:()=>OP,CustomSectionActionOP:()=>sP,CustomSectionActionPositionOP:()=>aP,CustomTableAction:()=>LC,CustomTableActionOP:()=>pC,FilterBar:()=>KS,FlexSettings:()=>RP,FooterActionV4:()=>dP,FormAction:()=>yP,Header:()=>YS,HeaderActions:()=>zS,HeaderSections:()=>MP,LRChartView:()=>zP,LRTableView:()=>YP,MultiTableModeV4:()=>ZP,ObjectPageCustomHeaderSectionFlexSettings:()=>tP,ObjectPageCustomHeaderSectionFragment:()=>nP,ObjectPageCustomSectionActions:()=>iP,ObjectPageCustomSectionFragment:()=>ff,ObjectPageCustomSubSectionFragment:()=>rP,ObjectPageFooter:()=>lP,ObjectPageFooterActions:()=>cP,ObjectPageForm:()=>TP,ObjectPageFormActions:()=>vP,ObjectPageHeader:()=>PP,ObjectPageHeaderAction:()=>IP,ObjectPageHeaderActions:()=>SP,ObjectPageHeaderSectionAddress:()=>wP,ObjectPageHeaderSectionChart:()=>DP,ObjectPageHeaderSectionContact:()=>VP,ObjectPageHeaderSectionDataPoint:()=>_P,ObjectPageHeaderSectionForm:()=>FP,ObjectPageLayout:()=>GP,ObjectPageTable:()=>Hp,ObjectPageTableColumn:()=>bf,ObjectPageTableColumnAction:()=>aC,ObjectPageToolBarAction:()=>fC,PersonalizationType:()=>KP,PersonalizationTypeOP:()=>rC,Position:()=>vC,PositionOP:()=>sC,QuickVariantSelectionV4:()=>QP,QuickVariantSelectionV4OP:()=>oC,RelatedApps:()=>gC,Table:()=>eC,TableColumn:()=>Jy,TableColumnAction:()=>hC,TableCreationModeOP:()=>iC,TableCustomColumn:()=>EC,TableCustomColumnOP:()=>cC,TableSettings:()=>Wy,TableViewExtension:()=>JP,TableViewSettings:()=>Up,ToolBar:()=>SC,ToolBarAction:()=>IC,ViewCustomActionPosition:()=>RC,ViewPersonalizationType:()=>XP,ViewPosition:()=>TC,ViewTableColumn:()=>Zy,ViewTableColumnAction:()=>yC,ViewTableCustomAction:()=>FC,ViewTableCustomColumn:()=>bC,ViewToolBarAction:()=>OC,VisualFilter:()=>XS,checkViewOrder:()=>tC,deleteCreationModeProperty:()=>Bp,deletePersonalizationProperty:()=>Eo,exportCreationModeProperty:()=>$p,exportPersonalization:()=>qy,exportPersonalizationProperty:()=>To});function qq(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(qq,"exportVisualFilterValueList");var lf=class lf{};o(lf,"FilterBar"),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.99.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],lf.prototype,"hideFilterBar",2),h([T({manifest:{path:wy}}),C({since:"1.93.0"}),Ne("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],lf.prototype,"initialLayout",2),h([T({manifest:{path:wy}}),C({since:"1.93.0"}),Ne("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],lf.prototype,"layout",2);var KS=lf,Op=class Op{};o(Op,"VisualFilter"),h([T({manifest:{path:WS}}),C({since:"1.93.0"}),Ne("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Op.prototype,"availability",2),h([T({manifest:{path:WS,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:qq,key:"visualFilter"}}),C({since:"1.93.0"})],Op.prototype,"visualFilterValueList",2);var XS=Op,Np=class Np{};o(Np,"CustomFilterFieldPosition"),h([T({manifest:{path:o((t,n,i,r)=>bs(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Np.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>bs(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Np.prototype,"placement",2);var QS=Np,Ss=class Ss{};o(Ss,"CustomFilterField"),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],Ss.prototype,"label",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],Ss.prototype,"property",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],Ss.prototype,"template",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],Ss.prototype,"required",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],Ss.prototype,"position",2);var qS=Ss;var JS=class JS{};o(JS,"HeaderActions");var zS=JS,ZS=class ZS{};o(ZS,"Header");var YS=ZS;var Lp=class Lp{};o(Lp,"CustomHeaderActionPosition"),h([T({manifest:{path:o((t,n,i,r)=>fi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Lp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>fi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Lp.prototype,"placement",2);var Rp=Lp,Ps=class Ps{};o(Ps,"CustomHeaderAction"),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ps.prototype,"text",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ps.prototype,"position",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ps.prototype,"press",2),h([T({manifest:{path:fi},generate:qn}),C({since:"1.84.0"})],Ps.prototype,"visible",2),h([T({manifest:{path:fi},generate:qn}),C({since:"1.84.0"})],Ps.prototype,"enabled",2);var eP=Ps;var jy=class jy{};o(jy,"ObjectPageCustomHeaderSectionFlexSettings"),h([T({manifest:{path:o((t,n,i)=>Sr(t,n,i,"flexSettings"),"path")}}),C({since:"1.81.0"})],jy.prototype,"designtime",2);var tP=jy,tr=class tr{};o(tr,"ObjectPageCustomHeaderSectionFragment"),h([T({manifest:{path:o((t,n,i)=>Sr(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],tr.prototype,"relatedFacet",2),h([T({manifest:{path:o((t,n,i)=>Sr(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],tr.prototype,"relativePosition",2),h([T({manifest:{path:Sr},generate:ri}),C({since:"1.84.0"})],tr.prototype,"visible",2),h([T({manifest:{path:Sr}}),C({since:"1.77.0"})],tr.prototype,"title",2),h([T({manifest:{path:Sr}}),C({since:"1.77.0"})],tr.prototype,"subTitle",2),h([T({manifest:{path:Sr,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],tr.prototype,"fragmentName",2),h([T({manifest:{path:Sr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),C({since:"1.86.0"})],tr.prototype,"templateEdit",2),h([T({manifest:{path:Sr}}),C({since:"1.81.0"})],tr.prototype,"stashed",2),h([T({manifest:{path:Sr}}),C({since:"1.81.0"})],tr.prototype,"flexSettings",2),h([T({manifest:{path:Sr}}),C({since:"1.81.0"})],tr.prototype,"requestGroupId",2),h([T({manifest:{path:Sr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],tr.prototype,"controls",2);var nP=tr;var oP=class oP{};o(oP,"ObjectPageCustomSectionActions");var iP=oP,Cs=class Cs{};o(Cs,"ObjectPageCustomSectionFragment"),h([T({manifest:{path:o((t,n,i)=>sf(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],Cs.prototype,"relatedFacet",2),h([T({manifest:{path:o((t,n,i)=>sf(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],Cs.prototype,"relativePosition",2),h([T({manifest:{path:sf}}),C({since:"1.77.0"})],Cs.prototype,"title",2),h([T({manifest:{path:sf,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],Cs.prototype,"fragmentName",2),h([T({manifest:{path:sf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],Cs.prototype,"controls",2);var ff=Cs,xs=class xs extends ff{};o(xs,"ObjectPageCustomSubSectionFragment"),h([T({manifest:{path:o((...t)=>`${cf.apply({},t)}/position`,"path"),key:"anchor"}}),C({since:"1.77.0"})],xs.prototype,"relatedFacet",2),h([T({manifest:{path:o((...t)=>`${cf.apply({},t)}/position`,"path"),key:"placement"}}),C({since:"1.77.0"})],xs.prototype,"relativePosition",2),h([T({manifest:{path:cf}}),C({since:"1.77.0"})],xs.prototype,"title",2),h([T({manifest:{path:cf,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],xs.prototype,"fragmentName",2),h([T({manifest:{path:cf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],xs.prototype,"controls",2);var rP=xs;var Fp=class Fp{};o(Fp,"CustomSectionActionPositionOP"),h([T({manifest:{path:o((t,n,i,r)=>As(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Fp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>As(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Fp.prototype,"placement",2);var aP=Fp,Is=class Is{};o(Is,"CustomSectionActionOP"),h([T({manifest:{path:As}}),C({since:"1.84.0"})],Is.prototype,"text",2),h([T({manifest:{path:As}}),C({since:"1.84.0"})],Is.prototype,"position",2),h([T({manifest:{path:As}}),C({since:"1.84.0"})],Is.prototype,"press",2),h([T({manifest:{path:As},generate:ri}),C({since:"1.84.0"})],Is.prototype,"visible",2),h([T({manifest:{path:As},generate:ri}),C({since:"1.84.0"})],Is.prototype,"enabled",2);var sP=Is;var fP=class fP{};o(fP,"ObjectPageFooterActions");var cP=fP,uP=class uP{};o(uP,"ObjectPageFooter");var lP=uP;var Dp=class Dp{};o(Dp,"ActionAfterExecutionConfigurationFooter"),h([T({manifest:{path:o((t,n,i,r)=>ho(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Dp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>ho(t,n,i,r)+"/afterExecution","path")}})],Dp.prototype,"enableAutoScroll",2);var pP=Dp,Uy=class Uy{};o(Uy,"FooterActionV4"),h([T({manifest:{path:ho}}),C({since:"1.84.0"})],Uy.prototype,"afterExecution",2);var dP=Uy,_p=class _p{};o(_p,"CustomFooterActionPositionOP"),h([T({manifest:{path:o((t,n,i,r)=>ho(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],_p.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>ho(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],_p.prototype,"placement",2);var gP=_p,Os=class Os{};o(Os,"CustomFooterActionOP"),h([T({manifest:{path:ho}}),C({since:"1.84.0"})],Os.prototype,"text",2),h([T({manifest:{path:ho}}),C({since:"1.84.0"})],Os.prototype,"position",2),h([T({manifest:{path:ho}}),C({since:"1.84.0"})],Os.prototype,"press",2),h([T({manifest:{path:ho},generate:ri}),C({since:"1.84.0"})],Os.prototype,"visible",2),h([T({manifest:{path:ho},generate:ri}),C({since:"1.84.0"})],Os.prototype,"enabled",2);var mP=Os;var Vp=class Vp{};o(Vp,"ActionAfterExecutionConfigurationForm"),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Vp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}})],Vp.prototype,"enableAutoScroll",2);var hP=Vp,$y=class $y{};o($y,"FormAction"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],$y.prototype,"afterExecution",2);var yP=$y,EP=class EP{};o(EP,"ObjectPageFormActions");var vP=EP,bP=class bP{};o(bP,"ObjectPageForm");var TP=bP;var Ns=class Ns{};o(Ns,"CustomFormActionOP"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ns.prototype,"text",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ns.prototype,"position",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ns.prototype,"press",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Ns.prototype,"visible",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Ns.prototype,"enabled",2);var AP=Ns;var CP=class CP{};o(CP,"ObjectPageHeaderActions");var SP=CP,uf=class uf{};o(uf,"ObjectPageHeader"),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],uf.prototype,"editableHeaderContent",2),h([T({manifest:{path:_y}}),C({since:"1.84.0"})],uf.prototype,"visible",2),h([T({manifest:{path:_y}}),C({since:"1.84.0"})],uf.prototype,"anchorBarVisible",2);var PP=uf;var wp=class wp{};o(wp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([T({manifest:{path:o((t,n,i,r)=>fi(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],wp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>fi(t,n,i,r)+"/afterExecution","path")}})],wp.prototype,"enableAutoScroll",2);var xP=wp,By=class By{};o(By,"ObjectPageHeaderAction"),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],By.prototype,"afterExecution",2);var IP=By,LP=class LP extends Rp{};o(LP,"CustomHeaderActionPositionOP");var OP=LP,Ls=class Ls{};o(Ls,"CustomHeaderActionOP"),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ls.prototype,"text",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ls.prototype,"position",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ls.prototype,"press",2),h([T({manifest:{path:fi},generate:ri}),C({since:"1.84.0"})],Ls.prototype,"visible",2),h([T({manifest:{path:fi},generate:ri}),C({since:"1.84.0"})],Ls.prototype,"enabled",2);var NP=Ls;var Hy=class Hy{};o(Hy,"FlexSettings"),h([T({manifest:{path:o((t,n,i)=>Vy(t,n,i)+"/flexSettings","path")}}),C({since:"1.81.0"}),Ne("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Hy.prototype,"designtime",2);var RP=Hy,Mp=class Mp{};o(Mp,"CommonHeaderFacetSettings"),h([T({manifest:{path:Vy}}),C({since:"1.81.0"})],Mp.prototype,"stashed",2),h([T({manifest:{path:Vy}}),C({since:"1.81.0"})],Mp.prototype,"flexSettings",2);var Rs=Mp,kP=class kP extends Rs{};o(kP,"ObjectPageHeaderSectionForm");var FP=kP,jP=class jP extends Rs{};o(jP,"ObjectPageHeaderSectionChart");var DP=jP,UP=class UP extends Rs{};o(UP,"ObjectPageHeaderSectionDataPoint");var _P=UP,$P=class $P extends Rs{};o($P,"ObjectPageHeaderSectionContact");var VP=$P,BP=class BP extends Rs{};o(BP,"ObjectPageHeaderSectionAddress");var wP=BP,HP=class HP{};o(HP,"HeaderSections");var MP=HP;var Gy=class Gy{};o(Gy,"ObjectPageLayout"),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],Gy.prototype,"sectionLayout",2);var GP=Gy;var zy=ie(le());var WP=ie(le());var zq=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 vo(e,t,n,i,r,a){let s=Dy(e),l=zq(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[WP.SchemaTag.key]===(a==null?void 0:a.key)||g[WP.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(vo,"getSettingsPathForLRViewsPath");function Yq(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(Yq,"fillNewlyOrderedViews");function tC(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=Yq(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(tC,"checkViewOrder");function qy(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(qy,"exportPersonalization");function To(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(To,"exportPersonalizationProperty");function Eo(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(Eo,"deletePersonalizationProperty");function nC(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(nC,"deleteView");function $p(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o($p,"exportCreationModeProperty");function Bp(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(Bp,"deleteCreationModeProperty");function Tw(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(Tw,"importPersonalization");function Ew(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(Ew,"determineIndexOfView");var pf=class pf{};o(pf,"PersonalizationType"),h([T({manifest:{path:Ji,export:To,delete:Eo}})],pf.prototype,"column",2),h([T({manifest:{path:Ji,export:To,delete:Eo}})],pf.prototype,"sort",2),h([T({manifest:{path:Ji,export:To,delete:Eo}})],pf.prototype,"filter",2);var KP=pf,df=class df{};o(df,"ViewPersonalizationType"),h([T({manifest:{path:br,export:To,delete:Eo}})],df.prototype,"column",2),h([T({manifest:{path:br,export:To,delete:Eo}})],df.prototype,"sort",2),h([T({manifest:{path:Ji,export:To,delete:Eo}})],df.prototype,"filter",2);var XP=df,gf=class gf{};o(gf,"QuickVariantSelectionV4"),h([T({manifest:{path:My}})],gf.prototype,"paths",2),h([T({manifest:{path:My}})],gf.prototype,"hideTableTitle",2),h([T({manifest:{path:My}})],gf.prototype,"showCounts",2);var QP=gf,yo=class yo{};o(yo,"TableSettings"),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],yo.prototype,"type",2),h([T({manifest:{path:Ji,import:Tw,export:qy}}),C({since:"1.86.0"})],yo.prototype,"personalization",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],yo.prototype,"selectionMode",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],yo.prototype,"selectAll",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],yo.prototype,"selectionLimit",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],yo.prototype,"enableExport",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],yo.prototype,"quickVariantSelection",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],yo.prototype,"condensedTableLayout",2);var Wy=yo,Ky=class Ky{};o(Ky,"ALPChart"),h([T({manifest:{path:o(t=>ft(t)+"/views/paths/0/primary/0","path"),delete:nC}})],Ky.prototype,"annotationPath",2);var qP=Ky,Uc=class Uc{};o(Uc,"CommonViewSettings"),h([T({manifest:{path:vo,delete:Ys}})],Uc.prototype,"key",2),h([T({manifest:{path:Dy,import:Ew,export:o((t,n)=>{tC(t,n)},"export"),delete:nC}})],Uc.prototype,"index",2),h([T({manifest:{path:vo,delete:Ys}})],Uc.prototype,"annotationPath",2),h([T({manifest:{path:vo}})],Uc.prototype,"entitySet",2);var hf=Uc,Qr=class Qr extends hf{};o(Qr,"TableViewSettings"),h([T({manifest:{path:br}}),C({since:"1.84.0"})],Qr.prototype,"type",2),h([T({manifest:{path:br,import:Tw}}),C({since:"1.86.0"})],Qr.prototype,"personalization",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],Qr.prototype,"selectionMode",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],Qr.prototype,"selectAll",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],Qr.prototype,"selectionLimit",2),h([T({manifest:{path:br}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Qr.prototype,"enableExport",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],Qr.prototype,"quickVariantSelection",2),h([T({manifest:{path:br}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Qr.prototype,"condensedTableLayout",2),h([T({manifest:{path:br}}),C({since:"1.117.0"}),Ne("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Qr.prototype,"hierarchyQualifier",2);var Up=Qr;function Jq(e){return Up}o(Jq,"getTableViewSettings");var kp=class kp extends Up{};o(kp,"ALPTable"),h([T({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:Ys}})],kp.prototype,"annotationPath",2),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],kp.prototype,"initialLoad",2);var yf=kp,Xy=class Xy extends hf{};o(Xy,"LRChartView"),h([T({manifest:{path:vo},generate:qn})],Xy.prototype,"visible",2);var zP=Xy,mf=class mf extends Jq(hf){};o(mf,"LRTableView"),h([T({manifest:{path:vo}})],mf.prototype,"keepPreviousPersonalization",2),h([T({manifest:{path:vo}})],mf.prototype,"entitySet",2),h([T({manifest:{path:vo},generate:qn})],mf.prototype,"visible",2);var YP=mf,Fs=class Fs{};o(Fs,"TableViewExtension"),h([T({manifest:{path:vo}})],Fs.prototype,"key",2),h([T({manifest:{path:Dy,import:Ew,export:o((t,n)=>{tC(t,n)},"export"),delete:nC}})],Fs.prototype,"index",2),h([T({manifest:{path:vo}})],Fs.prototype,"label",2),h([T({manifest:{path:vo}})],Fs.prototype,"template",2),h([T({manifest:{path:vo},generate:qn})],Fs.prototype,"visible",2);var JP=Fs,Qy=class Qy{};o(Qy,"MultiTableModeV4"),h([T({manifest:{path:o(t=>ft(t)+"/views","path")}})],Qy.prototype,"showCounts",2);var ZP=Qy,jp=class jp extends Wy{};o(jp,"Table"),h([T({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:Ys}})],jp.prototype,"annotationPath",2),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],jp.prototype,"initialLoad",2);var eC=jp;var vf=class vf{};o(vf,"TableCreationModeOP"),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:o((t,n,i)=>{$p(t,n,i)},"export"),delete:o((t,n,i,r)=>{Bp(t,r)},"delete")}})],vf.prototype,"name",2),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:o((t,n,i)=>{$p(t,n,i)},"export"),delete:o((t,n,i,r)=>{Bp(t,r)},"delete")}})],vf.prototype,"createAtEnd",2),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:o((t,n,i)=>{$p(t,n,i)},"export"),delete:o((t,n,i,r)=>{Bp(t,r)},"delete")}})],vf.prototype,"inlineCreationRowsHiddenInEditMode",2);var iC=vf,Tf=class Tf{};o(Tf,"PersonalizationTypeOP"),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:To,delete:Eo}})],Tf.prototype,"column",2),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:To,delete:Eo}})],Tf.prototype,"sort",2),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:To,delete:Eo}})],Tf.prototype,"filter",2);var rC=Tf,Ef=class Ef{};o(Ef,"QuickVariantSelectionV4OP"),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i)+zy.QUICKVARPATH,"path")}})],Ef.prototype,"paths",2),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i)+zy.QUICKVARPATH,"path")}})],Ef.prototype,"hideTableTitle",2),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i)+zy.QUICKVARPATH,"path")}})],Ef.prototype,"showCounts",2);var oC=Ef,nr=class nr{};o(nr,"ObjectPageTable"),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],nr.prototype,"type",2),h([T({manifest:{path:Fn,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),C({since:"1.84.0"})],nr.prototype,"creationMode",2),h([T({manifest:{path: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:qy}}),C({since:"1.86.0"})],nr.prototype,"personalization",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],nr.prototype,"selectionMode",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],nr.prototype,"selectAll",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],nr.prototype,"selectionLimit",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],nr.prototype,"enableExport",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],nr.prototype,"quickVariantSelection",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],nr.prototype,"condensedTableLayout",2),h([T({manifest:{path:Fn}}),C({since:"1.86.0"})],nr.prototype,"enableFullScreen",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],nr.prototype,"enablePaste",2);var Hp=nr;var Gp=class Gp{};o(Gp,"ActionAfterExecutionConfigurationOP"),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Gp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/afterExecution","path")}})],Gp.prototype,"enableAutoScroll",2);var Xp=Gp,Wp=class Wp{};o(Wp,"ObjectPageTableColumn"),h([T({manifest:{path:er}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Wp.prototype,"width",2),h([T({manifest:{path:er}}),C({since:"1.85.0"})],Wp.prototype,"availability",2);var bf=Wp,lC=class lC extends bf{};o(lC,"ObjectPageTableColumnAction");var aC=lC,Kp=class Kp{};o(Kp,"PositionOP"),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Kp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Kp.prototype,"placement",2);var sC=Kp,Ko=class Ko{};o(Ko,"TableCustomColumnOP"),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Ko.prototype,"position",2),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Ko.prototype,"header",2),h([T({manifest:{path:er}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ko.prototype,"width",2),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Ko.prototype,"template",2),h([T({manifest:{path:er}}),C({since:"1.86.0"})],Ko.prototype,"horizontalAlign",2),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Ko.prototype,"availability",2),h([T({manifest:{path:er}}),C({since:"1.85.0"})],Ko.prototype,"properties",2);var cC=Ko;var Yy=class Yy{};o(Yy,"ObjectPageToolBarAction"),h([T({manifest:{path:kn}})],Yy.prototype,"enableOnSelect",2);var fC=Yy,Qp=class Qp{};o(Qp,"CustomActionPositionOP"),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Qp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Qp.prototype,"placement",2);var uC=Qp,Oa=class Oa{};o(Oa,"CustomTableActionOP"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Oa.prototype,"text",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Oa.prototype,"position",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Oa.prototype,"press",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Oa.prototype,"requiresSelection",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Oa.prototype,"visible",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Oa.prototype,"enabled",2);var pC=Oa;var Af=class Af{};o(Af,"AdditionalSemanticObject"),h([T({manifest:{path:ky}}),Ne("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.108.0"})],Af.prototype,"allowedActions",2),h([T({manifest:{path:ky}}),Ne("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],Af.prototype,"unavailableActions",2),h([T({manifest:{path:ky}}),Ne("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],Af.prototype,"mapping",2);var dC=Af,qp=class qp{};o(qp,"RelatedApps"),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],qp.prototype,"showRelatedApps",2),h([T({manifest:{path:ft}})],qp.prototype,"additionalSemanticObjects",2);var gC=qp;var zp=class zp{};o(zp,"ActionAfterExecutionConfiguration"),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],zp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/afterExecution","path")}})],zp.prototype,"enableAutoScroll",2);var mC=zp,Yp=class Yp{};o(Yp,"TableColumn"),h([T({manifest:{path:ki}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Yp.prototype,"width",2),h([T({manifest:{path:ki}}),C({since:"1.85.0"})],Yp.prototype,"availability",2);var Jy=Yp,Jp=class Jp{};o(Jp,"ViewTableColumn"),h([T({manifest:{path:Zi}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Jp.prototype,"width",2),h([T({manifest:{path:Zi}}),C({since:"1.85.0"})],Jp.prototype,"availability",2);var Zy=Jp,ev=class ev extends Jy{};o(ev,"TableColumnAction"),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],ev.prototype,"afterExecution",2);var hC=ev,tv=class tv extends Zy{};o(tv,"ViewTableColumnAction"),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],tv.prototype,"afterExecution",2);var yC=tv,Zp=class Zp{};o(Zp,"Position"),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Zp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Zp.prototype,"placement",2);var vC=Zp,ed=class ed{};o(ed,"ViewPosition"),h([T({manifest:{path:o((t,n,i,r,a)=>Zi(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],ed.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>Zi(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],ed.prototype,"placement",2);var TC=ed,Xo=class Xo{};o(Xo,"TableCustomColumn"),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Xo.prototype,"position",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Xo.prototype,"header",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Xo.prototype,"width",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Xo.prototype,"template",2),h([T({manifest:{path:ki}}),C({since:"1.86.0"})],Xo.prototype,"horizontalAlign",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Xo.prototype,"availability",2),h([T({manifest:{path:ki}}),C({since:"1.85.0"})],Xo.prototype,"properties",2);var EC=Xo,Qo=class Qo{};o(Qo,"ViewTableCustomColumn"),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Qo.prototype,"position",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Qo.prototype,"header",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Qo.prototype,"width",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Qo.prototype,"template",2),h([T({manifest:{path:Zi}}),C({since:"1.86.0"})],Qo.prototype,"horizontalAlign",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Qo.prototype,"availability",2),h([T({manifest:{path:Zi}}),C({since:"1.85.0"})],Qo.prototype,"properties",2);var bC=Qo;var PC=class PC{};o(PC,"Actions");var AC=PC,CC=class CC{};o(CC,"ToolBar");var SC=CC;var td=class td{};o(td,"ActionAfterExecutionConfigurationToolBarLR"),h([T({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],td.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/afterExecution","path")}})],td.prototype,"enableAutoScroll",2);var xC=td,nd=class nd{};o(nd,"ToolBarAction"),h([T({manifest:{path:Ar}})],nd.prototype,"enableOnSelect",2),h([T({manifest:{path:Ar}})],nd.prototype,"afterExecution",2);var IC=nd,id=class id{};o(id,"ViewToolBarAction"),h([T({manifest:{path:Xr}})],id.prototype,"enableOnSelect",2),h([T({manifest:{path:Xr}})],id.prototype,"afterExecution",2);var OC=id,rd=class rd{};o(rd,"CustomActionPosition"),h([T({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],rd.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],rd.prototype,"placement",2);var NC=rd,Na=class Na{};o(Na,"CustomTableAction"),h([T({manifest:{path:Ar}}),C({since:"1.84.0"})],Na.prototype,"text",2),h([T({manifest:{path:Ar}}),C({since:"1.84.0"})],Na.prototype,"position",2),h([T({manifest:{path:Ar}}),C({since:"1.84.0"})],Na.prototype,"press",2),h([T({manifest:{path:Ar}}),C({since:"1.84.0"})],Na.prototype,"requiresSelection",2),h([T({manifest:{path:Ar},generate:qn}),C({since:"1.84.0"})],Na.prototype,"visible",2),h([T({manifest:{path:Ar},generate:qn}),C({since:"1.84.0"})],Na.prototype,"enabled",2);var LC=Na,od=class od{};o(od,"ViewCustomActionPosition"),h([T({manifest:{path:o((t,n,i,r,a)=>Xr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],od.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>Xr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],od.prototype,"placement",2);var RC=od,La=class La{};o(La,"ViewTableCustomAction"),h([T({manifest:{path:Xr}}),C({since:"1.84.0"})],La.prototype,"text",2),h([T({manifest:{path:Xr}}),C({since:"1.84.0"})],La.prototype,"position",2),h([T({manifest:{path:Xr}}),C({since:"1.84.0"})],La.prototype,"press",2),h([T({manifest:{path:Xr}}),C({since:"1.84.0"})],La.prototype,"requiresSelection",2),h([T({manifest:{path:Xr},generate:qn}),C({since:"1.84.0"})],La.prototype,"visible",2),h([T({manifest:{path:Xr},generate:qn}),C({since:"1.84.0"})],La.prototype,"enabled",2);var FC=La;var MC={};Ks(MC,{FreestylePage:()=>VC,ListReport:()=>Pr,ObjectPage:()=>bo});function Zq(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(Zq,"deleteAllALPViews");function e9(){}o(e9,"doNotExport");function t9(){}o(t9,"doNotImport");var Pr=class{};o(Pr,"ListReport"),h([T({manifest:{path:o(t=>ft(t)+"/views","path"),import:t9,export:e9,delete:Zq}})],Pr.prototype,"chart",2),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],Pr.prototype,"variantManagement",2),h([T({manifest:{path:o(t=>ft(t)+"/views/paths/[]/0","path")}}),Ne("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Pr.prototype,"defaultPath",2),h([T({manifest:{path:o(t=>ft(t),"path")}})],Pr.prototype,"defaultTemplateAnnotationPath",2),h([jt("header")],Pr.prototype,"header",2),h([jt("fe::FilterBar")],Pr.prototype,"filterBar",2),Pr=h([wr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Pr);var _C=ie(le());var bo=class{};o(bo,"ObjectPage"),h([jt("header")],bo.prototype,"header",2),h([jt("layout")],bo.prototype,"layout",2),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],bo.prototype,"variantManagement",2),h([jt("sections")],bo.prototype,"sections",2),bo=h([wr({id:`${_C.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:_C.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],bo);var wC=class wC{};o(wC,"FreestylePage");var VC=wC;var nv=ie(le());var n9={ALPTableView:yf},i9={ALPTableView:yf},r9={Table:Hp,TableColumn:bf,ObjectPageCustomSectionView:ff,ActionAfterExecutionConfiguration:Xp},o9={[nv.PageTypeV4.AnalyticalListPage]:n9,[nv.PageTypeV4.ListReport]:i9,[nv.PageTypeV4.ObjectPage]:r9},kC=class kC extends jl{constructor(){super(DC,MC,o9)}};o(kC,"MetadataInstanceFactoryV4");var Ra=kC;var jC=require("@sap-ux/vocabularies-types/vocabularies/UI");function UC(e,t,n,i,r,a,s){var g,m,v,A,E,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${jC.UIAnnotationTerms.LineItem}`?a:he.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let F in p.properties){let G=l[u].properties[F].$ref.split(U)[1].split("<")[0];e.columns[F]=n.createInstance(i,G);let B=s||a;At(e.columns[F],t.manifest,l[G],r,[F,B],B,t.logger),_o(e.columns,F)}_o(e,"columns")}else{let F=(O=(E=(A=(v=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:v[r])==null?void 0:A.options)==null?void 0:E.settings)==null?void 0:O.views;(!F||F.paths.length<1)&&se(t.logger,{severity:he.LogSeverity.Error,message:q.t("NOLINEITEMS")})}}o(UC,"transferColumns");function a9(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[he.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let u=s.properties[l];if(typeof u=="object"&&u.$ref){let p=hn(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),At(t.visualFilters[l],e.manifest,a[p],r,[l])}}_o(t,"visualFilters")}}o(a9,"importVisualFilters");function s9(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[he.DefinitionName.LineItems,`${he.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${jC.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${he.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let g in p.properties){let m=p.properties[g];if(typeof m=="object"&&m.$ref){let v=hn(m.$ref),A=v.split("<")[0];t.toolBar.actions[g]=n.createInstance(i,A),At(t.toolBar.actions[g],e.manifest,l[v],r,[g,u]),_o(t.toolBar.actions,g)}}}o(s9,"importActions");function $C(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,At(u.toolBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.ToolBarLR],r,[]),s9(e,u,n,i,r,a,s),_o(u.toolBar,"actions"),_o(u,"toolBar")}o($C,"transferToolBar");function bw(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(bw,"determineTargetAnnotationOfView");function c9(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,he.DefinitionName.ALPChart);let s=a[he.DefinitionName.ALPChart],l=s[he.SchemaTag.annotationPath];At(t.chart,e.manifest,s,r,[s[he.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),At(t.chart.toolBar,e.manifest,a[he.DefinitionName.ViewChartToolBar],r,[]);let u=a[he.DefinitionName.ALPTable][he.SchemaTag.annotationPath];if(u){let p=a[he.DefinitionName.ALPTable],g=t.table=n.createInstance(i,he.DefinitionName.ALPTable);$C(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));At(g,e.manifest,p,r,[p[he.SchemaTag.key],m]),UC(g,e,n,i,r,void 0,m)}}o(c9,"importALPViews");function l9(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(l9,"getViewTypeByDefinition");function f9(e,t,n,i,r){let a=t.table.views=n.createInstance(i,he.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;At(a,e.manifest,s[he.DefinitionName.MultiTableModeV4],r,[]);let l=s[he.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][he.SchemaTag.propertyIndex]-g[1][he.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split(U)[1],m=l9(g),v=a[p[0]]=n.createInstance(i,m),A=s[g].entitySet,E=bw(s,g,A);if(At(v,e.manifest,s[g],r,[p[0],E]),m===he.DefinitionName.LRTableView){let O=`${he.DefinitionName.LineItemsOfView}::${p[0]}`;$C(e,v,n,i,r,O,E),UC(v,e,n,i,r,O,E)}Object.keys(v).length===0&&delete a[p[0]]}_o(t.table,"views")}o(f9,"importLRViews");function u9(e,t,n,i,r){let a=he.DefinitionName.HeaderActions,s=he.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let u in l.properties){let p=l.properties[u];if(typeof p=="object"&&p.$ref){let g=hn(p.$ref),m=e.definitions[g],v=hn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(he.PageTypeV4.ObjectPage,v),At(t[s].actions[u],i,e.definitions[v],r,[u.replace("/","??")]),_o(t.header,"actions"),_o(t,"header")}}}}o(u9,"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!==U+he.DefinitionName.CustomFilterField)continue;let u=n.createInstance(he.PageTypeV4.ListReport,he.DefinitionName.CustomFilterField),p=l.$ref.split(U)[1];At(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(p9,"importCustomFilterFields");function d9(e,t,n,i,r,a){if(At(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,he.DefinitionName.Header),At(t.header,e.manifest,e.jsonSchema.definitions[he.DefinitionName.Header],r,[]),u9(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,he.DefinitionName.FilterBar),At(t.filterBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.FilterBar],r,[]),a9(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(U)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split(U)[1]),t.table=n.createInstance(i,he.DefinitionName.Table);let p=bw(e.jsonSchema.definitions,s);At(t.table,e.manifest,l,r,[s,p]),$C(e,t,n,i,r,u),UC(t.table,e,n,i,r,u,p),f9(e,t,n,i,r)}else a===he.SchemaType.AnalyticalListPage&&c9(e,t,n,i,r)}o(d9,"addSettings");function $c(e,t){if(nn(),!e.jsonSchema)return;if(!e.manifest[he.ManifestSection.ui5]||!e.manifest[he.ManifestSection.ui5].routing){se(e.logger,{severity:he.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let n=e.manifest[he.ManifestSection.ui5].routing.targets;if(!n){se(e.logger,{severity:he.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let i=new Ra,r=i.createPageInstance(he.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=pE(s);if("name"in s&&(l===he.PageTypeV4.ListReport||l===he.PageTypeV4.AnalyticalListPage)){d9(e,r,i,he.PageTypeV4.ListReport,a,t);break}}return r}o($c,"createListReportConfig");var ve=ie(le()),Bc=require("@sap-ux/vocabularies-types/vocabularies/UI");function g9(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(g9,"isBoolean");function m9(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(m9,"isNumber");function h9(e,t){let n=e.toString();return g9(n,t)?n==="true":m9(n,t)?parseFloat(n):e}o(h9,"convertValue");function y9(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=h9(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(y9,"importProperty");function Aw(e,t,n){let i,r=rf(e.file,!1,n);if(r){let a=xy(r);i={},Vc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},y9)}return i}o(Aw,"convertXmlFileToConfig");function iv(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=$o(t||[],r,n,a),l;return s&&(l=Aw(s,i,e.logger)),l}o(iv,"createCustomPageConfig");function ad(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=of(t),u=(v=r.definitions)==null?void 0:v[l];if(!r||!u)return;let p=xc(i,a),g=Ic(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=Aw(g,A,s)}return m}o(ad,"createCustomFragmentConfig");function BC(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(BC,"getManifestId");function sd(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(sd,"getDefinitionId");function v9(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[sd(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(ve.DefinitionName.CustomColumnOP)>-1?s=ve.DefinitionName.CustomColumnOP:s=ve.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(ve.PageTypeV4.ObjectPage,s);At(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(v9,"fillTableColumnsInConfig");function Cw(e,t,n,i,r,a=n){if(typeof t=="object")for(let s in t.properties){let l=t.properties[s];if(typeof l=="object"&&l.$ref){let u=hn(l.$ref),p=u.split("<")[0],g;p.includes(ve.DefinitionName.CustomSectionActionOP)?g=i.actions:g=i[n].table.toolBar.actions,g[s]=r.createInstance(ve.PageTypeV4.ObjectPage,p),At(g[s],e.manifest,e.jsonSchema.definitions[u],e.routingId,[s],a),Object.keys(g[s]).length===0&&delete g[s]}}}o(Cw,"fillSectionActionsInConfig");function T9(e,t,n,i,r,a=n){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageSectionForm}<${sd(a)}>`].properties.form.$ref.split(U)[1],g=e.jsonSchema.definitions[l].properties.actions.$ref.split(U)[1],m=e.jsonSchema.definitions[g];for(let v in m.properties){let A=m.properties[v],E=hn(A.$ref),O=e.jsonSchema.definitions[E];if(O.annotationType===Bc.UIAnnotationTypes.DataFieldForAction||O.description==="Custom Action"){let F=hn(O.$ref)||E.split("<")[0];i[n].form.actions[v]=r.createInstance(ve.PageTypeV4.ObjectPage,F),At(i[n].form.actions[v],e.manifest,e.jsonSchema.definitions[F],e.routingId,[v.replace("/","??")],a),Object.keys(i[n].form.actions[v]).length===0&&delete i[n].form.actions[v]}}}}o(T9,"fillFormActionsInConfig");function Sw(e,t,n,i,r,a){var u;let s=a||BC(i,!1,Bc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageTable);let p=`${ve.DefinitionName.ObjectPageTable}<${a?sd(a):i.replace("#","::")}>`;At(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${ve.DefinitionName.Actions}<${sd(s)}>`];Cw(e,g,i,n,r,s),v9(e,l,n,i,r,s)}}o(Sw,"fillTableInConfig");function E9(e,t,n,i,r){var l;let a=BC(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageForm,{actions:{}}),T9(e,s,i,n,r,a))}o(E9,"fillFormInConfig");function b9(e,t,n,i,r,a){let s=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(U)[1];if(At(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=ad(e,s.fragmentName);s.controls=u}n[i]=s}o(b9,"fillCustomSubSectionInConfig");function xw(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let v=t[m],A=m;if(m.includes(Bc.UIAnnotationTerms.PresentationVariant)&&((s=v.$ref)!=null&&s.startsWith(U+ve.DefinitionName.ObjectPageSectionTableV4))){let E=v.$ref.split(U)[1];A=E?BC(E,!0,Bc.UIAnnotationTerms.LineItem):m,Sw(e,n,i,m,r,A)}else(l=v.$ref)!=null&&l.startsWith(U+ve.DefinitionName.ObjectPageSectionTableV4)?Sw(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},xw(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(u=v.$ref)!=null&&u.startsWith(U+ve.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${Bc.UIAnnotationTerms.FieldGroup}::`))?E9(e,n,i,m,r):(g=v.$ref)!=null&&g.startsWith(U+ve.DefinitionName.ObjectPageCustomSubSectionFragment)&&b9(e,v,i,m,r,a)}}o(xw,"fillSectionsInConfig");function A9(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionFragment);if(At(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageCustomSectionActions}<${sd(l)}>`];Cw(e,m,l,p,i,l)}let g=u.template;if(g){let m=ad(e,g);p.controls=m}n.sections[l]=p}}o(A9,"fillCustomSectionsInConfig");function S9(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomHeaderSectionFragment);At(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let v=ad(e,g);p.controls=v}let m=u.templateEdit;if(m){let v=ad(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}o(S9,"fillCustomHeaderSectionsInConfig");function P9(e,t,n,i,r){var s,l;let a=e.definitions[ve.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split(U)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(ve.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=g?n.createInstance(ve.PageTypeV4.ObjectPage,g):{},At(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ve.FACETTITLEPREFIX)[1]))}}}o(P9,"fillHeaderFacets");function C9(e,t,n,i,r,a,s){let l=hn(e.$ref),u=t.definitions[l],p=hn(u.$ref||e.$ref),g=n.createInstance(ve.PageTypeV4.ObjectPage,p);if(g){let m=i[r]=g;At(m,a,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}o(C9,"importActionSettingsOfReference");function Pw(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&&C9(g,e,n,u,p,i,r)}}}o(Pw,"fillHeaderFooterActions");function x9(e,t,n){var a,s;let i=n.createPageInstance(ve.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageHeader),At(i.header,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageFooter),At(i.footer,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageLayout),At(i.layout,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageLayout],e.routingId,[]),At(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[ve.DefinitionName.Sections]&&(i.sections={},xw(e,e.jsonSchema.definitions[ve.DefinitionName.Sections].properties,r,i.sections,n)),A9(e,r,i,n),P9(e.jsonSchema,i,n,e.manifest,e.routingId),S9(e,r,i,n),Pw(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.ObjectPageHeaderActions,ve.PropertyName.header),Pw(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.FooterActions,ve.PropertyName.footer)),i}o(x9,"fillObjectPageConfig");function rv(e){if(nn(),!e.manifest[ve.ManifestSection.ui5]||!e.manifest[ve.ManifestSection.ui5].routing){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let t=e.manifest[ve.ManifestSection.ui5].routing.targets;if(!t){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let i=new Ra;return x9(e,n,i)}o(rv,"createObjectPageConfigV4");var Ge=ie(le());var HC=[],ov={};function I9(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(I9,"routesSorter");function GC(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(GC,"resolveTarget");function O9(e){let t={};e=e.concat().sort(I9);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=GC(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(O9,"populateAssociations");function N9(e,t,n){let i;return e.name?e.name===Ge.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ge.PageTypeV4.FPMCustomPage:e.name.endsWith(Ge.PageTypeV4.ListReport)||e.name.endsWith(Ge.PageTypeV4.AnalyticalListPage)?i=Ge.PageTypeV4.ListReport:e.name.endsWith(Ge.PageTypeV4.ObjectPage)?i=Ge.PageTypeV4.ObjectPage:i=Ge.PageTypeV4.CustomPage:"viewId"in e?i=Ge.PageTypeV4.CustomPage:(se(t,{severity:Ge.LogSeverity.Error,message:q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ge.MANIFESTPATH,range:[`${Ge.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ge.ViewTypes&&"viewName"in e&&(i=Ge.PageTypeV4.CustomPage)),i}o(N9,"determinePageType");function L9(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=rv(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=iv(r)}else if(e.templateType===Ge.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=$c(r,Ge.SchemaType.ListReport)}else if(e.templateType===Ge.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=$c(r,Ge.SchemaType.AnalyticalListPage)}else if(e.templateType===Ge.TemplateType.FreestylePageV4&&e.page.pageType===Ge.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=iu(e.target)===Ge.TemplateType.AnalyticalListPageV4?Ge.SchemaType.AnalyticalListPage:Ge.SchemaType.ListReport;e.page.config=$c(r,s)}}}o(L9,"convertSettingsToConfig");function R9(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");HC.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");HC.push(t[t.length-1])}}o(R9,"updateUnhandledControllers");function F9(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(F9,"setVariantManagmentAndNavigation");function D9(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=Mc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(D9,"setEntitySetEntityTypeContextPath");function _9(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(_9,"evaluateCustomPageSettings");function V9(e,t,n,i){let r=e.targets[t],a=N9(r,i.logger,t),s={pageType:a};if(D9(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),ov[t]&&ov[t].indexOf(".")!==-1){let p=ov[t].split(".");s.navigationProperty=p[p.length-1]}_9(r,s,a),F9(r,s),R9(r);let l=e.routes.find(p=>(p==null?void 0:p.target)&&p.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};L9(u)}o(V9,"getSinglePageAndConfig");function Iw(e){let t={},n=e.manifest[Ge.ManifestSection.ui5].routing;if(!n||!n.routes){let i=q.t("NOROUTING");return se(e.logger,{severity:Ge.LogSeverity.Error,message:i,location:{path:Ge.MANIFESTPATH,range:[Ge.ManifestSection.ui5]}}),t}ov=O9(n.routes||[]);for(let i in n.targets)V9(n,i,t,e);return t}o(Iw,"getPagesAndConfigs");function Ow(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 GC(t?t.target:e.routes[0].target)}else return}o(Ow,"getHome");function Nw(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(Nw,"getSettings");function Pf(e,t){let n=e[Ge.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];a.name===t&&(i[r]=a)}return i}o(Pf,"getPages");var WC=class WC extends za{constructor(t){nn();let n=new af,i=Dt(Ge.SchemaType.Application),r=t.appSchemas[i.filename];At(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,Ow(t.manifest[Ge.ManifestSection.ui5].routing),Iw(t),{...Nw(t.manifest[Ge.ManifestSection.ui5].routing),...n}),this.unhandledControllers=HC}};o(WC,"V4AppProvider");var Sf=WC;var Lw=require("fs"),Hc=require("path"),Rw=ie(le()),cd=ie(le());var Fw=o((e,t,n=__dirname)=>{let i;switch(t){case cd.SchemaType.Application:{i=`${cd.SchemaType.Application}${e.toUpperCase()}.json`;break}case cd.SchemaType.FPMCustomPage:{i=`${cd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,Hc.join)(n,"schemas",e,i);if(n.endsWith((0,Hc.join)("specification","packages","specification")))return(0,Hc.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Hc.join)("src","specification")))return(0,Hc.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,Hc.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),w9=o(async e=>new Promise((t,n)=>{(0,Lw.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),av=o(async(e,t)=>{try{let n=Fw(e||Rw.FioriElementsVersion.v4,t,__dirname);return await w9(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function M9(e,t){let n={},i=[];switch(i=[fe.SchemaType.Application],e){case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.AnalyticalListPageV4:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.FreestylePageV4:i.push(fe.SchemaType.FreestylePage),t===fe.FioriElementsVersion.v4&&i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.ListReportObjectPageV2:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage);break;case fe.TemplateType.AnalyticalListPageV2:i.push(fe.SchemaType.AnalyticalListPage,fe.SchemaType.ObjectPage);break;case fe.TemplateType.OverviewPageV2:i.push(fe.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Dt(r);n[a.filename]=await av(t,r)}return n}o(M9,"getGenericSchemas");function _w(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ii(fe.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(_w,"getAnnotationsForUi");function ld(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(ld,"getEntitySetByEntitySetName");function k9(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(k9,"resolveNavigationProperty");function Mc(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(u=r.target)==null?void 0:u.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=k9(r,e):se(i,{severity:fe.LogSeverity.Error,message:q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:fe.MANIFESTPATH}}),n&&!a&&se(i,{severity:fe.LogSeverity.Error,message:q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(Mc,"getEntityTypeEntitySetFromContextPath");function Dw(e,t,n){let i=qu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=ld(a,e.serviceAVT);s||se(e.logger,{severity:fe.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Dt(fe.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=Dt(fe.SchemaType.ObjectPage);n[l.filename]=fd(e,t[u.filename])}}o(Dw,"generateObjectPageSchemasV2");function j9(e,t,n){var l,u;let i=Pf(e.manifest,fe.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Pf(e.manifest,fe.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:v,entityType:A}=Mc(s,m,g,e.logger);e.entityType=A,e.entitySet=v;let E=Dt(fe.SchemaType.ListReport,p),O=Dt(fe.SchemaType.ListReport);e.templateType===fe.TemplateType.FreestylePageV4&&(e.templateType=iu(a[p])),n[E.filename]=Ju(e,t[O.filename],a[p].name,m)}}o(j9,"generateListReportSchemasV4");function U9(e,t,n){var r;let i=qu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=ld(s,e.serviceAVT);let l=Dt(fe.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Dt(fe.SchemaType.ListReport);t[l.filename]=ud(e,n[u.filename])}}o(U9,"generateAppSchemaV2LR");function $9(e,t,n){var a,s;let i=Pf(e.manifest,fe.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=Mc(r,p,u);e.entitySet=m,e.entityType=g;let v=Dt(fe.SchemaType.ObjectPage,l),A=Dt(fe.SchemaType.ObjectPage),E=Dt(fe.SchemaType.FPMCustomPage);n[v.filename]=Ip(e,t[A.filename],p,t[E.filename])}}o($9,"generateObjectPageSchemasV4");function B9(e,t,n,i){var a;let r={};if(i===fe.TemplateType.ListReportObjectPageV2&&n)U9(e,r,t),Dw(e,t,r);else if(i===fe.TemplateType.AnalyticalListPageV2&&n){let s=qu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=ld(u,e.serviceAVT);let p=Dt(fe.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=Dt(fe.SchemaType.AnalyticalListPage);r[p.filename]=pd(e,t[g.filename])}Dw(e,t,r)}else if(i===fe.TemplateType.OverviewPageV2){let s=Dt(fe.SchemaType.OverviewPage),l=Dt(fe.SchemaType.OverviewPage);r[s.filename]=dd(t[l.filename],e.manifest)}return{...t,...r}}o(B9,"generateAppSchemasV2");function H9(e,t,n){if(!zs(e.featureToggles,fe.Features.BuildingBlocks))return;let i=Pf(e.manifest,fe.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=$o(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=Dt(fe.SchemaType.FPMCustomPage,void 0,l),p=Dt(fe.SchemaType.FPMCustomPage);n[u.filename]=wc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(H9,"generateCustomPageSchemasV4");function G9(e,t,n){let i={};return n&&(j9(e,t,i),$9(e,t,i),H9(e,t,i)),{...t,...i}}o(G9,"generateAppSchemasV4");async function Vw(e,t,n){let i=await M9(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===fe.FioriElementsVersion.v4?G9(e,i,t):B9(e,i,t,n)}o(Vw,"generateAppSchemas");function W9(e){let t,n=[];switch(e.templateType){case fe.TemplateType.ListReportObjectPageV2:case fe.TemplateType.AnalyticalListPageV2:t=new Nh(e);break;case fe.TemplateType.AnalyticalListPageV4:case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.FreestylePageV4:t=new Sf(e);break;case fe.TemplateType.OverviewPageV2:t=new Fh(e);break;default:t=new Sf(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(W9,"importConfigs");function ww(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===fe.SchemaType.Application?r=`${fe.DirName.Schemas}/${fe.FileName.App[0].toUpperCase()}${fe.FileName.App.slice(1)}`:r=`${fe.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(ww,"getFileList");async function KC(e){var E,O;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new su().doesUi5VersionFitDistTags((O=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:O.minUI5Version,i);let u=yE(t),p=No(n,i),g=_w(p),m=vE(t,u,i),A=await Vw({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return ww(A)}o(KC,"importProjectSchema");async function XC(e){var G,B;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new su().doesUi5VersionFitDistTags((B=(G=t["sap.ui5"])==null?void 0:G.dependencies)==null?void 0:B.minUI5Version,i);let p=yE(t),g=GF(t),m=No(n,i),v=vE(t,p,i),A={templateType:v,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},E=_w(m),O=await Vw(A,E,v),j=W9({manifest:t,flexChanges:s,appSchemas:O,templateType:v,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return ww(O,j)}o(XC,"importProjectSchemaAndConfig");var K9=["header","sections","footer"];function X9(e,t,n,i){t.properties[n][oe.SchemaTag.artifactType]=oe.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=oe.ControlType.Section;break;case"ObjectPageSubSectionV2":r=oe.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=oe.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=oe.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=oe.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=oe.ControlType.ObjectPageHeaderSection;break}r&&(mt(e,t,n),t.properties[n][oe.SchemaTag.controlType]=r)}o(X9,"addFlexChangeForSection");function Q9(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Ao.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=fm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${dt(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Ao.UIAnnotationTerms.Identification}`,`/@${Ao.UIAnnotationTerms.Identification}`);t.definitions[g][oe.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][oe.SchemaTag.actionType]=oe.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][oe.SchemaTag.keys]=[{name:oe.SchemaKeyName.action,value:s}],u&&(t.definitions[g][oe.SchemaTag.target]=u),i.properties[l]={$ref:`${U}${g}`}}})}o(Q9,"addHeaderActionCallBackV2");function q9(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Ao.UIAnnotationTypes.DataFieldForAction){let a=pa(r).split("::").splice(1).join("::"),s=yi(r,e),l=dt(`${oe.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Ao.UIAnnotationTerms.Identification}`,`/@${Ao.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[oe.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${U}${l}`}}})}o(q9,"addFooterActionCallBackV2");function z9(e,t,n,i,r,a,s,l){let u,p;if(a.ID&&a.Label?u=a.ID+a.Label.replace(/\s+/g,""):a.ID?u=a.ID:a.Label&&(u=a.Label.replace(/\s+/g,"")),u?p=`${oe.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${oe.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${oe.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[g]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],v=r==null?void 0:r.entityTypes.find(E=>E.name===i),A=Ec(t[oe.ManifestSection.generic].pages,n,m);return yl(e,v,A,t,l,p,g,a.ID),p}o(z9,"ensureCustomColumnDefinitionExists");function md(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&X9(e,t,"visible",n)}o(md,"addAppSchemaDefinition");function Y9(e,t,n){e.properties[t]={$ref:`${U}${n}`}}o(Y9,"addSectionReference");function gd(e,t,n,i){let r=dt(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=U+t,i.definitions[r].properties.toolBar.$ref=`${U}ObjectPageToolBar<${t}>`,i.definitions[r][oe.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=oe.FACETTITLEPREFIX+n.ID,i.definitions[r][oe.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=oe.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${U}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${U}QuickVariant<${t}>`,Ka(n.entityType,i,`QuickVariant<${t}>`)}o(gd,"addTableDefinition");function J9(e,t,n,i,r,a){if(i.base!==oe.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=Ro(n,i,t);let u=n.definitions[l];md(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[oe.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${U}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${U}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${U}ObjectPageAnalyticalTable<${t}>`},{$ref:`${U}ObjectPageGridTable<${t}>`},{$ref:`${U}ObjectPageTreeTable<${t}>`}],u[oe.SchemaTag.annotationPath]=i.annotationPath,fa(i,u,t),Ga(i,u,t),gd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),gd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),gd("ObjectPageGridTable",t,i,n),gd("ObjectPageTreeTable",t,i,n),gd("ObjectPageAnalyticalTable",t,i,n);let p,g=O0(i.entityType,e.serviceAVT);g&&(p=z9(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let v=r[m];v.base===oe.FacetBase.LineItem&&(v.ID===s||m.includes(s))&&hl(!0,n,v.target,v.entityType,v.ID||m,p)}}o(J9,"handleLineItem");function Z9(e,t,n,i,r,a=!1){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";md(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(Z9,"handleSubSection");function ez(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];md(e,a,r,"ObjectPageSectionChartV2")}o(ez,"handleSectionChart");function Mw(e,t,n,i,r,a){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t];md(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=ic(n==null?void 0:n.target)}o(Mw,"handleHeaderFacet");function tz(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=ic(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(tz,"addDataPointHeaderFacetDataType");function nz(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];return md(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o(nz,"handleFormSection");function iz(e,t,n){let i=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[oe.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[oe.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[oe.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[oe.FacetBase.Form,"ObjectPageHeaderSectionForm"],[oe.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSubSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(iz,"getSectionType");function rz(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Ao.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(rz,"getReferenceKey");function jw(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=iz(l.base,a,s),p=rz(l,n,u),g=`${u}<${p}>`;switch(Y9(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,Z9(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let v in l.facets)jw(e,l.facets,v,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{J9(e,p,r,l,t,u),Tl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{ez(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=nz(r,g,l,p,u);lm(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{au(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{au(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{Mw(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{Mw(r,g,l,p,u),tz(r,g,l);break}default:i.properties[n]=Ro(r,l,p)}}o(jw,"addSection");function kw(e,t,n,i,r,a=!1){if(e)for(let s in t)jw(i,t,s,n,r,!1,a)}o(kw,"addSectionsFromFacets");function Uw(e,t,n){var g,m,v,A,E,O;let i=t.definitions[oe.DefinitionName.Sections];i[oe.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ao.UIAnnotationTerms.Facets}`);let r=t.definitions[oe.DefinitionName.HeaderSections];if(r[oe.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ao.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Ug((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=jg((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let F in n){let j=n[F];(O=(E=e.entitySet)==null?void 0:E.name)!=null&&O.includes(j.entitySet)?(kw(l,a,i,e,t),kw(u,s,r,e,t,!0)):Uw(e,t,j.pages)}let p=t.definitions.CustomSections;for(let F in p.properties)i.properties[F]=p.properties[F]}o(Uw,"addSections");function oz(e,t,n){dm(e,n),pm(e,n,t,Q9,void 0,!0)}o(oz,"addHeader");function az(e,t,n,i){let r=KF(t,n,i,void 0,!0);r&&F0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(az,"addRelatedFacetKeysType");function fd(e,t){var s;nn();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[oe.PropertyName.sections]={$ref:U+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[oe.ManifestSection.generic].pages;return a?(oz(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Uw(e,n,a),az(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[oe.SchemaTag.isViewNode]=!0):delete n.properties[oe.PropertyName.sections]),um(n,e,oe.FioriElementsVersion.v2,q9,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,Do(n,K9),n):(se(e.logger,{severity:oe.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:oe.MANIFESTPATH,range:[oe.ManifestSection.generic]}}),n)}o(fd,"generateObjectPageSchemaV2");var ei=ie(le());var Cf=require("@sap-ux/vocabularies-types/vocabularies/UI");var cz=["filterBar","table","footer"],lz=ei.UIVOCABULARYALPHADOT.substring(1);function QC(e,t,n,i){Ka(e,n,"QuickVariant"),N0(n,"QuickVariantX",t),L0(i,n,"QuickVariantX")}o(QC,"addEnumForVariantPaths");function fz(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Cf.UIAnnotationTerms.SelectionPresentationVariant,Cf.UIAnnotationTerms.SelectionVariant,Cf.UIAnnotationTerms.PresentationVariant];ou(e,r,i)}o(fz,"addEnumForFilterBarAnnotationPath");function uz(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(Cf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(Cf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(lz,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(se(n,{severity:ei.LogSeverity.Warning,message:q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(uz,"getPresentationVariantForLineItem");function pz(e,t,n){if(om(t,"annotationPath",n))return;let i=uz(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=ru("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||se(n,{severity:ei.LogSeverity.Warning,message:q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(pz,"getLineItemAnnotation");function ud(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:U+ei.DefinitionName.LineItems},r=U+ei.DefinitionName.ToolBarLR;PE.forEach((u,p)=>{n.properties.table.anyOf[p.toString()].$ref=U+u;let g=u.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[g]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[u]=m});let{entityType:a,uIAnnotations:s}=rm(e);if(s){let u=[],p=Vl(e.manifest[ei.ManifestSection.generic].pages,u);vl(n);let g=pz(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let v=pr(a.fullyQualifiedName,g.term,g.qualifier);PE.forEach(A=>{n.definitions[A][ei.SchemaTag.annotationPath]=v})}hl(!1,n,g,a);let m=s.SelectionFields;if(nm(n,m,a),Tl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],A0(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return se(e.logger,{severity:ei.LogSeverity.Error,message:q.t("NOLR"),location:{path:ei.MANIFESTPATH,range:[ei.ManifestSection.generic]}}),n;yl(n,a,p,e.manifest,e.fragments),QC(a,e.entitySet,n,e.serviceAVT),fz(a,n,ei.DefinitionName.ListReportFilterBar),R0(a,n,ei.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 Do(n,cz),n}o(ud,"generateListReportSchemaV2");var Zt=ie(le());var dz=["filterBar","keyPerformanceIndicators","chart","table","footer"];function gz(e,t,n){var E;let i=(E=e==null?void 0:e.component)==null?void 0:E.settings;if(om(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(O){let F=O+(r?"#"+r:"");return t[F]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return se(n,{severity:Zt.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||ru("LineItem",O),g=g||ru("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],v=t[g],A=(m||i.quickVariantSelectionX?0:1)+(v?0:2);if(A>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],F=q.t(O);se(n,{severity:Zt.LogSeverity.Warning,message:F})}return{lineItemAnnotation:m,chartAnnotation:v}}o(gz,"getLineItemAndChartAnnotation");function mz(e,t){let n=e.definitions[Zt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Zt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(mz,"addChart");function pd(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[Zt.PropertyName.table].anyOf[0].$ref=U+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${U}${Zt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${U}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Zt.PropertyName.table].anyOf[1].$ref=`${U}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${U}${Zt.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${U}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[Zt.PropertyName.table].anyOf[2].$ref=`${U}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${U}${Zt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${U}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,b0(n.definitions.TableColumnExtensionTypeV2.enum,[Zt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=rm(e);if(s){vl(n);let l=[],u=kl(e.manifest[Zt.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=gz(u,s,e.logger);p&&m0.forEach(v=>{n.definitions[v][Zt.SchemaTag.annotationPath]=pr(a.fullyQualifiedName,p.term,p.qualifier)}),hl(!1,n,p,a),g&&mz(n,g);let m=s.SelectionFields;if(nm(n,m,a),Tl(n,a),!u)return se(e.logger,{severity:Zt.LogSeverity.Error,message:q.t("NOLR"),location:{path:Zt.MANIFESTPATH,range:[Zt.ManifestSection.generic]}}),n;yl(n,a,u,e.manifest,e.fragments),QC(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 Do(n,dz),n}o(pd,"generateAnalyticalListReportSchemaV2");function hz(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(hz,"getCardDefinitionNames");function yz(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"},da(a,s.CardModel);let l=hz(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=U+"CardModel"}}o(yz,"addModelsEnum");function $w(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},yz(n,t),n}o($w,"generateOverviewPageSchemaV2");var Ds=ie(le());function qC(e,t,n,i,r,a){nn();let s=No(e,t),l={templateType:a,fioriElementsVersion:Ds.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=ld(r,l.serviceAVT),l.entitySet||se(l.logger,{severity:Ds.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(qC,"prepareGenerationV2");function zC(e,t,n,i,r,a){let s=qC(n,a,i,r,t,Ds.TemplateType.ListReportObjectPageV2);return fd(s,e)}o(zC,"generateObjectPageInterfaceV2");function YC(e,t,n,i,r,a){let s=qC(n,a,i,r,t,Ds.TemplateType.ListReportObjectPageV2);return ud(s,e)}o(YC,"generateListReportInterfaceV2");function JC(e,t,n,i,r,a){let s=qC(n,a,i,r,t,Ds.TemplateType.AnalyticalListPageV2);return pd(s,e)}o(JC,"generateAnalyticalListPageInterfaceV2");function dd(e,t){return $w(e,t)}o(dd,"generateOVPInterfaceV2");var we=ie(le());var hd=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 Bw(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(Bw,"getClassesForSingleSection");function Hw(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Bw(n,i,t),Hw(n,t)}}o(Hw,"getSubsectionClasses");function vz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],Bw(i,r,n),Hw(i,n)}o(vz,"getExportClassesForSections");function Tz(e,t){let n=Vl(t.manifest[we.ManifestSection.generic].pages,e);if(!n){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(Tz,"findV2Page");function ZC(e,t){let n=Xg(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(ZC,"calculateBaseId");function Gw(e,t,n=!1){let i=hd(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=Tz(a,e),l=new Ri,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:ZC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ds(p,u,[],[],e.jsonSchema)}return i}o(Gw,"exportListReportPage");function Ww(e,t,n=!1){let i=e.page.config,r=hd(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=kl(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Ri,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:ZC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ds(p,u,[],[],e.jsonSchema)}return r}o(Ww,"exportAnalyticalListPage");function Kw(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=hd(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=Ec(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return se(e.logger,{severity:we.LogSeverity.Error,message:q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new Ri,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&vz(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:ZC(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ds(g,p,[],[],e.jsonSchema)}}return a}o(Kw,"exportObjectPage");var Xw=o(e=>{let t=hd();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Ri,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&zu(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),Ez=o((e,t,n)=>{var s;let i=hd();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new vm,e);r.settings=Object.assign(new Ya,e.settings);for(let l in n.definitions.AppSettings.properties){let u=zn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=$n(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],Wa(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&RE(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Qw(e,t){if(e[we.SchemaType.ListReport])return Gw(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return Kw(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return Xw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return Ez(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return Ww(e[we.SchemaType.AnalyticalListPage],t)}o(Qw,"exportPageV2");function ex(e,t,n=!1){if(e[we.SchemaType.ListReport])return Gw(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return Kw(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return Xw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return Ww(e[we.SchemaType.AnalyticalListPage],t,n)}o(ex,"exportConfigEntityByPathV2");var xf=ie(le()),zw=require("@sap-ux/vocabularies-types/vocabularies/UI");function qw(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(qw,"updateDependencyLib");function sv(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(sv,"extractLastIdPart");function Yw(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return se(i,{severity:xf.LogSeverity.Error,message:q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(xf.PropertyName.sections),s=a>-1?sv(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${zw.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:xf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return tx(g),!0}o(Yw,"createNewCustomColumn");var Fa=ie(le());var Zw=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),Jw=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function bz(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(bz,"initializeRouting");function Az(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(Az,"setTargetOptions");function Sz(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Fa.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(Sz,"calculateQueryPattern");function eM(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){eM(e,t,n,s);return}}}o(eM,"fillNavigationParts");function Pz(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(Pz,"fillParentKeys");function Cz(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(Az(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=[];eM(p,a,t,r,l==null?void 0:l.contextPath);let g=Pz(e.routePattern);u=Sz(p,l,g)}i.routes.push(Zw(u,s.route,s.route))}}}o(Cz,"handlePageNavigation");function xz(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(xz,"removeDeletedPages");function Iz(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=Jw({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=Jw({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(Iz,"transferEntitySetandContextPath");function Oz(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(Oz,"updateRouteLayout");function Nz(e,t,n,i){var r;return e.pageType&&![Fa.PageTypeV4.CustomPage,Fa.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(e.pageType!==Fa.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Fa.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(r=t==null?void 0:t.options)==null?void 0:r.settings,viewName:e.view.name}}}),t}o(Nz,"fillTarget");function tM(e,t,n){var r,a;let i=bz(n[Fa.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(Zw(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=Nz(u,l,s,t),Iz(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={}),Cz(u,t,l,i,s),Oz(i,s,u),i.targets[s]=l}return xz(i,t),i}o(tM,"transformRoutingV4");var Pi=ie(le());var nM=[Pi.FlexibleColumnLayoutAggregations.BeginColumnPages,Pi.FlexibleColumnLayoutAggregations.MidColumnPages,Pi.FlexibleColumnLayoutAggregations.EndColumnPages],iM=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:nM[r]?s.controlAggregation=nM[r]:s.controlAggregation=Pi.FlexibleColumnLayoutAggregations.EndColumnPages;let u=a.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let g in l.navigation)iM(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),Lz=o((e,t)=>{e.routing.config.routerClass=Pi.v4.FIORI_FCL_ROUTER_CLASS,iM(e,t,t.home);let n={viewName:Pi.FIORI_FCL_ROOT_VIEW_NAME,type:Pi.ViewTypes.XML,async:!0,id:Pi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,qw(e,Pi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),Rz=o(e=>{var t;e.rootView&&e.rootView.viewName===Pi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Pi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),rM=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?Lz(e,t):Rz(e)},"updateFcl");var ne=ie(le()),yd=require("@sap-ux/vocabularies-types/vocabularies/UI");var oM=ie(Qs()),cv=ie(le());function Fz(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(Fz,"isExportValueEquals");function Dz(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)===cv.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(Dz,"deleteProperty");function aM(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),Vc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},aM)}else Fz((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]&&(Dz(e,i),l=!0);return l}o(aM,"exportProperty");function lv(e,t,n,i,r,a){let s=rf(e.file,!1,a);if(s){let l=xy(s);if(Vc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},aM)){let p=(0,oM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:cv.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(lv,"getExtensionExportResult");var sM=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=$o(n||[],a.name,i,s)),u&&lv(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),cM=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=xc(u,s[0]);p=Ic(a,m,u,g,t)}if(p){let m=of(t),A={...i.definitions[m],definitions:i.definitions};lv(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var lM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],_z=[...lM,"views","initialLoad","template"],fv=o(e=>{let t=ne.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function Vz(e,t,n){var s,l,u,p;let i=`@${yd.UIAnnotationTerms.LineItem}`,r=`@${yd.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ne.DefinitionName.TableSPV])==null?void 0:s[ne.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ne.DefinitionName.ALPTable])==null?void 0:u[ne.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ne.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(Vz,"determineTargetAnnotationOfTable");function wz(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ne.DefinitionName.ALPChart])==null?void 0:a[ne.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(wz,"determineTargetAnnotationOfChart");function Mz(e,t,n,i,r){var a;if(e.length===3)t=n=i[ne.SchemaTag.annotationPath]&&i[ne.SchemaTag.annotationPath].substr(i[ne.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split(U)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ne.SchemaTag.annotationPath])&&l[ne.SchemaTag.annotationPath].substr(l[ne.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(Mz,"determineTargetAnnotationBasedOnParentView");function kz(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}=Mz(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ne.SchemaTag.annotationPath]&&l[ne.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ne.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ne.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(kz,"determineTargetAnnotationOfView");function jz(e,t,n){let i,r;return e[2].split(`@${ne.UIVOCABULARY}`)[1]?n&&n.indexOf(ne.FACETTITLEPREFIX)>-1?i=r=n.split(ne.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(jz,"determineTargetAnnotationOfHeaderSections");function Uz(e,t){let n=e[1].split(`@${ne.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=sv(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(Uz,"determineTargetAnnotationOfSections");function $z(e,t,n){let i,r,a=!1;return e[0]===ne.PropertyName.table&&e[1]!==ne.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=Vz(e,t,n):e[0]===ne.PropertyName.chart&&t.templateType===ne.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=wz(e,t,n):e[0]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=Uz(e,a):e[1]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=jz(e,a,t.title):e[1]===ne.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=kz(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o($z,"determineTargetAnnotation");function Bz(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ne.PropertyName.actions,ne.PropertyName.columns,ne.PropertyName.views,ne.PropertyName.visualFilters,ne.PropertyName.selectionFields].includes(ne.PropertyName[r])){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(Bz,"determineKeyForSyncRule");function Hz(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(Hz,"createNewObjectInManifest");function fM(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&&(Hz(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(fM,"transferPropertyToManifest");function Gz(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&&lM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&_z.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let v=t.syncRule.manifest.delete;typeof v=="function"&&(v(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 Wa(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(Gz,"deleteFromManifest");function Wz(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}=$z(e,n.transferParameters,n.configObject),g=Bz(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),v=Lo(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(v){let A={syncRule:t,manifestSection:v,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:g};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&pl([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=Gz(e,A,n.transferParameters,v,m,u,l):r=fM(A,n.propertyDefinition,i)}return r}o(Wz,"exportManifestChange");function Kz(e,t,n){let i=zn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);cM(e.transferParameters,r,n.configObject)}else i.manifest&&Wz(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ne.ChangeIndicator.Updated)}o(Kz,"evaluateExportRule");function Xz(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,ix(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(Xz,"transferSubObject");function Qz(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=Lo(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(Qz,"createALPTableView");function qz(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=Lo(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)||yd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(qz,"createALPChartView");function zz(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ft(e.pageNameArray),r=Lo(e.exportResults.manifest,i),a=`@${yd.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(zz,"createVisualFilters");function Yz(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ft(t.pageNameArray)+"/views",s=Lo(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(Yz,"createLRTableView");function Jz(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ne.DefinitionName.CustomColumn))i=Yw(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ne.DefinitionName.ALPChartView&&e.key===ne.PropertyName.chart&&e.configObject)return qz(e);if(t===ne.DefinitionName.ALPTableView&&e.key===ne.PropertyName.table&&e.configObject)return Qz(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ne.DefinitionName.LRTableView)||t.startsWith(ne.DefinitionName.LRChartView))?i=Yz(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ne.DefinitionName.VisualFilters)&&(i=zz(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(Jz,"createNewElement");function Zz(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(Zz,"isDefinitionTraversable");function nx(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Kg(e.configObject,e.key),s=Fo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=Jz(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split(U)[1],i),p=a?[...t,a]:[...t,e.key];if(l||Kz(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||Zz(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;Xz(e,s,r,p,m)}}o(nx,"transferSortedListEntry");function eY(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]],nx(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,nx(e,i,r),a=!0)}),e.index++})}return a}o(eY,"transferConfigEntriesWithAnyOfDefinitions");function tY(e,t,n,i){let r=TE(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(tY,"mergeEntriesForInsert");function nY(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ne.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ne.SchemaTag.propertyIndex]-r[1][ne.SchemaTag.propertyIndex])),t}o(nY,"sortProperties");function iY(e,t,n,i,r,a){var l,u;let s=!1;if(e){let p=e.anyOf;if(!p){let g=(l=e.$ref)==null?void 0:l.split(U)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=eY(n,p,i,r,a)}return s}o(iY,"checkIfAnyOfDefinition");function ix(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=iY(u,e,l,a,n,i),g=nY(a.properties);u!=null&&u.$ref&&tY(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!pl(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,nx(l,n,i,p),m[1].$ref&&s++)})}o(ix,"transferManifestEntriesAndFlexChange");function uM(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ne.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(uM,"getClassesForSingleSection");function pM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],uM(n,i,t),pM(n,t)}}o(pM,"getSubsectionClasses");function rY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],uM(e,r,n),pM(i,n)}o(rY,"getExportClassesForSections");function dM(e,t){let n=Xg(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(dM,"calculateBaseId");var gM=o((e,t,n=!1)=>{var l;let i=fv(e.manifest),r=new Ra,a=r.createPageInstance(ne.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ne.PropertyName.sections]&&rY(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:dM(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ne.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ne.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return ix(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),oY=o((e,t,n,i,r,a,s=!1)=>{var E,O;let l=fv(e.manifest),u=e.jsonSchema,p=(E=n.table)!=null&&E[ne.PropertyName.annotationPath]?ne.DefinitionName.ALPTableView:ne.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ne.DefinitionName.LineItems;u.definitions[ne.DefinitionName.TableSPV]&&(m=u.definitions[ne.DefinitionName.TableSPV].properties.columns.$ref.split(U)[1]);let v=u.definitions[`${ne.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&v)for(let F in v.properties)g.toolBar.actions[F]=t.createInstance(i,ne.DefinitionName.ToolBarAction,g.toolBar.actions[F]);let A={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:dM(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ne.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return ix(A,n,[],[],[],u),l},"exportListPage"),rx=o((e,t,n,i=!1)=>{let r=new Ra,a=r.createPageInstance(ne.PageTypeV2.ListReport,e.page.config);return oY(e,r,a,ne.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),mM=o((e,t,n=!1)=>rx(e,t,ne.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),aY=o((e,t,n,i,r,a)=>{let s=Lo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=dE());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];fM(u,p,{}),!l&&Object.keys(s).length&&HF(r,t,s)},"applyExportRule"),sY=o((e,t,n)=>{var a;let i=fv(t),r=Object.assign(new Ry,e);r.settings=Object.assign(new af,r.settings);for(let s in n.definitions.AppSettings.properties){let l=zn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)aY(l,u,s,e,i.manifest,n);else{let p=Lo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],Wa(i.manifest,u,!1))}}}return i.manifest[ne.ManifestSection.ui5].routing=tM(e.home,e.pages,i.manifest),rM(i.manifest[ne.ManifestSection.ui5],e),i},"exportApplicationV4"),hM=o((e,t)=>{if(e[ne.SchemaType.ListReport])return rx(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4);if(e[ne.SchemaType.ObjectPage])return gM(e[ne.SchemaType.ObjectPage],t);if(e[ne.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ne.SchemaType.Application];return sY(n,i,r)}else{if(e[ne.SchemaType.AnalyticalListPage])return mM(e[ne.SchemaType.AnalyticalListPage],t);if(e[ne.SchemaType.FPMCustomPage])return sM(e[ne.SchemaType.FPMCustomPage],ne.defaultExportResult)}},"exportPageV4"),cY=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=fv(e.manifest),l;return t&&Object.keys(t).length>0&&(l=$o(n||[],i.name,r,e.logger)),l&&lv(l,s,i.config,t,"view",a),s},"exportCustomPage"),ox=o((e,t,n=!1)=>{if(e[ne.SchemaType.ListReport])return rx(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4,n);if(e[ne.SchemaType.ObjectPage])return gM(e[ne.SchemaType.ObjectPage],t,n);if(e[ne.SchemaType.AnalyticalListPage])return mM(e[ne.SchemaType.AnalyticalListPage],t,n);if(e[ne.SchemaType.FPMCustomPage])return cY(e[ne.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Bt=require("@sap-ux/fe-fpm-writer");var lY=new Map([[pe.CustomExtensionType.CustomPage,Bt.generateCustomPage],[pe.CustomExtensionType.CustomColumn,Bt.generateCustomColumn],[pe.CustomExtensionType.CustomSection,Bt.generateCustomSection],[pe.CustomExtensionType.ObjectPage,Bt.generateObjectPage],[pe.CustomExtensionType.ListReport,Bt.generateListReport],[pe.CustomExtensionType.CustomAction,Bt.generateCustomAction],[pe.CustomExtensionType.CustomView,Bt.generateCustomView],[pe.CustomExtensionType.ControllerExtension,Bt.generateControllerExtension],[pe.CustomExtensionType.CustomSubSection,Bt.generateCustomSubSection],[pe.CustomExtensionType.CustomFilterField,Bt.generateCustomFilter],[pe.CustomExtensionType.CustomHeaderSection,Bt.generateCustomHeaderSection]]),fY={api:Bt.PromptsAPI,types:Bt.PromptsType};function uY(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ListReport];t=YC(i,r,a,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ObjectPage];t=zC(i,r,a,s,l,u)}else if(n[pe.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[pe.SchemaType.OverviewPage];t=dd(i,r)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.AnalyticalListPage];t=JC(i,r,a,s,l,u)}}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.ListReport];t=Ly(pe.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[pe.SchemaType.ObjectPage];t=BS(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.AnalyticalListPage];t=Ly(pe.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[pe.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[pe.SchemaType.FreestylePage];t=HS(pe.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[pe.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[pe.SchemaType.FPMCustomPage];t=GS(i,r,a,s,u,e.featureToggles,l)}}return t}o(uY,"generateSchema");function pY(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=Qw(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=hM(i,n)}return t}o(pY,"exportConfig");function dY(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=ex(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=ox(i,n)}return t}o(dY,"exportConfigEntityByPath");function gY(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=ex(i,n,!0)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=ox(i,n,!0)}return t}o(gY,"deleteConfigEntityByPath");function mY(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];n[pe.SchemaType.ListReport]?t=Ch(n[pe.SchemaType.ListReport]):n[pe.SchemaType.ObjectPage]?t=Oh(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.OverviewPage]?t=Rh(n[pe.SchemaType.OverviewPage]):n[pe.SchemaType.AnalyticalListPage]&&(t=xh(n[pe.SchemaType.AnalyticalListPage]))}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];n[pe.SchemaType.ListReport]?t=$c(n[pe.SchemaType.ListReport],pe.SchemaType.ListReport):n[pe.SchemaType.ObjectPage]?t=rv(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.AnalyticalListPage]?t=$c(n[pe.SchemaType.AnalyticalListPage],pe.SchemaType.AnalyticalListPage):n[pe.SchemaType.FPMCustomPage]&&(t=iv(n[pe.SchemaType.FPMCustomPage]))}return t}o(mY,"importConfig");async function hY(e){return XC(e)}o(hY,"importProject");async function yY(e){return KC(e)}o(yY,"importProjectSchema");function vY(){return{version:"21",fpmWriter:"29",moduleVersion:M0.version}}o(vY,"getApiVersion");function tx(e){let t=lY.get(e.customExtension);if(t&&typeof t=="function")return(0,Bt.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(tx,"generateCustomExtension");var qr=require("path"),_s=require("fs");var If=o(async e=>new Promise((t,n)=>{(0,_s.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),TY=o(async e=>JSON.parse(await If(e)),"readJSON"),ax=o(async e=>new Promise((t,n)=>{(0,_s.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),EY=o(async e=>new Promise(t=>{(0,_s.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),vM=o(async e=>new Promise(t=>{(0,_s.exists)(e,n=>{t(n)})}),"resourceExists"),bY=o(async e=>TY((0,qr.join)(e,"manifest.json")),"getManifest"),TM=o(async e=>{let t=[],n=(0,qr.join)(e,"changes");if(!await vM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await ax(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await If((0,qr.join)(n,a)));return t},"getChanges"),yM=o(async(e,t="fragments")=>{let n=[],i=(0,qr.join)(e,"ext",t);if(!await vM(i))return n;let r=await ax(i);for(let a of r){let s=(0,qr.join)(i,a),l=await If(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),AY=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 v=(0,qr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await If(v)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let v of i.mainService.settings.annotations)if((g=(p=i[v])==null?void 0:p.settings)!=null&&g.localUri){let A=(0,qr.join)(t,i[v].settings.localUri);n.push({dataSourceUri:A,fileContent:await If(A)})}}if(n.length===0)for(let v in i){let A=i[v];if((A==null?void 0:A.type)==="ODataAnnotation"&&((m=A==null?void 0:A.settings)!=null&&m.localUri)){let E=(0,qr.join)(t,A.settings.localUri);n.push({dataSourceUri:E,fileContent:await If(E)})}}return n},"getAnnotations"),SY=o(async e=>{let t=(0,qr.basename)(e),n=(0,qr.join)(e,"webapp"),i=await bY(n),r=await AY(i,n),a=await TM(n),s=await yM(n),l=await yM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");Xs(Di,ie(le()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
|
|
294
|
+
`}),x1(q)}o(nn,"initI18n");var $t=ie(le());function Ec(e,t,n){var r;let i;for(let a in e){let s=e[a];if(la((r=s.component)==null?void 0:r.name)===$t.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Ec(s.pages,t,n),i))return n.unshift(a),i}}o(Ec,"findObjectPageV2");function Vl(e,t){var n;for(let i in e){let r=e[i];if(la((n=r.component)==null?void 0:n.name)===$t.PageTypeV2.ListReport)return t.push(i),r}}o(Vl,"findListReportPageV2");function wl(e){if(!e.manifest[$t.ManifestSection.generic]){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOFE"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}let t=e.manifest[$t.ManifestSection.generic].pages;if(!t){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}return t}o(wl,"getV2Pages");function Ml(e,t,n){var i;if(!e){se(t,{severity:$t.LogSeverity.Error,message:q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;se(t,{severity:$t.LogSeverity.Error,message:q.t("NOENTITYSET",{pageName:r}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}}o(Ml,"checkV2Page");function kl(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),la((i=a.component)==null?void 0:i.name)===$t.PageTypeV2.AnalyticalListPage)return a}se(n,{severity:$t.LogSeverity.Error,message:q.t("NOALP"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}o(kl,"findAnalyticalListPage");function PA(e,t){let n=e.split("|");return $t.v2.SectionPosition[n[0]]&&n[1]===t}o(PA,"isAssociatedCustomSection");function O1(e,t){let n=$n(e,`sap.ui5/extends/extensions/${$t.v2.SAPUI5_VIEW_EXTENSION}/${$t.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)PA(r,t)&&(i[r]=n[r]);return i}o(O1,"findCustomSectionExtensions");function O3(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(O3,"removeEmptySettingsOfFooter");function N3(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(N3,"removeEmptySettingsOfFilterBar");function L3(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(L3,"removeEmptySettingsOfToolBar");function Sh(e){L3(e),N3(e),O3(e)}o(Sh,"removeEmptySettings");var xA={};Ks(xA,{AnalyticalListPage:()=>Ur,ListReport:()=>fo,ObjectPage:()=>ai,OverviewPage:()=>Yt,exportFilterSettings:()=>R1,importDateSettingsOVP:()=>N1,importFilterSettings:()=>L1});var Ph=ie(le());var Ur=class{};o(Ur,"AnalyticalListPage"),h([T({flex:{controlId:Wg,controlType:o(()=>Ph.ControlType.DynamicPage,"controlType")}})],Ur.prototype,"fitContent",2),h([jt("table")],Ur.prototype,"table",2),h([jt("template::SmartFilterBar")],Ur.prototype,"filterBar",2),h([jt("analyticalListPageChart")],Ur.prototype,"chart",2),h([jt("analyticalListFooter")],Ur.prototype,"footer",2),Ur=h([wr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Ph.v2.FE_TEMPLATE_V2_ALP})],Ur);var Xu=ie(le());var fo=class{};o(fo,"ListReport"),h([T({flex:{controlId:Wg,controlType:o(()=>Xu.ControlType.DynamicPage,"controlType")}})],fo.prototype,"fitContent",2),h([jt("listReportFilter")],fo.prototype,"filterBar",2),h([jt("listReport")],fo.prototype,"table",2),h([jt("listReportFooter")],fo.prototype,"footer",2),fo=h([wr({id:Xu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Xu.v2.FE_TEMPLATE_V2_LIST_REPORT})],fo);var CA=ie(le());var ai=class{};o(ai,"ObjectPage"),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.52.0"})],ai.prototype,"showConfirmationOnDraftActivate",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.52.1"})],ai.prototype,"hideChevronForUnauthorizedExtNav",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.48.0"})],ai.prototype,"allowDeepLinking",2),h([T({manifest:{path:o(t=>Ni(t),"path")}}),C({since:"1.52.0"})],ai.prototype,"navToListOnSave",2),h([jt("header")],ai.prototype,"header",2),h([jt("sections")],ai.prototype,"sections",2),h([jt("layout")],ai.prototype,"layout",2),h([T({manifest:{path:o(t=>Em(t),"path")}}),C({since:"1.77.0"})],ai.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([T({manifest:{path:o(t=>Ni(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),C({since:"1.78.0"})],ai.prototype,"globalChartSettings",2),h([T({manifest:{path:o(t=>Ni(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Ys}}),C({since:"1.71.0"})],ai.prototype,"globalTableSettings",2),ai=h([wr({id:CA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:CA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ai);function R3(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(R3,"importDateSettingsFieldsOVP");function N1(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&&R3(e,t),t}o(N1,"importDateSettingsOVP");function L1(e){let t={};return t.dateSettings=N1(e.filterSettings),t}o(L1,"importFilterSettings");function F3(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(F3,"exportFilterFields");function R1(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&&F3(t,n,e))}o(R1,"exportFilterSettings");var Yt=class{};o(Yt,"OverviewPage"),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"globalFilterModel",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"globalFilterEntityType",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"globalFilterEntitySet",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"showBasicSearch",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"disableErrorPage",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"smartVariantRequired",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"bHeaderExpanded",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"containerLayout",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"showDateInRelativeFormat",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"disableTableCardFlexibility",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"enableLiveFilter",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"enableLazyRendering",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"refreshStrategyOnAppRestore",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"considerAnalyticalParameters",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"refreshIntervalInMinutes",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"useDateRangeType",2),h([T({manifest:{path:o(()=>En(),"path"),import:L1,export:R1}}),C({since:"1.80.0"})],Yt.prototype,"filterSettings",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"dataLoadSettings",2),h([T({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"resizableLayout",2),Yt=h([wr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Yt);var IA=class IA{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(IA,"MetadataFactory");var jl=IA;var Jn=ie(le());var D3={},_3={Table:cc,ResponsiveTableWithMultiSelect:cc,ResponsiveTableWithInlineDelete:cc},V3={[Jn.v2.CardSettingsType.listCardSettings]:Cl,[Jn.v2.CardSettingsType.listCardSettingsv4]:Cl,[Jn.v2.CardSettingsType.analyticalCardSettings]:xl,[Jn.v2.CardSettingsType.analyticalCardSettingsv4]:xl,[Jn.v2.CardSettingsType.stackCardSettings]:mu,[Jn.v2.CardSettingsType.linkListCardSettings]:hu,[Jn.v2.CardSettingsType.tableCardSettings]:Il,[Jn.v2.CardSettingsType.tableCardSettingsv4]:Il},w3={[Jn.SAPUI5_VIEW_CLASS]:$u,[Jn.SAPUI5_FRAGMENT_CLASS]:Uu,Table:Tc,ObjectPageResponsiveTableWithMultiSelect:Tc,ObjectPageResponsiveTableWithInlineDelete:Tc},M3={[Jn.PageTypeV2.AnalyticalListPage]:D3,[Jn.PageTypeV2.ListReport]:_3,[Jn.PageTypeV2.ObjectPage]:w3,[Jn.PageTypeV2.OverviewPage]:V3},OA=class OA extends jl{constructor(){super(EA,xA,M3)}};o(OA,"MetadataInstanceFactoryV2");var Ri=OA;function k3(e,t,n,i,r){if(e.filterBar=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar),Dn(e.filterBar,n.manifest,i[Qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),Dn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(k3,"importFilterBar");function NA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=no(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};vh(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"&&Th(e,n,s)}o(NA,"importFlexChangesOfTableAndColumns");function j3(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Jg]&&t[Zg]&&(a=JSON.parse(JSON.stringify(t[Jg])),a.properties={...a.properties,...t[Zg].properties}),Dn(n.table,i.manifest,a,r,i.logger),NA(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&se(i.logger,{severity:Qt.LogSeverity.Error,message:q.t("NOLINEITEMS")})}o(j3,"importTable");function U3(e,t,n,i){let r=e.jsonSchema.definitions,a=bh(e.manifest,i);if(t.table=n.createInstance(Qt.PageTypeV2.ListReport,a,t.table),Ah(t,n,r),j3(a,r,t,e,i),t.table.toolBar=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,r[Qt.DefinitionName.ToolBarLR],i,e.logger),r[Qt.DefinitionName.ActionsLR])for(let l in r[Qt.DefinitionName.ActionsLR].properties){let u=ps(l);t.table.toolBar.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.Action),Dn(t.table.toolBar.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}k3(t,n,e,r,i),t.footer={actions:{}};let s=r[Qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=ps(l);t.footer.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.FooterAction),Dn(t.footer.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}}o(U3,"addSettings");function Ch(e){if(nn(),!wl(e))return;let n=new Ri,i=n.createPageInstance(Qt.PageTypeV2.ListReport),r=[],a=Vl(e.manifest[Qt.ManifestSection.generic].pages,r);if(Ml(a,e.logger,a==null?void 0:a.entitySet),!!a)return U3(e,i,n,r[0]),e.flex.forEach(s=>{no(s)&&Eh(i,s,e.jsonSchema,e.logger)}),_l(i,e,a,Qt.PageTypeV2.ListReport),Sh(i),i}o(Ch,"createListReportConfig");var Ct=ie(le());function $3(e,t,n,i){var p,g;let r=bh(e.manifest,i),a=e.jsonSchema.definitions;Ah(t,n,a),t.table=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(Dn(t.table,e.manifest,s,i,e.logger),NA(e,s,t),t.table.toolBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,a[Ct.DefinitionName.ToolBar],i,e.logger),a[Ct.DefinitionName.ActionsLR])for(let m in a[Ct.DefinitionName.ActionsLR].properties){let v=ps(m);t.table.toolBar.actions[v]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.Action),Dn(t.table.toolBar.actions[v],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Dn(t.filterBar,e.manifest,a[Ct.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[Ct.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[Ct.DefinitionName.SelectionFields].properties;for(let v in m){let A=v;t.filterBar.selectionFields[A]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),Dn(t.filterBar.selectionFields[A],e.manifest,a.SelectionFieldDateSettings,i,e.logger,A)}}t.chart=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Dn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[Ct.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let v=ps(m);t.footer.actions[v]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.FooterAction),Dn(t.footer.actions[v],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[Ct.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:g.keyPerformanceIndicators;u&&Object.keys(u).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Dn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o($3,"addSettings");function xh(e){if(nn(),!wl(e))return;let n=new Ri,i=n.createPageInstance(Ct.PageTypeV2.AnalyticalListPage),r=[],a=kl(e.manifest[Ct.ManifestSection.generic].pages,r,e.logger);if(Ml(a,e.logger,a==null?void 0:a.entitySet),!!a)return $3(e,i,n,r[0]),e.flex.forEach(s=>{no(s)&&Eh(i,s,e.jsonSchema,e.logger)}),_l(i,e,a,Ct.PageTypeV2.AnalyticalListPage),Sh(i),i}o(xh,"createAnalyticalListPageConfig");var Ee=ie(le());var Qu=require("@sap-ux/vocabularies-types/vocabularies/UI");var H3=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function G3(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(`${Qu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Qu.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(G3,"getSingleSelectorIdPart");function W3(e){let t,n=e.split(":::");if(n.length===1)t=G3(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(`::${Qu.UIAnnotationTerms.LineItem}`,`/@${Qu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(W3,"getFacetID");function K3(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=no(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(Ee.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let v=m[1].replace(/:3a:3a/g,"::");r.exec(v)!==null&&(v=v.split("template:::TableColumn:::")[1]);let A=W3(v);v=AA(v).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${v}::${g.content.property}`]={controlId:v,propertyId:g.content.property,facetId:A,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){se(n,{severity:Ee.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(K3,"prepareFlexChanges");var X3=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(U,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace(U,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function Q3(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&bA(i,t,r)}o(Q3,"addFlexChangeToColumns");function F1(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,Ee.VOCWITHSLASH)];for(let u in e){let p=e[u],g=p.propertyId===t,m=t==="columns"&&p.controlType===Ee.ControlType.TableColumn;(g||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?Q3(a,p,r.properties,n):vh(n,p,r))}}o(F1,"importFlexChangesOfTable");function q3(e,t){return e.facetId==="template"&&t}o(q3,"isStandardActionFlexChange");var D1=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 z3(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===Ee.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(Ee.ACTIONTITLEPREFIX))&&!r&&s,m=r&&D1(u,r.split("::"))&&s,v=e.title&&D1(u,e.title.split("::"),!0),A=!t.facetId&&H3.includes(t.controlType),E=q3(t,l);return p||g||m||v||A||E}o(z3,"matchSelector");function Y3(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[Ee.SchemaTag.controlType]))continue;z3(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(Y3,"importFlexChanges");function J3(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(se(n.logger,{severity:Ee.LogSeverity.Warning,message:Qg(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(J3,"checkDeprecatedProperties");function Z3(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=$n(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=$n(n.manifest,u))):(u=e.manifest.path(t,{},l),p=$n(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 J3(p,a,n,u),p}o(Z3,"importManifestSetting");function Fi(e,t,n,i,r,a){var u,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let g in n.properties||n){let m=zn(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 v=n.properties[g].$ref.split(U)[1],A=e.jsonSchema.definitions[v];F1(i.flexChanges,g,t,r,A,l)}else F1(i.flexChanges,g,t,r,n);else{let v=(r==null?void 0:r.title)||(r==null?void 0:r.id);Y3(n,t,i.flexChanges,g,v,a)}else m!=null&&m.manifest&&Z3(m,i.pageKeys,e,t,g,s,r)}}o(Fi,"transferSettingsAndFlexChanges");function V1(e,t,n,i){let r=Ki(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${m0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${em}${r}`;break}}return r.replace(/@/g,"")}o(V1,"getActionId");function eX(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split(U)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=V1(s,a,"","");e.actions[a]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,l,{}),Fi(n,e[Ee.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(eX,"fillStandardActions");function Ih(e,t,n,i,r,a){var l;n[Ee.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=ps(p),m=V1(s,g,r,a);m&&(n[Ee.PropertyName.actions][g]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,s),Fi(e,n[Ee.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[Ee.PropertyName.actions])!=null&&l[g]&&Object.keys(n[Ee.PropertyName.actions][g]).length===0&&delete n[Ee.PropertyName.actions][g]}}eX(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}o(Ih,"fillActions");function tX(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(Ee.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(Ee.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Fi(e,i[t.id].form.fields[l],e.jsonSchema.definitions[Ee.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(tX,"fillFields");function nX(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(nX,"prepareTableSchema");function iX(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(Ee.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][Ee.PropertyName.table]=g;let m=e.jsonSchema.definitions,v=nX(p,t,m);Fi(e,i[t.id],t.schema,r,{title:t.title}),Fi(e,i[t.id][Ee.PropertyName.table],v,r,t);let A=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(A!=null&&A.properties){let E=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");Ih(e,A.properties,i[t.id][Ee.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",E)}Object.keys(i[t.id][Ee.PropertyName.table].toolBar).length===0&&delete i[t.id][Ee.PropertyName.table].toolBar}}o(iX,"fillTableInConfig");function rX(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?zg(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};_l(n[t],e,i,Ee.PageTypeV2.ObjectPage,l,r)}}o(rX,"fillCustomColumnsInConfig");function oX(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(Ee.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][Ee.PropertyName.chart]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(Fi(e,i[t.id],t.schema,r,{title:t.title}),Fi(e,i[t.id][Ee.PropertyName.chart],e.jsonSchema.definitions[Ee.DefinitionName.ObjectPageChart],r,t))}o(oX,"fillChartSection");function aX(e,t,n,i){n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Fi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(aX,"fillHeaderSection");function sX(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Fi(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&Ih(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&tX(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(sX,"fillFormSection");function _1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Fi(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,LA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(_1,"fillSubSection");function LA(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:X3(t[l]),schema:t[l],title:SE(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],iX(e,p,n,i,r),rX(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],oX(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],sX(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}>`],_1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],aX(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],_1(e,p,n,i,r))}}o(LA,"fillSectionsInConfig");function cX(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(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Fi(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(cX,"fillCustomSectionsInConfig");function lX(e,t){var g,m;let n=t.factory.createPageInstance(Ee.PageTypeV2.ObjectPage);Fi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Fi(e,n.globalTableSettings,i[Ee.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.ObjectPageHeader);let r=i[Ee.DefinitionName.ObjectPageHeader]?i[Ee.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Fi(e,n.header,r,t);let a=i[Ee.DefinitionName.ObjectPageHeaderActions];a&&Ih(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&Ih(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageLayout"),Fi(e,n.layout,i[Ee.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[Ee.DefinitionName.HeaderSections];if(l){let v=(g=t.v2Page.component)==null?void 0:g.settings;LA(e,l.properties,v,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[Ee.DefinitionName.Sections];if(u){let v=(m=t.v2Page.component)==null?void 0:m.settings;LA(e,u.properties,v,n.sections,t)}let p=O1(e.manifest,e.entitySet);return cX(p,n,t,i,e),n}o(lX,"fillConfig");function Oh(e){nn();let t=wl(e);if(!t)return;let n=e.entitySet,i=[],r=Ec(t,e.entitySet,i);if(Ml(r,e.logger,n),!r)return;let a=K3(e.flex,n),s=new Ri;return lX(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(Oh,"createObjectPageConfigV2");function Lh(e,t){var n,i;return(n=e.component)!=null&&n.name?$g(la((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(Lh,"generateId");function fX(e,t,n,i){e.navigation={};let r=w1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=Lh(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(fX,"getPageConfigsAndNavigations");function w1(e,t){var i;let n={};for(let r in e){let a=e[r],s=Lh(a,r);if(!s)continue;let l={pageType:la((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let u=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(u)if(l.pageType===_n.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Ch(p)}else if(l.pageType===_n.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=xh(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=Oh(p)}a.pages&&fX(l,a,t,n)}return n}o(w1,"getPagesAndConfigs");var RA=class RA extends za{constructor(t){nn();let n;t.manifest[_n.ManifestSection.generic]?n=t.manifest[_n.ManifestSection.generic].pages:se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOFE"),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}}),n||se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&Lh(n[i],i),a=new Ya,s=Dt(_n.SchemaType.Application),l=t.appSchemas[s.filename];Dn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,w1(n,t),a)}};o(RA,"V2AppProvider");var Nh=RA;function qu(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||se(n,{severity:_n.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:_n.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=Lh(l,s);i[u]=l}if(t===_n.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=qu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(qu,"getPages");var Ac=ie(le());var jo=ie(le());var DA=ie(KT());var _t=ie(le());var uX=["colorPalette","tabs"];function pX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(pX,"createCard");function M1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),M1(e,n.join("|"))}return t}o(M1,"findAvailableId");function zu(e,t,n,i,r,a,s){i!=null&&i.properties&&FA(e,t,n,i.properties,r,a,s)}o(zu,"transferManifestEntriesOVP");function bc(e,t,n,i){return e.createInstance(_t.PageTypeV2.OverviewPage,i,n,t)}o(bc,"assignReflectMetadataRules");function dX(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split(U),r=e.appSchema.definitions[i[1]];t=bc(e.factory,i[1],t,"CustomCard"),zu(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(dX,"processAnyOfDefinitionsOfOVP");function gX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!uX.includes(i)?t[i]=(0,DA.default)(t[i]||{},r||{},{arrayMerge:EE}):t[i]=r}o(gX,"checkSyncRuleForExport");function mX(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=$n(i.manifest,s);if(n in _t.v2.CardSettingsType||n==="settings")l.settings=(0,DA.default)(l.settings||{},r||{},{arrayMerge:EE});else if(r!==void 0){let u=e.manifest.export;gX(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(mX,"transferToManifest");function hX(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(_t.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=bc(e.factory,i[0],e.currentObject[t],"CustomCard"),pX(t,e.exportResults.manifest[_t.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,zu(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[_t.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[_t.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated)})}o(hX,"transferCards");function yX(e,t){if(t==="cards")hX(e);else{let n=Fo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,_t.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(U);e.currentObject=bc(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],zu(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],FA(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],FA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(yX,"exportOfObject");function FA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!pl(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=zn(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=dX(g)):u&&typeof u=="object"&&i[l]&&yX(g,l),p!=null&&p.manifest&&mX(p,a,l,t,u,e)}}o(FA,"processProperties");function vX(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=u0(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=p0(p,g);e.exportResults.flexChanges.find(A=>{let E=!1,O=JSON.parse(A);O={content:O.content,selector:O.selector};let F=JSON.parse(m);return F={content:F.content,selector:F.selector},JSON.stringify(O)===JSON.stringify(F)&&(E=!0),E})||e.exportResults.flexChanges.push(m)}o(vX,"evaluateFlexRule");function TX(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated}}o(TX,"exportConfigValueToManifest");function EX(e,t,n,i,r){let a=$n(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)TX(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,Wa(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(EX,"evaluateManifestRule");function bX(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(_t.FACETTITLEPREFIX)?r.split(_t.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(bX,"getManifestPathOfSections");function AX(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(AX,"getManifestPathOfTable");function SX(e,t,n,i,r){let a;return t[0]===_t.PropertyName.sections?a=bX(t,a,n,e,r):t[0]===_t.PropertyName.table?a=AX(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(SX,"getManifestPath");function PX(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)vX(e,i,t,r,a,n,s);else if(t.manifest){let u=SX(e,i,t,n,a);EX(e,u,t,s,n)}}o(PX,"evaluateExportRule");function CX(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)&&(Rm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(_t.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(_t.ViewTemplateType.ResponsiveTableColumnsExtension,_t.ViewTemplateType.ResponsiveTableCellsExtension);Rm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(CX,"deleteObsoleteColumn");function xX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=j0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,CX(r,e,n))}o(xX,"deleteObsoleteColumnsFromFragment");function IX(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}=Fm(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(IX,"clusterConfigColumnsByPath");function k1(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in _t.v2.TableColumnExtensionTypeV2){let{path:u}=Fm(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{xX(p)}catch(g){e.logger.error(g.message)}}if(t){let l=IX(t,n,e.v2Page,s,r);for(let u in l)sb(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(k1,"transferColumnExtensions");function OX(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=M1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(A=>{var E;return(E=A.$ref)==null?void 0:E.includes(t[p].constructor.name)}).$ref.split(U),v=e.appSchema.definitions[m[m.length-1]];ds(e,t[p],i,[...r,s[p]],v)}let u=$n(e.exportResults.manifest,FE());for(let p in u)PA(p,l)&&!s.includes(p)&&delete u[p]}o(OX,"transferManifestExtensions");function NX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===_t.PropertyName.table){n=e[i-1];break}return Qn(n,t)}o(NX,"getSectionId");function LX(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Fo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);ds(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(LX,"transferIndexTable");function RX(e,t,n,i,r,a){let s,l=zg(e.$ref);l&&(s={target:l,key:NX(t,n)}),k1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(RX,"transferCustomColumns");function FX(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Fo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&ds(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(FX,"handleAnyOfDefinitions");function DX(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")OX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){RX(l,t,s,e,n,a);return}else a?ds(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&FX(l,e,s,n==null?void 0:n[r],r,i,t)}o(DX,"transferComplexProperty");function ds(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!pl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Kg(t,l),p=u?[...n,u]:n,g=zn(t,l),m=e.propertyDefinition=r.properties[l],v=e.nextDefinition=Fo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(PX(e,g,t,[...i],p,a,l),LX(s,e,a,l,p,i),s===void 0||typeof s=="object")DX(e,i,t,p,l,v,a);else if((m==null?void 0:m.$ref)===U+"TableCustomColumns"){k1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(ds,"transferManifestEntriesAndFlexChange");function j1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=bc(r,i,n[i],s),a.push(i),_A(r,n[i],e,l.properties,a)}o(j1,"transferSettingsOfRef");function _X(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(U);j1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${U}${jo.v2.cardTemplateSettingsMap[e.template]}`.split(U);j1(i,l,e,t,r,a)}}o(_X,"processPropertiesOfObject");function VX(e,t,n,i,r,a){let s=zn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=$n(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{ml(s,u,t,e)}catch(p){se(i.logger,{severity:jo.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Hg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&_X(e,t,r,i,a,n)}o(VX,"processOvpProperty");function _A(e,t,n,i,r){for(let a in i)VX(t,a,r,n,i,e)}o(_A,"processOvpProperties");function wX(e,t,n){_A(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[jo.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[jo.ManifestSection.ovp].cards[i].template,a=jo.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=bc(n,a,{},"CustomCard"),e.cards=bc(n,a,e.cards,"CustomCard"),_A(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(wX,"addSettings");function Rh(e){let t=new Ri,n=t.createPageInstance(jo.PageTypeV2.OverviewPage);return e.jsonSchema&&wX(n,e,t),n}o(Rh,"createOverviewPageConfig");var VA=class VA extends za{constructor(t){let n={},i=t.manifest[Ac.ManifestSection.ovp],r=new Ya,a=Dt(Ac.SchemaType.Application);Dn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Ac.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Ac.PageTypeV2.OverviewPage,config:Rh(l),entitySet:i.globalFilterEntitySet},p=$g(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(VA,"V2OvpProvider");var Fh=VA;var Uo=require("@sap-ux/vocabularies-types/vocabularies/UI");var te=ie(le()),U1=require("path");function MX(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(MX,"sortByPropertyIndex");function Yu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(MX())}o(Yu,"sortPropertiesRecords");function kX(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(kX,"getExtensionText");function wA(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||te.v4.Placement.After)===te.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(wA,"addExtensionToSortedArray");function jX(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(jX,"addRemainingTargetByBefore");function $1(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=kX(e);return{$ref:`${U}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o($1,"getExtensionDetails");function MA(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=$1(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let v=n.findIndex(A=>A[0]===g.position.anchor);v>-1?(wA(g,n,v,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(se(i,{severity:Di.LogSeverity.Error,message:q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&jX(e,p,g,n,m)}else r&&(wA(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?MA(e,t,n,i):s>0&&MA(e,t,n,i,!0)}o(MA,"adjustCustomExtReferringToCustomExt");function UX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||te.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===te.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(UX,"getExtensionAnchor");function $X(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o($X,"getLocalExtensionsToSkip");function BX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||te.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let v=t[m[0]];if(g(v))break;p++}return p},"findNextIndex"),s=0;return i===te.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==te.v4.Placement.Before))}),s>-1?s:0}o(BX,"getExtensionIndexByMergedApproach");function HX(e,t,n,i,r=!1){return r?BX(e,t,n):n.findIndex(a=>a[0]===i)}o(HX,"getExtensionIndex");function GX(e,t,n,i,r){se(e,{severity:Di.LogSeverity.Error,message:q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(GX,"handleInvalidExtension");function Ta(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=$X(l,s);if(!l)return[];for(let p of Object.keys(l)){let g=l[p];if(u!=null&&u.includes(p))continue;let m=$1(g,n,p,te.ActionType.Custom);if(typeof g!="object"){GX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let v=UX(g,s);if(v){let A=HX(g,e,t,v,a);A>-1&&(wA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&MA(l,n,t,r),t}o(Ta,"addExtensionToArray");function kA(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(kA,"addEnumForProperties");function WX(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];kA(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(WX,"addColumnPropertyIndexAndEnum");function Sc(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var v,A,E,O;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Yu(l),p=a?a.replace(/::/g,"/"):`@${Uo.UIAnnotationTerms.LineItem}`,g=(O=(E=(A=(v=t.options)==null?void 0:v.settings)==null?void 0:A.controlConfiguration)==null?void 0:E[p])==null?void 0:O.columns;g&&(u=Ta(g,u,i,void 0,n)),WX(u,e,l,i);let m={};u.forEach(([F,j])=>m[F]=j),e.definitions[s].properties=m}o(Sc,"addCustomColumnDefinition");function KX(e){let t;return e.lineItemId.startsWith(te.DefinitionName.LineItemsOfView)?t=te.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(te.DefinitionName.LineItems)?t=te.DefinitionName.ToolBarAction:t=te.DefinitionName.ObjectPageToolBarAction,t}o(KX,"determineActionDefinitionName");function XX(e,t,n){e[te.SchemaTag.keys]=[],t[te.SchemaKeyName.semanticObject]&&e[te.SchemaTag.keys].push({name:te.SchemaKeyName.semanticObject,value:t[te.SchemaKeyName.semanticObject]});let{key:i,ns:r}=tc(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(XX,"addTargetAndKeysOfAction");function QX(e,t,n,i,r,a=!0){if(i.Determining===!0)return;let s=KX(e),l=yi(i,e.entityType),u=i.$Type.split(`${te.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=Yg(p),m=t.properties[`${u}::${g}`]={description:l};if(a?m.$ref=vi(s,dt(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[te.SchemaTag.propertyIndex]=r,m[te.SchemaTag.dataType]=io(i),XX(m,i,p),m[te.SchemaTag.annotationType]=i.$Type,a){let v=Et(s,dt(g),e.appSchema);v[te.SchemaTag.annotationPath]=`${n}/${r}`}else m[te.SchemaTag.annotationPath]=`${n}/${r}`}o(QX,"addActionRecordToSchema");function qX(e,t,n,i,r){var u;let a=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ii(te.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=pa(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[a]);let g=p.properties,m={description:yi(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=U+n,m[te.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[te.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[te.SchemaTag.propertyIndex]=i,m[te.SchemaTag.dataType]=io(s),g[l]=m,cm(s,g,l)}}o(qX,"addLineItemRecordToSchema");function jA(e,t,n,i,r=te.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Uo.UIAnnotationTypes.DataFieldForAction||s.$Type===Uo.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))QX(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===Uo.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;qX(e,l,u,a,i)}a++})}o(jA,"appendLineItemsToSchema");function Pc(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=am(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);jA(e,r,a,void 0,t)}o(Pc,"addLineItemsTypeToSchema");function Cc(e,t,n,i=te.DefinitionName.Position,r){var p,g,m,v,A;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let E in a)E!=="custom"&&s.push(E);let l=t!==te.DefinitionName.LineItems?r:`@${Uo.UIAnnotationTerms.LineItem}`,u=(A=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[l])==null?void 0:A.columns;if(u)for(let E in u)s.indexOf(E)===-1&&s.push(E);if(s.length>0){let E=e.definitions[i].properties.anchor;da(s,E)}}o(Cc,"addFragmentEnumForAnchor");function uo(e,t,n=te.DefinitionName.CustomActionPosition){Qa(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(uo,"addEnumForActionAnchor");function Dh(e,t,n,i){var a,s,l,u;let r;for(let p in e)if((i&&((s=(a=e[p].options)==null?void 0:a.settings)==null?void 0:s.contextPath)===i||((u=(l=e[p].options)==null?void 0:l.settings)==null?void 0:u.entitySet)===(n==null?void 0:n.name))&&(e[p].name===t||t===te.v4.FE_TEMPLATE_V4_ALP&&e[p].name===te.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[p];break}return r}o(Dh,"findPageV4");function B1(e,t){let n,i=e.properties[te.PropertyName.table];return t.templateType===te.TemplateType.AnalyticalListPageV4?(n=te.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${U}${te.DefinitionName.ALPTableView}`,delete e.definitions[te.DefinitionName.Table],delete e.definitions[te.DefinitionName.LRChartView],delete e.definitions[te.DefinitionName.LRTableView],delete e.definitions[te.DefinitionName.MultiTableModeV4]):t.templateType===te.TemplateType.ListReportObjectPageV4&&(n=te.DefinitionName.Table,delete i.anyOf,i.$ref=`${U}${te.DefinitionName.Table}`,e.definitions[n].properties[te.PropertyName.annotationPath][te.SchemaTag.hidden]=!0,delete e.definitions[te.DefinitionName.ALPTableView],e.properties[te.PropertyName.defaultPath][te.SchemaTag.hidden]=!0),n}o(B1,"alignSchemaWithTemplateType");function Ea(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var g,m,v,A,E,O,F,j,G,B;let s=e.definitions[r];if(!s)return;let l=Yu(s),u;a?i.indexOf(te.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===te.DefinitionName.CustomFormActionOP?u=`@${Uo.UIAnnotationTerms.FieldGroup}`:u=`@${Uo.UIAnnotationTerms.LineItem}`;let p;if(r.includes(te.DefinitionName.ObjectPageCustomSectionActions)?p=(O=(E=(A=(v=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:A.sections)==null?void 0:E[u])==null?void 0:O.actions:p=(B=(G=(j=(F=t.options)==null?void 0:F.settings)==null?void 0:j.controlConfiguration)==null?void 0:G[u])==null?void 0:B.actions,p&&(l=Ta(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][te.SchemaTag.propertyIndex]=Z;let ae={};l.forEach(([Z,re])=>ae[Z]=re),e.definitions[r].properties=ae}}o(Ea,"addCustomActionDefinition");function _h(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,v,A,E,O,F;let a=e.definitions[r];if(!a)return;let s=Yu(a),l;[te.DefinitionName.CustomHeaderAction,te.DefinitionName.CustomHeaderActionOP].includes(i)?l=(v=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:v.actions:l=(F=(O=(E=(A=t.options)==null?void 0:A.settings)==null?void 0:E.content)==null?void 0:O.footer)==null?void 0:F.actions,l&&(s=Ta(l,s,i,"press",n));let u={};if(s){for(let j=0;j<s.length;j++)s[j][1][te.SchemaTag.propertyIndex]=j;s.forEach(([j,G])=>u[j]=G)}e.definitions[r].properties=u}o(_h,"addHeaderFooterCustomActionDefinition");function xc(e,t,n){let i=Gg(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){se(n,{severity:Di.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Gg(i,[t]);if(!r){se(n,{severity:Di.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(xc,"getManifestPage");function Ic(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,U1.join)(...p,g),v=e.find(A=>A.dataSourceUri.endsWith(m));if(v){let A=(s=t.options)==null?void 0:s.settings;return{file:v,relativeFilePath:m,connection:{contextPath:A==null?void 0:A.contextPath,entitySet:A==null?void 0:A.entitySet}}}}}o(Ic,"getPageCustomExtensionFile");function $o(e,t,n,i){let r=xc(n,t,i),a=Gg(r,["options","settings","viewName"]);return r&&typeof a=="string"?Ic(e,r,n,"view",a):void 0}o($o,"getPageCustomViewFile");function H1(e,t,n,i,r,a,s){var g,m,v,A,E,O,F,j,G,B,ae,Z;let l=Yu(t),u=new Map;if(l=l.map(re=>{let Se=ym(e,re[1],re[0],{keyProperties:[te.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Se.const,re[0]),[Se.const,re[1]]}),a){let re=(E=(A=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:A.sections)==null?void 0:E[a];re&&"subSections"in re&&(l=Ta(re.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let re=(j=(F=(O=n.options)==null?void 0:O.settings)==null?void 0:F.content)==null?void 0:j.header;re&&"facets"in re&&(l=Ta(re.facets,l,i,"template",s,r))}else{let re=(Z=(ae=(B=(G=n.options)==null?void 0:G.settings)==null?void 0:B.content)==null?void 0:ae.body)==null?void 0:Z.sections;re&&(l=Ta(re,l,i,"template",s,r))}for(let re=0;re<l.length;re++)l[re][1][te.SchemaTag.propertyIndex]=re;let p={};l.forEach(([re,Se])=>{re=u.get(re)||re,p[re]=Se}),t.properties=p}o(H1,"addCustomSectionDefinition");function G1(e,t,n){var l,u,p;let i=Yu(t),r=new Map;i=i.map(g=>{let m=ym(e,g[1],g[0],{keyProperties:[te.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${Uo.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=Ta(a.filterFields,i,te.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][te.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(G1,"addCustomFilterFieldDefinition");var _=ie(le()),Oc=require("@sap-ux/vocabularies-types/vocabularies/UI");var zX=["header","filterBar","chart","table"],UA="@UI.LineItem";function $A(e,t,n,i,r){i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=pr(e.fullyQualifiedName,Oc.UIAnnotationTerms.SelectionFields,r));let a=0;return n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+dt(s.value);s.type==="PropertyPath"&&(l=kg(s,e)),i.properties[u]={$ref:U+u},i.properties[u][_.SchemaTag.propertyIndex]=a;let p=io(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($A,"addSelectionFields");function YX(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Oc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(YX,"getVisualFilters");function JX(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(JX,"getPropertiesIndex");function ZX(e,t,n,i){var s,l,u,p,g,m;let r=JX(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let v in n){let A=n[v];if(!A.template){let E=a.properties[v]={$ref:vi(_.DefinitionName.VisualFilter,v)},O=r.indexOf(v);O!==-1&&(E[_.SchemaTag.propertyIndex]=O);let F=Et(_.DefinitionName.VisualFilter,v,t);(s=A.visualFilter)!=null&&s.valueList&&(F[_.SchemaTag.annotationPath]=`${v}/@${A.visualFilter.valueList}`);let j=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(G=>G.name===v))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();F.description=j||v,F[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}o(ZX,"addVisualFilters");function e7(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},G1(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&Qa(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(e7,"applyCustomFilterFields");function t7(e,t,n,i){var l,u;let r=YX(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={},ZX(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=$A(e,t,a,s),e7(t,s,n)}o(t7,"addFilterBar");function W1(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=dt(`${_.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=yi(u,r),m=u.$Type.split(`${_.UIVOCABULARY}.`)[1],v=a.properties[`${m}::${u.Action}`]={$ref:U+p,description:g};v[_.SchemaTag.propertyIndex]=l,v[_.SchemaTag.annotationType]=u.$Type,v[_.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(W1,"defineActions");function K1(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"?gl(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(K1,"findTheRightVisualization");function n7(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(n7,"analyzeChartAnnotation");function i7(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=K1((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(se(r,{severity:_.LogSeverity.Error,message:q.t("NOVISUALIZATIONS")}),s=UA,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(i7,"analyzeSPVforView");function Ul(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}=K1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return i7(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=UA,m=`/${s}/@${Oc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=UA;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:v}=n7(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:v}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(Ul,"analyzeViewAnnotation");function r7(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=`${U}${_.DefinitionName.ALPChart}`,t){let a=t.split(_.UIVOCABULARYDOT)[1],s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(r7,"addALPChartView");function o7(e,t,n,i,r,a){var j,G,B,ae,Z,re,Se,D;let s=(j=n.entityType)==null?void 0:j.annotations.UI,l=(ae=(B=(G=t==null?void 0:t[0])==null?void 0:G.primary)==null?void 0:B[0])==null?void 0:ae[_.SchemaTag.annotationPath],{targetAnnotation:u}=Ul(l,s,n.serviceAVT,"primary",void 0,n.logger);r7(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=U+p,W1(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=Ul((Se=(re=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:re[0])==null?void 0:Se[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),v=e.definitions[a];g||i?(v.properties.toolBar.$ref=`${U}${_.DefinitionName.ToolBarLR}`,v.properties.columns={$ref:U+_.DefinitionName.LineItems},v.properties.annotationPath[_.SchemaTag.hidden]=!0):v.properties={};let A=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(A)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],A.additionalProperties=!1,A.description="Table (key: secondary)",A.title="Table",g?(delete A.properties,A.$ref=`${U}${_.DefinitionName.ALPTable}`):i||(A.properties={}),A[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let E,O;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(E=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(E=O=i.split(_.UIVOCABULARYDOT)[1]),E){let ut={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[E],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};Pc(ut,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let yt=s[O].fullyQualifiedName.split("@");A[_.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,A[_.SchemaTag.key]="secondary",A[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}Sc(e,r,n.logger);let F=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;Ea(e,r,n.logger,void 0,F),uo(e,F,_.DefinitionName.CustomActionPosition)}o(o7,"addALPViews");function a7(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=`${U}${i}`;let r=`${_.DefinitionName.Actions}<${e.viewKey}>`;return W1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${U}${r}`,n}o(a7,"addViewChartDefinitions");function s7(e,t,n,i,r,a){let s=a7(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:`${U}${s}`,description:a||l,title:l}}o(s7,"addViewChart");function c7(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=Et(_.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),Xa(l.properties.toolBar,_.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${U}${a}`,description:e.title||u,title:u},Xa(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};Pc(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(c7,"addViewLineItems");function l7(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(l7,"addTagsToView");function f7(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(f7,"getTargetEntityType");function u7(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Oc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=Et(_.DefinitionName.ViewCustomColumn,r,e.appSchema);Xa(l.properties.position,_.DefinitionName.ViewPosition,r),Et(_.DefinitionName.ViewPosition,r,e.appSchema),Sc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Cc(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),Et(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${U}${g}`,uo(e.appSchema,u,g)}o(u7,"addViewCustomExtensions");function p7(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)c7(n,t,e,n.targetAnnotation,i),u7(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)s7(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${U}${_.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${U}${_.DefinitionName.LRTableView}`}}}o(p7,"addLRViewParts");function d7(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=f7(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:v,targetAnnotation:A,namespace:E,title:O}=Ul(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(G=>G.targetTypeName===E))==null?void 0:l.name);let F=dt(u[_.SchemaTag.key]),j={viewKey:F,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};p7(v,s,j,n,i,m,u),l7(s,F,E,u)}}o(d7,"addLRViews");function g7(e,t,n,i,r,a){var g,m,v,A,E,O,F,j,G,B,ae,Z,re;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=Ul(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Se=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${dt(Se)}`,ut=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ut[_.SchemaTag.isViewNode],Xa(ut.properties.toolBar,_.DefinitionName.ToolBar,D),ut[_.SchemaTag.annotationPath]=u,ut.properties.columns={},Xa(ut.properties.columns,D),delete s.properties,Xa(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let yt=(m=t.entityType)==null?void 0:m.annotations.UI[Se];yt||se(t.logger,{severity:_.LogSeverity.Error,message:q.t("NOTARGET",{target:Se})});let Ue={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};Pc(Ue);let an=(v=Se.split("#"))==null?void 0:v[1],Gn=an?`@${Oc.UIAnnotationTerms.LineItem}#${an}`:`@${Oc.UIAnnotationTerms.LineItem}`;Sc(e,i,t.logger,void 0,D,Gn),Cc(e,D,i,void 0,Gn);let en=`${_.DefinitionName.Actions}<${D}>`,Lt=gm(e,D,_.DefinitionName.CustomTableAction);Ea(e,i,t.logger,hn(Lt),en,Gn),uo(e,en,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${U}${_.DefinitionName.ToolBarLR}`,Xa(s.properties.columns,_.DefinitionName.LineItems);let Se=(O=(E=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:E[r])==null?void 0:O.LineItem;!Se&&!((G=(j=(F=i.options)==null?void 0:F.settings)==null?void 0:j.views)!=null&&G.paths)&&se(t.logger,{severity:_.LogSeverity.Error,message:q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Se,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};Pc(D),Sc(e,i,t.logger),Cc(e,_.DefinitionName.LineItems,i),Se&&!((Z=(ae=(B=i.options)==null?void 0:B.settings)==null?void 0:ae.views)!=null&&Z.paths)&&(s[_.SchemaTag.annotationPath]=pr((re=t.entityType)==null?void 0:re.fullyQualifiedName,Se.term,Se.qualifier));let ut=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;Ea(e,i,t.logger,void 0,ut),uo(e,ut,_.DefinitionName.CustomActionPosition)}}o(g7,"adaptTableDefinition");function m7(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(m7,"getDefaultAnnotationPath");function h7(e,t,n,i){var u,p,g,m,v;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=m7(t,n.entityType,n.templateType),l=B1(e,n);t7(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(g7(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],d7(e,r,n,t,l)):(v=(m=t.options)==null?void 0:m.settings)!=null&&v.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[_.PropertyName.chart][_.SchemaTag.hidden]=!0):n.templateType===_.TemplateType.AnalyticalListPageV4&&(o7(e,r,n,s,t,l),Cc(e,_.DefinitionName.LineItems,t))}o(h7,"addTableAndViews");function y7(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",_h(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;Et(l,l,e,!1),s.properties.position.$ref=`${U}${l}`,uo(e,i,l)}o(y7,"addHeaderActions");function Ju(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,Ka(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return se(e.logger,{severity:_.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=Dh(l,n,e.entitySet,i);if(!u)return r;y7(r,u,e.logger),h7(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Do(r,zX),r}o(Ju,"generateListReportSchemaV4");var Er=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=ie(le());var kV=ie(Qs()),jV=ie(MV()),UV=ie(PS());var $V=ie(le()),BV=ie(le());function H6(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(H6,"findElementByXMLPath");function HV(e,t){return e[t]?!1:(e[t]={},!0)}o(HV,"ensureObjectExists");function G6(e,t){let n={},i=hn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(G6,"getPropertiesFromRef");function W6(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=HV(l,i),m=l[i];return Vc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(W6,"traverseDefaultAggregation");function K6(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(K6,"isDefaultAggregationAppliable");function Vc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=G6(s,n.$ref));for(let v in u){let A=u[v],E=typeof A=="object";if(E&&(p==null?void 0:p.defaultAggregation)===v&&K6(u,p)&&(l=W6(e,t,p)||l,E=!1),!!E)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let O=A.metadata.path,F=O.slice(r.length),j=H6(i,F);l=HV(a,v)||l;let G=a[v];l=Vc({fullSchema:e.fullSchema,schema:A,element:j,contextPath:O,config:G,parent:e},t)||l}else l=t(e,A,a,v)||l}return l}o(Vc,"traverseSchema");function rf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,UV.parse)(e.fileContent),s=(0,jV.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,kV.xml2js)(e.fileContent)}catch(r){se(n,{severity:BV.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Hg(r)}),location:{path:e.dataSourceUri}})}return i}o(rf,"parseXML");function of(e){return`${$V.DefinitionName.CustomExtensionFragment}<${e}>`}o(of,"getCustomExtensionFragmentDefinitionKey");function xy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(xy,"getRootElement");var VS=ie(le()),wS=ie(le());var Cp=ie(le());function Es(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(Es,"getAttribute");function GV(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(GV,"getNodeByName");function X6(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(X6,"resolveMetaPath");function LS(e){var E;let{node:t,serviceAVT:n,connectionContext:i}=e,r=Es(t,"contextPath")||i.contextPath,a=Es(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=X6(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((E=p==null?void 0:p.target)==null?void 0:E._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,v=a.split("#");v.length&&(m=v[1]);let A;if(a){let O=a.split(".");O.length&&(A=O[O.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:A}:void 0}o(LS,"getEntityTypeResolution");function WV(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(WV,"applyAnnotationPath");function Q6(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=Ul(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=mE(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(Q6,"getTableLineItemAnnotationData");var KV={"sap.fe.macros.Chart":o(e=>{let t=LS(e);WV(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=LS(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(Cp.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);$A(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=LS(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(Cp.UIVOCABULARY,n);if(WV(t,r),t.annotationPath){let u=Q6(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:Cp.DefinitionName.LineItems};jA(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var XV=ie(le());var q6=new Map([["filterFields","SelectionField::"]]),z6=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),xp={anchor:"anchor",placement:"placement",key:"key"};function Y6(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[hn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return xp.anchor in r&&xp.placement in r}return!1}o(Y6,"isCustomExtensionSchema");function QV(e){let t=q6.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=z6.get(e),t&&(n.prefix=t)),n}o(QV,"getAnnotationPrefix");function J6(e,t,n,i){let r=t.properties[n],a=QV(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=Es(l,xp.key)||n,p=Es(l,xp.anchor),g=Es(l,xp.placement)||XV.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,v={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:v}}o(J6,"getExtensionData");function Z6(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}=J6(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}Ta(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(Z6,"updatePropertyIndices");function eq(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=Es(e.subElements[s],"key")||r}return r}o(eq,"getCorrectedAnchorEnumKey");function tq(e,t,n,i){var a,s;let r=QV(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;Qa(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=eq(e,m.const,r,t.properties[m.const]))}}o(tq,"applyEnumsForAnchors");function qV(e,t,n,i){Y6(t,n)&&(i=i||e.name,Z6(e,t,i),tq(e,t,n,i))}o(qV,"handleExtensions");var li=[];for(let e=0;e<256;++e)li.push((e+256).toString(16).slice(1));function zV(e,t=0){return(li[e[t+0]]+li[e[t+1]]+li[e[t+2]]+li[e[t+3]]+"-"+li[e[t+4]]+li[e[t+5]]+"-"+li[e[t+6]]+li[e[t+7]]+"-"+li[e[t+8]]+li[e[t+9]]+"-"+li[e[t+10]]+li[e[t+11]]+li[e[t+12]]+li[e[t+13]]+li[e[t+14]]+li[e[t+15]]).toLowerCase()}o(zV,"unsafeStringify");var YV=require("crypto");var Oy=new Uint8Array(256),Iy=Oy.length;function RS(){return Iy>Oy.length-16&&((0,YV.randomFillSync)(Oy),Iy=0),Oy.slice(Iy,Iy+=16)}o(RS,"rng");var JV=require("crypto"),FS={randomUUID:JV.randomUUID};function nq(e,t,n){var r;if(FS.randomUUID&&!t&&!e)return FS.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??RS();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 zV(i)}o(nq,"v4");var DS=nq;var _S="sap.fe.macros",iq=["id","key","title","text","label","header"];function ZV(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(ZV,"getElementName");function rq(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(rq,"isElementWithNamespace");function oq(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(oq,"getDependencies");function aq(e,t){let n="",i=e.attributes||[];for(let r of iq){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(aq,"getViewNodeDescription");function sq(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(sq,"findAvailableName");function ew(e,t){if(e.properties={},e.$ref){let n=hn(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(ew,"prepareSchemaProperties");function cq(e,t,n){t.properties||ew(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(cq,"handleAttributes");function lq(e){e.type===wS.MacrosPropertyType.Control&&(e.internalId=DS())}o(lq,"applyIdForMacros");function fq(e,t,n){var i,r;try{(r=(i=KV)[e])==null||r.call(i,t)}catch{se(n,{severity:VS.LogSeverity.Error,message:q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(fq,"callAnnotationHandler");function uq(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===wS.MacrosPropertyType.Control&&(e.controlName=n)}o(uq,"updateMetadataByReference");function pq(e,t,n,i){var v,A,E,O,F;let r=n.schema;t.properties||ew(t,r);let a=t.properties[i],s=(v=a==null?void 0:a.metadata)==null?void 0:v.type,l=(A=a==null?void 0:a.metadata)==null?void 0:A.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(E=a==null?void 0:a.metadata)==null?void 0:E.path)!=null&&O.length?sq(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(hn(a.$ref)):g=[`${_S}.${i}`,`${_S}.table.${i}`,`${_S}.filterBar.${i}`];let m=!1;for(let j of g){let G=(F=r.definitions)==null?void 0:F[j];if(typeof G!="object")continue;uq(u,G,j);let B=aq(e,i),ae={$ref:KF(j),description:B,propertyIndex:n.index,metadata:u};cq(e,ae,r),t.properties[p]=ae,m=!0,fq(j,{...n,node:e,schema:ae,rootSchema:n.schema},n.logger);break}if(lq(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let j={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=j}return p}o(pq,"addControlToSchema");function tw(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split(U)[1];a&&t.indexOf(a)===-1&&t.push(a)}tw(r,t)}}o(tw,"populateUsedDefinitionKeys");function dq(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(dq,"isElementAddableToSchema");function gq(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!GV(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(gq,"getDefaultAggregation");function mq(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,nw(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:ZV(s),index:a}]},i)}}o(mq,"handleSubElementsOfXMLNode");function nw(e,t,n,i){var g,m,v;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[hn(t.$ref)]:t;if(rq(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(v=t.metadata)==null?void 0:v.defaultAggregation;A&&dq(e,t.properties[A])&&(t=t.properties[A]);let E=e.name.split(":"),O=pq(e,t,n,E[E.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),tw(t,i));let p=gq(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),mq(l,t,n,i),r.push({node:e,schema:t});for(let A of r)qV(A.node,A.schema,n.schema,A.name)}o(nw,"handleXMLNode");function hq(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(hq,"getMacrosPrefixes");function wc(e,t,n,i){let r=rf(t.file,!0,i),a=[];if(!r)return;nn();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){se(i,{severity:VS.LogSeverity.Error,message:q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=oq(l),p=hq(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let v=l.subElements[m],A=!g[v.name];g[v.name]=!0,nw(v,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:ZV(v),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(wc,"generateMacrosSchemaDefinition");function iw(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&&iw(i.subSections,t)}}o(iw,"populateTemplates");function rw(e,t,n,i){var s,l,u;let r=xc(n.manifest,i),a=[];iw(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=of(p);e.definitions[m]=g;let v=Ic(n.fragments,r,n.manifest,"fragment",p);if(v){g.metadata.filePath=v.relativeFilePath;let{properties:A={},definitions:E={}}=wc(t,v,n.serviceAVT,n.logger)||{};g.properties=A;for(let O in E)e.definitions[O]||(e.definitions[O]=E[O])}}return t}o(rw,"resolveFragments");var yq=["header","layout","sections","footer"],vq=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],MS="Custom Action";function kS(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=fm(t.item,e),p=pa(t.item),g=t.item.fullyQualifiedName.replace(`@${Er.UIAnnotationTerms.Identification}`,`/@${Er.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${dt(p)}>`,v=i.definitions[m]={type:"object",$ref:`${U}${N.DefinitionName.ObjectPageHeaderAction}`,description:yi(t.item,r)};v[N.SchemaTag.isViewNode]=!0,v[N.SchemaTag.dataType]=io(t.item),v[N.SchemaTag.propertyIndex]=s,v[N.SchemaTag.keys]=[],t.item[N.SchemaKeyName.semanticObject]&&v[N.SchemaTag.keys].push({name:N.SchemaKeyName.semanticObject,value:t.item[N.SchemaKeyName.semanticObject]}),v[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:l}),u&&(i.definitions[m][N.SchemaTag.target]=u),v[N.SchemaTag.actionType]=n,v[N.SchemaTag.annotationPath]=`/${g}`,a.properties[p]={$ref:`${U}${m}`},a.properties[p][N.SchemaTag.propertyIndex]=s}o(kS,"addSingleHeaderActionV4");function ow(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[N.SchemaTag.isViewNode]=!0,s[N.SchemaTag.propertyIndex]=i,s[N.SchemaTag.keys]=[],s[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:e}),s[N.SchemaTag.actionType]=N.ActionType.Standard,n.properties[r]={$ref:`${U}${a}`},n.properties[r][N.SchemaTag.propertyIndex]=i,s}o(ow,"addStandardHeaderAction");function aw(e,t,n,i,r,a){let s=pa(e.item),l=yi(e.item,n),u=dt(`${N.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Er.UIAnnotationTerms.Identification}`,`/@${Er.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${U}${N.DefinitionName.FooterActionV4}`,description:l};g[N.SchemaTag.isViewNode]=!0,g[N.SchemaTag.actionType]=t,g[N.SchemaTag.propertyIndex]=a,g[N.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${U}${u}`}}o(aw,"addSingleFooterAction");function Tq(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Er.UIAnnotationTypes.DataFieldForAction||i.$Type===Er.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(vq.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(Tq,"groupByCriticality");function Eq(e,t,n,i,r){for(let a=0;a<e.length;a++)kS(t,e[a],N.ActionType.Criticality,n,i,r,a)}o(Eq,"addCriticalActions");function bq(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&&(kS(t,e[s],N.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(bq,"addCopyAction");function Aq(e,t,n,i,r,a){for(let s of e)kS(t,s,N.ActionType.Annotation,n,i,r,a),a++}o(Aq,"addUncriticalActions");function Sq(e){let t="RelatedApps",n=e.properties[t]={$ref:`${U}${t}`,description:"Related Apps"};n[N.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[N.SchemaTag.artifactType]=N.ArtifactType.Manifest,n[N.SchemaTag.actionType]=N.ActionType.Standard,n[N.SchemaTag.isViewNode]=!0,n[N.SchemaTag.keys]=[{name:N.SchemaKeyName.action,value:t}]}o(Sq,"addRelatedAppsButton");function sw(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[N.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`:e[N.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`}o(sw,"setAnnotationPathFromEntitySetOrEntityType");function Pq(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?Tq(n):{};if(Eq(s,r.serviceAVT,t,e,i),r.entitySet){let p=A0(r.entitySet),g=S0(r.entitySet);if(im(r.entitySet)&&g){let m=ow("Edit",t,i,s.length);sw(m,r.entitySet,e,"UpdateHidden")}if(p){let m=ow("Delete",t,i,s.length+1);sw(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;bq(l,r.serviceAVT,t,e,i,u),Aq(l,r.serviceAVT,t,e,i,u),lw(t,a,N.DefinitionName.CustomHeaderActionOP,r.logger),Sq(i)}o(Pq,"addHeaderActionCallBackV4");function Cq(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Er.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];aw(l,N.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];aw(l,N.ActionType.Annotation,e,t,n,r.length+s)}}o(Cq,"addFooterActionCallBackV4");function xq(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Er.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomColumnOP}<${n}>`:N.DefinitionName.CustomColumnOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${N.DefinitionName.CustomColumnOP}<${n}>`;Sc(e,t,r,u,n,i);let p=a?n:N.DefinitionName.PositionOP;Et(N.DefinitionName.PositionOP,p,e,a);let g=a?`${N.DefinitionName.PositionOP}<${n}>`:N.DefinitionName.PositionOP;l.properties.position.$ref=`${U}${g}`,Cc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&kA(m,l)}o(xq,"addCustomColumnsOP");function Iq(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Er.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomTableActionOP}<${n}>`:N.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description=MS;let u=`${N.DefinitionName.CustomTableActionOP}<${n}>`,p=`${N.DefinitionName.Actions}<${dt(n)}>`;Ea(e,t,r,u,p,i);let g=a?n:N.DefinitionName.CustomActionPositionOP;Et(N.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${N.DefinitionName.CustomActionPositionOP}<${n}>`:N.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${U}${m}`,uo(e,p,m)}o(Iq,"addTableCustomActionsOP");function lw(e,t,n,i){let r=e.definitions[n];r[N.SchemaTag.isViewNode]=!0,r.description=MS;let a=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.ObjectPageHeaderActions:N.DefinitionName.FooterActions;_h(e,t,i,n,a);let s=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.CustomHeaderActionPositionOP:N.DefinitionName.CustomFooterActionPositionOP;Et(s,s,e,!1),r.properties.position.$ref=`${U}${s}`,uo(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${U}${n}`})}o(lw,"addHeaderFooterCustomActionsOP");function Oq(e,t,n,i,r){let a=`${N.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[N.SchemaTag.isViewNode]=!0,s.description=MS;let l=`${N.DefinitionName.CustomFormActionOP}<${n}>`,u=`${N.DefinitionName.SectionActions}<${dt(n)}>`;Ea(e,t,r,l,u,i),Et(N.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${N.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${U}${p}`,uo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${U}${a}`})}o(Oq,"addFormCustomActionsOP");function Nq(e,t,n,i,r,a,s){let l=nc(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=Et(N.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${U}${l}`},g.properties.toolBar.$ref=vi(N.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=vi(N.DefinitionName.QuickVariantSelectionV4OP,t);let m=Et(N.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=vi(N.DefinitionName.AnnotationPathAsObject,t),Et(N.DefinitionName.AnnotationPathAsObject,t,n),Ka(e.entityType,n,`${N.DefinitionName.AnnotationPathAsObject}<${l}>`);let v={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Pc(v,N.DefinitionName.ObjectPageTableColumn,N.DefinitionName.CustomColumnOP,N.DefinitionName.CustomTableActionOP),xq(n,a,l,t,s),Iq(n,a,l,t,s),g}o(Nq,"handleLineItem");function fw(e,t,n,i,r,a,s){s&&Ny(s,t,N.DefinitionName.ObjectPageSectionTableV4);let l=Et(N.DefinitionName.ObjectPageSectionTableV4,t,n);fa(e,l,nc(t)),Ga(e,l,nc(t)),l[N.SchemaTag.annotationPath]=e.annotationPath,l[N.SchemaTag.target]=e.namespace,l.properties.table.$ref=vi(N.DefinitionName.ObjectPageTable,t);let u=Nq(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(fw,"handleSectionTable");function Lq(e,t,n,i,r,a,s){let l;a===N.SectionType.Section?l=N.DefinitionName.ObjectPageSectionForm:a===N.SectionType.HeaderSection&&(l=N.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:vi(l,n)};let u=Et(l,n,r);e.ID||(u.properties={}),fa(e,u,n),Ga(e,u,n),u[N.SchemaTag.annotationPath]=e.annotationPath,u[N.SchemaTag.target]=e.namespace,u[N.SchemaTag.isViewNode]=!0;let p=lm(a,e,u,r,N.FioriElementsVersion.v4,n);if(e.base===N.FacetBase.Form){let g=nc(n);Et(N.DefinitionName.CustomFormActionOP,p,r),Oq(r,t,p,g,s)}}o(Lq,"handleFormIdentification");function cw(e,t,n,i,r){n.properties[t]={$ref:`${U}${r}`};let a=Et(N.DefinitionName.CommonHeaderFacetSettings,r,i,!1);dl(e,a,t),a[N.SchemaTag.annotationPath]=e.annotationPath,a[N.SchemaTag.target]=e.namespace,a[N.SchemaTag.dataType]=ic(e==null?void 0:e.target),a[N.SchemaTag.isViewNode]=!0}o(cw,"handleHeaderFacet");function Rq(e,t,n,i){let r=Et(N.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,u=yi(l,i),p=l.$Type.split(N.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:vi(N.DefinitionName.ObjectPageToolBarAction,g),description:u};m[N.SchemaTag.propertyIndex]=a,m[N.SchemaTag.annotationType]=l.$Type;let v=Et(N.DefinitionName.ObjectPageToolBarAction,dt(g),n);v[N.SchemaTag.annotationPath]=hm(l),v[N.SchemaTag.dataType]=io(l),v.properties={},a++})}return r}o(Rq,"handleChartActions");function Fq(e,t,n,i){let r=Et(N.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[N.SchemaTag.annotationPath]=hm(e),r[N.SchemaTag.dataType]=ic(e.target||e),r[N.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=vi(N.DefinitionName.ObjectPageToolBar,t);let a=Et(N.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=vi(N.DefinitionName.ObjectPageToolBarActions,t);let s=Rq(e,t,n,i);return{chart:r,chartActions:s}}o(Fq,"handleChart");function uw(e,t,n,i,r=e.entityType,a=!1,s){let l=a?N.DefinitionName.CommonHeaderFacetSettings:N.DefinitionName.ObjectPageSectionChart,u=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart;i&&Ny(i,t,l);let p=mm(u,t),g=Et(l,p,n,!1);if(dl(e,g,t),a)return delete g.properties.chart,{parentChartRef:g};g[N.SchemaTag.annotationPath]=hm(e),g.properties.chart.$ref=vi(N.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:v}=Fq(e.target||e,t,n,r);return m[N.SchemaTag.target]=s,{parentChartRef:g,chart:m,chartActions:v}}o(uw,"handleSectionChart");function Dq(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${IE(r,n.serviceAVT)}`,l=s.split(N.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(Dq,"getVisualizationKeyAndType");function _q(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(_q,"getTargetFromNavigation");function Vq(e,t,n){let i=e.target[N.FacetBase.PresentationVariant]?e.target[N.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:u}=Dq(!!r,a,n),p=r?a:_q(n,s,u),g=e.target[N.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:u,target:p,namespace:g,navigationPath:s}}o(Vq,"getVisualizationProps");function Ny(e,t,n,i){e.properties[t]={$ref:vi(n,i||t)}}o(Ny,"addPropertyRef");function pw(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(pw,"getSectionPropertyRef");function wq(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:u}=pw(t,r);Ny(i,l,N.DefinitionName.ObjectPageSectionTableV4,u);let{sectionTable:p,table:g}=fw(e,u,n,{target:r.target,entityType:e.entityType},a,s);p[N.SchemaTag.annotationPath]=e.annotationPath,dl(e,p,t),delete p[N.SchemaTag.isViewNode],g[N.SchemaTag.annotationPath]=`/${r.namespace}/${r.key}`,g[N.SchemaTag.target]=r.namespace}o(wq,"addPVLineItemSection");function Mq(e,t,n,i,r,a=!1){let s=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:u}=pw(t,r);Ny(i,l,s,u);let{parentChartRef:p}=uw(r.target,u,n,void 0,e.entityType,a,r.namespace);p[N.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(fa(e,p,t),GF(e,p)):dl(e,p,t)}o(Mq,"addPVChartSection");function kq(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){se(a.logger,{severity:N.LogSeverity.Error,message:q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=Vq(e,t,a),u=r===N.SectionType.HeaderSection;l&&(l.type.startsWith(N.Visualization.Chart)?Mq(e,t,n,i,l,u):l.type.startsWith(N.Visualization.LineItem)&&wq(e,t,n,i,l,a,s))}o(kq,"handleSectionPresentationVariant");function jq(e){let t=e.facets||{};for(let n in t)if(t[n].base===N.FacetBase.CollectionFacet)return!0;return!1}o(jq,"containsCollectionFacet");function Uq(e,t,n){var a;let i=`${N.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[N.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};zs(n,N.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(Uq,"createCustomSubSectionReference");function $q(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=Et(n,p,e),m=Et(N.DefinitionName.ObjectPageCustomSectionActions,p,e),v=Et(N.DefinitionName.CustomSectionActionOP,p,e),A=`${N.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${U}${A}`};let E=`${N.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${U}${E}`},Et(N.DefinitionName.CustomSectionActionPositionOP,p,e);let O=`${N.DefinitionName.CustomSectionActionPositionOP}<${p}>`;v.properties.position.$ref=`${U}${O}`,v[N.SchemaTag.isViewNode]=!0,Ea(e,t,i,E,A,p),uo(e,A,O)}}o($q,"applyCustomActionsToCustomSections");function jS(e,t,n,i,r,a,s){var m,v,A,E,O;let l=!1,u;a&&s?(l=!jq(a),u=Uq(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${U}${u}`},H1(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&Qa(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[N.SchemaKeyName.id,N.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(N.DefinitionName.ObjectPageCustomSectionFragment)){let F=t.definitions[N.DefinitionName.ObjectPageCustomSectionActions];F.properties={},$q(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(N.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let F=(O=(E=(A=(v=(m=i.options)==null?void 0:m.settings)==null?void 0:v.content)==null?void 0:A.body)==null?void 0:E.sections)==null?void 0:O[s],j=F&&"subSections"in F?F.subSections:{};for(let G=g.oneOf.length-1;G>=0;G--){let B=g.oneOf[G];j[B.const]||(B.hidden=!0)}}}o(jS,"applyCustomSections");function Bq(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=Ro(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[N.SchemaTag.annotationPath]=e.annotationPath,g[N.SchemaTag.target]=e.namespace,g[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}],g[N.SchemaTag.isViewNode]=!0;let m=l+1;for(let v in e.facets)US(a,e.facets,v,g,n,r,s,m);u&&jS(g,n,a,s,N.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(Bq,"handleCollection");function US(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${nc(n)}>`;switch(u.base){case N.FacetBase.PresentationVariant:case N.FacetBase.SelectionPresentationVariant:{kq(u,n,r,i,a,e,s);break}case N.FacetBase.CollectionFacet:{Bq(u,n,r,i,a,e,s,l);break}case N.FacetBase.LineItem:{if(a===N.SectionType.Section){let g=t[n];fw(u,n,r,g,e,s,i)}break}case N.FacetBase.Form:case N.FacetBase.Identification:{Lq(u,s,n,i,r,a,e.logger);break}case N.FacetBase.DataPoint:{cw(u,n,i,r,p);break}case N.FacetBase.Chart:{a===N.SectionType.HeaderSection?cw(u,n,i,r,p):a===N.SectionType.Section&&uw(u,n,r,i);break}case N.FacetBase.Address:case N.FacetBase.Contact:{au(u,n,i,r,a);break}default:i.properties[n]=Ro(r,u,n)}}o(US,"addSection");function Hq(e,t,n){let i=Ug(e.entityType,e.serviceAVT,N.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[N.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[N.DefinitionName.Sections];for(let a in i)US(e,i,a,r,t,N.SectionType.Section,n);jS(r,t,e,n,N.DefinitionName.ObjectPageCustomSectionFragment)}o(Hq,"addSections");function Gq(e,t,n,i){let r=jg(n,e.serviceAVT,N.FioriElementsVersion.v4,e.logger),a=t.definitions[N.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)US(e,r,s,a,t,N.SectionType.HeaderSection,i);jS(a,t,e,i,N.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionAddress]}}o(Gq,"addHeaderSections");function Wq(e,t,n){let i=e.entityType;dm(t,i),pm(t,i,e,Pq,n),i&&(t.definitions[N.DefinitionName.HeaderSections][N.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Er.UIAnnotationTerms.HeaderFacets}`),Gq(e,t,i,n)}o(Wq,"addHeader");function Ip(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${U}${N.DefinitionName.Sections}`},!e.manifest[N.ManifestSection.ui5].routing||!e.manifest[N.ManifestSection.ui5].routing.targets)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:N.MANIFESTPATH}}),r;let a=r.definitions[N.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:N.DefinitionName.Sections};if(a[N.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[N.ManifestSection.ui5].routing.targets;if(!s)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}}),r;let l=Dh(s,N.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(Wq(e,r,l),a[N.SchemaTag.isViewNode]=!0,e.entityType&&(a[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Er.UIAnnotationTerms.Facets}`),zs(e.featureToggles,N.Features.BuildingBlocks)&&i){r.definitions[N.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{rw(r,i,e,l.id)}catch(u){se(e.logger,{severity:N.LogSeverity.Error,message:u})}}Hq(e,r,l),um(r,e,N.FioriElementsVersion.v4,Cq),lw(r,l,N.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[N.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[N.DefinitionName.GenericColumnsOP],delete r.definitions[N.DefinitionName.GenericSections],delete r.definitions[N.DefinitionName.GenericSubSections],delete r.definitions[N.DefinitionName.ObjectPageChart],delete r.definitions[N.DefinitionName.ObjectPageSectionAddress],delete r.definitions[N.DefinitionName.ObjectPageSectionChart],delete r.definitions[N.DefinitionName.ObjectPageSectionContact],delete r.definitions[N.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[N.DefinitionName.ObjectPageSectionForm],delete r.definitions[N.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[N.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[N.DefinitionName.ObjectPageSubSections],delete r.definitions[N.DefinitionName.ObjectPageTable],delete r.definitions[N.DefinitionName.ObjectPageToolBar],delete r.definitions[N.DefinitionName.ObjectPageToolBarAction],delete r.definitions[N.DefinitionName.ObjectPageToolBarActions],delete r.definitions[N.DefinitionName.QuickVariantSelectionV4OP],Do(r,yq),r}o(Ip,"generateObjectPageSchemaV4");function $S(e,t){return JSON.parse(JSON.stringify(t))}o($S,"generateFreestyleSchemaV4");var Wr=ie(le());function BS(e,t,n,i,r,a,s,l,u){let p=No(n,r),{entitySet:g,entityType:m}=Mc(p,s,t,r),v={templateType:Wr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Wr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Ip(v,e,s,l)}o(BS,"generateObjectPageInterfaceV4");function Ly(e,t,n,i,r,a,s){nn();let l=No(i,r),{entitySet:u,entityType:p}=Mc(l,s,n,r),g={templateType:e,fioriElementsVersion:Wr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Wr.TemplateType.ListReportObjectPageV4?Wr.v4.FE_TEMPLATE_V4_LIST_REPORT:Wr.v4.FE_TEMPLATE_V4_ALP;return Ju(g,t,m,s)}o(Ly,"generateListReportInterfaceV4");function HS(e,t,n,i,r,a){let s=No(n,a),l={templateType:e,fioriElementsVersion:Wr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return $S(l,t)}o(HS,"generateFreestyleInterfaceV4");function GS(e,t,n,i,r,a,s){let l={};if(zs(a,Wr.Features.BuildingBlocks)){let u=No(r,s),p=$o(i||[],t,n,s);l=p!=null&&p.file.fileContent?wc(e,p,u,s):{}}return l}o(GS,"generateFPMCustomPageInterfaceV4");var jc=require("@sap-ux/vocabularies-types/vocabularies/UI"),yw=ie(le());var kc=ie(le());var mw=new Map([[kc.PageTypeV2.ListReport,kc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[kc.PageTypeV2.ObjectPage,kc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),dw=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"),gw=o(e=>{var t;for(let[n,i]of mw)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"),Kq=o((e,t)=>{let n="";for(let[r,a]of mw)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),hw={manifest:{path:o(()=>`sap.ui5/extends/extensions/${kc.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=gw(n);i&&(t[i]={},dw(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=Kq(s,i);e[l]||(e[l]={}),dw(r[s],e[l])}for(let s in e){let l=gw(s);l&&!r[l]&&delete e[s]}},"export")}};var ft=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Dy=o(e=>ft(e)+"/views/paths","getSettingsPathForLRViewsPaths"),_y=o(e=>ft(e)+"/content/header","getSettingsPathForHeaderOP"),Xq=o(e=>ft(e)+"/content/footer","getSettingsPathForFooterOP"),Xr=o(e=>ft(e)+"/controlConfiguration","getControlConfigurationPath"),Vy=o((e,t,n)=>Xr(e)+`/@${jc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),wy=o(e=>Xr(e)+`/@${jc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),bs=o((e,t,n,i)=>Xr(e)+`/@${jc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),WS=o((e,t,n,i)=>wy(e)+`/filterFields/${i}`,"getFilterFieldPath"),br=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Xr(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),Ji=o((e,t,n,i,r)=>r?br(e,t,n,i,r):Xr(e)+`/@${jc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),My=o((e,t,n,i,r)=>Ji(e,t,n,i,r)+yw.QUICKVARPATH,"getQuickVariantPath"),Zi=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Xr(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),ki=o((e,t,n,i,r)=>r?Zi(e,t,n,i,r):Xr(e)+`/@${jc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),Qr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Xr(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Ar=o((e,t,n,i,r)=>r?Qr(e,t,n,i,r):Xr(e)+`/@${jc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),er=o((e,t,n,i)=>Xr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=o((e,t,n,i)=>Xr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),fi=o((e,t,n,i)=>_y(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),ky=o((e,t,n,i)=>ft(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),ho=o((e,t,n,i)=>Xq(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Fn=o((e,t,n)=>Xr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),sf=o((e,t,n,i)=>{let r=ft(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),As=o((e,t,n,i)=>ft(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Sr=o((e,t,n,i)=>{let r=ft(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),cf=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=ft(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),Fy=class Fy{};o(Fy,"ApplicationV4"),h([jt("settings")],Fy.prototype,"settings",2);var Ry=Fy,Kr=class Kr{};o(Kr,"AppSettings"),h([T({manifest:{path:o(()=>"sap.app","path")}})],Kr.prototype,"title",2),h([T({manifest:{path:o(()=>"sap.app","path")}})],Kr.prototype,"description",2),h([T({manifest:{path:o(()=>"sap.fiori","path")}})],Kr.prototype,"cloudDevAdaptationStatus",2),h([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),C({since:"1.78.0"})],Kr.prototype,"flexibleColumnLayout",2),h([T({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"})],Kr.prototype,"flexEnabled",2),h([T({manifest:{path:o(()=>"sap.ui5","path")}})],Kr.prototype,"dependencies",2),h([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Kr.prototype,"viewType",2),h([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Kr.prototype,"path",2),h([T(hw)],Kr.prototype,"controllerExtensions",2);var af=Kr;var he=ie(le());function At(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=zn(e,g);if(m!=null&&m.manifest){let v=m.manifest.path([i],t,p,...r);l=Lo(t,v,a,p,!0),l&&Object.keys(l).length>0&&(ml(m,l,g,e,a,r),qg(u,l,v,s))}}}o(At,"importSettingsOfObject");var DC={};Ks(DC,{ALPChart:()=>qP,ALPTable:()=>yf,ActionAfterExecutionConfiguration:()=>mC,ActionAfterExecutionConfigurationFooter:()=>pP,ActionAfterExecutionConfigurationForm:()=>hP,ActionAfterExecutionConfigurationOP:()=>Xp,ActionAfterExecutionConfigurationObjectPageHeader:()=>xP,ActionAfterExecutionConfigurationToolBarLR:()=>xC,Actions:()=>AC,AdditionalSemanticObject:()=>dC,CommonHeaderFacetSettings:()=>Rs,CommonViewSettings:()=>hf,CustomActionPosition:()=>NC,CustomActionPositionOP:()=>uC,CustomFilterField:()=>qS,CustomFilterFieldPosition:()=>QS,CustomFooterActionOP:()=>mP,CustomFooterActionPositionOP:()=>gP,CustomFormActionOP:()=>AP,CustomHeaderAction:()=>eP,CustomHeaderActionOP:()=>NP,CustomHeaderActionPosition:()=>Rp,CustomHeaderActionPositionOP:()=>OP,CustomSectionActionOP:()=>sP,CustomSectionActionPositionOP:()=>aP,CustomTableAction:()=>LC,CustomTableActionOP:()=>pC,FilterBar:()=>KS,FlexSettings:()=>RP,FooterActionV4:()=>dP,FormAction:()=>yP,Header:()=>YS,HeaderActions:()=>zS,HeaderSections:()=>MP,LRChartView:()=>zP,LRTableView:()=>YP,MultiTableModeV4:()=>ZP,ObjectPageCustomHeaderSectionFlexSettings:()=>tP,ObjectPageCustomHeaderSectionFragment:()=>nP,ObjectPageCustomSectionActions:()=>iP,ObjectPageCustomSectionFragment:()=>ff,ObjectPageCustomSubSectionFragment:()=>rP,ObjectPageFooter:()=>lP,ObjectPageFooterActions:()=>cP,ObjectPageForm:()=>TP,ObjectPageFormActions:()=>vP,ObjectPageHeader:()=>PP,ObjectPageHeaderAction:()=>IP,ObjectPageHeaderActions:()=>SP,ObjectPageHeaderSectionAddress:()=>wP,ObjectPageHeaderSectionChart:()=>DP,ObjectPageHeaderSectionContact:()=>VP,ObjectPageHeaderSectionDataPoint:()=>_P,ObjectPageHeaderSectionForm:()=>FP,ObjectPageLayout:()=>GP,ObjectPageTable:()=>Hp,ObjectPageTableColumn:()=>bf,ObjectPageTableColumnAction:()=>aC,ObjectPageToolBarAction:()=>fC,PersonalizationType:()=>KP,PersonalizationTypeOP:()=>rC,Position:()=>vC,PositionOP:()=>sC,QuickVariantSelectionV4:()=>QP,QuickVariantSelectionV4OP:()=>oC,RelatedApps:()=>gC,Table:()=>eC,TableColumn:()=>Jy,TableColumnAction:()=>hC,TableCreationModeOP:()=>iC,TableCustomColumn:()=>EC,TableCustomColumnOP:()=>cC,TableSettings:()=>Wy,TableViewExtension:()=>JP,TableViewSettings:()=>Up,ToolBar:()=>SC,ToolBarAction:()=>IC,ViewCustomActionPosition:()=>RC,ViewPersonalizationType:()=>XP,ViewPosition:()=>TC,ViewTableColumn:()=>Zy,ViewTableColumnAction:()=>yC,ViewTableCustomAction:()=>FC,ViewTableCustomColumn:()=>bC,ViewToolBarAction:()=>OC,VisualFilter:()=>XS,checkViewOrder:()=>tC,deleteCreationModeProperty:()=>Bp,deletePersonalizationProperty:()=>Eo,exportCreationModeProperty:()=>$p,exportPersonalization:()=>qy,exportPersonalizationProperty:()=>To});function Qq(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(Qq,"exportVisualFilterValueList");var lf=class lf{};o(lf,"FilterBar"),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.99.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],lf.prototype,"hideFilterBar",2),h([T({manifest:{path:wy}}),C({since:"1.93.0"}),Ne("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],lf.prototype,"initialLayout",2),h([T({manifest:{path:wy}}),C({since:"1.93.0"}),Ne("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],lf.prototype,"layout",2);var KS=lf,Op=class Op{};o(Op,"VisualFilter"),h([T({manifest:{path:WS}}),C({since:"1.93.0"}),Ne("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Op.prototype,"availability",2),h([T({manifest:{path:WS,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:Qq,key:"visualFilter"}}),C({since:"1.93.0"})],Op.prototype,"visualFilterValueList",2);var XS=Op,Np=class Np{};o(Np,"CustomFilterFieldPosition"),h([T({manifest:{path:o((t,n,i,r)=>bs(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Np.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>bs(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Np.prototype,"placement",2);var QS=Np,Ss=class Ss{};o(Ss,"CustomFilterField"),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],Ss.prototype,"label",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],Ss.prototype,"property",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],Ss.prototype,"template",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],Ss.prototype,"required",2),h([T({manifest:{path:bs}}),C({since:"1.77.0"})],Ss.prototype,"position",2);var qS=Ss;var JS=class JS{};o(JS,"HeaderActions");var zS=JS,ZS=class ZS{};o(ZS,"Header");var YS=ZS;var Lp=class Lp{};o(Lp,"CustomHeaderActionPosition"),h([T({manifest:{path:o((t,n,i,r)=>fi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Lp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>fi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Lp.prototype,"placement",2);var Rp=Lp,Ps=class Ps{};o(Ps,"CustomHeaderAction"),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ps.prototype,"text",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ps.prototype,"position",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ps.prototype,"press",2),h([T({manifest:{path:fi},generate:qn}),C({since:"1.84.0"})],Ps.prototype,"visible",2),h([T({manifest:{path:fi},generate:qn}),C({since:"1.84.0"})],Ps.prototype,"enabled",2);var eP=Ps;var jy=class jy{};o(jy,"ObjectPageCustomHeaderSectionFlexSettings"),h([T({manifest:{path:o((t,n,i)=>Sr(t,n,i,"flexSettings"),"path")}}),C({since:"1.81.0"})],jy.prototype,"designtime",2);var tP=jy,tr=class tr{};o(tr,"ObjectPageCustomHeaderSectionFragment"),h([T({manifest:{path:o((t,n,i)=>Sr(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],tr.prototype,"relatedFacet",2),h([T({manifest:{path:o((t,n,i)=>Sr(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],tr.prototype,"relativePosition",2),h([T({manifest:{path:Sr},generate:ri}),C({since:"1.84.0"})],tr.prototype,"visible",2),h([T({manifest:{path:Sr}}),C({since:"1.77.0"})],tr.prototype,"title",2),h([T({manifest:{path:Sr}}),C({since:"1.77.0"})],tr.prototype,"subTitle",2),h([T({manifest:{path:Sr,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],tr.prototype,"fragmentName",2),h([T({manifest:{path:Sr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),C({since:"1.86.0"})],tr.prototype,"templateEdit",2),h([T({manifest:{path:Sr}}),C({since:"1.81.0"})],tr.prototype,"stashed",2),h([T({manifest:{path:Sr}}),C({since:"1.81.0"})],tr.prototype,"flexSettings",2),h([T({manifest:{path:Sr}}),C({since:"1.81.0"})],tr.prototype,"requestGroupId",2),h([T({manifest:{path:Sr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],tr.prototype,"controls",2);var nP=tr;var oP=class oP{};o(oP,"ObjectPageCustomSectionActions");var iP=oP,Cs=class Cs{};o(Cs,"ObjectPageCustomSectionFragment"),h([T({manifest:{path:o((t,n,i)=>sf(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],Cs.prototype,"relatedFacet",2),h([T({manifest:{path:o((t,n,i)=>sf(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],Cs.prototype,"relativePosition",2),h([T({manifest:{path:sf}}),C({since:"1.77.0"})],Cs.prototype,"title",2),h([T({manifest:{path:sf,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],Cs.prototype,"fragmentName",2),h([T({manifest:{path:sf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],Cs.prototype,"controls",2);var ff=Cs,xs=class xs extends ff{};o(xs,"ObjectPageCustomSubSectionFragment"),h([T({manifest:{path:o((...t)=>`${cf.apply({},t)}/position`,"path"),key:"anchor"}}),C({since:"1.77.0"})],xs.prototype,"relatedFacet",2),h([T({manifest:{path:o((...t)=>`${cf.apply({},t)}/position`,"path"),key:"placement"}}),C({since:"1.77.0"})],xs.prototype,"relativePosition",2),h([T({manifest:{path:cf}}),C({since:"1.77.0"})],xs.prototype,"title",2),h([T({manifest:{path:cf,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],xs.prototype,"fragmentName",2),h([T({manifest:{path:cf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],xs.prototype,"controls",2);var rP=xs;var Fp=class Fp{};o(Fp,"CustomSectionActionPositionOP"),h([T({manifest:{path:o((t,n,i,r)=>As(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Fp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>As(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Fp.prototype,"placement",2);var aP=Fp,Is=class Is{};o(Is,"CustomSectionActionOP"),h([T({manifest:{path:As}}),C({since:"1.84.0"})],Is.prototype,"text",2),h([T({manifest:{path:As}}),C({since:"1.84.0"})],Is.prototype,"position",2),h([T({manifest:{path:As}}),C({since:"1.84.0"})],Is.prototype,"press",2),h([T({manifest:{path:As},generate:ri}),C({since:"1.84.0"})],Is.prototype,"visible",2),h([T({manifest:{path:As},generate:ri}),C({since:"1.84.0"})],Is.prototype,"enabled",2);var sP=Is;var fP=class fP{};o(fP,"ObjectPageFooterActions");var cP=fP,uP=class uP{};o(uP,"ObjectPageFooter");var lP=uP;var Dp=class Dp{};o(Dp,"ActionAfterExecutionConfigurationFooter"),h([T({manifest:{path:o((t,n,i,r)=>ho(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Dp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>ho(t,n,i,r)+"/afterExecution","path")}})],Dp.prototype,"enableAutoScroll",2);var pP=Dp,Uy=class Uy{};o(Uy,"FooterActionV4"),h([T({manifest:{path:ho}}),C({since:"1.84.0"})],Uy.prototype,"afterExecution",2);var dP=Uy,_p=class _p{};o(_p,"CustomFooterActionPositionOP"),h([T({manifest:{path:o((t,n,i,r)=>ho(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],_p.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>ho(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],_p.prototype,"placement",2);var gP=_p,Os=class Os{};o(Os,"CustomFooterActionOP"),h([T({manifest:{path:ho}}),C({since:"1.84.0"})],Os.prototype,"text",2),h([T({manifest:{path:ho}}),C({since:"1.84.0"})],Os.prototype,"position",2),h([T({manifest:{path:ho}}),C({since:"1.84.0"})],Os.prototype,"press",2),h([T({manifest:{path:ho},generate:ri}),C({since:"1.84.0"})],Os.prototype,"visible",2),h([T({manifest:{path:ho},generate:ri}),C({since:"1.84.0"})],Os.prototype,"enabled",2);var mP=Os;var Vp=class Vp{};o(Vp,"ActionAfterExecutionConfigurationForm"),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Vp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}})],Vp.prototype,"enableAutoScroll",2);var hP=Vp,$y=class $y{};o($y,"FormAction"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],$y.prototype,"afterExecution",2);var yP=$y,EP=class EP{};o(EP,"ObjectPageFormActions");var vP=EP,bP=class bP{};o(bP,"ObjectPageForm");var TP=bP;var Ns=class Ns{};o(Ns,"CustomFormActionOP"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ns.prototype,"text",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ns.prototype,"position",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ns.prototype,"press",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Ns.prototype,"visible",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Ns.prototype,"enabled",2);var AP=Ns;var CP=class CP{};o(CP,"ObjectPageHeaderActions");var SP=CP,uf=class uf{};o(uf,"ObjectPageHeader"),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],uf.prototype,"editableHeaderContent",2),h([T({manifest:{path:_y}}),C({since:"1.84.0"})],uf.prototype,"visible",2),h([T({manifest:{path:_y}}),C({since:"1.84.0"})],uf.prototype,"anchorBarVisible",2);var PP=uf;var wp=class wp{};o(wp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([T({manifest:{path:o((t,n,i,r)=>fi(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],wp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>fi(t,n,i,r)+"/afterExecution","path")}})],wp.prototype,"enableAutoScroll",2);var xP=wp,By=class By{};o(By,"ObjectPageHeaderAction"),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],By.prototype,"afterExecution",2);var IP=By,LP=class LP extends Rp{};o(LP,"CustomHeaderActionPositionOP");var OP=LP,Ls=class Ls{};o(Ls,"CustomHeaderActionOP"),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ls.prototype,"text",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ls.prototype,"position",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ls.prototype,"press",2),h([T({manifest:{path:fi},generate:ri}),C({since:"1.84.0"})],Ls.prototype,"visible",2),h([T({manifest:{path:fi},generate:ri}),C({since:"1.84.0"})],Ls.prototype,"enabled",2);var NP=Ls;var Hy=class Hy{};o(Hy,"FlexSettings"),h([T({manifest:{path:o((t,n,i)=>Vy(t,n,i)+"/flexSettings","path")}}),C({since:"1.81.0"}),Ne("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Hy.prototype,"designtime",2);var RP=Hy,Mp=class Mp{};o(Mp,"CommonHeaderFacetSettings"),h([T({manifest:{path:Vy}}),C({since:"1.81.0"})],Mp.prototype,"stashed",2),h([T({manifest:{path:Vy}}),C({since:"1.81.0"})],Mp.prototype,"flexSettings",2);var Rs=Mp,kP=class kP extends Rs{};o(kP,"ObjectPageHeaderSectionForm");var FP=kP,jP=class jP extends Rs{};o(jP,"ObjectPageHeaderSectionChart");var DP=jP,UP=class UP extends Rs{};o(UP,"ObjectPageHeaderSectionDataPoint");var _P=UP,$P=class $P extends Rs{};o($P,"ObjectPageHeaderSectionContact");var VP=$P,BP=class BP extends Rs{};o(BP,"ObjectPageHeaderSectionAddress");var wP=BP,HP=class HP{};o(HP,"HeaderSections");var MP=HP;var Gy=class Gy{};o(Gy,"ObjectPageLayout"),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],Gy.prototype,"sectionLayout",2);var GP=Gy;var zy=ie(le());var WP=ie(le());var qq=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 vo(e,t,n,i,r,a){let s=Dy(e),l=qq(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[WP.SchemaTag.key]===(a==null?void 0:a.key)||g[WP.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(vo,"getSettingsPathForLRViewsPath");function zq(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(zq,"fillNewlyOrderedViews");function tC(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=zq(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(tC,"checkViewOrder");function qy(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(qy,"exportPersonalization");function To(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(To,"exportPersonalizationProperty");function Eo(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(Eo,"deletePersonalizationProperty");function nC(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(nC,"deleteView");function $p(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o($p,"exportCreationModeProperty");function Bp(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(Bp,"deleteCreationModeProperty");function vw(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(vw,"importPersonalization");function Tw(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(Tw,"determineIndexOfView");var pf=class pf{};o(pf,"PersonalizationType"),h([T({manifest:{path:Ji,export:To,delete:Eo}})],pf.prototype,"column",2),h([T({manifest:{path:Ji,export:To,delete:Eo}})],pf.prototype,"sort",2),h([T({manifest:{path:Ji,export:To,delete:Eo}})],pf.prototype,"filter",2);var KP=pf,df=class df{};o(df,"ViewPersonalizationType"),h([T({manifest:{path:br,export:To,delete:Eo}})],df.prototype,"column",2),h([T({manifest:{path:br,export:To,delete:Eo}})],df.prototype,"sort",2),h([T({manifest:{path:Ji,export:To,delete:Eo}})],df.prototype,"filter",2);var XP=df,gf=class gf{};o(gf,"QuickVariantSelectionV4"),h([T({manifest:{path:My}})],gf.prototype,"paths",2),h([T({manifest:{path:My}})],gf.prototype,"hideTableTitle",2),h([T({manifest:{path:My}})],gf.prototype,"showCounts",2);var QP=gf,yo=class yo{};o(yo,"TableSettings"),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],yo.prototype,"type",2),h([T({manifest:{path:Ji,import:vw,export:qy}}),C({since:"1.86.0"})],yo.prototype,"personalization",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],yo.prototype,"selectionMode",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],yo.prototype,"selectAll",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],yo.prototype,"selectionLimit",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],yo.prototype,"enableExport",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],yo.prototype,"quickVariantSelection",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],yo.prototype,"condensedTableLayout",2);var Wy=yo,Ky=class Ky{};o(Ky,"ALPChart"),h([T({manifest:{path:o(t=>ft(t)+"/views/paths/0/primary/0","path"),delete:nC}})],Ky.prototype,"annotationPath",2);var qP=Ky,Uc=class Uc{};o(Uc,"CommonViewSettings"),h([T({manifest:{path:vo,delete:Ys}})],Uc.prototype,"key",2),h([T({manifest:{path:Dy,import:Tw,export:o((t,n)=>{tC(t,n)},"export"),delete:nC}})],Uc.prototype,"index",2),h([T({manifest:{path:vo,delete:Ys}})],Uc.prototype,"annotationPath",2),h([T({manifest:{path:vo}})],Uc.prototype,"entitySet",2);var hf=Uc,qr=class qr extends hf{};o(qr,"TableViewSettings"),h([T({manifest:{path:br}}),C({since:"1.84.0"})],qr.prototype,"type",2),h([T({manifest:{path:br,import:vw}}),C({since:"1.86.0"})],qr.prototype,"personalization",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],qr.prototype,"selectionMode",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],qr.prototype,"selectAll",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],qr.prototype,"selectionLimit",2),h([T({manifest:{path:br}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],qr.prototype,"enableExport",2),h([T({manifest:{path:br}}),C({since:"1.84.0"})],qr.prototype,"quickVariantSelection",2),h([T({manifest:{path:br}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],qr.prototype,"condensedTableLayout",2),h([T({manifest:{path:br}}),C({since:"1.117.0"}),Ne("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],qr.prototype,"hierarchyQualifier",2);var Up=qr;function Yq(e){return Up}o(Yq,"getTableViewSettings");var kp=class kp extends Up{};o(kp,"ALPTable"),h([T({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:Ys}})],kp.prototype,"annotationPath",2),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],kp.prototype,"initialLoad",2);var yf=kp,Xy=class Xy extends hf{};o(Xy,"LRChartView"),h([T({manifest:{path:vo},generate:qn})],Xy.prototype,"visible",2);var zP=Xy,mf=class mf extends Yq(hf){};o(mf,"LRTableView"),h([T({manifest:{path:vo}})],mf.prototype,"keepPreviousPersonalization",2),h([T({manifest:{path:vo}})],mf.prototype,"entitySet",2),h([T({manifest:{path:vo},generate:qn})],mf.prototype,"visible",2);var YP=mf,Fs=class Fs{};o(Fs,"TableViewExtension"),h([T({manifest:{path:vo}})],Fs.prototype,"key",2),h([T({manifest:{path:Dy,import:Tw,export:o((t,n)=>{tC(t,n)},"export"),delete:nC}})],Fs.prototype,"index",2),h([T({manifest:{path:vo}})],Fs.prototype,"label",2),h([T({manifest:{path:vo}})],Fs.prototype,"template",2),h([T({manifest:{path:vo},generate:qn})],Fs.prototype,"visible",2);var JP=Fs,Qy=class Qy{};o(Qy,"MultiTableModeV4"),h([T({manifest:{path:o(t=>ft(t)+"/views","path")}})],Qy.prototype,"showCounts",2);var ZP=Qy,jp=class jp extends Wy{};o(jp,"Table"),h([T({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:Ys}})],jp.prototype,"annotationPath",2),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],jp.prototype,"initialLoad",2);var eC=jp;var vf=class vf{};o(vf,"TableCreationModeOP"),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:o((t,n,i)=>{$p(t,n,i)},"export"),delete:o((t,n,i,r)=>{Bp(t,r)},"delete")}})],vf.prototype,"name",2),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:o((t,n,i)=>{$p(t,n,i)},"export"),delete:o((t,n,i,r)=>{Bp(t,r)},"delete")}})],vf.prototype,"createAtEnd",2),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:o((t,n,i)=>{$p(t,n,i)},"export"),delete:o((t,n,i,r)=>{Bp(t,r)},"delete")}})],vf.prototype,"inlineCreationRowsHiddenInEditMode",2);var iC=vf,Tf=class Tf{};o(Tf,"PersonalizationTypeOP"),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:To,delete:Eo}})],Tf.prototype,"column",2),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:To,delete:Eo}})],Tf.prototype,"sort",2),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i),"path"),export:To,delete:Eo}})],Tf.prototype,"filter",2);var rC=Tf,Ef=class Ef{};o(Ef,"QuickVariantSelectionV4OP"),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i)+zy.QUICKVARPATH,"path")}})],Ef.prototype,"paths",2),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i)+zy.QUICKVARPATH,"path")}})],Ef.prototype,"hideTableTitle",2),h([T({manifest:{path:o((t,n,i)=>Fn(t,n,i)+zy.QUICKVARPATH,"path")}})],Ef.prototype,"showCounts",2);var oC=Ef,nr=class nr{};o(nr,"ObjectPageTable"),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],nr.prototype,"type",2),h([T({manifest:{path:Fn,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),C({since:"1.84.0"})],nr.prototype,"creationMode",2),h([T({manifest:{path: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:qy}}),C({since:"1.86.0"})],nr.prototype,"personalization",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],nr.prototype,"selectionMode",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],nr.prototype,"selectAll",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],nr.prototype,"selectionLimit",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],nr.prototype,"enableExport",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],nr.prototype,"quickVariantSelection",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],nr.prototype,"condensedTableLayout",2),h([T({manifest:{path:Fn}}),C({since:"1.86.0"})],nr.prototype,"enableFullScreen",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],nr.prototype,"enablePaste",2);var Hp=nr;var Gp=class Gp{};o(Gp,"ActionAfterExecutionConfigurationOP"),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Gp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/afterExecution","path")}})],Gp.prototype,"enableAutoScroll",2);var Xp=Gp,Wp=class Wp{};o(Wp,"ObjectPageTableColumn"),h([T({manifest:{path:er}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Wp.prototype,"width",2),h([T({manifest:{path:er}}),C({since:"1.85.0"})],Wp.prototype,"availability",2);var bf=Wp,lC=class lC extends bf{};o(lC,"ObjectPageTableColumnAction");var aC=lC,Kp=class Kp{};o(Kp,"PositionOP"),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Kp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>er(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Kp.prototype,"placement",2);var sC=Kp,Ko=class Ko{};o(Ko,"TableCustomColumnOP"),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Ko.prototype,"position",2),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Ko.prototype,"header",2),h([T({manifest:{path:er}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ko.prototype,"width",2),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Ko.prototype,"template",2),h([T({manifest:{path:er}}),C({since:"1.86.0"})],Ko.prototype,"horizontalAlign",2),h([T({manifest:{path:er}}),C({since:"1.84.0"})],Ko.prototype,"availability",2),h([T({manifest:{path:er}}),C({since:"1.85.0"})],Ko.prototype,"properties",2);var cC=Ko;var Yy=class Yy{};o(Yy,"ObjectPageToolBarAction"),h([T({manifest:{path:kn}})],Yy.prototype,"enableOnSelect",2);var fC=Yy,Qp=class Qp{};o(Qp,"CustomActionPositionOP"),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Qp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Qp.prototype,"placement",2);var uC=Qp,Oa=class Oa{};o(Oa,"CustomTableActionOP"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Oa.prototype,"text",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Oa.prototype,"position",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Oa.prototype,"press",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Oa.prototype,"requiresSelection",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Oa.prototype,"visible",2),h([T({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Oa.prototype,"enabled",2);var pC=Oa;var Af=class Af{};o(Af,"AdditionalSemanticObject"),h([T({manifest:{path:ky}}),Ne("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.108.0"})],Af.prototype,"allowedActions",2),h([T({manifest:{path:ky}}),Ne("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],Af.prototype,"unavailableActions",2),h([T({manifest:{path:ky}}),Ne("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],Af.prototype,"mapping",2);var dC=Af,qp=class qp{};o(qp,"RelatedApps"),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],qp.prototype,"showRelatedApps",2),h([T({manifest:{path:ft}})],qp.prototype,"additionalSemanticObjects",2);var gC=qp;var zp=class zp{};o(zp,"ActionAfterExecutionConfiguration"),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],zp.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/afterExecution","path")}})],zp.prototype,"enableAutoScroll",2);var mC=zp,Yp=class Yp{};o(Yp,"TableColumn"),h([T({manifest:{path:ki}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Yp.prototype,"width",2),h([T({manifest:{path:ki}}),C({since:"1.85.0"})],Yp.prototype,"availability",2);var Jy=Yp,Jp=class Jp{};o(Jp,"ViewTableColumn"),h([T({manifest:{path:Zi}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Jp.prototype,"width",2),h([T({manifest:{path:Zi}}),C({since:"1.85.0"})],Jp.prototype,"availability",2);var Zy=Jp,ev=class ev extends Jy{};o(ev,"TableColumnAction"),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],ev.prototype,"afterExecution",2);var hC=ev,tv=class tv extends Zy{};o(tv,"ViewTableColumnAction"),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],tv.prototype,"afterExecution",2);var yC=tv,Zp=class Zp{};o(Zp,"Position"),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Zp.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>ki(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Zp.prototype,"placement",2);var vC=Zp,ed=class ed{};o(ed,"ViewPosition"),h([T({manifest:{path:o((t,n,i,r,a)=>Zi(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],ed.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>Zi(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],ed.prototype,"placement",2);var TC=ed,Xo=class Xo{};o(Xo,"TableCustomColumn"),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Xo.prototype,"position",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Xo.prototype,"header",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Xo.prototype,"width",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Xo.prototype,"template",2),h([T({manifest:{path:ki}}),C({since:"1.86.0"})],Xo.prototype,"horizontalAlign",2),h([T({manifest:{path:ki}}),C({since:"1.84.0"})],Xo.prototype,"availability",2),h([T({manifest:{path:ki}}),C({since:"1.85.0"})],Xo.prototype,"properties",2);var EC=Xo,Qo=class Qo{};o(Qo,"ViewTableCustomColumn"),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Qo.prototype,"position",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Qo.prototype,"header",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Qo.prototype,"width",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Qo.prototype,"template",2),h([T({manifest:{path:Zi}}),C({since:"1.86.0"})],Qo.prototype,"horizontalAlign",2),h([T({manifest:{path:Zi}}),C({since:"1.84.0"})],Qo.prototype,"availability",2),h([T({manifest:{path:Zi}}),C({since:"1.85.0"})],Qo.prototype,"properties",2);var bC=Qo;var PC=class PC{};o(PC,"Actions");var AC=PC,CC=class CC{};o(CC,"ToolBar");var SC=CC;var td=class td{};o(td,"ActionAfterExecutionConfigurationToolBarLR"),h([T({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],td.prototype,"navigateToInstance",2),h([T({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/afterExecution","path")}})],td.prototype,"enableAutoScroll",2);var xC=td,nd=class nd{};o(nd,"ToolBarAction"),h([T({manifest:{path:Ar}})],nd.prototype,"enableOnSelect",2),h([T({manifest:{path:Ar}})],nd.prototype,"afterExecution",2);var IC=nd,id=class id{};o(id,"ViewToolBarAction"),h([T({manifest:{path:Qr}})],id.prototype,"enableOnSelect",2),h([T({manifest:{path:Qr}})],id.prototype,"afterExecution",2);var OC=id,rd=class rd{};o(rd,"CustomActionPosition"),h([T({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],rd.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],rd.prototype,"placement",2);var NC=rd,Na=class Na{};o(Na,"CustomTableAction"),h([T({manifest:{path:Ar}}),C({since:"1.84.0"})],Na.prototype,"text",2),h([T({manifest:{path:Ar}}),C({since:"1.84.0"})],Na.prototype,"position",2),h([T({manifest:{path:Ar}}),C({since:"1.84.0"})],Na.prototype,"press",2),h([T({manifest:{path:Ar}}),C({since:"1.84.0"})],Na.prototype,"requiresSelection",2),h([T({manifest:{path:Ar},generate:qn}),C({since:"1.84.0"})],Na.prototype,"visible",2),h([T({manifest:{path:Ar},generate:qn}),C({since:"1.84.0"})],Na.prototype,"enabled",2);var LC=Na,od=class od{};o(od,"ViewCustomActionPosition"),h([T({manifest:{path:o((t,n,i,r,a)=>Qr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],od.prototype,"anchor",2),h([T({manifest:{path:o((t,n,i,r,a)=>Qr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],od.prototype,"placement",2);var RC=od,La=class La{};o(La,"ViewTableCustomAction"),h([T({manifest:{path:Qr}}),C({since:"1.84.0"})],La.prototype,"text",2),h([T({manifest:{path:Qr}}),C({since:"1.84.0"})],La.prototype,"position",2),h([T({manifest:{path:Qr}}),C({since:"1.84.0"})],La.prototype,"press",2),h([T({manifest:{path:Qr}}),C({since:"1.84.0"})],La.prototype,"requiresSelection",2),h([T({manifest:{path:Qr},generate:qn}),C({since:"1.84.0"})],La.prototype,"visible",2),h([T({manifest:{path:Qr},generate:qn}),C({since:"1.84.0"})],La.prototype,"enabled",2);var FC=La;var MC={};Ks(MC,{FreestylePage:()=>VC,ListReport:()=>Pr,ObjectPage:()=>bo});function Jq(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(Jq,"deleteAllALPViews");function Zq(){}o(Zq,"doNotExport");function e9(){}o(e9,"doNotImport");var Pr=class{};o(Pr,"ListReport"),h([T({manifest:{path:o(t=>ft(t)+"/views","path"),import:e9,export:Zq,delete:Jq}})],Pr.prototype,"chart",2),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],Pr.prototype,"variantManagement",2),h([T({manifest:{path:o(t=>ft(t)+"/views/paths/[]/0","path")}}),Ne("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Pr.prototype,"defaultPath",2),h([T({manifest:{path:o(t=>ft(t),"path")}})],Pr.prototype,"defaultTemplateAnnotationPath",2),h([jt("header")],Pr.prototype,"header",2),h([jt("fe::FilterBar")],Pr.prototype,"filterBar",2),Pr=h([wr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Pr);var _C=ie(le());var bo=class{};o(bo,"ObjectPage"),h([jt("header")],bo.prototype,"header",2),h([jt("layout")],bo.prototype,"layout",2),h([T({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],bo.prototype,"variantManagement",2),h([jt("sections")],bo.prototype,"sections",2),bo=h([wr({id:`${_C.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:_C.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],bo);var wC=class wC{};o(wC,"FreestylePage");var VC=wC;var nv=ie(le());var t9={ALPTableView:yf},n9={ALPTableView:yf},i9={Table:Hp,TableColumn:bf,ObjectPageCustomSectionView:ff,ActionAfterExecutionConfiguration:Xp},r9={[nv.PageTypeV4.AnalyticalListPage]:t9,[nv.PageTypeV4.ListReport]:n9,[nv.PageTypeV4.ObjectPage]:i9},kC=class kC extends jl{constructor(){super(DC,MC,r9)}};o(kC,"MetadataInstanceFactoryV4");var Ra=kC;var jC=require("@sap-ux/vocabularies-types/vocabularies/UI");function UC(e,t,n,i,r,a,s){var g,m,v,A,E,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${jC.UIAnnotationTerms.LineItem}`?a:he.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let F in p.properties){let G=l[u].properties[F].$ref.split(U)[1].split("<")[0];e.columns[F]=n.createInstance(i,G);let B=s||a;At(e.columns[F],t.manifest,l[G],r,[F,B],B,t.logger),_o(e.columns,F)}_o(e,"columns")}else{let F=(O=(E=(A=(v=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:v[r])==null?void 0:A.options)==null?void 0:E.settings)==null?void 0:O.views;(!F||F.paths.length<1)&&se(t.logger,{severity:he.LogSeverity.Error,message:q.t("NOLINEITEMS")})}}o(UC,"transferColumns");function o9(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[he.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let u=s.properties[l];if(typeof u=="object"&&u.$ref){let p=hn(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),At(t.visualFilters[l],e.manifest,a[p],r,[l])}}_o(t,"visualFilters")}}o(o9,"importVisualFilters");function a9(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[he.DefinitionName.LineItems,`${he.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${jC.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${he.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let g in p.properties){let m=p.properties[g];if(typeof m=="object"&&m.$ref){let v=hn(m.$ref),A=v.split("<")[0];t.toolBar.actions[g]=n.createInstance(i,A),At(t.toolBar.actions[g],e.manifest,l[v],r,[g,u]),_o(t.toolBar.actions,g)}}}o(a9,"importActions");function $C(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,At(u.toolBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.ToolBarLR],r,[]),a9(e,u,n,i,r,a,s),_o(u.toolBar,"actions"),_o(u,"toolBar")}o($C,"transferToolBar");function Ew(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(Ew,"determineTargetAnnotationOfView");function s9(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,he.DefinitionName.ALPChart);let s=a[he.DefinitionName.ALPChart],l=s[he.SchemaTag.annotationPath];At(t.chart,e.manifest,s,r,[s[he.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),At(t.chart.toolBar,e.manifest,a[he.DefinitionName.ViewChartToolBar],r,[]);let u=a[he.DefinitionName.ALPTable][he.SchemaTag.annotationPath];if(u){let p=a[he.DefinitionName.ALPTable],g=t.table=n.createInstance(i,he.DefinitionName.ALPTable);$C(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));At(g,e.manifest,p,r,[p[he.SchemaTag.key],m]),UC(g,e,n,i,r,void 0,m)}}o(s9,"importALPViews");function c9(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(c9,"getViewTypeByDefinition");function l9(e,t,n,i,r){let a=t.table.views=n.createInstance(i,he.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;At(a,e.manifest,s[he.DefinitionName.MultiTableModeV4],r,[]);let l=s[he.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][he.SchemaTag.propertyIndex]-g[1][he.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split(U)[1],m=c9(g),v=a[p[0]]=n.createInstance(i,m),A=s[g].entitySet,E=Ew(s,g,A);if(At(v,e.manifest,s[g],r,[p[0],E]),m===he.DefinitionName.LRTableView){let O=`${he.DefinitionName.LineItemsOfView}::${p[0]}`;$C(e,v,n,i,r,O,E),UC(v,e,n,i,r,O,E)}Object.keys(v).length===0&&delete a[p[0]]}_o(t.table,"views")}o(l9,"importLRViews");function f9(e,t,n,i,r){let a=he.DefinitionName.HeaderActions,s=he.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let u in l.properties){let p=l.properties[u];if(typeof p=="object"&&p.$ref){let g=hn(p.$ref),m=e.definitions[g],v=hn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(he.PageTypeV4.ObjectPage,v),At(t[s].actions[u],i,e.definitions[v],r,[u.replace("/","??")]),_o(t.header,"actions"),_o(t,"header")}}}}o(f9,"transferHeaderActions");function u9(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[he.DefinitionName.SelectionFields,he.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==U+he.DefinitionName.CustomFilterField)continue;let u=n.createInstance(he.PageTypeV4.ListReport,he.DefinitionName.CustomFilterField),p=l.$ref.split(U)[1];At(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(u9,"importCustomFilterFields");function p9(e,t,n,i,r,a){if(At(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,he.DefinitionName.Header),At(t.header,e.manifest,e.jsonSchema.definitions[he.DefinitionName.Header],r,[]),f9(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,he.DefinitionName.FilterBar),At(t.filterBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.FilterBar],r,[]),o9(e,t.filterBar,n,i,r),u9(e,t.filterBar,n,r),a===he.SchemaType.ListReport){let s=he.DefinitionName.Table,l=e.jsonSchema.definitions[s],u;l.$ref&&(s=l.$ref.split(U)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split(U)[1]),t.table=n.createInstance(i,he.DefinitionName.Table);let p=Ew(e.jsonSchema.definitions,s);At(t.table,e.manifest,l,r,[s,p]),$C(e,t,n,i,r,u),UC(t.table,e,n,i,r,u,p),l9(e,t,n,i,r)}else a===he.SchemaType.AnalyticalListPage&&s9(e,t,n,i,r)}o(p9,"addSettings");function $c(e,t){if(nn(),!e.jsonSchema)return;if(!e.manifest[he.ManifestSection.ui5]||!e.manifest[he.ManifestSection.ui5].routing){se(e.logger,{severity:he.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let n=e.manifest[he.ManifestSection.ui5].routing.targets;if(!n){se(e.logger,{severity:he.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let i=new Ra,r=i.createPageInstance(he.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=pE(s);if("name"in s&&(l===he.PageTypeV4.ListReport||l===he.PageTypeV4.AnalyticalListPage)){p9(e,r,i,he.PageTypeV4.ListReport,a,t);break}}return r}o($c,"createListReportConfig");var ve=ie(le()),Bc=require("@sap-ux/vocabularies-types/vocabularies/UI");function d9(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(d9,"isBoolean");function g9(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(g9,"isNumber");function m9(e,t){let n=e.toString();return d9(n,t)?n==="true":g9(n,t)?parseFloat(n):e}o(m9,"convertValue");function h9(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=m9(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(h9,"importProperty");function bw(e,t,n){let i,r=rf(e.file,!1,n);if(r){let a=xy(r);i={},Vc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},h9)}return i}o(bw,"convertXmlFileToConfig");function iv(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=$o(t||[],r,n,a),l;return s&&(l=bw(s,i,e.logger)),l}o(iv,"createCustomPageConfig");function ad(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=of(t),u=(v=r.definitions)==null?void 0:v[l];if(!r||!u)return;let p=xc(i,a),g=Ic(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=bw(g,A,s)}return m}o(ad,"createCustomFragmentConfig");function BC(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(BC,"getManifestId");function sd(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(sd,"getDefinitionId");function y9(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[sd(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(ve.DefinitionName.CustomColumnOP)>-1?s=ve.DefinitionName.CustomColumnOP:s=ve.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(ve.PageTypeV4.ObjectPage,s);At(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(y9,"fillTableColumnsInConfig");function Pw(e,t,n,i,r,a=n){if(typeof t=="object")for(let s in t.properties){let l=t.properties[s];if(typeof l=="object"&&l.$ref){let u=hn(l.$ref),p=u.split("<")[0],g;p.includes(ve.DefinitionName.CustomSectionActionOP)?g=i.actions:g=i[n].table.toolBar.actions,g[s]=r.createInstance(ve.PageTypeV4.ObjectPage,p),At(g[s],e.manifest,e.jsonSchema.definitions[u],e.routingId,[s],a),Object.keys(g[s]).length===0&&delete g[s]}}}o(Pw,"fillSectionActionsInConfig");function v9(e,t,n,i,r,a=n){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageSectionForm}<${sd(a)}>`].properties.form.$ref.split(U)[1],g=e.jsonSchema.definitions[l].properties.actions.$ref.split(U)[1],m=e.jsonSchema.definitions[g];for(let v in m.properties){let A=m.properties[v],E=hn(A.$ref),O=e.jsonSchema.definitions[E];if(O.annotationType===Bc.UIAnnotationTypes.DataFieldForAction||O.description==="Custom Action"){let F=hn(O.$ref)||E.split("<")[0];i[n].form.actions[v]=r.createInstance(ve.PageTypeV4.ObjectPage,F),At(i[n].form.actions[v],e.manifest,e.jsonSchema.definitions[F],e.routingId,[v.replace("/","??")],a),Object.keys(i[n].form.actions[v]).length===0&&delete i[n].form.actions[v]}}}}o(v9,"fillFormActionsInConfig");function Aw(e,t,n,i,r,a){var u;let s=a||BC(i,!1,Bc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageTable);let p=`${ve.DefinitionName.ObjectPageTable}<${a?sd(a):i.replace("#","::")}>`;At(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${ve.DefinitionName.Actions}<${sd(s)}>`];Pw(e,g,i,n,r,s),y9(e,l,n,i,r,s)}}o(Aw,"fillTableInConfig");function T9(e,t,n,i,r){var l;let a=BC(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageForm,{actions:{}}),v9(e,s,i,n,r,a))}o(T9,"fillFormInConfig");function E9(e,t,n,i,r,a){let s=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(U)[1];if(At(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=ad(e,s.fragmentName);s.controls=u}n[i]=s}o(E9,"fillCustomSubSectionInConfig");function Cw(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let v=t[m],A=m;if(m.includes(Bc.UIAnnotationTerms.PresentationVariant)&&((s=v.$ref)!=null&&s.startsWith(U+ve.DefinitionName.ObjectPageSectionTableV4))){let E=v.$ref.split(U)[1];A=E?BC(E,!0,Bc.UIAnnotationTerms.LineItem):m,Aw(e,n,i,m,r,A)}else(l=v.$ref)!=null&&l.startsWith(U+ve.DefinitionName.ObjectPageSectionTableV4)?Aw(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},Cw(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(u=v.$ref)!=null&&u.startsWith(U+ve.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${Bc.UIAnnotationTerms.FieldGroup}::`))?T9(e,n,i,m,r):(g=v.$ref)!=null&&g.startsWith(U+ve.DefinitionName.ObjectPageCustomSubSectionFragment)&&E9(e,v,i,m,r,a)}}o(Cw,"fillSectionsInConfig");function b9(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionFragment);if(At(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageCustomSectionActions}<${sd(l)}>`];Pw(e,m,l,p,i,l)}let g=u.template;if(g){let m=ad(e,g);p.controls=m}n.sections[l]=p}}o(b9,"fillCustomSectionsInConfig");function A9(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomHeaderSectionFragment);At(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let v=ad(e,g);p.controls=v}let m=u.templateEdit;if(m){let v=ad(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}o(A9,"fillCustomHeaderSectionsInConfig");function S9(e,t,n,i,r){var s,l;let a=e.definitions[ve.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split(U)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(ve.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=g?n.createInstance(ve.PageTypeV4.ObjectPage,g):{},At(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ve.FACETTITLEPREFIX)[1]))}}}o(S9,"fillHeaderFacets");function P9(e,t,n,i,r,a,s){let l=hn(e.$ref),u=t.definitions[l],p=hn(u.$ref||e.$ref),g=n.createInstance(ve.PageTypeV4.ObjectPage,p);if(g){let m=i[r]=g;At(m,a,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}o(P9,"importActionSettingsOfReference");function Sw(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&&P9(g,e,n,u,p,i,r)}}}o(Sw,"fillHeaderFooterActions");function C9(e,t,n){var a,s;let i=n.createPageInstance(ve.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageHeader),At(i.header,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageFooter),At(i.footer,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageLayout),At(i.layout,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageLayout],e.routingId,[]),At(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[ve.DefinitionName.Sections]&&(i.sections={},Cw(e,e.jsonSchema.definitions[ve.DefinitionName.Sections].properties,r,i.sections,n)),b9(e,r,i,n),S9(e.jsonSchema,i,n,e.manifest,e.routingId),A9(e,r,i,n),Sw(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.ObjectPageHeaderActions,ve.PropertyName.header),Sw(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.FooterActions,ve.PropertyName.footer)),i}o(C9,"fillObjectPageConfig");function rv(e){if(nn(),!e.manifest[ve.ManifestSection.ui5]||!e.manifest[ve.ManifestSection.ui5].routing){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let t=e.manifest[ve.ManifestSection.ui5].routing.targets;if(!t){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let i=new Ra;return C9(e,n,i)}o(rv,"createObjectPageConfigV4");var Ge=ie(le());var HC=[],ov={};function x9(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(x9,"routesSorter");function GC(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(GC,"resolveTarget");function I9(e){let t={};e=e.concat().sort(x9);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=GC(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(I9,"populateAssociations");function O9(e,t,n){let i;return e.name?e.name===Ge.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ge.PageTypeV4.FPMCustomPage:e.name.endsWith(Ge.PageTypeV4.ListReport)||e.name.endsWith(Ge.PageTypeV4.AnalyticalListPage)?i=Ge.PageTypeV4.ListReport:e.name.endsWith(Ge.PageTypeV4.ObjectPage)?i=Ge.PageTypeV4.ObjectPage:i=Ge.PageTypeV4.CustomPage:"viewId"in e?i=Ge.PageTypeV4.CustomPage:(se(t,{severity:Ge.LogSeverity.Error,message:q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ge.MANIFESTPATH,range:[`${Ge.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ge.ViewTypes&&"viewName"in e&&(i=Ge.PageTypeV4.CustomPage)),i}o(O9,"determinePageType");function N9(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=rv(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=iv(r)}else if(e.templateType===Ge.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=$c(r,Ge.SchemaType.ListReport)}else if(e.templateType===Ge.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=$c(r,Ge.SchemaType.AnalyticalListPage)}else if(e.templateType===Ge.TemplateType.FreestylePageV4&&e.page.pageType===Ge.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=iu(e.target)===Ge.TemplateType.AnalyticalListPageV4?Ge.SchemaType.AnalyticalListPage:Ge.SchemaType.ListReport;e.page.config=$c(r,s)}}}o(N9,"convertSettingsToConfig");function L9(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");HC.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");HC.push(t[t.length-1])}}o(L9,"updateUnhandledControllers");function R9(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(R9,"setVariantManagmentAndNavigation");function F9(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=Mc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(F9,"setEntitySetEntityTypeContextPath");function D9(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(D9,"evaluateCustomPageSettings");function _9(e,t,n,i){let r=e.targets[t],a=O9(r,i.logger,t),s={pageType:a};if(F9(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),ov[t]&&ov[t].indexOf(".")!==-1){let p=ov[t].split(".");s.navigationProperty=p[p.length-1]}D9(r,s,a),R9(r,s),L9(r);let l=e.routes.find(p=>(p==null?void 0:p.target)&&p.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};N9(u)}o(_9,"getSinglePageAndConfig");function xw(e){let t={},n=e.manifest[Ge.ManifestSection.ui5].routing;if(!n||!n.routes){let i=q.t("NOROUTING");return se(e.logger,{severity:Ge.LogSeverity.Error,message:i,location:{path:Ge.MANIFESTPATH,range:[Ge.ManifestSection.ui5]}}),t}ov=I9(n.routes||[]);for(let i in n.targets)_9(n,i,t,e);return t}o(xw,"getPagesAndConfigs");function Iw(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 GC(t?t.target:e.routes[0].target)}else return}o(Iw,"getHome");function Ow(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(Ow,"getSettings");function Pf(e,t){let n=e[Ge.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];a.name===t&&(i[r]=a)}return i}o(Pf,"getPages");var WC=class WC extends za{constructor(t){nn();let n=new af,i=Dt(Ge.SchemaType.Application),r=t.appSchemas[i.filename];At(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,Iw(t.manifest[Ge.ManifestSection.ui5].routing),xw(t),{...Ow(t.manifest[Ge.ManifestSection.ui5].routing),...n}),this.unhandledControllers=HC}};o(WC,"V4AppProvider");var Sf=WC;var Nw=require("fs"),Hc=require("path"),Lw=ie(le()),cd=ie(le());var Rw=o((e,t,n=__dirname)=>{let i;switch(t){case cd.SchemaType.Application:{i=`${cd.SchemaType.Application}${e.toUpperCase()}.json`;break}case cd.SchemaType.FPMCustomPage:{i=`${cd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,Hc.join)(n,"schemas",e,i);if(n.endsWith((0,Hc.join)("specification","packages","specification")))return(0,Hc.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Hc.join)("src","specification")))return(0,Hc.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,Hc.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),V9=o(async e=>new Promise((t,n)=>{(0,Nw.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),av=o(async(e,t)=>{try{let n=Rw(e||Lw.FioriElementsVersion.v4,t,__dirname);return await V9(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function w9(e,t){let n={},i=[];switch(i=[fe.SchemaType.Application],e){case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.AnalyticalListPageV4:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.FreestylePageV4:i.push(fe.SchemaType.FreestylePage),t===fe.FioriElementsVersion.v4&&i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.ListReportObjectPageV2:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage);break;case fe.TemplateType.AnalyticalListPageV2:i.push(fe.SchemaType.AnalyticalListPage,fe.SchemaType.ObjectPage);break;case fe.TemplateType.OverviewPageV2:i.push(fe.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Dt(r);n[a.filename]=await av(t,r)}return n}o(w9,"getGenericSchemas");function Dw(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ii(fe.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(Dw,"getAnnotationsForUi");function ld(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(ld,"getEntitySetByEntitySetName");function M9(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(M9,"resolveNavigationProperty");function Mc(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(u=r.target)==null?void 0:u.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=M9(r,e):se(i,{severity:fe.LogSeverity.Error,message:q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:fe.MANIFESTPATH}}),n&&!a&&se(i,{severity:fe.LogSeverity.Error,message:q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(Mc,"getEntityTypeEntitySetFromContextPath");function Fw(e,t,n){let i=qu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=ld(a,e.serviceAVT);s||se(e.logger,{severity:fe.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Dt(fe.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=Dt(fe.SchemaType.ObjectPage);n[l.filename]=fd(e,t[u.filename])}}o(Fw,"generateObjectPageSchemasV2");function k9(e,t,n){var l,u;let i=Pf(e.manifest,fe.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Pf(e.manifest,fe.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:v,entityType:A}=Mc(s,m,g,e.logger);e.entityType=A,e.entitySet=v;let E=Dt(fe.SchemaType.ListReport,p),O=Dt(fe.SchemaType.ListReport);e.templateType===fe.TemplateType.FreestylePageV4&&(e.templateType=iu(a[p])),n[E.filename]=Ju(e,t[O.filename],a[p].name,m)}}o(k9,"generateListReportSchemasV4");function j9(e,t,n){var r;let i=qu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=ld(s,e.serviceAVT);let l=Dt(fe.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Dt(fe.SchemaType.ListReport);t[l.filename]=ud(e,n[u.filename])}}o(j9,"generateAppSchemaV2LR");function U9(e,t,n){var a,s;let i=Pf(e.manifest,fe.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=Mc(r,p,u);e.entitySet=m,e.entityType=g;let v=Dt(fe.SchemaType.ObjectPage,l),A=Dt(fe.SchemaType.ObjectPage),E=Dt(fe.SchemaType.FPMCustomPage);n[v.filename]=Ip(e,t[A.filename],p,t[E.filename])}}o(U9,"generateObjectPageSchemasV4");function $9(e,t,n,i){var a;let r={};if(i===fe.TemplateType.ListReportObjectPageV2&&n)j9(e,r,t),Fw(e,t,r);else if(i===fe.TemplateType.AnalyticalListPageV2&&n){let s=qu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=ld(u,e.serviceAVT);let p=Dt(fe.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=Dt(fe.SchemaType.AnalyticalListPage);r[p.filename]=pd(e,t[g.filename])}Fw(e,t,r)}else if(i===fe.TemplateType.OverviewPageV2){let s=Dt(fe.SchemaType.OverviewPage),l=Dt(fe.SchemaType.OverviewPage);r[s.filename]=dd(t[l.filename],e.manifest)}return{...t,...r}}o($9,"generateAppSchemasV2");function B9(e,t,n){if(!zs(e.featureToggles,fe.Features.BuildingBlocks))return;let i=Pf(e.manifest,fe.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=$o(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=Dt(fe.SchemaType.FPMCustomPage,void 0,l),p=Dt(fe.SchemaType.FPMCustomPage);n[u.filename]=wc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(B9,"generateCustomPageSchemasV4");function H9(e,t,n){let i={};return n&&(k9(e,t,i),U9(e,t,i),B9(e,t,i)),{...t,...i}}o(H9,"generateAppSchemasV4");async function _w(e,t,n){let i=await w9(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===fe.FioriElementsVersion.v4?H9(e,i,t):$9(e,i,t,n)}o(_w,"generateAppSchemas");function G9(e){let t,n=[];switch(e.templateType){case fe.TemplateType.ListReportObjectPageV2:case fe.TemplateType.AnalyticalListPageV2:t=new Nh(e);break;case fe.TemplateType.AnalyticalListPageV4:case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.FreestylePageV4:t=new Sf(e);break;case fe.TemplateType.OverviewPageV2:t=new Fh(e);break;default:t=new Sf(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(G9,"importConfigs");function Vw(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===fe.SchemaType.Application?r=`${fe.DirName.Schemas}/${fe.FileName.App[0].toUpperCase()}${fe.FileName.App.slice(1)}`:r=`${fe.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(Vw,"getFileList");async function KC(e){var E,O;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new su().doesUi5VersionFitDistTags((O=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:O.minUI5Version,i);let u=yE(t),p=No(n,i),g=Dw(p),m=vE(t,u,i),A=await _w({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return Vw(A)}o(KC,"importProjectSchema");async function XC(e){var G,B;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new su().doesUi5VersionFitDistTags((B=(G=t["sap.ui5"])==null?void 0:G.dependencies)==null?void 0:B.minUI5Version,i);let p=yE(t),g=HF(t),m=No(n,i),v=vE(t,p,i),A={templateType:v,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},E=Dw(m),O=await _w(A,E,v),j=G9({manifest:t,flexChanges:s,appSchemas:O,templateType:v,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return Vw(O,j)}o(XC,"importProjectSchemaAndConfig");var W9=["header","sections","footer"];function K9(e,t,n,i){t.properties[n][oe.SchemaTag.artifactType]=oe.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=oe.ControlType.Section;break;case"ObjectPageSubSectionV2":r=oe.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=oe.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=oe.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=oe.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=oe.ControlType.ObjectPageHeaderSection;break}r&&(mt(e,t,n),t.properties[n][oe.SchemaTag.controlType]=r)}o(K9,"addFlexChangeForSection");function X9(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Ao.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=fm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${dt(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Ao.UIAnnotationTerms.Identification}`,`/@${Ao.UIAnnotationTerms.Identification}`);t.definitions[g][oe.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][oe.SchemaTag.actionType]=oe.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][oe.SchemaTag.keys]=[{name:oe.SchemaKeyName.action,value:s}],u&&(t.definitions[g][oe.SchemaTag.target]=u),i.properties[l]={$ref:`${U}${g}`}}})}o(X9,"addHeaderActionCallBackV2");function Q9(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Ao.UIAnnotationTypes.DataFieldForAction){let a=pa(r).split("::").splice(1).join("::"),s=yi(r,e),l=dt(`${oe.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Ao.UIAnnotationTerms.Identification}`,`/@${Ao.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[oe.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${U}${l}`}}})}o(Q9,"addFooterActionCallBackV2");function q9(e,t,n,i,r,a,s,l){let u,p;if(a.ID&&a.Label?u=a.ID+a.Label.replace(/\s+/g,""):a.ID?u=a.ID:a.Label&&(u=a.Label.replace(/\s+/g,"")),u?p=`${oe.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${oe.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${oe.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[g]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],v=r==null?void 0:r.entityTypes.find(E=>E.name===i),A=Ec(t[oe.ManifestSection.generic].pages,n,m);return yl(e,v,A,t,l,p,g,a.ID),p}o(q9,"ensureCustomColumnDefinitionExists");function md(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&K9(e,t,"visible",n)}o(md,"addAppSchemaDefinition");function z9(e,t,n){e.properties[t]={$ref:`${U}${n}`}}o(z9,"addSectionReference");function gd(e,t,n,i){let r=dt(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=U+t,i.definitions[r].properties.toolBar.$ref=`${U}ObjectPageToolBar<${t}>`,i.definitions[r][oe.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=oe.FACETTITLEPREFIX+n.ID,i.definitions[r][oe.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=oe.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${U}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${U}QuickVariant<${t}>`,Ka(n.entityType,i,`QuickVariant<${t}>`)}o(gd,"addTableDefinition");function Y9(e,t,n,i,r,a){if(i.base!==oe.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=Ro(n,i,t);let u=n.definitions[l];md(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[oe.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${U}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${U}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${U}ObjectPageAnalyticalTable<${t}>`},{$ref:`${U}ObjectPageGridTable<${t}>`},{$ref:`${U}ObjectPageTreeTable<${t}>`}],u[oe.SchemaTag.annotationPath]=i.annotationPath,fa(i,u,t),Ga(i,u,t),gd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),gd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),gd("ObjectPageGridTable",t,i,n),gd("ObjectPageTreeTable",t,i,n),gd("ObjectPageAnalyticalTable",t,i,n);let p,g=I0(i.entityType,e.serviceAVT);g&&(p=q9(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let v=r[m];v.base===oe.FacetBase.LineItem&&(v.ID===s||m.includes(s))&&hl(!0,n,v.target,v.entityType,v.ID||m,p)}}o(Y9,"handleLineItem");function J9(e,t,n,i,r,a=!1){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";md(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(J9,"handleSubSection");function Z9(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];md(e,a,r,"ObjectPageSectionChartV2")}o(Z9,"handleSectionChart");function ww(e,t,n,i,r,a){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t];md(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=ic(n==null?void 0:n.target)}o(ww,"handleHeaderFacet");function ez(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=ic(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(ez,"addDataPointHeaderFacetDataType");function tz(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];return md(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o(tz,"handleFormSection");function nz(e,t,n){let i=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[oe.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[oe.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[oe.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[oe.FacetBase.Form,"ObjectPageHeaderSectionForm"],[oe.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSubSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(nz,"getSectionType");function iz(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Ao.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(iz,"getReferenceKey");function kw(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=nz(l.base,a,s),p=iz(l,n,u),g=`${u}<${p}>`;switch(z9(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,J9(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let v in l.facets)kw(e,l.facets,v,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{Y9(e,p,r,l,t,u),Tl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{Z9(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=tz(r,g,l,p,u);lm(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{au(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{au(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{ww(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{ww(r,g,l,p,u),ez(r,g,l);break}default:i.properties[n]=Ro(r,l,p)}}o(kw,"addSection");function Mw(e,t,n,i,r,a=!1){if(e)for(let s in t)kw(i,t,s,n,r,!1,a)}o(Mw,"addSectionsFromFacets");function jw(e,t,n){var g,m,v,A,E,O;let i=t.definitions[oe.DefinitionName.Sections];i[oe.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ao.UIAnnotationTerms.Facets}`);let r=t.definitions[oe.DefinitionName.HeaderSections];if(r[oe.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ao.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Ug((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=jg((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let F in n){let j=n[F];(O=(E=e.entitySet)==null?void 0:E.name)!=null&&O.includes(j.entitySet)?(Mw(l,a,i,e,t),Mw(u,s,r,e,t,!0)):jw(e,t,j.pages)}let p=t.definitions.CustomSections;for(let F in p.properties)i.properties[F]=p.properties[F]}o(jw,"addSections");function rz(e,t,n){dm(e,n),pm(e,n,t,X9,void 0,!0)}o(rz,"addHeader");function oz(e,t,n,i){let r=WF(t,n,i,void 0,!0);r&&R0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(oz,"addRelatedFacetKeysType");function fd(e,t){var s;nn();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[oe.PropertyName.sections]={$ref:U+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[oe.ManifestSection.generic].pages;return a?(rz(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},jw(e,n,a),oz(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[oe.SchemaTag.isViewNode]=!0):delete n.properties[oe.PropertyName.sections]),um(n,e,oe.FioriElementsVersion.v2,Q9,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,Do(n,W9),n):(se(e.logger,{severity:oe.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:oe.MANIFESTPATH,range:[oe.ManifestSection.generic]}}),n)}o(fd,"generateObjectPageSchemaV2");var ei=ie(le());var Cf=require("@sap-ux/vocabularies-types/vocabularies/UI");var sz=["filterBar","table","footer"],cz=ei.UIVOCABULARYALPHADOT.substring(1);function QC(e,t,n,i){Ka(e,n,"QuickVariant"),O0(n,"QuickVariantX",t),N0(i,n,"QuickVariantX")}o(QC,"addEnumForVariantPaths");function lz(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Cf.UIAnnotationTerms.SelectionPresentationVariant,Cf.UIAnnotationTerms.SelectionVariant,Cf.UIAnnotationTerms.PresentationVariant];ou(e,r,i)}o(lz,"addEnumForFilterBarAnnotationPath");function fz(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(Cf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(Cf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(cz,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(se(n,{severity:ei.LogSeverity.Warning,message:q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(fz,"getPresentationVariantForLineItem");function uz(e,t,n){if(om(t,"annotationPath",n))return;let i=fz(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=ru("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||se(n,{severity:ei.LogSeverity.Warning,message:q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(uz,"getLineItemAnnotation");function ud(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:U+ei.DefinitionName.LineItems},r=U+ei.DefinitionName.ToolBarLR;PE.forEach((u,p)=>{n.properties.table.anyOf[p.toString()].$ref=U+u;let g=u.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[g]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[u]=m});let{entityType:a,uIAnnotations:s}=rm(e);if(s){let u=[],p=Vl(e.manifest[ei.ManifestSection.generic].pages,u);vl(n);let g=uz(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let v=pr(a.fullyQualifiedName,g.term,g.qualifier);PE.forEach(A=>{n.definitions[A][ei.SchemaTag.annotationPath]=v})}hl(!1,n,g,a);let m=s.SelectionFields;if(nm(n,m,a),Tl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],b0(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return se(e.logger,{severity:ei.LogSeverity.Error,message:q.t("NOLR"),location:{path:ei.MANIFESTPATH,range:[ei.ManifestSection.generic]}}),n;yl(n,a,p,e.manifest,e.fragments),QC(a,e.entitySet,n,e.serviceAVT),lz(a,n,ei.DefinitionName.ListReportFilterBar),L0(a,n,ei.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 Do(n,sz),n}o(ud,"generateListReportSchemaV2");var Zt=ie(le());var pz=["filterBar","keyPerformanceIndicators","chart","table","footer"];function dz(e,t,n){var E;let i=(E=e==null?void 0:e.component)==null?void 0:E.settings;if(om(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(O){let F=O+(r?"#"+r:"");return t[F]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return se(n,{severity:Zt.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||ru("LineItem",O),g=g||ru("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],v=t[g],A=(m||i.quickVariantSelectionX?0:1)+(v?0:2);if(A>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],F=q.t(O);se(n,{severity:Zt.LogSeverity.Warning,message:F})}return{lineItemAnnotation:m,chartAnnotation:v}}o(dz,"getLineItemAndChartAnnotation");function gz(e,t){let n=e.definitions[Zt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Zt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(gz,"addChart");function pd(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[Zt.PropertyName.table].anyOf[0].$ref=U+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${U}${Zt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${U}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Zt.PropertyName.table].anyOf[1].$ref=`${U}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${U}${Zt.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${U}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[Zt.PropertyName.table].anyOf[2].$ref=`${U}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${U}${Zt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${U}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,E0(n.definitions.TableColumnExtensionTypeV2.enum,[Zt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=rm(e);if(s){vl(n);let l=[],u=kl(e.manifest[Zt.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=dz(u,s,e.logger);p&&g0.forEach(v=>{n.definitions[v][Zt.SchemaTag.annotationPath]=pr(a.fullyQualifiedName,p.term,p.qualifier)}),hl(!1,n,p,a),g&&gz(n,g);let m=s.SelectionFields;if(nm(n,m,a),Tl(n,a),!u)return se(e.logger,{severity:Zt.LogSeverity.Error,message:q.t("NOLR"),location:{path:Zt.MANIFESTPATH,range:[Zt.ManifestSection.generic]}}),n;yl(n,a,u,e.manifest,e.fragments),QC(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 Do(n,pz),n}o(pd,"generateAnalyticalListReportSchemaV2");function mz(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(mz,"getCardDefinitionNames");function hz(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"},da(a,s.CardModel);let l=mz(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=U+"CardModel"}}o(hz,"addModelsEnum");function Uw(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},hz(n,t),n}o(Uw,"generateOverviewPageSchemaV2");var Ds=ie(le());function qC(e,t,n,i,r,a){nn();let s=No(e,t),l={templateType:a,fioriElementsVersion:Ds.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=ld(r,l.serviceAVT),l.entitySet||se(l.logger,{severity:Ds.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(qC,"prepareGenerationV2");function zC(e,t,n,i,r,a){let s=qC(n,a,i,r,t,Ds.TemplateType.ListReportObjectPageV2);return fd(s,e)}o(zC,"generateObjectPageInterfaceV2");function YC(e,t,n,i,r,a){let s=qC(n,a,i,r,t,Ds.TemplateType.ListReportObjectPageV2);return ud(s,e)}o(YC,"generateListReportInterfaceV2");function JC(e,t,n,i,r,a){let s=qC(n,a,i,r,t,Ds.TemplateType.AnalyticalListPageV2);return pd(s,e)}o(JC,"generateAnalyticalListPageInterfaceV2");function dd(e,t){return Uw(e,t)}o(dd,"generateOVPInterfaceV2");var we=ie(le());var hd=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 $w(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($w,"getClassesForSingleSection");function Bw(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],$w(n,i,t),Bw(n,t)}}o(Bw,"getSubsectionClasses");function yz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],$w(i,r,n),Bw(i,n)}o(yz,"getExportClassesForSections");function vz(e,t){let n=Vl(t.manifest[we.ManifestSection.generic].pages,e);if(!n){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(vz,"findV2Page");function ZC(e,t){let n=Xg(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(ZC,"calculateBaseId");function Hw(e,t,n=!1){let i=hd(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=vz(a,e),l=new Ri,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:ZC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ds(p,u,[],[],e.jsonSchema)}return i}o(Hw,"exportListReportPage");function Gw(e,t,n=!1){let i=e.page.config,r=hd(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=kl(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Ri,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:ZC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ds(p,u,[],[],e.jsonSchema)}return r}o(Gw,"exportAnalyticalListPage");function Ww(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=hd(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=Ec(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return se(e.logger,{severity:we.LogSeverity.Error,message:q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new Ri,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&yz(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:ZC(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ds(g,p,[],[],e.jsonSchema)}}return a}o(Ww,"exportObjectPage");var Kw=o(e=>{let t=hd();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Ri,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&zu(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),Tz=o((e,t,n)=>{var s;let i=hd();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new vm,e);r.settings=Object.assign(new Ya,e.settings);for(let l in n.definitions.AppSettings.properties){let u=zn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=$n(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],Wa(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&RE(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Xw(e,t){if(e[we.SchemaType.ListReport])return Hw(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return Ww(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return Kw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return Tz(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return Gw(e[we.SchemaType.AnalyticalListPage],t)}o(Xw,"exportPageV2");function ex(e,t,n=!1){if(e[we.SchemaType.ListReport])return Hw(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return Ww(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return Kw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return Gw(e[we.SchemaType.AnalyticalListPage],t,n)}o(ex,"exportConfigEntityByPathV2");var xf=ie(le()),qw=require("@sap-ux/vocabularies-types/vocabularies/UI");function Qw(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(Qw,"updateDependencyLib");function sv(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(sv,"extractLastIdPart");function zw(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return se(i,{severity:xf.LogSeverity.Error,message:q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(xf.PropertyName.sections),s=a>-1?sv(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${qw.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:xf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return tx(g),!0}o(zw,"createNewCustomColumn");var Fa=ie(le());var Jw=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),Yw=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function Ez(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(Ez,"initializeRouting");function bz(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(bz,"setTargetOptions");function Az(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Fa.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(Az,"calculateQueryPattern");function Zw(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){Zw(e,t,n,s);return}}}o(Zw,"fillNavigationParts");function Sz(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(Sz,"fillParentKeys");function Pz(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(bz(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=[];Zw(p,a,t,r,l==null?void 0:l.contextPath);let g=Sz(e.routePattern);u=Az(p,l,g)}i.routes.push(Jw(u,s.route,s.route))}}}o(Pz,"handlePageNavigation");function Cz(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(Cz,"removeDeletedPages");function xz(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=Yw({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=Yw({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(xz,"transferEntitySetandContextPath");function Iz(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(Iz,"updateRouteLayout");function Oz(e,t,n,i){var r;return e.pageType&&![Fa.PageTypeV4.CustomPage,Fa.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(e.pageType!==Fa.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Fa.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(r=t==null?void 0:t.options)==null?void 0:r.settings,viewName:e.view.name}}}),t}o(Oz,"fillTarget");function eM(e,t,n){var r,a;let i=Ez(n[Fa.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(Jw(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=Oz(u,l,s,t),xz(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={}),Pz(u,t,l,i,s),Iz(i,s,u),i.targets[s]=l}return Cz(i,t),i}o(eM,"transformRoutingV4");var Pi=ie(le());var tM=[Pi.FlexibleColumnLayoutAggregations.BeginColumnPages,Pi.FlexibleColumnLayoutAggregations.MidColumnPages,Pi.FlexibleColumnLayoutAggregations.EndColumnPages],nM=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:tM[r]?s.controlAggregation=tM[r]:s.controlAggregation=Pi.FlexibleColumnLayoutAggregations.EndColumnPages;let u=a.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let g in l.navigation)nM(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),Nz=o((e,t)=>{e.routing.config.routerClass=Pi.v4.FIORI_FCL_ROUTER_CLASS,nM(e,t,t.home);let n={viewName:Pi.FIORI_FCL_ROOT_VIEW_NAME,type:Pi.ViewTypes.XML,async:!0,id:Pi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,Qw(e,Pi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),Lz=o(e=>{var t;e.rootView&&e.rootView.viewName===Pi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Pi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),iM=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?Nz(e,t):Lz(e)},"updateFcl");var ne=ie(le()),yd=require("@sap-ux/vocabularies-types/vocabularies/UI");var rM=ie(Qs()),cv=ie(le());function Rz(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(Rz,"isExportValueEquals");function Fz(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)===cv.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(Fz,"deleteProperty");function oM(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),Vc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},oM)}else Rz((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]&&(Fz(e,i),l=!0);return l}o(oM,"exportProperty");function lv(e,t,n,i,r,a){let s=rf(e.file,!1,a);if(s){let l=xy(s);if(Vc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},oM)){let p=(0,rM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:cv.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(lv,"getExtensionExportResult");var aM=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=$o(n||[],a.name,i,s)),u&&lv(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),sM=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=xc(u,s[0]);p=Ic(a,m,u,g,t)}if(p){let m=of(t),A={...i.definitions[m],definitions:i.definitions};lv(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var cM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],Dz=[...cM,"views","initialLoad","template"],fv=o(e=>{let t=ne.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function _z(e,t,n){var s,l,u,p;let i=`@${yd.UIAnnotationTerms.LineItem}`,r=`@${yd.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ne.DefinitionName.TableSPV])==null?void 0:s[ne.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ne.DefinitionName.ALPTable])==null?void 0:u[ne.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ne.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(_z,"determineTargetAnnotationOfTable");function Vz(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ne.DefinitionName.ALPChart])==null?void 0:a[ne.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(Vz,"determineTargetAnnotationOfChart");function wz(e,t,n,i,r){var a;if(e.length===3)t=n=i[ne.SchemaTag.annotationPath]&&i[ne.SchemaTag.annotationPath].substr(i[ne.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split(U)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ne.SchemaTag.annotationPath])&&l[ne.SchemaTag.annotationPath].substr(l[ne.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(wz,"determineTargetAnnotationBasedOnParentView");function Mz(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}=wz(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ne.SchemaTag.annotationPath]&&l[ne.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ne.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ne.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(Mz,"determineTargetAnnotationOfView");function kz(e,t,n){let i,r;return e[2].split(`@${ne.UIVOCABULARY}`)[1]?n&&n.indexOf(ne.FACETTITLEPREFIX)>-1?i=r=n.split(ne.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(kz,"determineTargetAnnotationOfHeaderSections");function jz(e,t){let n=e[1].split(`@${ne.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=sv(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(jz,"determineTargetAnnotationOfSections");function Uz(e,t,n){let i,r,a=!1;return e[0]===ne.PropertyName.table&&e[1]!==ne.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=_z(e,t,n):e[0]===ne.PropertyName.chart&&t.templateType===ne.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=Vz(e,t,n):e[0]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=jz(e,a):e[1]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=kz(e,a,t.title):e[1]===ne.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=Mz(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(Uz,"determineTargetAnnotation");function $z(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ne.PropertyName.actions,ne.PropertyName.columns,ne.PropertyName.views,ne.PropertyName.visualFilters,ne.PropertyName.selectionFields].includes(ne.PropertyName[r])){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o($z,"determineKeyForSyncRule");function Bz(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(Bz,"createNewObjectInManifest");function lM(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&&(Bz(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(lM,"transferPropertyToManifest");function Hz(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&&cM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&Dz.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let v=t.syncRule.manifest.delete;typeof v=="function"&&(v(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 Wa(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(Hz,"deleteFromManifest");function Gz(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}=Uz(e,n.transferParameters,n.configObject),g=$z(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),v=Lo(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(v){let A={syncRule:t,manifestSection:v,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:g};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&pl([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=Hz(e,A,n.transferParameters,v,m,u,l):r=lM(A,n.propertyDefinition,i)}return r}o(Gz,"exportManifestChange");function Wz(e,t,n){let i=zn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);sM(e.transferParameters,r,n.configObject)}else i.manifest&&Gz(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ne.ChangeIndicator.Updated)}o(Wz,"evaluateExportRule");function Kz(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,ix(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(Kz,"transferSubObject");function Xz(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=Lo(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(Xz,"createALPTableView");function Qz(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=Lo(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)||yd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(Qz,"createALPChartView");function qz(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ft(e.pageNameArray),r=Lo(e.exportResults.manifest,i),a=`@${yd.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(qz,"createVisualFilters");function zz(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ft(t.pageNameArray)+"/views",s=Lo(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(zz,"createLRTableView");function Yz(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ne.DefinitionName.CustomColumn))i=zw(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ne.DefinitionName.ALPChartView&&e.key===ne.PropertyName.chart&&e.configObject)return Qz(e);if(t===ne.DefinitionName.ALPTableView&&e.key===ne.PropertyName.table&&e.configObject)return Xz(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ne.DefinitionName.LRTableView)||t.startsWith(ne.DefinitionName.LRChartView))?i=zz(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ne.DefinitionName.VisualFilters)&&(i=qz(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(Yz,"createNewElement");function Jz(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(Jz,"isDefinitionTraversable");function nx(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Kg(e.configObject,e.key),s=Fo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=Yz(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split(U)[1],i),p=a?[...t,a]:[...t,e.key];if(l||Wz(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||Jz(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;Kz(e,s,r,p,m)}}o(nx,"transferSortedListEntry");function Zz(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]],nx(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,nx(e,i,r),a=!0)}),e.index++})}return a}o(Zz,"transferConfigEntriesWithAnyOfDefinitions");function eY(e,t,n,i){let r=TE(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(eY,"mergeEntriesForInsert");function tY(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ne.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ne.SchemaTag.propertyIndex]-r[1][ne.SchemaTag.propertyIndex])),t}o(tY,"sortProperties");function nY(e,t,n,i,r,a){var l,u;let s=!1;if(e){let p=e.anyOf;if(!p){let g=(l=e.$ref)==null?void 0:l.split(U)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=Zz(n,p,i,r,a)}return s}o(nY,"checkIfAnyOfDefinition");function ix(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=nY(u,e,l,a,n,i),g=tY(a.properties);u!=null&&u.$ref&&eY(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!pl(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,nx(l,n,i,p),m[1].$ref&&s++)})}o(ix,"transferManifestEntriesAndFlexChange");function fM(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ne.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(fM,"getClassesForSingleSection");function uM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],fM(n,i,t),uM(n,t)}}o(uM,"getSubsectionClasses");function iY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],fM(e,r,n),uM(i,n)}o(iY,"getExportClassesForSections");function pM(e,t){let n=Xg(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(pM,"calculateBaseId");var dM=o((e,t,n=!1)=>{var l;let i=fv(e.manifest),r=new Ra,a=r.createPageInstance(ne.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ne.PropertyName.sections]&&iY(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:pM(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ne.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ne.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return ix(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),rY=o((e,t,n,i,r,a,s=!1)=>{var E,O;let l=fv(e.manifest),u=e.jsonSchema,p=(E=n.table)!=null&&E[ne.PropertyName.annotationPath]?ne.DefinitionName.ALPTableView:ne.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ne.DefinitionName.LineItems;u.definitions[ne.DefinitionName.TableSPV]&&(m=u.definitions[ne.DefinitionName.TableSPV].properties.columns.$ref.split(U)[1]);let v=u.definitions[`${ne.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&v)for(let F in v.properties)g.toolBar.actions[F]=t.createInstance(i,ne.DefinitionName.ToolBarAction,g.toolBar.actions[F]);let A={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:pM(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ne.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return ix(A,n,[],[],[],u),l},"exportListPage"),rx=o((e,t,n,i=!1)=>{let r=new Ra,a=r.createPageInstance(ne.PageTypeV2.ListReport,e.page.config);return rY(e,r,a,ne.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),gM=o((e,t,n=!1)=>rx(e,t,ne.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),oY=o((e,t,n,i,r,a)=>{let s=Lo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=dE());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];lM(u,p,{}),!l&&Object.keys(s).length&&BF(r,t,s)},"applyExportRule"),aY=o((e,t,n)=>{var a;let i=fv(t),r=Object.assign(new Ry,e);r.settings=Object.assign(new af,r.settings);for(let s in n.definitions.AppSettings.properties){let l=zn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)oY(l,u,s,e,i.manifest,n);else{let p=Lo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],Wa(i.manifest,u,!1))}}}return i.manifest[ne.ManifestSection.ui5].routing=eM(e.home,e.pages,i.manifest),iM(i.manifest[ne.ManifestSection.ui5],e),i},"exportApplicationV4"),mM=o((e,t)=>{if(e[ne.SchemaType.ListReport])return rx(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4);if(e[ne.SchemaType.ObjectPage])return dM(e[ne.SchemaType.ObjectPage],t);if(e[ne.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ne.SchemaType.Application];return aY(n,i,r)}else{if(e[ne.SchemaType.AnalyticalListPage])return gM(e[ne.SchemaType.AnalyticalListPage],t);if(e[ne.SchemaType.FPMCustomPage])return aM(e[ne.SchemaType.FPMCustomPage],ne.defaultExportResult)}},"exportPageV4"),sY=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=fv(e.manifest),l;return t&&Object.keys(t).length>0&&(l=$o(n||[],i.name,r,e.logger)),l&&lv(l,s,i.config,t,"view",a),s},"exportCustomPage"),ox=o((e,t,n=!1)=>{if(e[ne.SchemaType.ListReport])return rx(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4,n);if(e[ne.SchemaType.ObjectPage])return dM(e[ne.SchemaType.ObjectPage],t,n);if(e[ne.SchemaType.AnalyticalListPage])return gM(e[ne.SchemaType.AnalyticalListPage],t,n);if(e[ne.SchemaType.FPMCustomPage])return sY(e[ne.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Bt=require("@sap-ux/fe-fpm-writer");var cY=new Map([[pe.CustomExtensionType.CustomPage,Bt.generateCustomPage],[pe.CustomExtensionType.CustomColumn,Bt.generateCustomColumn],[pe.CustomExtensionType.CustomSection,Bt.generateCustomSection],[pe.CustomExtensionType.ObjectPage,Bt.generateObjectPage],[pe.CustomExtensionType.ListReport,Bt.generateListReport],[pe.CustomExtensionType.CustomAction,Bt.generateCustomAction],[pe.CustomExtensionType.CustomView,Bt.generateCustomView],[pe.CustomExtensionType.ControllerExtension,Bt.generateControllerExtension],[pe.CustomExtensionType.CustomSubSection,Bt.generateCustomSubSection],[pe.CustomExtensionType.CustomFilterField,Bt.generateCustomFilter],[pe.CustomExtensionType.CustomHeaderSection,Bt.generateCustomHeaderSection]]),lY={api:Bt.PromptsAPI,types:Bt.PromptsType};function fY(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ListReport];t=YC(i,r,a,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ObjectPage];t=zC(i,r,a,s,l,u)}else if(n[pe.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[pe.SchemaType.OverviewPage];t=dd(i,r)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.AnalyticalListPage];t=JC(i,r,a,s,l,u)}}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.ListReport];t=Ly(pe.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[pe.SchemaType.ObjectPage];t=BS(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.AnalyticalListPage];t=Ly(pe.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[pe.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[pe.SchemaType.FreestylePage];t=HS(pe.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[pe.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[pe.SchemaType.FPMCustomPage];t=GS(i,r,a,s,u,e.featureToggles,l)}}return t}o(fY,"generateSchema");function uY(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=Xw(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=mM(i,n)}return t}o(uY,"exportConfig");function pY(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=ex(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=ox(i,n)}return t}o(pY,"exportConfigEntityByPath");function dY(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=ex(i,n,!0)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=ox(i,n,!0)}return t}o(dY,"deleteConfigEntityByPath");function gY(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];n[pe.SchemaType.ListReport]?t=Ch(n[pe.SchemaType.ListReport]):n[pe.SchemaType.ObjectPage]?t=Oh(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.OverviewPage]?t=Rh(n[pe.SchemaType.OverviewPage]):n[pe.SchemaType.AnalyticalListPage]&&(t=xh(n[pe.SchemaType.AnalyticalListPage]))}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];n[pe.SchemaType.ListReport]?t=$c(n[pe.SchemaType.ListReport],pe.SchemaType.ListReport):n[pe.SchemaType.ObjectPage]?t=rv(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.AnalyticalListPage]?t=$c(n[pe.SchemaType.AnalyticalListPage],pe.SchemaType.AnalyticalListPage):n[pe.SchemaType.FPMCustomPage]&&(t=iv(n[pe.SchemaType.FPMCustomPage]))}return t}o(gY,"importConfig");async function mY(e){return XC(e)}o(mY,"importProject");async function hY(e){return KC(e)}o(hY,"importProjectSchema");function yY(){return{version:"21",fpmWriter:"29",moduleVersion:w0.version}}o(yY,"getApiVersion");function tx(e){let t=cY.get(e.customExtension);if(t&&typeof t=="function")return(0,Bt.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(tx,"generateCustomExtension");var zr=require("path"),_s=require("fs");var If=o(async e=>new Promise((t,n)=>{(0,_s.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),vY=o(async e=>JSON.parse(await If(e)),"readJSON"),ax=o(async e=>new Promise((t,n)=>{(0,_s.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),TY=o(async e=>new Promise(t=>{(0,_s.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),yM=o(async e=>new Promise(t=>{(0,_s.exists)(e,n=>{t(n)})}),"resourceExists"),EY=o(async e=>vY((0,zr.join)(e,"manifest.json")),"getManifest"),vM=o(async e=>{let t=[],n=(0,zr.join)(e,"changes");if(!await yM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await ax(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await If((0,zr.join)(n,a)));return t},"getChanges"),hM=o(async(e,t="fragments")=>{let n=[],i=(0,zr.join)(e,"ext",t);if(!await yM(i))return n;let r=await ax(i);for(let a of r){let s=(0,zr.join)(i,a),l=await If(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),bY=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 v=(0,zr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await If(v)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let v of i.mainService.settings.annotations)if((g=(p=i[v])==null?void 0:p.settings)!=null&&g.localUri){let A=(0,zr.join)(t,i[v].settings.localUri);n.push({dataSourceUri:A,fileContent:await If(A)})}}if(n.length===0)for(let v in i){let A=i[v];if((A==null?void 0:A.type)==="ODataAnnotation"&&((m=A==null?void 0:A.settings)!=null&&m.localUri)){let E=(0,zr.join)(t,A.settings.localUri);n.push({dataSourceUri:E,fileContent:await If(E)})}}return n},"getAnnotations"),AY=o(async e=>{let t=(0,zr.basename)(e),n=(0,zr.join)(e,"webapp"),i=await EY(n),r=await bY(i,n),a=await vM(n),s=await hM(n),l=await hM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");Xs(Di,ie(le()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
|
|
295
295
|
/*! Bundled license information:
|
|
296
296
|
|
|
297
297
|
sax/lib/sax.js:
|